aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/ipa/Makefile
blob: 3bee131a46595c87b9661cfa7a0dfc6f98eab77d (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
# Created by: Andrey Simonenko
# $FreeBSD$

PORTNAME=   ipa
PORTVERSION=    2.1.2
CATEGORIES= sysutils
MASTER_SITES=   SF/ipa-system

MAINTAINER= sysutils/ipa
COMMENT=    Pluggable accounting system

LICENSE=    BSD2CLAUSE

USES=   tar:bzip2
GNU_CONFIGURE=  yes
USE_RC_SUBR=    ipa

NO_OPTIONS_SORT=    yes
OPTIONS_DEFINE=     AUTORULES RULES LIMITS SUBLIMITS THRESHOLDS CTL_CREDS
OPTIONS_DEFAULT=    AUTORULES RULES LIMITS SUBLIMITS THRESHOLDS
AUTORULES_DESC=     Enable dynamic rules support
RULES_DESC=     Enable static rules support
LIMITS_DESC=        Enable limits support
SUBLIMITS_DESC=     Enable sublimits support
THRESHOLDS_DESC=    Enable thresholds support
CTL_CREDS_DESC=     Enable ipactl's messages credentials

.include <bsd.port.options.mk>

.if empty(PORT_OPTIONS:MAUTORULES)
CONFIGURE_ARGS+=    --disable-autorules
.endif

.if empty(PORT_OPTIONS:MRULES)
CONFIGURE_ARGS+=    --disable-rules
.endif

.if empty(PORT_OPTIONS:MLIMITS)
CONFIGURE_ARGS+=    --disable-limits
.endif

.if empty(PORT_OPTIONS:MSUBLIMITS)
CONFIGURE_ARGS+=    --disable-sublimits
.endif

.if empty(PORT_OPTIONS:MTHRESHOLDS)
CONFIGURE_ARGS+=    --disable-thresholds
.endif

.if ${PORT_OPTIONS:MCTL_CREDS}
CONFIGURE_ARGS+=    --enable-ctl-creds
.endif

PLIST_FILES=    bin/ipa bin/ipactl bin/ipastat include/ipa_mod.h \
        man/man3/ipa_mod.3.gz man/man5/ipa.conf.5.gz \
        man/man5/ipastat.conf.5.gz man/man8/ipa.8.gz \
        man/man8/ipactl.8.gz man/man8/ipastat.8.gz \
        man/ru.KOI8-R/man3/ipa_mod.3.gz \
        man/ru.KOI8-R/man5/ipa.conf.5.gz \
        man/ru.KOI8-R/man5/ipastat.conf.5.gz \
        man/ru.KOI8-R/man8/ipa.8.gz \
        man/ru.KOI8-R/man8/ipactl.8.gz \
        man/ru.KOI8-R/man8/ipastat.8.gz

.include <bsd.port.mk>