pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/socks4 Make this build with a post-ISO C compiler....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/59f2716fc8a1
branches:  trunk
changeset: 554084:59f2716fc8a1
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Feb 08 00:16:00 2009 +0000

description:
Make this build with a post-ISO C compiler. Add DESTDIR support.
Likely still broken on LP64...

diffstat:

 net/socks4/Makefile         |   9 +--
 net/socks4/distinfo         |  11 +++-
 net/socks4/patches/patch-aa |  16 +++---
 net/socks4/patches/patch-ag |  98 ++++++++++++++++++++++++++++++++++++++++++--
 net/socks4/patches/patch-ao |  21 +++++++++
 net/socks4/patches/patch-ap |  22 ++++++++++
 net/socks4/patches/patch-aq |  20 +++++++++
 net/socks4/patches/patch-ar |  67 ++++++++++++++++++++++++++++++
 net/socks4/patches/patch-as |  13 +++++
 9 files changed, 255 insertions(+), 22 deletions(-)

diffs (truncated from 395 to 300 lines):

diff -r 64141f28420d -r 59f2716fc8a1 net/socks4/Makefile
--- a/net/socks4/Makefile       Sun Feb 08 00:02:45 2009 +0000
+++ b/net/socks4/Makefile       Sun Feb 08 00:16:00 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2007/01/07 09:14:06 rillig Exp $
+# $NetBSD: Makefile,v 1.27 2009/02/08 00:16:00 joerg Exp $
 #
 
 DISTNAME=      export.socks.cstc.4.2.2
@@ -14,6 +14,7 @@
 CONFLICTS=     socks5-[0-9]* dante*
 
 PKG_INSTALLATION_TYPES=        overwrite pkgviews
+PKG_DESTDIR_SUPPORT=   user-destdir
 
 WRKSRC=                        ${WRKDIR}/socks.cstc.4.2
 MAKE_ENV+=             OPTIMIZE=${CFLAGS:M*:Q}
@@ -21,7 +22,8 @@
 EGDIR=         ${PREFIX}/share/examples/socks4
 CONF_FILES=    ${EGDIR}/socks.conf ${PKG_SYSCONFDIR}/socks.conf
 
-INSTALLATION_DIRS=     bin lib libexec ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 ${PKGMANDIR}/man8
+INSTALLATION_DIRS=     bin lib libexec ${PKGMANDIR}/man1 \
+                       ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 ${EGDIR}
 
 post-patch:
        @cd ${WRKSRC};                                                  \
@@ -31,7 +33,4 @@
        ${MV} include/socks.h.new include/socks.h
        @${ECHO} "sockd 0.0.0.0 0.0.0.0" >> ${WRKSRC}/socks.conf
 
-pre-install:
-       ${INSTALL_DATA_DIR} ${EGDIR}
-
 .include "../../mk/bsd.pkg.mk"
diff -r 64141f28420d -r 59f2716fc8a1 net/socks4/distinfo
--- a/net/socks4/distinfo       Sun Feb 08 00:02:45 2009 +0000
+++ b/net/socks4/distinfo       Sun Feb 08 00:16:00 2009 +0000
@@ -1,15 +1,15 @@
-$NetBSD: distinfo,v 1.7 2005/12/27 13:48:56 joerg Exp $
+$NetBSD: distinfo,v 1.8 2009/02/08 00:16:00 joerg Exp $
 
 SHA1 (export.socks.cstc.4.2.2.tar.gz) = 7d8d041c82213f9fd60f64aadf9c1ade418e15db
 RMD160 (export.socks.cstc.4.2.2.tar.gz) = 03dc72b80f2223c7462ecf168a0fbbf3effd5223
 Size (export.socks.cstc.4.2.2.tar.gz) = 278805 bytes
-SHA1 (patch-aa) = 0ec9255cf3e9a04da5cb035f85e3fbd1ac1c5e45
+SHA1 (patch-aa) = 252ef19fa1c255e4aeaad30162869269716c7e98
 SHA1 (patch-ab) = fd3f119add1144b24eb2cec578c011bcb397e875
 SHA1 (patch-ac) = d3988d7ae5103bd7849305bb555d7cf3b1574ddc
 SHA1 (patch-ad) = 321d88cf5863f8c3f0b5b3623a1af2c4753f5eb3
 SHA1 (patch-ae) = 6bb9ffb57bb45f3a427059ddeee1f8cfd5489ab4
 SHA1 (patch-af) = fc08b324b19be9ea35d8f7c0f59073ac6c0349b7
-SHA1 (patch-ag) = 859f310ba8e699c4ac568d1d672f54261f500557
+SHA1 (patch-ag) = 805ba908664d23c774acec0bb80c0169e5b2731e
 SHA1 (patch-ah) = 71af7c7706f60f02b7b2fe936cdb7163b0054220
 SHA1 (patch-ai) = 31ab5443177a211f34afebb7c110a5c45a307c25
 SHA1 (patch-aj) = 277772e951c26ad1ff7f767e3a0943b8cad84982
