aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-04-04 13:54:41 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-04-04 13:54:41 +0000
commite5901bd610e516a1d7496f317d3142acbb54473c (patch)
tree436ca8d4db95f79daa2ad0bc5040c6fe4441b27e /security
parent098cf2db5a3b38c4b41061f9f34cb1d9d1f44132 (diff)
downloadports-e5901bd610e516a1d7496f317d3142acbb54473c.tar.gz
ports-e5901bd610e516a1d7496f317d3142acbb54473c.zip
Notes
Diffstat (limited to 'security')
-rw-r--r--security/knock/Makefile33
1 files changed, 12 insertions, 21 deletions
diff --git a/security/knock/Makefile b/security/knock/Makefile
index a51bdef42861..0f3f841c3a89 100644
--- a/security/knock/Makefile
+++ b/security/knock/Makefile
@@ -25,22 +25,21 @@ OPTIONS_MULTI= MT1
OPTIONS_MULTI_MT1= CLIENT SERVER
OPTIONS_DEFAULT= CLIENT SERVER
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
CLIENT_DESC= Install knock client
SERVER_DESC= Install knockd server
+.include <bsd.port.options.mk>
+
.if ${PORT_OPTIONS:MSERVER}
-MAN1= knockd.1
USE_RC_SUBR= knockd
-PLIST_FILES+= bin/knockd
-PLIST_FILES+= etc/knockd.conf.sample
+PLIST_FILES+= bin/knockd \
+ etc/knockd.conf.sample \
+ man/man1/knockd.1.gz
.endif
.if ${PORT_OPTIONS:MCLIENT}
-MAN1+= knock.1
-PLIST_FILES+= bin/knock
+PLIST_FILES+= bin/knock \
+ man/man1/knock.1.gz
.endif
post-patch:
@@ -57,21 +56,13 @@ post-patch:
do-install:
.if ${PORT_OPTIONS:MSERVER}
- ${INSTALL_PROGRAM} ${WRKSRC}/knockd ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/knockd.conf ${PREFIX}/etc/knockd.conf.sample
+ ${INSTALL_PROGRAM} ${WRKSRC}/knockd ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/knockd.conf ${STAGEDIR}${PREFIX}/etc/knockd.conf.sample
+ ${INSTALL_MAN} ${WRKSRC}/doc/knockd.1.in ${STAGEDIR}${MAN1PREFIX}/man/man1/knockd.1
.endif
-
-.if ${PORT_OPTIONS:MCLIENT}
- ${INSTALL_PROGRAM} ${WRKSRC}/knock ${PREFIX}/bin
-.endif
-
-post-install-script:
-.if ${PORT_OPTIONS:MSERVER}
- ${INSTALL_MAN} ${WRKSRC}/doc/knockd.1.in ${MAN1PREFIX}/man/man1/knockd.1
-.endif
-
.if ${PORT_OPTIONS:MCLIENT}
- ${INSTALL_MAN} ${WRKSRC}/doc/knock.1.in ${MAN1PREFIX}/man/man1/knock.1
+ ${INSTALL_PROGRAM} ${WRKSRC}/knock ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/doc/knock.1.in ${STAGEDIR}${MAN1PREFIX}/man/man1/knock.1
.endif
.include <bsd.port.mk>