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:
parent
4712b8ffb1
commit
2e9e3c815b
@ -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
|
Sat May 27 13:06:10 UTC 2017 - obs@botter.cc
|
||||||
|
|
||||||
|
10
kea.spec
10
kea.spec
@ -252,13 +252,16 @@ Requires: libkea-util-io0 = %version
|
|||||||
Requires: libkea-util2 = %version
|
Requires: libkea-util2 = %version
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
|
Development files for the Kea DHCP server
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
%configure --disable-static
|
%configure --disable-static \
|
||||||
|
--with-dhcp-mysql \
|
||||||
|
--with-dhcp-pgsql
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%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
|
After=remote-fs.target network.target nss-lookup.target time-sync.target ldap.service ndsd.service
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
|
Environment=KEA_PIDFILE_DIR=%_rundir/%name
|
||||||
ExecStart=%_sbindir/keactrl start
|
ExecStart=%_sbindir/keactrl start
|
||||||
ExecReload=%_sbindir/keactrl reload
|
ExecReload=%_sbindir/keactrl reload
|
||||||
ExecStop=%_sbindir/keactrl stop
|
ExecStop=%_sbindir/keactrl stop
|
||||||
@ -287,6 +291,7 @@ EOF
|
|||||||
perl -i -pe 's{/var/run}{/run};s{/var/log/kea-}{/var/log/kea/}' \
|
perl -i -pe 's{/var/run}{/run};s{/var/log/kea-}{/var/log/kea/}' \
|
||||||
"$b/%_sysconfdir/kea"/*.conf
|
"$b/%_sysconfdir/kea"/*.conf
|
||||||
mkdir -p "$b/var/log/kea"
|
mkdir -p "$b/var/log/kea"
|
||||||
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
||||||
%fdupes %buildroot/%_prefix
|
%fdupes %buildroot/%_prefix
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
@ -299,6 +304,7 @@ systemd-tmpfiles --create kea.conf || :
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
%service_add_post kea.service
|
%service_add_post kea.service
|
||||||
|
%tmpfiles_create %{_tmpfilesdir}/kea.conf
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun kea.service
|
%service_del_preun kea.service
|
||||||
@ -352,12 +358,14 @@ systemd-tmpfiles --create kea.conf || :
|
|||||||
%_datadir/doc/kea/
|
%_datadir/doc/kea/
|
||||||
%_mandir/man8/*.8*
|
%_mandir/man8/*.8*
|
||||||
%_bindir/kea*
|
%_bindir/kea*
|
||||||
|
%_sbindir/rckea
|
||||||
%_sbindir/kea*
|
%_sbindir/kea*
|
||||||
%_sbindir/perfdhcp
|
%_sbindir/perfdhcp
|
||||||
%_datadir/kea/
|
%_datadir/kea/
|
||||||
%_unitdir/*.service
|
%_unitdir/*.service
|
||||||
%_prefix/lib/tmpfiles.d/
|
%_prefix/lib/tmpfiles.d/
|
||||||
%attr(0775,keadhcp,keadhcp) %_localstatedir/log/kea/
|
%attr(0775,keadhcp,keadhcp) %_localstatedir/log/kea/
|
||||||
|
%ghost %dir %{_rundir}/%{name}
|
||||||
|
|
||||||
%files -n libkea-asiodns0
|
%files -n libkea-asiodns0
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user