aboutsummaryrefslogtreecommitdiff
path: root/security/fwknop/Makefile
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2008-06-13 03:43:51 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2008-06-13 03:43:51 +0000
commitbe29a34732f3bda4f52b0ee512fede198e9f03f3 (patch)
treecb77dd6875c552a9b643d1f7df6754bc6e83bc3a /security/fwknop/Makefile
parenta643038b42ef282cf2c0b7751a5e1419919094ee (diff)
downloadports-be29a34732f3bda4f52b0ee512fede198e9f03f3.tar.gz
ports-be29a34732f3bda4f52b0ee512fede198e9f03f3.zip
Notes
Diffstat (limited to 'security/fwknop/Makefile')
-rw-r--r--security/fwknop/Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/security/fwknop/Makefile b/security/fwknop/Makefile
new file mode 100644
index 000000000000..9f41b2d6c97e
--- /dev/null
+++ b/security/fwknop/Makefile
@@ -0,0 +1,59 @@
+# New ports collection makefile for: fwknop
+#
+# Date created: 23 Nov 2007
+# Whom: Sean Greven<sean.greven@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= fwknop
+PORTVERSION= 1.8.3
+CATEGORIES= security
+MASTER_SITES= http://www.cipherdyne.org/fwknop/download/
+
+MAINTAINER= sean.greven@gmail.com
+COMMENT= An SPA implimentation for Linux and FreeBSD
+
+BUILD_DEPENDS= ${SITE_PERL}/Net/IPv4Addr.pm:${PORTSDIR}/net-mgmt/p5-Net-IPv4Addr \
+ ${SITE_PERL}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog \
+ ${SITE_PERL}/${PERL_ARCH}/Term/ReadKey.pm:${PORTSDIR}/devel/p5-Term-ReadKey \
+ ${SITE_PERL}/${PERL_ARCH}/Net/Pcap.pm:${PORTSDIR}/net/p5-Net-Pcap \
+ ${SITE_PERL}/${PERL_ARCH}/List/MoreUtils.pm:${PORTSDIR}/lang/p5-List-MoreUtils \
+ ${SITE_PERL}/${PERL_ARCH}/Crypt/Rijndael.pm:${PORTSDIR}/security/p5-Crypt-Rijndael \
+ ${SITE_PERL}/${PERL_ARCH}/Class/MethodMaker.pm:${PORTSDIR}/devel/p5-Class-MethodMaker \
+ ${SITE_PERL}/${PERL_ARCH}/Net/RawIP.pm:${PORTSDIR}/net/p5-Net-RawIP \
+ ${SITE_PERL}/GnuPG/Key.pm:${PORTSDIR}/security/p5-GnuPG-Interface \
+ ${SITE_PERL}/Crypt/CBC.pm:${PORTSDIR}/security/p5-Crypt-CBC \
+ ${SITE_PERL}/NetPacket.pm:${PORTSDIR}/net/p5-NetPacket \
+ ${SITE_PERL}/Net/Ping/External.pm:${PORTSDIR}/net/p5-Net-Ping-External
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+MAN8= fwknop.8 fwknopd.8 knopmd.8 knopwatchd.8
+MANCOMPRESSED= yes
+
+NO_BUILD= yes
+USE_PERL5_BUILD=yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/access.conf
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/fwknop
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/fwknop.8
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/fwknop.conf
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/fwknop_serv
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/fwknopd
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/fwknopd.8
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/install.pl
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/knopmd.8
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/knopmd.c
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/knopmd.conf
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/knopspoof
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/knoptm
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/knopwatchd.8
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/knopwatchd.c
+ @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},' ${WRKSRC}/init-scripts/fwknop-init.freebsd
+
+do-install:
+ cd ${WRKSRC} && ./install.pl
+ @${ECHO_MSG} "Configuration files in ${LOCALBASE}/etc/fwknop";
+
+.include <bsd.port.mk>