blob: 7341a3a7f95b3fb18366dd0c0cc91c3112d76cb0 (
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
|
# $NetBSD: Makefile,v 1.64 2004/03/26 02:27:54 wiz Exp $
#
DISTNAME= racoon-20040116a
PKGREVISION= 1
CATEGORIES= security net
MASTER_SITES= ftp://ftp.kame.net/pub/kame/misc/
MAINTAINER= itojun@kame.net
HOMEPAGE= http://www.kame.net/
COMMENT= KAME racoon IKE daemon
CONFLICTS+= racoon-[0-9]*
WRKSRC= ${WRKDIR}/${DISTNAME}/racoon
USE_BUILDLINK2= yes
USE_PKGINSTALL= yes
CRYPTO= yes
# this is not compatible with cross build - there's no other way
.if !exists(/usr/include/netinet6/ipsec.h)
PKG_FAIL_REASON+= "${PKGNAME} requires ipsec-ready ${OPSYS}"
.endif
BUILD_DEFS+= USE_INET6
.include "../../mk/bsd.prefs.mk"
PKG_SYSCONFSUBDIR?= racoon
RCD_SCRIPTS= racoon
CONF_FILES= ${PREFIX}/share/examples/racoon/racoon.conf.sample \
${PKG_SYSCONFDIR}/racoon.conf
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--enable-debug
.if defined(USE_INET6) && ${USE_INET6} == "YES"
CONFIGURE_ARGS+=--enable-ipv6
.else
CONFIGURE_ARGS+=--disable-ipv6
.endif
CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFDIR}
.if defined(PKGREVISION)
CONFIGURE_ARGS+=--with-pkgversion=netbsd-pkgsrc-20040116anb${PKGREVISION}
.else
CONFIGURE_ARGS+=--with-pkgversion=netbsd-pkgsrc-20040116a
.endif
pre-configure:
(cd ${WRKSRC}/../libipsec; ${MAKE})
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/racoon
for i in FAQ README.certificate README.gssapi; do \
${INSTALL_DATA} ${WRKSRC}/doc/$$i ${PREFIX}/share/doc/racoon; \
done
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/racoon
${INSTALL_DATA} ${WRKSRC}/samples/racoon.conf.sample \
${PREFIX}/share/examples/racoon
.include "../../security/openssl/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|