FreeBSD Bugzilla – Attachment 47882 Details for
Bug 73317
[PATCH] security/vpnd: cosmetic fixes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
vpnd-1.1.0.patch
vpnd-1.1.0.patch (text/plain), 9.23 KB, created by
Yen-Ming Lee
on 2004-10-30 16:50:18 UTC
(
hide
)
Description:
vpnd-1.1.0.patch
Filename:
MIME Type:
Creator:
Yen-Ming Lee
Created:
2004-10-30 16:50:18 UTC
Size:
9.23 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /home/pcvs/ports/security/vpnd/Makefile,v >retrieving revision 1.7 >diff -u -u -r1.7 Makefile >--- Makefile 7 Mar 2003 06:10:51 -0000 1.7 >+++ Makefile 30 Oct 2004 08:24:42 -0000 >@@ -17,33 +17,38 @@ > WRKSRC= ${WRKDIR}/${PORTNAME} > HAS_CONFIGURE= yes > USE_REINPLACE= yes >+USE_RC_SUBR= yes > >-DOCFILES= README FAQ.TXT SPEED.TXT VERSIONS >+PLIST_FILES= sbin/vpnd etc/rc.d/vpnd.sh etc/vpnd.conf.sample etc/vpnd.chat.sample >+PORTDOCS= README FAQ.TXT SPEED.TXT VERSIONS > > post-patch: >- @${MV} ${WRKSRC}/Makefile.FreeBSD.in ${WRKSRC}/Makefile.FreeBSD.in_tmp >- @${SED} -e "s:^ETC_DIR=:ETC_DIR= ${PREFIX}/etc:" \ >- < ${WRKSRC}/Makefile.FreeBSD.in_tmp > ${WRKSRC}/Makefile.FreeBSD.in >- >-pre-configure: >- ${REINPLACE_CMD} -e "s@-O3@${CFLAGS}@g; s@gcc@${CC}@g" \ >- ${WRKSRC}/configure >+.for f in README globals.c vpnd.c vpnd.conf >+ @${REINPLACE_CMD} -e 's,/etc,${PREFIX}/etc,g' ${WRKSRC}/${f} >+.endfor >+ @${REINPLACE_CMD} -e "s,machine/param.h,sys/param.h,g" ${WRKSRC}/vpnd.h >+ @${REINPLACE_CMD} -e "s@-O3@${CFLAGS}@g; s@gcc@${CC}@g" ${WRKSRC}/${CONFIGURE_SCRIPT} > > do-install: > @${INSTALL_PROGRAM} ${WRKSRC}/vpnd ${PREFIX}/sbin/vpnd >+ @${INSTALL_SCRIPT} ${FILESDIR}/vpnd.sh ${PREFIX}/etc/rc.d/vpnd.sh > @${INSTALL_DATA} ${WRKSRC}/vpnd.conf ${PREFIX}/etc/vpnd.conf.sample > @${INSTALL_DATA} ${WRKSRC}/vpnd.chat ${PREFIX}/etc/vpnd.chat.sample > .if !defined(NOPORTDOCS) > @${INSTALL} -d -m 0755 ${DOCSDIR} >-.for i in ${DOCFILES} >+.for i in ${PORTDOCS} > @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} > .endfor > .endif > >+.include <bsd.port.pre.mk> >+ > post-install: >+.if ${OSVERSION} < 500000 > @${ECHO} "================================================================================" > @${ECHO} "Make sure you set up a few IRQ's for random generation with rndcontrol before" > @${ECHO} "trying to generate a master key file." > @${ECHO} "================================================================================" >+.endif > >-.include <bsd.port.mk> >+.include <bsd.port.post.mk> >Index: pkg-plist >=================================================================== >RCS file: pkg-plist >diff -N pkg-plist >--- pkg-plist 24 Dec 2001 02:16:51 -0000 1.2 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,8 +0,0 @@ >-sbin/vpnd >-etc/vpnd.conf.sample >-etc/vpnd.chat.sample >-%%PORTDOCS%%share/doc/vpnd/README >-%%PORTDOCS%%share/doc/vpnd/FAQ.TXT >-%%PORTDOCS%%share/doc/vpnd/SPEED.TXT >-%%PORTDOCS%%share/doc/vpnd/VERSIONS >-%%PORTDOCS%%@dirrm share/doc/vpnd >Index: files/patch-Makefile.FreeBSD.in >=================================================================== >RCS file: files/patch-Makefile.FreeBSD.in >diff -N files/patch-Makefile.FreeBSD.in >--- files/patch-Makefile.FreeBSD.in 31 Mar 2001 02:17:37 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,13 +0,0 @@ >---- Makefile.FreeBSD.in.orig Fri Nov 19 17:50:24 1999 >-+++ Makefile.FreeBSD.in Sun Mar 25 01:39:56 2001 >-@@ -5,7 +5,9 @@ >- CRYPTOFLG= >- .endif >- >--CFLAGS=-c $(CBASE) $(DEBUG) $(CRYPTOFLG) -DMD5_HMAC_FAST -DSHA1_HMAC_FAST -DRMD160_HMAC_FAST >-+ETC_DIR= >-+ >-+CFLAGS=-c $(CBASE) $(DEBUG) $(CRYPTOFLG) -DMD5_HMAC_FAST -DSHA1_HMAC_FAST -DRMD160_HMAC_FAST -DETC_DIR=\"$(ETC_DIR)\" >- >- OBJS1=vpnd.o globals.o parse.o slip.o route.o chatter.o serial.o die.o \ >- signal.o tcp.o external.o syslog.o sequencer.o icmp.o rxtx.o crypto.o \ >Index: files/patch-README >=================================================================== >RCS file: files/patch-README >diff -N files/patch-README >--- files/patch-README 31 Mar 2001 02:17:37 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,12 +0,0 @@ >---- README.old Sun Mar 25 03:05:42 2001 >-+++ README Sun Mar 25 03:06:04 2001 >-@@ -370,8 +370,8 @@ >- ======== >- >- Copy vpnd (and randomd if it is required) to any directory you like. >--Copy vpnd.conf and vpnd.chat to /etc or copy those files to any other >--directory when you use the -f option of vpnd (see later). Note that >-+Copy vpnd.conf and vpnd.chat to /usr/local/etc or copy those files to any >-+other directory when you use the -f option of vpnd (see later). Note that >- vpnd.conf and vpnd.chat must be at least mode 644 and be owned by >- root:root. >Index: files/patch-globals.c >=================================================================== >RCS file: files/patch-globals.c >diff -N files/patch-globals.c >--- files/patch-globals.c 31 Mar 2001 02:17:37 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,14 +0,0 @@ >---- globals.c.old Sun Mar 25 01:19:51 2001 >-+++ globals.c Sun Mar 25 01:20:58 2001 >-@@ -69,9 +69,9 @@ >- anchor->pty=anchor->tty=anchor->peer=anchor->server=anchor->ping= >- anchor->serial=anchor->lock=-1; >- anchor->speed=B115200; >-- anchor->conffile="/etc/vpnd.conf"; >-+ anchor->conffile=ETC_DIR "/vpnd.conf"; >- anchor->randomdev="/dev/random"; >-- anchor->keyfile="/etc/vpnd.key"; >-+ anchor->keyfile=ETC_DIR "/vpnd.key"; >- anchor->lkeyfile="vpnd.lcl.key"; >- anchor->rkeyfile="vpnd.rmt.key"; >- anchor->cipher=BLOWFISH; >Index: files/patch-vpnd.c >=================================================================== >RCS file: files/patch-vpnd.c >diff -N files/patch-vpnd.c >--- files/patch-vpnd.c 31 Mar 2001 02:17:37 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,21 +0,0 @@ >---- vpnd.c.old Sun Mar 25 01:58:06 2001 >-+++ vpnd.c Sun Mar 25 03:02:26 2001 >-@@ -41,7 +41,8 @@ >- " vpnd -c <extended-master-key-file>\n" \ >- USAGE1 \ >- " -h prints this info\n" \ >-- " -m creates master key file (default is /etc/vpnd.key),\n" \ >-+ " -m creates master key file (default is " ETC_DIR \ >-+ "/vpnd.key),\n" \ >- " note that the file must not yet exist\n" \ >- " -x creates extended master key files named vpnd.lcl.key\n" \ >- " and vpnd.rmt.key in the given directory,\n" \ >-@@ -65,7 +66,7 @@ >- " -l allow dns lookups so host names can be used\n" \ >- " -n do not become daemon\n" \ >- " -t do modem init chat test\n" \ >-- " -f use configfile instead of /etc/vpnd.conf\n" \ >-+ " -f use configfile instead of " ETC_DIR "/vpnd.conf\n" \ >- COMPRESSINFO >- >- /* >Index: files/patch-vpnd.conf >=================================================================== >RCS file: files/patch-vpnd.conf >diff -N files/patch-vpnd.conf >--- files/patch-vpnd.conf 31 Mar 2001 02:17:37 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,56 +0,0 @@ >---- vpnd.conf.old Sun Mar 25 03:04:06 2001 >-+++ vpnd.conf Sun Mar 25 03:04:43 2001 >-@@ -121,7 +121,7 @@ >- # which is called asynchonously when the vpn >- # link is established >- # >--# example: linkup /etc/vpnd.linkup >-+# example: linkup /usr/local/etc/vpnd.linkup >- # >- # linkdown <process-pathname> >- # >-@@ -129,7 +129,7 @@ >- # which is called asynchonously when the vpn >- # link is terminated >- # >--# example: linkdown /etc/vpnd.linkdown >-+# example: linkdown /usr/local/etc/vpnd.linkdown >- # >- # --------------------------------------------------- >- # basic operation mode >-@@ -170,7 +170,7 @@ >- # >- # optional, defines the pathname of the shared secret file which >- # must be created with the -m option of vpnd, if not given default >--# of /etc/vpnd.key is used >-+# of /usr/local/etc/vpnd.key is used >- # >- # example: keyfile /var/adm/mysecret.key >- # >-@@ -285,7 +285,7 @@ >- # interface is established, the SLIP interface >- # name is the parameter for the process >- # >--# example: slipup /etc/vpnd.slipup >-+# example: slipup /usr/local/etc/vpnd.slipup >- # >- # slipdown <process-pathname> >- # >-@@ -294,7 +294,7 @@ >- # link is terminated, the SLIP interface >- # name is the parameter for the process >- # >--# example: slipdown /etc/vpnd.slipdown >-+# example: slipdown /usr/local/etc/vpnd.slipdown >- # >- # >- # --------------------------------------------------- >-@@ -334,7 +334,7 @@ >- # optional, pathname of file containing modem initialization >- # chat sequence, default is not to perform init chat >- # >--# example: modemchat /etc/vpnd.chat >-+# example: modemchat /usr/local/etc/vpnd.chat >- # >- # --------------------------------------------------- >- # TCP/IP parameters (available with version 1.0.2) >Index: files/patch-vpnd.h >=================================================================== >RCS file: files/patch-vpnd.h >diff -N files/patch-vpnd.h >--- files/patch-vpnd.h 20 Oct 2002 21:36:06 -0000 1.1 >+++ /dev/null 1 Jan 1970 00:00:00 -0000 >@@ -1,11 +0,0 @@ >---- vpnd.h.orig Sun Oct 20 14:36:45 2002 >-+++ vpnd.h Sun Oct 20 14:37:04 2002 >-@@ -52,7 +52,7 @@ >- #include <net/if.h> >- #include <net/slip.h> >- #include <net/if_var.h> >--#include <machine/param.h> >-+#include <sys/param.h> >- #include <sys/mbuf.h> >- #include <net/slcompress.h> >- #include <net/if_slvar.h> >Index: files/vpnd.sh >=================================================================== >RCS file: files/vpnd.sh >diff -N files/vpnd.sh >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/vpnd.sh 30 Oct 2004 08:24:42 -0000 >@@ -0,0 +1,24 @@ >+#!/bin/sh >+# >+# PROVIDE: vpnd >+# REQUIRE: NETWORKING SERVERS >+# BEFORE: DAEMON >+# KEYWORD: FreeBSD shutdown >+# >+# Note: >+# Set "vpnd_enable=yes" in either /etc/rc.conf, /etc/rc.conf.local or >+# /etc/rc.conf.d/vpnd to make this script actually do something. >+# >+# Please see rc.conf(5) and rc(8) for further details. >+# >+ >+vpnd_enable=${vpnd_enable:-"NO"} >+ >+. /etc/rc.subr >+ >+name=vpnd >+command=/usr/local/sbin/vpnd >+rcvar=`set_rcvar` >+load_rc_config ${name} >+ >+run_rc_command "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 73317
: 47882