summaryrefslogtreecommitdiff
path: root/net/ipa/Makefile
blob: 8856d45e6a472e098e82a02d1e1fdb42a4f3d42e (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
# $NetBSD: Makefile,v 1.15 2004/04/25 08:40:46 snj Exp $
#

DISTNAME=	ipa-1.3.6
CATEGORIES=	net sysutils
MASTER_SITES=	http://ipa-system.sourceforge.net/ \
		http://www.mirrors.wiretapped.net/security/network-monitoring/ipa/ \
		ftp://ftp.mirrors.wiretapped.net/pub/security/network-monitoring/ipa/ \
		http://ipa.it-ss.be/

MAINTAINER=	simon@comsys.ntu-kpi.kiev.ua
HOMEPAGE=	http://ipa-system.sourceforge.net/
COMMENT=	IP accounting software

ONLY_FOR_PLATFORM=	*BSD-*-*

RESTRICTED=		"Needs to be built uniquely for each host"
NO_BIN_ON_FTP=		${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}
NO_PACKAGE=		${RESTRICTED}

USE_BUILDLINK3=		YES
USE_PKGINSTALL=		YES
ALL_TARGET=		# empty

CFLAGS+=		-DCFGFILE=\\\"${PKG_SYSCONFDIR}/ipa.conf\\\"

CONF_FILES_PERMS=	${PREFIX}/share/examples/ipa/ipa.conf.default	\
			${PKG_SYSCONFDIR}/ipa.conf			\
			${ROOT_USER} ${ROOT_GROUP} 0400
OWN_DIRS_PERMS=		/var/ipa ${ROOT_USER} ${ROOT_GROUP} 0555

.include "../../mk/bsd.prefs.mk"

RCD_SCRIPTS=		ipa

.if ${OPSYS} == "NetBSD"
RCD_SCRIPT_SRC.ipa=	${FILESDIR}/ipa.sh
.else
RCD_SCRIPT_SRC.ipa=	${FILESDIR}/ipa.generic
.endif

post-patch:
	@cd ${WRKSRC}/man &&					\
	for f in ipa.5 ipa.8 ipa.conf.5 ipastat.8; do		\
		${MV} $${f} $${f}.orig;				\
		${SED} ${FILES_SUBST_SED} $${f}.orig > $${f};	\
	done

pre-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ipa

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