mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
eabbfd75e3
PR: 213570 Submitted by: mat Exp-run by: antoine Sponsored by: Absolight
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# Created by: Aaron Dalton <aaron@daltons.ca>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= doorman
|
|
PORTVERSION= 0.81
|
|
PORTREVISION= 2
|
|
CATEGORIES= security
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Port knocking implementation, both daemon and client
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= lsof:sysutils/lsof
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
PATCH_STRIP= -p1
|
|
|
|
USES= shebangfix tar:tgz
|
|
SHEBANG_FILES= ipfw_add ipfw_delete \
|
|
pfctl_add pfctl_delete
|
|
GNU_CONFIGURE= yes
|
|
INSTALL_TARGET= installdirs install-exec install-data
|
|
|
|
SUB_FILES= pkg-message doormand.cf.EXAMPLE
|
|
USE_RC_SUBR= doorman
|
|
|
|
pre-patch:
|
|
@${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//' \
|
|
${WRKSRC}/doormand.c
|
|
|
|
post-install:
|
|
${RM} ${STAGEDIR}${PREFIX}/etc/doormand/ipf_add
|
|
(cd ${FILESDIR} && ${INSTALL_SCRIPT} ipf_add.atend ipf_delete \
|
|
ipf_add.before_block ${STAGEDIR}${PREFIX}/etc/doormand)
|
|
${INSTALL_DATA} ${WRKDIR}/doormand.cf.EXAMPLE \
|
|
${STAGEDIR}${PREFIX}/etc/doormand
|
|
${INSTALL_MAN} -C ${WRKSRC}/knock.1 ${STAGEDIR}${PREFIX}/man/man1
|
|
(cd ${WRKSRC} && ${INSTALL_MAN} -C knockcf.5 doormand.cf.5 guestlist.5 \
|
|
${STAGEDIR}${PREFIX}/man/man5)
|
|
${INSTALL_MAN} -C ${WRKSRC}/doormand.8 ${STAGEDIR}${PREFIX}/man/man8
|
|
|
|
.include <bsd.port.mk>
|