diff --git a/kea.changes b/kea.changes index c8764b6..29983cc 100644 --- a/kea.changes +++ b/kea.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Jun 30 10:02:50 UTC 2017 - obs@botter.cc + +- compile in support for MySQL and PostgresQL +- add symlink to rckea +- create tmpfiles in %post +- add environment variable for PID_FILE_DIR to service file + ------------------------------------------------------------------- Sat May 27 13:06:10 UTC 2017 - obs@botter.cc diff --git a/kea.spec b/kea.spec index c49071b..dc17d9b 100644 --- a/kea.spec +++ b/kea.spec @@ -252,13 +252,16 @@ Requires: libkea-util-io0 = %version Requires: libkea-util2 = %version %description devel +Development files for the Kea DHCP server %prep %setup -q %build autoreconf -fi -%configure --disable-static +%configure --disable-static \ + --with-dhcp-mysql \ + --with-dhcp-pgsql make %{?_smp_mflags} %install @@ -274,6 +277,7 @@ cat <<-EOF >"$b/%_unitdir/kea.service" After=remote-fs.target network.target nss-lookup.target time-sync.target ldap.service ndsd.service [Service] Type=forking + Environment=KEA_PIDFILE_DIR=%_rundir/%name ExecStart=%_sbindir/keactrl start ExecReload=%_sbindir/keactrl reload ExecStop=%_sbindir/keactrl stop @@ -287,6 +291,7 @@ EOF perl -i -pe 's{/var/run}{/run};s{/var/log/kea-}{/var/log/kea/}' \ "$b/%_sysconfdir/kea"/*.conf mkdir -p "$b/var/log/kea" +ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} %fdupes %buildroot/%_prefix %pre @@ -299,6 +304,7 @@ systemd-tmpfiles --create kea.conf || : %post %service_add_post kea.service +%tmpfiles_create %{_tmpfilesdir}/kea.conf %preun %service_del_preun kea.service @@ -352,12 +358,14 @@ systemd-tmpfiles --create kea.conf || : %_datadir/doc/kea/ %_mandir/man8/*.8* %_bindir/kea* +%_sbindir/rckea %_sbindir/kea* %_sbindir/perfdhcp %_datadir/kea/ %_unitdir/*.service %_prefix/lib/tmpfiles.d/ %attr(0775,keadhcp,keadhcp) %_localstatedir/log/kea/ +%ghost %dir %{_rundir}/%{name} %files -n libkea-asiodns0 %defattr(-,root,root)