]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - kea/kea.nm
c4e23a23f022144a2f773b1c714102d2ae731a76
[people/pmueller/ipfire-3.x.git] / kea / kea.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = kea
7 version = 2.3.5
8 release = 1
9
10 groups = System/Daemons
11 url = http://kea.isc.org
12 license = MPLv2.0 and Boost
13 summary = DHCPv4, DHCPv6 and DDNS server from ISC
14
15 description
16 DHCP implementation from Internet Systems Consortium, Inc. that features
17 fully functional DHCPv4, DHCPv6 and Dynamic DNS servers.
18
19 Both DHCP servers fully support server discovery, address assignment,
20 renewal, rebinding and release. The DHCPv6 server supports prefix delegation.
21 Both servers support DNS Update mechanism, using stand-alone DDNS daemon.
22 end
23
24 source_dl = https://ftp.isc.org/isc/kea/%{version}/
25 sources = %{thisapp}.tar.gz
26
27 build
28 requires
29 gcc-c++
30 bison
31 boost-devel
32 flex
33 log4cplus-devel
34 openssl-devel
35 end
36
37 configure_options += \
38 --disable-dependency-tracking \
39 --disable-rpath \
40 --disable-silent-rules \
41 --disable-static \
42 --enable-generate-parser \
43 --enable-shell \
44 --with-openssl \
45 --with-log4cplus
46
47 install_cmds
48 # Start empty lease databases
49 mkdir -pv %{BUILDROOT}%{sharedstatedir}/kea/
50 touch %{BUILDROOT}%{sharedstatedir}/kea/kea-leases4.csv
51 touch %{BUILDROOT}%{sharedstatedir}/kea/kea-leases6.csv
52 end
53 end
54
55 packages
56 package %{name}
57 prerequires
58 systemd
59 end
60
61 configfiles
62 %{sysconfdir}/kea/kea-ctrl-agent.conf
63 %{sysconfdir}/kea/kea-dhcp-ddns.conf
64 %{sysconfdir}/kea/kea-dhcp4.conf
65 %{sysconfdir}//kea/kea-dhcp6.conf
66 %{sysconfdir}/kea/keactrl.conf
67 end
68
69 datafiles
70 %{sharedstatedir}/kea/kea-leases4.csv
71 %{sharedstatedir}/kea/kea-leases6.csv
72 end
73
74 script postin
75 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
76 end
77
78 script preun
79 /usr/bin/systemctl --no-reload disable kea-ctrl-agent.service >/dev/null 2>&1 || :
80 /usr/bin/systemctl --no-reload disable kea-dhcp4.service >/dev/null 2>&1 || :
81 /usr/bin/systemctl --no-reload disable kea-dhcp6.service >/dev/null 2>&1 || :
82 /usr/bin/systemctl --no-reload disable kea-dhcp-ddns.service >/dev/null 2>&1 || :
83 /usr/bin/systemctl stop kea-ctrl-agent.service >/dev/null 2>&1 || :
84 /usr/bin/systemctl stop kea-dhcp4.service >/dev/null 2>&1 || :
85 /usr/bin/systemctl stop kea-dhcp6.service >/dev/null 2>&1 || :
86 /usr/bin/systemctl stop kea-dhcp-ddns.service >/dev/null 2>&1 || :
87 end
88
89 script postun
90 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
91 end
92
93 script postup
94 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
95 /usr/bin/systemctl try-restart kea-ctrl-agent.service >/dev/null 2>&1 || :
96 /usr/bin/systemctl try-restart kea-dhcp4.service >/dev/null 2>&1 || :
97 /usr/bin/systemctl try-restart kea-dhcp6.service >/dev/null 2>&1 || :
98 /usr/bin/systemctl try-restart kea-dhcp-ddns.service >/dev/null 2>&1 || :
99 end
100 end
101
102 package %{name}-libs
103 template LIBS
104 end
105
106 package %{name}-devel
107 template DEVEL
108 end
109
110 package %{name}-debuginfo
111 template DEBUGINFO
112 end
113 end