pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/swill Update to new upstream. From the git log:
details: https://anonhg.NetBSD.org/pkgsrc/rev/523753756b2b
branches: trunk
changeset: 351005:523753756b2b
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Thu Aug 11 12:51:15 2016 +0000
description:
Update to new upstream. From the git log:
* Fix LLVM warnings (HEAD -> master, origin/master, origin/HEAD)
* Ignore shared library
* Only build libraries if needed
* Make configure executable
* Add configure script
* Update ignored files
* Add getpeerip, setfork functions
* Make it compile under Windows
* Document Cygwin
* Changes to compile with a cygwin compiler.
* Make it compile with gcc-4
* Fix setfork return type.
* Conditionally compile funcitonality that is not part of WIN32.
* _exit is a lot more efficient than exit.
* Add query string in the log file.
* Implement forking server. Add swill_setfork() function.
* Add swill_getquerystring function.
* Fix SVG mime type. See http://www.mozilla.org/projects/svg/faq.html
* Added logging statements for errors.
* Add application/svg type for the .svg suffix.
* Added swill_getrlen and swill_getrequest functions.
* Added conditional compilation directive.
* Added char *swill_getpeerip(const char *name) function.
* Use scanf %p for portability with 64 bit architectures.
* WIN32 port.
pkgsrc changes:
* Libtoolize to fix build on OS X (and perhaps others).
diffstat:
www/swill/Makefile | 21 ++++++---
www/swill/PLIST | 7 +-
www/swill/buildlink3.mk | 12 +++++
www/swill/distinfo | 18 ++++----
www/swill/patches/patch-Makefile.in | 47 +++++++++++++++++++++
www/swill/patches/patch-Makefile_in | 15 ------
www/swill/patches/patch-Source_Objects_Makefile.in | 15 ++++++
www/swill/patches/patch-Source_Objects_base_c | 20 ++++----
www/swill/patches/patch-Source_SWILL_Makefile.in | 49 ++++++++++++++++++++++
www/swill/patches/patch-aa | 14 ------
www/swill/patches/patch-ab | 23 ----------
11 files changed, 159 insertions(+), 82 deletions(-)
diffs (truncated from 302 to 300 lines):
diff -r b911a8522967 -r 523753756b2b www/swill/Makefile
--- a/www/swill/Makefile Thu Aug 11 05:01:05 2016 +0000
+++ b/www/swill/Makefile Thu Aug 11 12:51:15 2016 +0000
@@ -1,18 +1,25 @@
-# $NetBSD: Makefile,v 1.13 2012/10/28 06:31:06 asau Exp $
+# $NetBSD: Makefile,v 1.14 2016/08/11 12:51:15 schmonz Exp $
-DISTNAME= swill-0.3
-PKGREVISION= 1
+GITHUB_PROJECT= swill
+DISTNAME= fafde7646c39bfc3b30521dbcda9efaa94396b0e
+PKGNAME= swill-0.3
+PKGREVISION= 2
CATEGORIES= www devel
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=swill/}
-EXTRACT_SUFX= .tgz
+MASTER_SITES= ${MASTER_SITE_GITHUB:=dspinellis/}
+DIST_SUBDIR= ${GITHUB_PROJECT}
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE= http://swill.sourceforge.net/
+HOMEPAGE= https://github.com/dspinellis/swill/
COMMENT= The Simple Web Interface Link Library
LICENSE= gnu-lgpl-v2.1
-WRKSRC= ${WRKDIR}/SWILL-0.3
+WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${DISTNAME}
+
GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --without-mpi
+USE_LIBTOOL= yes
INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX}
+INSTALLATION_DIRS= include lib
+
.include "../../mk/bsd.pkg.mk"
diff -r b911a8522967 -r 523753756b2b www/swill/PLIST
--- a/www/swill/PLIST Thu Aug 11 05:01:05 2016 +0000
+++ b/www/swill/PLIST Thu Aug 11 12:51:15 2016 +0000
@@ -1,4 +1,3 @@
-@comment $NetBSD: PLIST,v 1.3 2009/07/16 22:12:20 obache Exp $
-include/swill/swill.h
-lib/libswill.a
-lib/libswill.so
+@comment $NetBSD: PLIST,v 1.4 2016/08/11 12:51:15 schmonz Exp $
+include/swill.h
+lib/libswill.la
diff -r b911a8522967 -r 523753756b2b www/swill/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/swill/buildlink3.mk Thu Aug 11 12:51:15 2016 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2016/08/11 12:51:15 schmonz Exp $
+
+BUILDLINK_TREE+= swill
+
+.if !defined(SWILL_BUILDLINK3_MK)
+SWILL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.swill+= swill>=0.3nb2
+BUILDLINK_PKGSRCDIR.swill?= ../../www/swill
+.endif # SWILL_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -swill
diff -r b911a8522967 -r 523753756b2b www/swill/distinfo
--- a/www/swill/distinfo Thu Aug 11 05:01:05 2016 +0000
+++ b/www/swill/distinfo Thu Aug 11 12:51:15 2016 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.6 2015/11/04 02:47:39 agc Exp $
+$NetBSD: distinfo,v 1.7 2016/08/11 12:51:15 schmonz Exp $
-SHA1 (swill-0.3.tgz) = 765a15c22ef527a811c41c3a2fd25199c979e298
-RMD160 (swill-0.3.tgz) = 72134ac3213b6e8df3cf5c7d3d73a2378e9f5659
-SHA512 (swill-0.3.tgz) = 08d1f0fd8832c981580a1508e752b34740661943b276119615dac0a81afdc26f598c7174d4796b56c8941438b0a6d5e6c9b6f94369075d796c23bd274af52c71
-Size (swill-0.3.tgz) = 438745 bytes
-SHA1 (patch-Makefile_in) = 4e484d79b63edd74e990caf0b7556645f2d8fac8
-SHA1 (patch-Source_Objects_base_c) = 710bcee4dddbc2178b5c00d5f4827e54fdc2831b
-SHA1 (patch-aa) = a2bdde8349e57f6d6440ce4ed02a246353dc6d93
-SHA1 (patch-ab) = c855874bfb3df83a8218ff099e52cede9ebd4478
+SHA1 (swill/fafde7646c39bfc3b30521dbcda9efaa94396b0e.tar.gz) = 1628126f9629b1cf78a1e8d8b7bb0296b9085e9c
+RMD160 (swill/fafde7646c39bfc3b30521dbcda9efaa94396b0e.tar.gz) = d422a9999ea1168f116d95ec5be60ab24966988b
+SHA512 (swill/fafde7646c39bfc3b30521dbcda9efaa94396b0e.tar.gz) = dd8867b497dd7e3ac661c06b4301e056a10efb81b23e6573677fd7b3d0015600d28f0cf15428b84f0f4490efb8fb37cf9e4457cc3d68feac9175147186130672
+Size (swill/fafde7646c39bfc3b30521dbcda9efaa94396b0e.tar.gz) = 119204 bytes
+SHA1 (patch-Makefile.in) = eedb76e89aee76b29a9d25cd47c4c0c3929cedf0
+SHA1 (patch-Source_Objects_Makefile.in) = 963125eb9edc293a34923f818ec1472f44d5beb2
+SHA1 (patch-Source_Objects_base_c) = ac8d6bee14f6db5bdbe38c33b6e0d46fc457a12b
+SHA1 (patch-Source_SWILL_Makefile.in) = 5b39b5292a3ae19c7a3e636027c91f828ee3edf1
diff -r b911a8522967 -r 523753756b2b www/swill/patches/patch-Makefile.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/swill/patches/patch-Makefile.in Thu Aug 11 12:51:15 2016 +0000
@@ -0,0 +1,47 @@
+$NetBSD: patch-Makefile.in,v 1.1 2016/08/11 12:51:15 schmonz Exp $
+
+Libtoolize.
+
+--- Makefile.in.orig 2016-01-16 13:37:22.000000000 +0000
++++ Makefile.in
+@@ -15,35 +15,26 @@ RANLIB = @RANLIB@
+
+ # Installer
+
+-INSTALL = ./install-sh -c
++INSTALL = install -c
+ INSTALL_DATA = ${INSTALL} -m 644
+ INSTALL_PROGRAM= ${INSTALL} -m 755
+
+-all: static
++all: shared
+
+ static:
+ cd Source/Objects; $(MAKE)
+- cd Source/SWILL; $(MAKE) static
+
+-shared:
++shared: static
+ cd Source/SWILL; $(MAKE) shared
+
+ install:
+- @for i in *@SO@; \
++ @cd Source/SWILL && for i in *.la; \
+ do \
+ if test -f $$i; then \
+ echo "Installing $(LIB_DIR)/$$i"; \
+- $(INSTALL_PROGRAM) $$i $(LIB_DIR)/$$i; \
++ libtool --mode=install $(INSTALL_PROGRAM) $$i $(LIB_DIR)/$$i; \
+ fi; \
+ done;
+- @for i in *.a; \
+- do \
+- if test -f $$i; then \
+- echo "Installing $(LIB_DIR)/$$i"; \
+- $(INSTALL_DATA) $$i $(LIB_DIR)/$$i; \
+- $(RANLIB) $(LIB_DIR)/$$i; \
+- fi; \
+- done;
+
+ @echo "Installing $(INCLUDE_DIR)/swill.h..."
+ @$(INSTALL_DATA) Include/swill.h $(INCLUDE_DIR)/swill.h
diff -r b911a8522967 -r 523753756b2b www/swill/patches/patch-Makefile_in
--- a/www/swill/patches/patch-Makefile_in Thu Aug 11 05:01:05 2016 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-Makefile_in,v 1.1 2011/09/29 11:27:07 dholland Exp $
-
-Fix MAKE_JOBS build.
-
---- Makefile.in~ 2007-07-07 04:51:35.000000000 +0000
-+++ Makefile.in
-@@ -53,7 +53,7 @@ install:
- @echo "Installing $(INCLUDE_DIR)/swill/swill.h..."
- @$(INSTALL_DATA) $(SRC_DIR)/Include/swill/swill.h $(INCLUDE_DIR)/swill/swill.h
-
--all: static shared
-+all: static .WAIT shared
-
- localclean:
- rm -rf *.o *.so libswill*
diff -r b911a8522967 -r 523753756b2b www/swill/patches/patch-Source_Objects_Makefile.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/swill/patches/patch-Source_Objects_Makefile.in Thu Aug 11 12:51:15 2016 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-Source_Objects_Makefile.in,v 1.1 2016/08/11 12:51:15 schmonz Exp $
+
+Libtoolize.
+
+--- Source/Objects/Makefile.in.orig 2016-01-16 13:37:22.000000000 +0000
++++ Source/Objects/Makefile.in
+@@ -37,7 +37,7 @@ SHELL = /bin/sh
+ # Rules for creation of a .o file from .c
+ .SUFFIXES: .c
+ .c.o:
+- $(CC) $(CCSHARED) $(DOHOPT) $(INCLUDE) $(CFLAGS) -c -o $*.o $<
++ libtool --mode=compile --tag=CC $(CC) $(DOHOPT) $(INCLUDE) $(CFLAGS) -c $<
+
+ all: $(LIBOBJS)
+
diff -r b911a8522967 -r 523753756b2b www/swill/patches/patch-Source_Objects_base_c
--- a/www/swill/patches/patch-Source_Objects_base_c Thu Aug 11 05:01:05 2016 +0000
+++ b/www/swill/patches/patch-Source_Objects_base_c Thu Aug 11 12:51:15 2016 +0000
@@ -1,15 +1,15 @@
-$NetBSD: patch-Source_Objects_base_c,v 1.1 2011/09/29 11:27:07 dholland Exp $
+$NetBSD: patch-Source_Objects_base_c,v 1.2 2016/08/11 12:51:15 schmonz Exp $
Use correct printf format. While on the same line, use snprintf.
---- Source/Objects/base.c~ 2007-08-09 15:17:37.000000000 +0000
+--- Source/Objects/base.c.orig 2016-01-16 13:37:22.000000000 +0000
+++ Source/Objects/base.c
@@ -94,7 +94,7 @@ DohStr(const DOH *obj) {
- if (objinfo->doh_str) {
- return (objinfo->doh_str)(b);
- }
-- sprintf(buffer,"<Object '%s' at %x>", objinfo->objname, (unsigned int) b);
-+ snprintf(buffer, sizeof(buffer), "<Object '%s' at %p>", objinfo->objname, b);
- return NewString(buffer);
- } else {
- return NewString(obj);
+ if (objinfo->doh_str) {
+ return (objinfo->doh_str)(b);
+ }
+- sprintf(buffer,"<Object '%s' at %p>", objinfo->objname, b);
++ snprintf(buffer, sizeof(buffer), "<Object '%s' at %p>", objinfo->objname, b);
+ return NewString(buffer);
+ } else {
+ return NewString(obj);
diff -r b911a8522967 -r 523753756b2b www/swill/patches/patch-Source_SWILL_Makefile.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/swill/patches/patch-Source_SWILL_Makefile.in Thu Aug 11 12:51:15 2016 +0000
@@ -0,0 +1,49 @@
+$NetBSD: patch-Source_SWILL_Makefile.in,v 1.1 2016/08/11 12:51:15 schmonz Exp $
+
+Libtoolize.
+
+--- Source/SWILL/Makefile.in.orig 2016-01-16 13:37:22.000000000 +0000
++++ Source/SWILL/Makefile.in
+@@ -20,12 +20,12 @@ NETLIBS = @NETLIBS@
+ # Normally, you shouldn't have to change anything below this point #
+ ########################################################################
+
+-LIBOBJS = log.o io.o encoding.o handlers.o mime.o parse.o web.o security.o
++LIBOBJS = log.lo io.lo encoding.lo handlers.lo mime.lo parse.lo web.lo security.lo
+ LIBSRCS = log.c io.c encoding.c handlers.c mime.c parse.c web.c security.c
+
+-DOHOBJS = ../Objects/*.o
++DOHOBJS = ../Objects/*.lo
+ LIBHEADERS = $(srcdir)/../Include/swill.h
+-LIB = libswill@MPISUFFIX@$(SO)
++LIB = libswill@MPISUFFIX@.la
+ SLIB = libswill@MPISUFFIX@.a
+ INCLUDE = -I$(srcdir)/../../Include -I$(srcdir)/../Objects @MPIINCLUDE@
+ CFLAGS = @USEMPI@
+@@ -33,20 +33,20 @@ SHELL = /bin/sh
+
+ #
+ # Rules for creation of a .o file from .cxx
+-.SUFFIXES: .c
+-.c.o:
+- $(CC) $(CCSHARED) $(INCLUDE) $(CFLAGS) -c -o $*.o $<
++.SUFFIXES: .c .lo
++.c.lo:
++ libtool --mode=compile --tag=CC $(CC) $(INCLUDE) $(CFLAGS) -c $<
+
+-all: static shared
++all: shared
+
+ $(SLIB): $(LIBOBJS)
+ @echo "Building static library"
+ $(AR) cr $(SLIB) $(LIBOBJS) $(DOHOBJS)
+ cp -f $(SLIB) ../..
+
+-($LIB): $(LIBOBJS)
++$(LIB): $(LIBOBJS)
+ @echo "Building shared library"
+- $(LDSHARED) $(LIBOBJS) $(DOHOBJS) -o $(LIB) $(NETLIBS)
++ libtool --mode=link --tag=CC ${CC} $(LIBOBJS) $(DOHOBJS) -o $(LIB) $(NETLIBS) -version-info 1:0:0 -rpath $(prefix)/lib
+ cp -f $(LIB) ../..
+
+ static: $(SLIB)
diff -r b911a8522967 -r 523753756b2b www/swill/patches/patch-aa
--- a/www/swill/patches/patch-aa Thu Aug 11 05:01:05 2016 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-$NetBSD: patch-aa,v 1.1 2010/12/30 13:15:14 obache Exp $
-
-* need to include <sys/socket.h> for socket(2) and related definitions.
-
---- Source/SWILL/sock.c.orig 2008-04-10 03:55:01.000000000 +0000
-+++ Source/SWILL/sock.c
-@@ -24,6 +24,7 @@ static char cvsroot[] = "$Header: /cvsro
- #include <netinet/in.h>
- #include <arpa/inet.h>
- #include <signal.h>
-+#include <sys/socket.h>
-
- #define comm_errno errno
- #define closesocket(s) close(s)
diff -r b911a8522967 -r 523753756b2b www/swill/patches/patch-ab
--- a/www/swill/patches/patch-ab Thu Aug 11 05:01:05 2016 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2010/12/30 13:15:14 obache Exp $
-
-* DragonFly support.
-
---- configure.orig 2007-07-10 02:31:37.000000000 +0000
-+++ configure
-@@ -3474,6 +3474,7 @@ then
- dgux*) LDSHARED="ld -G";;
- FreeBSD*/3*) LDSHARED="gcc -shared";;
- FreeBSD*|OpenBSD*) LDSHARED="ld -Bshareable";;
-+ DragonFly*) LDSHARED="cc -shared";;
- NetBSD*)
- if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
- then
-@@ -3514,7 +3515,7 @@ then
- fi;;
- Linux*) CCSHARED="-fpic";;
- FreeBSD*|OpenBSD*) CCSHARED="-fpic";;
-- NetBSD*) CCSHARED="-fPIC";;
-+ NetBSD*|DragonFly*) CCSHARED="-fPIC";;
- SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;
Home |
Main Index |
Thread Index |
Old Index