aboutsummaryrefslogtreecommitdiff
path: root/sysutils/ipa/Makefile
blob: cb3a3e14f069c212570c177f420c28ed667a8392 (plain) (blame)
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
73
74
75
76
77
78
79
80
81
82
83
# New ports collection makefile for:	ipa
# Date created:				2 December 2000
# Whom:					Andrey Simonenko
#
# $FreeBSD$
#

PORTNAME=	ipa
PORTVERSION=	2.0.3
CATEGORIES=	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
COMMENT=	Pluggable accounting system

USE_BZIP2=	yes
GNU_CONFIGURE=	yes
USE_RC_SUBR=	ipa

OPTIONS=	AUTORULES "Enable dynamic rules support" on \
		RULES "Enable static rules support" on \
		LIMITS "Enable limits support" on \
		SUBLIMITS "Enable sublimits support" on \
		THRESHOLDS "Enable thresholds support" on \
		CTL_CREDS "Enable ipactl's messages credentials" off \
		MEMFUNC_DEBUG "Enable ipa_memfunc debugging" off \
		DEBUG_INFO "Produce debugging information" off \
		MAN_KOI8_R "Install Russian manual pages" off

.include <bsd.port.pre.mk>

.if defined(WITHOUT_AUTORULES)
CONFIGURE_ARGS+=	--disable-autorules
.endif

.if defined(WITHOUT_RULES)
CONFIGURE_ARGS+=	--disable-rules
.endif

.if defined(WITHOUT_LIMITS)
CONFIGURE_ARGS+=	--disable-limits
.endif

.if defined(WITHOUT_SUBLIMITS)
CONFIGURE_ARGS+=	--disable-sublimits
.endif

.if defined(WITHOUT_THRESHOLDS)
CONFIGURE_ARGS+=	--disable-thresholds
.endif

.if defined(WITH_CTL_CREDS)
CONFIGURE_ARGS+=	--enable-ctl-creds
.endif

.if defined(WITH_MEMFUNC_DEBUG)
CONFIGURE_ARGS+=	--enable-memfunc-debug
.endif

.if defined(WITH_DEBUG_INFO)
STRIP=		# empty
CFLAGS+=	-g
.endif

MAN3=		ipa_mod.3
MAN5=		ipa.conf.5 ipastat.conf.5
MAN8=		ipa.8 ipactl.8 ipastat.8
MANLANG=	""
.if defined(WITH_MAN_KOI8_R)
MANLANG+=	ru.KOI8-R
.endif

do-install:
	cd ${WRKSRC}/src && ${MAKE} install
	cd ${WRKSRC}/man && ${MAKE} install-am
.if defined(WITH_MAN_KOI8_R)
	cd ${WRKSRC}/man/ru.KOI8-R && ${MAKE} install
.endif

.include <bsd.port.post.mk>