View | Details | Raw Unified | Return to bug 62111
Collapse All | Expand All

(-)vpnc/Makefile (-16 / +12 lines)
Lines 7-50 Link Here
7
7
8
PORTNAME=	vpnc
8
PORTNAME=	vpnc
9
PORTVERSION=	0.2
9
PORTVERSION=	0.2
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	security
11
CATEGORIES=	security
12
MASTER_SITES=	http://www.unix-ag.uni-kl.de/~massar/vpnc/
12
MASTER_SITES=	http://www.unix-ag.uni-kl.de/~massar/vpnc/
13
DISTNAME=	${PORTNAME}-${PORTVERSION}-rm+zomb-pre6
13
DISTNAME=	${PORTNAME}-${PORTVERSION}-rm+zomb-pre7
14
14
15
MAINTAINER=	delta@lackas.net
15
MAINTAINER=	delta@lackas.net
16
COMMENT=	Client for Cisco 3000 VPN Concentrator
16
COMMENT=	Client for Cisco 3000 VPN Concentrator
17
17
18
LIB_DEPENDS=	gcrypt.6:${PORTSDIR}/security/libgcrypt
18
LIB_DEPENDS=	gcrypt.10:${PORTSDIR}/security/libgcrypt-devel
19
19
20
USE_GMAKE=	yes
20
USE_GMAKE=	yes
21
USE_REINPLACE=	yes
21
USE_REINPLACE=	yes
22
ALL_TARGET=	vpnc
22
ALL_TARGET=	vpnc
23
23
24
MAN8=		vpnc.8
24
MAN8=vpnc.8
25
26
post-patch:
27
	@${REINPLACE_CMD} -e \
28
		's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/vpnc.c
29
	@${REINPLACE_CMD} -e \
30
		's|%%CC%%|${CC}|;s|%%CFLAGS%%|${CFLAGS}|' \
31
			${WRKSRC}/Makefile
32
25
33
do-install:
26
do-install:
34
	@${INSTALL_PROGRAM} -m 751 ${WRKSRC}/vpnc ${PREFIX}/sbin
27
	@${INSTALL_PROGRAM} -m 751 ${WRKSRC}/vpnc ${PREFIX}/sbin/vpnc
35
	@${INSTALL_SCRIPT} -m 755 ${FILESDIR}/vpnc.sh ${PREFIX}/etc/rc.d/vpnc.sh.sample
28
	@${INSTALL_SCRIPT} -m 755 ${FILESDIR}/vpnc.sh ${PREFIX}/etc/rc.d/vpnc.sh.sample
29
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${PREFIX}/etc/rc.d/vpnc.sh.sample
36
	@${INSTALL_DATA} -m 600 ${WRKSRC}/vpnc.conf ${PREFIX}/etc/vpnc.conf.sample
30
	@${INSTALL_DATA} -m 600 ${WRKSRC}/vpnc.conf ${PREFIX}/etc/vpnc.conf.sample
31
.if !defined(NO_INSTALL_MANPAGES)
37
	@${INSTALL_MAN} ${FILESDIR}/vpnc.8 ${PREFIX}/man/man8
32
	@${INSTALL_MAN} ${FILESDIR}/vpnc.8 ${PREFIX}/man/man8
33
.endif
38
.if !defined(NOPORTDOCS)
34
.if !defined(NOPORTDOCS)
39
	${MKDIR} ${DOCSDIR}
35
	${MKDIR} ${DOCSDIR}
40
	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
36
	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
41
	@${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
37
	@${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
42
	@${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}
38
	@${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}
43
.endif
39
.endif
44
45
post-install:
46
	@${CAT} ${PKGMESSAGE}
40
	@${CAT} ${PKGMESSAGE}
47
	@${REINPLACE_CMD} -e \
41
48
		's|%%PREFIX%%|${PREFIX}|' ${PREFIX}/etc/rc.d/vpnc.sh.sample
42
post-patch:
43
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/vpnc.c
44
	@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|;s|%%CFLAGS%%|${CFLAGS}|' ${WRKSRC}/Makefile
49
45
50
.include <bsd.port.mk>
46
.include <bsd.port.mk>
(-)vpnc/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (vpnc-0.2-rm+zomb-pre6.tar.gz) = e2061c70455f333b2ee9089c6e25adec
1
MD5 (vpnc-0.2-rm+zomb-pre7.tar.gz) = 3aae30829aab05dca932c3f77800b155
(-)vpnc/files/patch-Makefile (-2 / +1 lines)
Lines 14-21 Link Here
14
 ifeq ($(shell uname -s), Linux)
14
 ifeq ($(shell uname -s), Linux)
15
 SYSDEP=sysdep-linux.o
15
 SYSDEP=sysdep-linux.o
16
 endif
16
 endif
17
-ifeq ($(shell uname -s), NetBSD)
17
 ifeq ($(shell uname -s), NetBSD)
18
+ifeq ($(shell uname -s), FreeBSD)
19
 CFLAGS += -DSOCKADDR_IN_SIN_LEN
18
 CFLAGS += -DSOCKADDR_IN_SIN_LEN
20
 SYSDEP=sysdep-bsd.o
19
 SYSDEP=sysdep-bsd.o
21
 endif
20
 endif
(-)vpnc/files/vpnc.8 (-4 / +8 lines)
Lines 30-36 Link Here
30
TUN/TAP driver in Linux kernel 2.4 and above and
30
TUN/TAP driver in Linux kernel 2.4 and above and
31
device 
31
device 
32
.BR tun (4)
32
.BR tun (4)
33
on BSD.
33
on BSD. It runs completely in user space.
34
34
35
The vpnc daemon by it self does not set any routes. The user
35
The vpnc daemon by it self does not set any routes. The user
36
has to do it on its own, e.g. for a full tunnel under FreeBSD
36
has to do it on its own, e.g. for a full tunnel under FreeBSD
Lines 62-68 Link Here
62
.IP "--ifname name"
62
.IP "--ifname name"
63
name of the tun-interface to use
63
name of the tun-interface to use
64
.IP "--local-port port number"
64
.IP "--local-port port number"
65
use this port for the connection <0-65535>, use 0 for random
65
use this port for the connection <0-65535> to allow multiple instances of vpnc
66
running, use 0 a for 
67
.I random
68
port
66
.IP "--pid-file filename"
69
.IP "--pid-file filename"
67
store the pid of background process there
70
store the pid of background process there
68
.IP "--dh IKE DH group"
71
.IP "--dh IKE DH group"
Lines 72-78 Link Here
72
.IP "--non-inter"
75
.IP "--non-inter"
73
non interactive mode, don't ask any questions
76
non interactive mode, don't ask any questions
74
.IP "--debug nr"
77
.IP "--debug nr"
75
set debugging level <0/1/2/3/99>
78
set debugging level: none(0), basic(1), control flow(2), packet dump(3),
79
include username/password(99)
76
.IP "--no-detach"
80
.IP "--no-detach"
77
do not send daemon to background
81
do not send daemon to background
78
.IP "--print-config"
82
.IP "--print-config"
Lines 103-109 Link Here
103
.P
107
.P
104
Xauth username abcdef
108
Xauth username abcdef
105
.P
109
.P
106
Xauth passwort 123456
110
Xauth password 123456
107
.PD
111
.PD
108
.RE
112
.RE

Return to bug 62111