2017-05-21 08:49:09 +02:00
|
|
|
# $NetBSD: Makefile,v 1.53 2017/05/21 06:49:09 jlam Exp $
|
2000-03-27 18:04:12 +02:00
|
|
|
|
2003-10-10 14:56:18 +02:00
|
|
|
DISTNAME= isakmpd-20030903
|
2016-03-05 12:27:40 +01:00
|
|
|
PKGREVISION= 10
|
2000-03-27 18:04:12 +02:00
|
|
|
CATEGORIES= security net
|
2016-04-12 10:08:46 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
2000-03-27 18:04:12 +02:00
|
|
|
|
2007-11-17 14:40:15 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= OpenBSD IKE daemon
|
2000-03-27 18:04:12 +02:00
|
|
|
|
2015-01-04 05:01:47 +01:00
|
|
|
# Dragonfly upstream says to use security/racoon2 instead.
|
2012-08-11 16:20:55 +02:00
|
|
|
NOT_FOR_PLATFORM= DragonFly-*-*
|
2008-12-19 22:09:11 +01:00
|
|
|
|
2013-09-21 01:07:44 +02:00
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
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)
|
2002-12-07 03:38:52 +01:00
|
|
|
PKG_FAIL_REASON+= "${PKGNAME} requires ipsec-ready ${OPSYS}"
|
2000-04-12 17:09:49 +02:00
|
|
|
.endif
|
|
|
|
|
2003-10-10 14:56:18 +02:00
|
|
|
WRKSRC= ${WRKDIR}/isakmpd
|
|
|
|
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= depend all
|
2000-03-27 18:04:12 +02:00
|
|
|
|
2007-12-28 05:22:43 +01:00
|
|
|
MAKE_ENV+= BINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/${PKGMANDIR}
|
2000-11-26 00:51:17 +01:00
|
|
|
|
2003-07-31 12:38:32 +02:00
|
|
|
PKG_SYSCONFSUBDIR= isakmpd
|
|
|
|
RCD_SCRIPTS= isakmpd
|
|
|
|
|
2007-12-28 06:01:47 +01:00
|
|
|
SUBST_CLASSES+= ssl
|
|
|
|
SUBST_STAGE.ssl= pre-configure
|
|
|
|
SUBST_MESSAGE.ssl= Fixing references to buildlink directories
|
|
|
|
SUBST_FILES.ssl= sysdep/netbsd/Makefile.sysdep
|
|
|
|
SUBST_VARS.ssl= BUILDLINK_PREFIX.openssl
|
|
|
|
|
|
|
|
SUBST_CLASSES+= cfg
|
|
|
|
SUBST_STAGE.cfg= pre-configure
|
|
|
|
SUBST_MESSAGE.cfg= Fixing references to configuration directory
|
|
|
|
SUBST_FILES.cfg= conf.h policy.h ike_auth.h
|
|
|
|
SUBST_SED.cfg= -e "s+/etc/isakmpd+${PKG_SYSCONFDIR}+g"
|
|
|
|
|
|
|
|
SUBST_CLASSES+= man
|
|
|
|
SUBST_STAGE.man= pre-configure
|
|
|
|
SUBST_MESSAGE.man= Fixing manual page references
|
|
|
|
SUBST_FILES.man= isakmpd.8 isakmpd.conf.5 isakmpd.policy.5
|
|
|
|
SUBST_SED.man= -e "s+/usr/share/ipsec+${PREFIX}/share/examples+g"
|
|
|
|
SUBST_SED.man+= -e "s+/etc/isakmpd+${PKG_SYSCONFDIR}+g"
|
2001-10-22 07:51:25 +02:00
|
|
|
|
2008-12-19 22:09:11 +01:00
|
|
|
SUBST_CLASSES+= destdir
|
|
|
|
SUBST_STAGE.destdir= pre-configure
|
|
|
|
SUBST_MESSAGE.destdir= Fixing ownership for DESTDIR installations
|
|
|
|
SUBST_FILES.destdir= Makefile apps/certpatch/Makefile
|
|
|
|
SUBST_VARS.destdir= BINOWN BINGRP MANOWN MANGRP
|
|
|
|
|
|
|
|
INSTALLATION_DIRS+= sbin ${PKGMANDIR}/man5 ${PKGMANDIR}/cat5
|
|
|
|
INSTALLATION_DIRS+= ${PKGMANDIR}/man8 ${PKGMANDIR}/cat8
|
|
|
|
|
2004-04-25 07:02:23 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2000-03-27 18:04:12 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|