pkgsrc/security/isakmpd/Makefile
jlam d7f69e47ce Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
2003-01-28 22:03:00 +00:00

45 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.25 2003/01/28 22:04:05 jlam Exp $
#
DISTNAME= isakmpd-20021118
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)
PKG_FAIL_REASON+= "${PKGNAME} requires ipsec-ready ${OPSYS}"
.endif
ALL_TARGET= depend all
USE_BUILDLINK2= YES
USE_PKGINSTALL= YES
WRKSRC= ${WRKDIR}/isakmpd
MAKE_ENV+= BINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/man
post-patch:
@${ECHO_MSG} "Fixing references to buildlink directories"
@for i in ${WRKSRC}/sysdep/netbsd/Makefile.sysdep; do \
${MV} $${i} $${i}.orig; \
${SED} "s+@BUILDLINK_PREFIX.openssl@+${BUILDLINK_PREFIX.openssl}+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
pre-install:
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/isakmpd.sh > ${WRKDIR}/isakmpd.sh
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/isakmpd.sh ${PREFIX}/etc/rc.d/isakmpd
.include "../../security/openssl/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"