@@ -17,3 +17,8 @@
 SHA1 (patch-al) = d955ca99b0d73b47281144776c09d4380b5d939e
 SHA1 (patch-am) = 712ccb9bdc0bebc40e5fa752e6a25944275b33e0
 SHA1 (patch-an) = 23b930373ecc06711cdcb869e5e4b6c8bdb410b4
+SHA1 (patch-ao) = 23e9ad01762f280ab169990cba657637ed45a058
+SHA1 (patch-ap) = f8a20f8301083e4a679766febdfb5c646c4cf8c9
+SHA1 (patch-aq) = 0359ed3ee095fb2844f998a3c00a61fc1685c8e8
+SHA1 (patch-ar) = 45d49f6f1be44ce3422e51abe6bfccdb419de6d0
+SHA1 (patch-as) = 90c12847eabb72273e7ef7172cdc5c4a8c97c43f
diff -r 64141f28420d -r 59f2716fc8a1 net/socks4/patches/patch-aa
--- a/net/socks4/patches/patch-aa       Sun Feb 08 00:02:45 2009 +0000
+++ b/net/socks4/patches/patch-aa       Sun Feb 08 00:16:00 2009 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.8 2005/12/27 13:48:56 joerg Exp $
+$NetBSD: patch-aa,v 1.9 2009/02/08 00:16:00 joerg Exp $
 
---- Makefile.orig      1995-09-07 02:24:02.000000000 +0000
+--- Makefile.orig      1995-09-07 04:24:02.000000000 +0200
 +++ Makefile
 @@ -3,9 +3,11 @@
  
@@ -48,15 +48,15 @@
  
  # Directory into which to install the man pages
 -MAN_DEST_DIR = /usr/local/man
-+MAN_DEST_DIR = ${PREFIX}/man
++MAN_DEST_DIR = ${DESTDIR}${PREFIX}/man
  
  # Directory into which the SOCKS server should be installed
 -SERVER_BIN_DIR = /usr/etc
-+SERVER_BIN_DIR = ${PREFIX}/libexec
++SERVER_BIN_DIR = ${DESTDIR}${PREFIX}/libexec
  
  # Directory into the client programs should be installed
 -CLIENTS_BIN_DIR = /usr/local/bin
-+CLIENTS_BIN_DIR = ${PREFIX}/bin
++CLIENTS_BIN_DIR = ${DESTDIR}${PREFIX}/bin
  
  # SunOS 4.1.x should use
  #CC=cc
@@ -131,10 +131,10 @@
  
  
 +install.conf:
-+      ${INSTALL} -m 0644 socks.conf ${PREFIX}/share/examples/socks4
++      ${INSTALL} -m 0644 socks.conf ${DESTDIR}${PREFIX}/share/examples/socks4
 +
 +install.lib:
-+      ${INSTALL} -m 0644 lib/libsocks.a ${PREFIX}/lib/libsocks4.a
-+      ${RANLIB} ${PREFIX}/lib/libsocks4.a
++      ${INSTALL} -m 0644 lib/libsocks.a ${DESTDIR}${PREFIX}/lib/libsocks4.a
++      ${RANLIB} ${DESTDIR}${PREFIX}/lib/libsocks4.a
 +
 +install: install.server install.clients install.man install.conf install.lib
diff -r 64141f28420d -r 59f2716fc8a1 net/socks4/patches/patch-ag
--- a/net/socks4/patches/patch-ag       Sun Feb 08 00:02:45 2009 +0000
+++ b/net/socks4/patches/patch-ag       Sun Feb 08 00:16:00 2009 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ag,v 1.1 2004/09/08 15:03:15 sketch Exp $
+$NetBSD: patch-ag,v 1.2 2009/02/08 00:16:00 joerg Exp $
 
---- rtelnet/telnet/commands.c.orig     1995-02-25 00:36:16.000000000 +0000
-+++ rtelnet/telnet/commands.c  2004-09-08 15:57:55.000000000 +0100
-@@ -43,7 +43,7 @@
+--- rtelnet/telnet/commands.c.orig     1995-02-25 01:36:16.000000000 +0100
++++ rtelnet/telnet/commands.c
+@@ -43,7 +43,7 @@ static char sccsid[] = "@(#)commands.c       5
  #include <netdb.h>
  #include <ctype.h>
  #include <pwd.h>
@@ -11,16 +11,102 @@
  #include <errno.h>
  #if defined(ISC)
  #include <net/errno.h>
-@@ -112,7 +112,7 @@
+@@ -112,7 +112,16 @@ extern int isprefix();
  extern char **genget();
  extern int Ambiguous();
  
 -static call();
 +static int call(void *, ...);
