2012-11-25 23:32:07 +00:00
|
|
|
# $NetBSD: Makefile,v 1.10 2012/11/25 23:32:09 othyro Exp $
|
2004-09-08 15:10:05 +00:00
|
|
|
#
|
|
|
|
|
2009-10-03 08:49:31 +00:00
|
|
|
DISTNAME= doorman-0.81
|
2005-11-02 17:59:54 +00:00
|
|
|
CATEGORIES= sysutils
|
2004-09-08 15:10:05 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=doorman/}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2012-11-25 23:32:07 +00:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2020-01-24 17:22:20 +00:00
|
|
|
HOMEPAGE= http://doorman.sourceforge.net/
|
2009-10-03 08:49:31 +00:00
|
|
|
COMMENT= Open ports when requested by a *secret knock*
|
2012-07-05 02:00:43 +00:00
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
|
2009-10-03 08:49:31 +00:00
|
|
|
DEPENDS= lsof>4.7:../../sysutils/lsof
|
2004-09-08 15:10:05 +00:00
|
|
|
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2006-10-29 08:32:37 +00:00
|
|
|
USE_TOOLS+= bison
|
2009-10-03 08:49:31 +00:00
|
|
|
USE_TOOLS+= perl
|
2018-01-27 20:28:03 +00:00
|
|
|
REPLACE_PERL= ipfw_add ipfw_delete pfctl_add pfctl_delete
|
2009-10-03 08:49:31 +00:00
|
|
|
|
|
|
|
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
|
2019-05-25 13:08:20 +00:00
|
|
|
SUBST_VARS.fix-paths= PREFIX
|
2009-10-03 08:49:31 +00:00
|
|
|
|
|
|
|
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 15:10:05 +00:00
|
|
|
|
|
|
|
.include "../../databases/db4/buildlink3.mk"
|
|
|
|
.include "../../net/libpcap/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|