diff options
author | joerg <joerg> | 2008-09-19 23:26:09 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-09-19 23:26:09 +0000 |
commit | 867fe135098bef35d170191502e0a960a8eaf4d6 (patch) | |
tree | 898b901bd48a1310b1a6a121bd2287dde587b84b | |
parent | 1828cf2889233701549eea30039263b1a073a43e (diff) | |
download | pkgsrc-867fe135098bef35d170191502e0a960a8eaf4d6.tar.gz |
Fix build with GCC 4 and add DESTDIR support.
-rw-r--r-- | net/libsscript/Makefile | 6 | ||||
-rw-r--r-- | net/libsscript/distinfo | 6 | ||||
-rw-r--r-- | net/libsscript/patches/patch-aa | 12 | ||||
-rw-r--r-- | net/libsscript/patches/patch-ab | 26 |
4 files changed, 36 insertions, 14 deletions
diff --git a/net/libsscript/Makefile b/net/libsscript/Makefile index 85e23c80f99..8f4e4aaae24 100644 --- a/net/libsscript/Makefile +++ b/net/libsscript/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2007/03/24 19:21:29 joerg Exp $ +# $NetBSD: Makefile,v 1.10 2008/09/19 23:26:09 joerg Exp $ # DISTNAME= sscript-lib2.0 @@ -12,9 +12,11 @@ MAINTAINER= rh@NetBSD.org HOMEPAGE= http://www.linuxave.net/~drow/SocketScript/ COMMENT= Simple library for creating network oriented software in C +PKG_DESTDIR_SUPPORT= user-destdir + NO_CONFIGURE= YES USE_LIBTOOL= YES -INSTALLATION_DIRS= lib +INSTALLATION_DIRS= include/libsscript lib share/doc/libsscript .include "../../mk/bsd.pkg.mk" diff --git a/net/libsscript/distinfo b/net/libsscript/distinfo index 727a9250322..b39c997248a 100644 --- a/net/libsscript/distinfo +++ b/net/libsscript/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.4 2005/11/07 21:42:22 tv Exp $ +$NetBSD: distinfo,v 1.5 2008/09/19 23:26:09 joerg Exp $ SHA1 (sscript-lib2.0.tar) = f2de038ea95f2b553b57c5694fa6cd2530b6af30 RMD160 (sscript-lib2.0.tar) = 55fd459cb5d8b99a1bb6b0d4a846383a2ebef6e7 Size (sscript-lib2.0.tar) = 30720 bytes -SHA1 (patch-aa) = a055668a994db3d865867f28fc64f5072b47933e -SHA1 (patch-ab) = 2992654b4109c6751f350676192980755f163835 +SHA1 (patch-aa) = 37e4b3db1f3dcd7694530ea4018c59bca423e4c7 +SHA1 (patch-ab) = 353148dc85e81fb1303a326487d8ee0e39f5f7c6 diff --git a/net/libsscript/patches/patch-aa b/net/libsscript/patches/patch-aa index 0e1d56762b4..b1851796796 100644 --- a/net/libsscript/patches/patch-aa +++ b/net/libsscript/patches/patch-aa @@ -1,8 +1,8 @@ -$NetBSD: patch-aa,v 1.1.1.1 2000/03/30 14:59:28 rh Exp $ +$NetBSD: patch-aa,v 1.2 2008/09/19 23:26:09 joerg Exp $ --- Makefile.orig Wed Feb 2 02:01:39 2000 +++ Makefile Thu Mar 30 16:53:45 2000 -@@ -1,15 +1,15 @@ +@@ -1,15 +1,13 @@ # SScript library makefile. -CC = gcc @@ -17,11 +17,9 @@ $NetBSD: patch-aa,v 1.1.1.1 2000/03/30 14:59:28 rh Exp $ install: - cp libsscript.a /usr/lib/libsscript.a -+ ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} libsscript.la ${PREFIX}/lib -+ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/include/libsscript -+ ${BSD_INSTALL_DATA} sscript.h ${PREFIX}/include/libsscript -+ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/doc/libsscript -+ ${BSD_INSTALL_DATA} sscript-lib.doc ${PREFIX}/share/doc/libsscript ++ ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} libsscript.la ${DESTDIR}${PREFIX}/lib ++ ${BSD_INSTALL_DATA} sscript.h ${DESTDIR}${PREFIX}/include/libsscript ++ ${BSD_INSTALL_DATA} sscript-lib.doc ${DESTDIR}${PREFIX}/share/doc/libsscript clean: rm -f *.a *.o *~ diff --git a/net/libsscript/patches/patch-ab b/net/libsscript/patches/patch-ab index 594d152f7cc..7bfa342224f 100644 --- a/net/libsscript/patches/patch-ab +++ b/net/libsscript/patches/patch-ab @@ -1,6 +1,6 @@ -$NetBSD: patch-ab,v 1.1 2005/11/07 21:42:22 tv Exp $ +$NetBSD: patch-ab,v 1.2 2008/09/19 23:26:09 joerg Exp $ ---- sscript.c.orig 2000-02-01 20:21:05.000000000 -0500 +--- sscript.c.orig 2000-02-02 02:21:05.000000000 +0100 +++ sscript.c @@ -10,7 +10,9 @@ #include <sys/socket.h> @@ -12,3 +12,25 @@ $NetBSD: patch-ab,v 1.1 2005/11/07 21:42:22 tv Exp $ #include <strings.h> #include <sys/file.h> #include <signal.h> +@@ -34,8 +36,8 @@ char *sscript_lindex(char *input_string, + static char tmpstring[1024]; + int i; + strncpy(tmpstring,input_string,1024); +- (char *)tokens[i=0] = (char *)strtok(tmpstring, " "); +- while (((char *)tokens[++i] = (char *)strtok(NULL, " "))); ++ tokens[i=0] = strtok(tmpstring, " "); ++ while ((tokens[++i] = strtok(NULL, " "))); + tokens[i] = NULL; + return(tokens[word_number]); + } +@@ -231,8 +233,8 @@ char *sscript_lrange(char *input_string, + strcpy(global_var[1],out_string); + return global_var[1]; } + strcpy(tmpstring,input_string); +- (char *)tokens[i=0] = (char *)strtok(tmpstring, " "); +- while(((char *)tokens[++i] = (char *)strtok(NULL, " "))); ++ tokens[i=0] = strtok(tmpstring, " "); ++ while((tokens[++i] = strtok(NULL, " "))); + tokens[i] = NULL; + i++; + if(i<starting_at) return (int)NULL; |