pkgsrc/security/portsentry/Makefile
jlam dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00

40 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.15 2005/12/29 06:22:11 jlam Exp $
#
DISTNAME= portsentry-1.2
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sentrytools/}
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://sourceforge.net/projects/sentrytools/
COMMENT= Detects and respond to port scans against a target host in real-time
WRKSRC= ${WRKDIR}/portsentry_beta
BUILD_TARGET= ${LOWER_OPSYS}
EGDIR= ${PREFIX}/share/examples/portsentry
CONF_FILES= ${EGDIR}/portsentry.conf ${PKG_SYSCONFDIR}/portsentry.conf
CONF_FILES+= ${EGDIR}/portsentry.ignore ${PKG_SYSCONFDIR}/portsentry.ignore
post-patch:
@cd ${WRKSRC}; \
case ${OPSYS} in \
NetBSD) netbsd=""; solaris="#" ;; \
SunOS) netbsd="#"; solaris="" ;; \
esac; \
for f in portsentry.conf portsentry_config.h; do \
${MV} $$f $$f.prefix; \
${SED} -e 's|@PREFIX@|${PREFIX}|g' \
-e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' \
-e 's|@netbsd@|'$$netbsd'|g' \
-e 's|@solaris@|'$$solaris'|g' \
$$f.prefix > $$f; \
done
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/portsentry
${INSTALL_DATA} ${WRKSRC}/README.install ${PREFIX}/share/doc/portsentry
${INSTALL_DATA} ${WRKSRC}/README.methods ${PREFIX}/share/doc/portsentry
.include "../../mk/bsd.pkg.mk"