2002-02-03 16:11:53 +01:00
|
|
|
# $NetBSD: Makefile,v 1.18 2002/02/03 15:11:53 martti Exp $
|
2000-03-27 18:04:12 +02:00
|
|
|
#
|
|
|
|
|
2002-02-03 16:11:53 +01:00
|
|
|
DISTNAME= isakmpd-20020203
|
2000-03-27 18:04:12 +02:00
|
|
|
CATEGORIES= security net
|
2001-02-14 14:27:32 +01:00
|
|
|
MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/LOCAL_PORTS/
|
2000-03-27 18:04:12 +02:00
|
|
|
|
|
|
|
MAINTAINER= itojun@kame.net
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= OpenBSD IKE daemon
|
2000-03-27 18:04:12 +02:00
|
|
|
|
2000-04-12 17:09:49 +02:00
|
|
|
# this is not compatible with cross build - there's no other way
|
|
|
|
.if !exists(/usr/include/netinet6/ipsec.h)
|
2000-08-21 23:01:29 +02:00
|
|
|
IGNORE+= "${PKGNAME} requires ipsec-ready NetBSD"
|
2000-04-12 17:09:49 +02:00
|
|
|
.endif
|
|
|
|
|
2000-03-27 18:04:12 +02:00
|
|
|
ALL_TARGET= depend all
|
|
|
|
|
2001-02-14 14:27:32 +01:00
|
|
|
WRKSRC= ${WRKDIR}/isakmpd
|
|
|
|
|
|
|
|
MAKE_ENV+= BINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/man
|
2000-11-26 00:51:17 +01:00
|
|
|
|
2001-10-22 07:51:25 +02:00
|
|
|
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"
|
2000-03-27 18:04:12 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|