summaryrefslogtreecommitdiff
path: root/net/vpnc/Makefile
blob: 72194c3f7f5904c948fc4579d67cbf3e84029927 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# $NetBSD: Makefile,v 1.49 2021/05/24 19:53:39 wiz Exp $
#

DISTNAME=		vpnc-0.5.3
PKGREVISION=		19
CATEGORIES=		net security
MASTER_SITES=		https://www.unix-ag.uni-kl.de/~massar/vpnc/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		https://www.unix-ag.uni-kl.de/~massar/vpnc/
COMMENT=		Client for Cisco3000 VPN Concentrator

NOT_FOR_PLATFORM=	Interix-*-*


USE_TOOLS+=		gmake
USE_TOOLS+=		perl
INSTALLATION_DIRS=	bin sbin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8 \
			share/doc/vpnc share/examples/vpnc
OWN_DIRS=		${PKG_SYSCONFDIR}/vpnc

SUBST_CLASSES+=		paths
SUBST_MESSAGE.paths=	fixing pathnames
SUBST_STAGE.paths=	pre-configure
SUBST_FILES.paths=	config.c vpnc-script.in makeman.pl pcf2vpnc
SUBST_FILES.paths+=	vpnc.8.template vpnc-disconnect
SUBST_VARS.paths=	PKG_SYSCONFDIR
SUBST_VARS.paths+=	PREFIX
SUBST_VARS.paths+=	PKGMANDIR
SUBST_VARS.paths+=	VARBASE
SUBST_VARS.paths+=	PERL5
SUBST_VARS.paths+=	SH


BUILD_DEFS+=		VARBASE

EGDIR=			${PREFIX}/share/examples/vpnc
CONF_FILES+=		${EGDIR}/default.conf \
			${PKG_SYSCONFDIR}/vpnc/default.conf
CONF_FILES_MODE=	0600
CONF_FILES_PERMS+=	${EGDIR}/vpnc-script \
			${PKG_SYSCONFDIR}/vpnc/vpnc-script \
			${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
RCD_SCRIPTS=		vpnc

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/vpnc ${DESTDIR}${PREFIX}/sbin
	${INSTALL_PROGRAM} ${WRKSRC}/cisco-decrypt ${DESTDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/vpnc-script ${DESTDIR}${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/vpnc.conf ${DESTDIR}${EGDIR}/default.conf
	${INSTALL_SCRIPT} ${WRKSRC}/vpnc-disconnect ${DESTDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/pcf2vpnc ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/vpnc.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
	${INSTALL_MAN} ${WRKSRC}/pcf2vpnc.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_MAN} ${WRKSRC}/cisco-decrypt.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/vpnc

.include "options.mk"

.include "../../mk/bsd.prefs.mk"

CFLAGS.SunOS=	-DLOG_PERROR=0

.if ${OPSYS} == "SunOS"
.include "../../net/solaris-tap/buildlink3.mk"
.endif

.include "../../security/libgcrypt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"