++static int help(int argc, char *argvp[]);
++static int send_esc();
++
++#ifndef SOLARIS
++static void send_do();
++static void send_dont();
++static void send_will();
++static void send_wont();
++#endif
  
  typedef struct {
        char    *name;          /* command name */
-@@ -2345,17 +2345,15 @@
+@@ -265,7 +274,7 @@ struct sendlist {
+ };
+ 
+ 
+-extern int
++static int
+       send_esc P((void)),
+       send_help P((void)),
+       send_docmd P((char *)),
+@@ -406,9 +415,6 @@ send_esc()
+ send_docmd(name)
+     char *name;
+ {
+-#ifndef SOLARIS
+-    void send_do();
+-#endif
+     return(send_tncmd(send_do, "do", name));
+ }
+ 
+@@ -416,27 +422,18 @@ send_docmd(name)
+ send_dontcmd(name)
+     char *name;
+ {
+-#ifndef SOLARIS
+-    void send_dont();
+-#endif
+     return(send_tncmd(send_dont, "dont", name));
+ }
+     static int
+ send_willcmd(name)
+     char *name;
+ {
+-#ifndef SOLARIS
+-    void send_will();
+-#endif
+     return(send_tncmd(send_will, "will", name));
+ }
+     static int
+ send_wontcmd(name)
+     char *name;
+ {
+-#ifndef SOLARIS
+-    void send_wont();
+-#endif
+     return(send_tncmd(send_wont, "wont", name));
+ }
+ 
+@@ -635,9 +632,9 @@ togxbinary(val)
+ }
+ 
+ 
+-extern int togglehelp P((void));
++static int togglehelp P((void));
+ #if   defined(AUTHENTICATE)
+-extern int auth_togdebug P((int));
++static int auth_togdebug P((int));
+ #endif
+ 
+ struct togglelist {
+@@ -1477,7 +1474,7 @@ struct slclist {
+       int     arg;
+ };
+ 
+-extern void slc_help();
++static void slc_help();
+ 
+ struct slclist SlcList[] = {
+     { "export",       "Use local special character definitions",
+@@ -1555,7 +1552,7 @@ struct envlist {
+ 
+ extern struct env_lst *
+       env_define P((unsigned char *, unsigned char *));
+-extern void
++static void
+       env_undefine P((unsigned char *)),
+       env_export P((unsigned char *)),
+       env_unexport P((unsigned char *)),
+@@ -2345,17 +2342,15 @@ static Command cmdtab2[] = {
  
      /*VARARGS1*/
      static
diff -r 64141f28420d -r 59f2716fc8a1 net/socks4/patches/patch-ao
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socks4/patches/patch-ao       Sun Feb 08 00:16:00 2009 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-ao,v 1.1 2009/02/08 00:16:00 joerg Exp $
+
+--- lib/check_cconf.c.orig     1995-02-10 21:22:51.000000000 +0100
++++ lib/check_cconf.c
+@@ -29,6 +29,7 @@ extern char *socks_serverlist;
+ static struct config *confPtr, **confNtries = NULL;
+ static int Ntries = 0;
+ static int no_conf = 0;
++static int read_cconf(void);
+ 
+ socks_check_cconf(src, dst)
+ /* Return 0 if sockd should be used,
+@@ -84,7 +85,7 @@ GotIt:
+       
+ }
+ 
+-static read_cconf()
++static read_cconf(void)
+ {
+       FILE            *fd;
+       static char     buf[1024];
diff -r 64141f28420d -r 59f2716fc8a1 net/socks4/patches/patch-ap
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socks4/patches/patch-ap       Sun Feb 08 00:16:00 2009 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ap,v 1.1 2009/02/08 00:16:00 joerg Exp $
+
+--- lib/check_user.c.orig      2009-02-08 00:44:57.000000000 +0100
++++ lib/check_user.c
+@@ -19,6 +19,7 @@
+ #include "bstring.h"
+ #endif
+ 
++static int check_userfile(char *userfile, char *src_user);
+ 
+ /*
+  * These functions are used by both Validate (for sockd)
+@@ -147,8 +148,7 @@ char       *userlist, *src_user;
+ #include <string.h>
+ #include <syslog.h>
+ 
+-static int check_userfile(userfile, src_user)
+-char  *userfile, *src_user;
++static int check_userfile(char *userfile, char *src_user)
+ /* return 1 if match, 0 otherwise */
+ /* return -1 if cannot open file */
+ {
diff -r 64141f28420d -r 59f2716fc8a1 net/socks4/patches/patch-aq
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/socks4/patches/patch-aq       Sun Feb 08 00:16:00 2009 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-aq,v 1.1 2009/02/08 00:16:00 joerg Exp $
+
+--- rftp/ruserpass.c.orig      2009-02-08 01:01:36.000000000 +0100
++++ rftp/ruserpass.c
+@@ -65,6 +65,7 @@ static       FILE *cfile;
+ #define       MACH    11
+ 
+ static char tokval[100];
++static int token();
+ 
+ static struct toktab {
+       char *tokstr;
+@@ -87,7 +88,6 @@ ruserpass(host, aname, apass, aacct)



Home | Main Index | Thread Index | Old Index