summaryrefslogtreecommitdiff
path: root/net/oinkmaster/Makefile
blob: c711e645972edd5a22d75826f1d33e1f59071fdb (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
# $NetBSD: Makefile,v 1.1.1.1 2004/04/20 09:36:09 xtraeme Exp $

DISTNAME=	oinkmaster-0.8
CATEGORIES=	net
MASTER_SITES=	ftp://ftp.it.su.se/pub/users/andreas/oinkmaster/ \
		http://www.algonet.se/~nitzer/oinkmaster/

MAINTAINER=	adrianp@stindustries.net
HOMEPAGE= 	http://www.algonet.se/~nitzer/oinkmaster/
COMMENT=	Manage snort rule updates

DEPENDS+=	wget>=1.00:../../net/wget

USE_PKGINSTALL=	yes
USE_BUILDLINK3=	yes
USE_PERL5=	yes
NO_BUILD=	yes

CONF_FILES=	${PREFIX}/share/examples/oinkmaster/oinkmaster.conf \
		${PKG_SYSCONFDIR}/oinkmaster.conf

REPLACE_PERL+=	${WRKSRC}/oinkmaster.pl

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/oinkmaster
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/oinkmaster

	${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/oinkmaster
	${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/oinkmaster
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/oinkmaster
	${INSTALL_DATA} ${WRKSRC}/oinkmaster.conf \
		${PREFIX}/share/examples/oinkmaster
	${INSTALL_SCRIPT} ${WRKSRC}/oinkmaster.pl ${PREFIX}/bin/oinkmaster

SUBST_CLASSES=	    pub
SUBST_STAGE.pub=    post-patch
SUBST_FILES.pub=    oinkmaster.pl oinkmaster.conf
SUBST_SED.pub=	    -e "s|/usr/local|${PREFIX}|g" \
		    -e "s|/usr/local/etc|${PKG_SYSCONFDIR}|g"
SUBST_MESSAGE.pub=  "Fixing harcoded PATH."

.include "../../mk/bsd.pkg.mk"