mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
ad011a097d
PR: ports/156976 Submitted by: Ryan Steinmetz <rpsfa _at_ rit.edu>
84 lines
2.7 KiB
Makefile
84 lines
2.7 KiB
Makefile
# New ports collection makefile for: pulledpork
|
|
# Date created: 01 Mai 2010
|
|
# Whom: Olli Hauer
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= pulledpork
|
|
PORTVERSION= 0.6.1
|
|
CATEGORIES= security
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
|
|
|
MAINTAINER= ohauer@FreeBSD.org
|
|
COMMENT= Script to update snort-2.8+ rules
|
|
|
|
RUN_DEPENDS= p5-Crypt-SSLeay>=0.57:${PORTSDIR}/security/p5-Crypt-SSLeay \
|
|
p5-libwww>=0:${PORTSDIR}/www/p5-libwww
|
|
|
|
LICENSE= GPLv2
|
|
|
|
NO_BUILD= yes
|
|
USE_PERL5_RUN= yes
|
|
|
|
PLIST_DIRS= %%ETCDIR%% \
|
|
%%DATADIR%%
|
|
|
|
PLIST_FILES= bin/pulledpork.pl \
|
|
%%ETCDIR%%/disablesid.conf.sample \
|
|
%%ETCDIR%%/dropsid.conf.sample \
|
|
%%ETCDIR%%/enablesid.conf.sample \
|
|
%%ETCDIR%%/modifysid.conf.sample \
|
|
%%ETCDIR%%/pulledpork.conf.sample \
|
|
%%DATADIR%%/README.CONTRIB \
|
|
%%DATADIR%%/oink-conv.pl
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if (${PERL_LEVEL} < 501000)
|
|
RUN_DEPENDS+= p5-Archive-Tar>=1.52:${PORTSDIR}/archivers/p5-Archive-Tar
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= LICENSE README README.CATEGORIES README.CHANGES README.RULESET README.SHAREDOBJECTS
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|/usr/bin/perl|${PERL}|" ${WRKSRC}/pulledpork.pl
|
|
@${REINPLACE_CMD} -e 's|snort/enablesid.conf|pulledpork/enablesid.conf|g' \
|
|
-e 's|snort/dropsid.conf|pulledpork/dropsid.conf|g' \
|
|
-e 's|snort/disablesid.conf|pulledpork/disablesid.conf|g' \
|
|
-e 's|snort/modifysid.conf|pulledpork/modifysid.conf|g' \
|
|
-e "s|/usr/local/lib/snort_dynamicrules/|${PREFIX}/etc/snort/so_rules/|g" \
|
|
${WRKSRC}/etc/pulledpork.conf
|
|
@${REINPLACE_CMD} -e "s| /usr/bin/perl|${PERL}|" ${WRKSRC}/contrib/oink-conv.pl
|
|
|
|
do-install:
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/pulledpork.pl ${PREFIX}/bin
|
|
@${MKDIR} -m 750 ${ETCDIR}
|
|
# pulledpork.conf contains the snort user registration key, do not install world readable
|
|
@${INSTALL_DATA} -m 440 ${WRKSRC}/etc/pulledpork.conf ${ETCDIR}/pulledpork.conf.sample
|
|
@${INSTALL_DATA} ${WRKSRC}/etc/disablesid.conf ${ETCDIR}/disablesid.conf.sample
|
|
@${INSTALL_DATA} ${WRKSRC}/etc/dropsid.conf ${ETCDIR}/dropsid.conf.sample
|
|
@${INSTALL_DATA} ${WRKSRC}/etc/enablesid.conf ${ETCDIR}/enablesid.conf.sample
|
|
@${INSTALL_DATA} ${WRKSRC}/etc/modifysid.conf ${ETCDIR}/modifysid.conf.sample
|
|
@${MKDIR} ${DATADIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/contrib/README.CONTRIB ${DATADIR}/
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/contrib/oink-conv.pl ${DATADIR}/
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}/
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/README.CATEGORIES ${DOCSDIR}/
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/README.CHANGES ${DOCSDIR}/
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/README.RULESET ${DOCSDIR}/
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/README.SHAREDOBJECTS ${DOCSDIR}/
|
|
.endif
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
.include <bsd.port.post.mk>
|