]> git.ipfire.org Git - ipfire-3.x.git/blob - kea/kea.nm
json-c: Update to version 0.17-20230812
[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 = 2.1
9
10 groups = System/Daemons
11 url = https://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
53 # Drop /var/run
54 rm -rvf %{BUILDROOT}%{localstatedir}/run
55 end
56 end
57
58 packages
59 package %{name}
60 prerequires
61 systemd
62 end
63
64 configfiles
65 %{sysconfdir}/kea/kea-ctrl-agent.conf
66 %{sysconfdir}/kea/kea-dhcp-ddns.conf
67 %{sysconfdir}/kea/kea-dhcp4.conf
68 %{sysconfdir}//kea/kea-dhcp6.conf
69 %{sysconfdir}/kea/keactrl.conf
70 end
71
72 datafiles
73 %{sharedstatedir}/kea/kea-leases4.csv
74 %{sharedstatedir}/kea/kea-leases6.csv
75 end
76
77 script postin
78 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
79 end
80
81 script preun
82 /usr/bin/systemctl --no-reload disable kea-ctrl-agent.service >/dev/null 2>&1 || :
83 /usr/bin/systemctl --no-reload disable kea-dhcp4.service >/dev/null 2>&1 || :
84 /usr/bin/systemctl --no-reload disable kea-dhcp6.service >/dev/null 2>&1 || :
85 /usr/bin/systemctl --no-reload disable kea-dhcp-ddns.service >/dev/null 2>&1 || :
86 /usr/bin/systemctl stop kea-ctrl-agent.service >/dev/null 2>&1 || :
87 /usr/bin/systemctl stop kea-dhcp4.service >/dev/null 2>&1 || :
88 /usr/bin/systemctl stop kea-dhcp6.service >/dev/null 2>&1 || :
89 /usr/bin/systemctl stop kea-dhcp-ddns.service >/dev/null 2>&1 || :
90 end
91
92 script postun
93 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
94 end
95
96 script postup
97 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
98 /usr/bin/systemctl try-restart kea-ctrl-agent.service >/dev/null 2>&1 || :
99 /usr/bin/systemctl try-restart kea-dhcp4.service >/dev/null 2>&1 || :
100 /usr/bin/systemctl try-restart kea-dhcp6.service >/dev/null 2>&1 || :
101 /usr/bin/systemctl try-restart kea-dhcp-ddns.service >/dev/null 2>&1 || :
102 end
103 end
104
105 package %{name}-libs
106 template LIBS
107 end
108
109 package %{name}-devel
110 template DEVEL
111 end
112
113 package %{name}-debuginfo
114 template DEBUGINFO
115 end
116 end