summaryrefslogtreecommitdiff
path: root/security/isakmpd/Makefile
blob: f61f41b52581ea212cc52a596a89705162ce29ce (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
# $NetBSD: Makefile,v 1.19 2002/04/03 12:31:56 martti Exp $
#

DISTNAME=		isakmpd-20020403
CATEGORIES=		security net
MASTER_SITES=		ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/LOCAL_PORTS/

MAINTAINER=		itojun@kame.net
COMMENT=		OpenBSD IKE daemon

# this is not compatible with cross build - there's no other way
.if !exists(/usr/include/netinet6/ipsec.h)
IGNORE+=		"${PKGNAME} requires ipsec-ready NetBSD"
.endif

ALL_TARGET=		depend all

WRKSRC=			${WRKDIR}/isakmpd

MAKE_ENV+=		BINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/man

post-patch:
	@${ECHO_MSG} "Fixing references to buildlink directories"
	@for i in `${FIND} ${WRKSRC} -name '*Makefile*'`; do		\
		${MV} $${i} $${i}.orig;					\
		${SED} "s+@BUILDLINK_DIR@+${BUILDLINK_DIR}+g"		\
			< $${i}.orig > $${i};				\
	done
	@${ECHO_MSG} "Fixing manual page references"
	@for i in isakmpd.8 isakmpd.conf.5 isakmpd.policy.5; do		\
		${MV} ${WRKSRC}/$${i} ${WRKSRC}/$${i}.orig;		\
		${SED} "s+/usr/share/ipsec+${PREFIX}/share/examples+g"	\
			< ${WRKSRC}/$${i}.orig > ${WRKSRC}/$${i};	\
	done

.include "../../security/openssl/buildlink.mk"
.include "../../mk/bsd.pkg.mk"