blob: 9e2e4073f27e8c9e15b6657378de521892c13220 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# $NetBSD: Makefile,v 1.5 2019/08/21 21:24:08 nils Exp $
DISTNAME= pulledpork-0.7.3
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=shirkdog/}
MAINTAINER= nils@NetBSD.org
HOMEPAGE= https://github.com/shirkdog/pulledpork/
COMMENT= Script for Snort and Suricata rule management
LICENSE= gnu-gpl-v2
GITHUB_TAG= v${PKGVERSION_NOREV}
NO_BUILD= yes
USE_TOOLS+= perl:run
REPLACE_PERL+= pulledpork.pl
REPLACE_PERL+= contrib/oink-conv.pl
WRKSRC= ${WRKDIR}/pulledpork-${PKGVERSION_NOREV}
BUILD_DEFS+= VARBASE
# File/Find.pm is a part of lang/perl5
# File/Basename.pm is a part of lang/perl5
# File/Copy.pm is a part of lang/perl5
DEPENDS+= p5-Crypt-SSLeay-[0-9]*:../../security/p5-Crypt-SSLeay
DEPENDS+= p5-Sys-Syslog-[0-9]*:../../sysutils/p5-Sys-Syslog
DEPENDS+= p5-Digest-MD5-[0-9]*:../../security/p5-Digest-MD5
DEPENDS+= p5-File-Path-[0-9]*:../../devel/p5-File-Path
DEPENDS+= p5-Getopt-Long-[0-9]*:../../devel/p5-Getopt-Long
DEPENDS+= p5-Archive-Tar-[0-9]*:../../archivers/p5-Archive-Tar
DEPENDS+= p5-PathTools-[0-9]*:../../devel/p5-PathTools
DEPENDS+= p5-Data-Dumper-[0-9]*:../../devel/p5-Data-Dumper
DEPENDS+= p5-libwww-[0-9]*:../../www/p5-libwww
# LWP/Useragent.pm is part of www/p5-libwww
DEPENDS+= p5-HTTP-Message-[0-9]*:../../www/p5-HTTP-Message
# Request/Common.pm is part of www/p5-HTTP-Message
# Status.pm is part of www/p5-HTTP-Message
DEPENDS+= p5-Carp-[0-9]*:../../devel/p5-Carp
EGDIR= ${PREFIX}/share/examples/pulledpork
PKG_SYSCONFSUBDIR= pulledpork
DOCDIR= share/doc/pulledpork
INSTALLATION_DIRS+= ${EGDIR} ${DOCDIR} bin
INSTALLATION_DIRS+= share/pulledpork/contrib
AUTO_MKDIRS= yes
USE_LANGUAGES= # none
CONF_FILES= ${EGDIR}/disablesid.conf \
${PKG_SYSCONFDIR}/disablesid.conf
CONF_FILES+= ${EGDIR}/dropsid.conf \
${PKG_SYSCONFDIR}/dropsid.conf
CONF_FILES+= ${EGDIR}/enablesid.conf \
${PKG_SYSCONFDIR}/enablesid.conf
CONF_FILES+= ${EGDIR}/modifysid.conf \
${PKG_SYSCONFDIR}/modifysid.conf
CONF_FILES+= ${EGDIR}/pulledpork.conf \
${PKG_SYSCONFDIR}/pulledpork.conf
SUBST_CLASSES+= install
SUBST_STAGE.install= pre-install
SUBST_MESSAGE.install= correcting installation path
SUBST_FILES.install= ${WRKSRC}/etc/pulledpork.conf
SUBST_SED.install= -e 's,/usr/local,${PREFIX},g'
SUBST_SED.install+= -e 's,/var,${VARBASE},g'
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pulledpork.pl ${DESTDIR}${PREFIX}/bin/pulledpork
${INSTALL_SCRIPT} ${WRKSRC}/contrib/oink-conv.pl ${DESTDIR}${PREFIX}/share/pulledpork/
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${PREFIX}/share/doc/pulledpork/
${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/pulledpork/
${INSTALL_DATA} ${WRKSRC}/doc/README.* ${DESTDIR}${PREFIX}/share/doc/pulledpork/
${INSTALL_DATA} ${WRKSRC}/etc/*.conf ${DESTDIR}${EGDIR}
.include "../../mk/bsd.pkg.mk"
|