SHA256
1
0
forked from jengelh/kea

Accepting request 507270 from home:jsjhb:branches:network:dhcp

- 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

OBS-URL: https://build.opensuse.org/request/show/507270
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/kea?expand=0&rev=3
This commit is contained in:
Jan Engelhardt 2017-06-30 19:53:30 +00:00 committed by Git OBS Bridge
parent 4712b8ffb1
commit 2e9e3c815b
2 changed files with 17 additions and 1 deletions

View File

@ -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

View File

@ -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)