2009-10-03 10:49:31 +02:00
|
|
|
# $NetBSD: Makefile,v 1.7 2009/10/03 08:49:31 shindenmorr Exp $
|
2004-09-08 17:10:05 +02:00
|
|
|
#
|
|
|
|
|
2009-10-03 10:49:31 +02:00
|
|
|
DISTNAME= doorman-0.81
|
2005-11-02 18:59:54 +01:00
|
|
|
CATEGORIES= sysutils
|
2004-09-08 17:10:05 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=doorman/}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= pancake@phreaker.net
|
|
|
|
HOMEPAGE= http://doorman.sourceforge.net/
|
2009-10-03 10:49:31 +02:00
|
|
|
COMMENT= Open ports when requested by a *secret knock*
|
2004-09-08 17:10:05 +02:00
|
|
|
|
2009-10-03 10:49:31 +02:00
|
|
|
DEPENDS= lsof>4.7:../../sysutils/lsof
|
2004-09-08 17:10:05 +02:00
|
|
|
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2006-10-29 09:32:37 +01:00
|
|
|
USE_TOOLS+= bison
|
2009-10-03 10:49:31 +02:00
|
|
|
USE_TOOLS+= perl
|
|
|
|
REPLACE_PERL= ipfw_add ipfw_delete pfctl_add pfctl_delete
|
|
|
|
|
|
|
|
INSTALLATION_DIRS+= ${PKG_SYSCONFDIR}/doorman
|
|
|
|
EGDIR= ${PREFIX}/share/examples/doorman
|
|
|
|
EGFILES= doormand.cf.EXAMPLE guestlist.EXAMPLE ipchains_add ipchains_delete ipf_add ipf_delete ipfw_add ipfw_delete iptables_add iptables_delete pfctl_add pfctl_delete
|
|
|
|
|
|
|
|
.for f in ${EGFILES}
|
|
|
|
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/doorman/${f}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
SUBST_CLASSES+= fix-paths
|
|
|
|
SUBST_STAGE.fix-paths= post-patch
|
|
|
|
SUBST_MESSAGE.fix-paths= Fixing absolute pathes.
|
|
|
|
SUBST_FILES.fix-paths= configure
|
|
|
|
SUBST_SED.fix-paths= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
|
|
|
|
SUBST_CLASSES+= fix-conf-paths
|
|
|
|
SUBST_STAGE.fix-conf-paths= post-configure
|
|
|
|
SUBST_MESSAGE.fix-conf-paths= Fixing pathes for configuration files.
|
|
|
|
SUBST_FILES.fix-conf-paths= Makefile
|
|
|
|
SUBST_SED.fix-conf-paths= -e 's,cfgdir = .*/doormand,cfgdir = ${EGDIR},g'
|
2004-09-08 17:10:05 +02:00
|
|
|
|
|
|
|
.include "../../databases/db4/buildlink3.mk"
|
|
|
|
.include "../../net/libpcap/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|