Hello community, here is the log from the commit of package gnugk for openSUSE:Factory checked in at 2013-06-05 11:52:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gnugk (Old) and /work/SRC/openSUSE:Factory/.gnugk.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gnugk" Changes: -------- --- /work/SRC/openSUSE:Factory/gnugk/gnugk.changes 2012-08-26 14:21:47.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.gnugk.new/gnugk.changes 2013-06-05 11:52:45.000000000 +0200 @@ -1,0 +2,5 @@ +Fri May 31 03:01:57 UTC 2013 - [email protected] + +- Add systemd support. + +------------------------------------------------------------------- New: ---- gnugk.service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gnugk.spec ++++++ --- /var/tmp/diff_new_pack.lQmyl4/_old 2013-06-05 11:52:45.000000000 +0200 +++ /var/tmp/diff_new_pack.lQmyl4/_new 2013-06-05 11:52:45.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package gnugk # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +28,8 @@ BuildRequires: sgml-skel BuildRequires: sgmltool BuildRequires: speex-devel +BuildRequires: pkgconfig(systemd) +%{?systemd_requires} Url: http://www.gnugk.org BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: openh323 @@ -42,6 +44,7 @@ Release: 0 Source0: gnugk-%{version}.tar.bz2 Source1: rc.gnugk +Source2: %{name}.service %description The gatekeeper controls H.323 compatible clients (like ohphone) and can @@ -90,20 +93,27 @@ notifempty missingok postrotate - kill -HUP \`cat /var/run/gnugk.pid\` + systemctl try-restart %{name}.service endscript } EOF +install -D -m 0644 %{S:2} %{buildroot}%{_unitdir}/%{name}.service + +%pre +%service_add_pre %{name}.service %post %{fillup_and_insserv gnugk } +%service_add_post %{name}.service %preun %{stop_on_removal gnugk } +%service_del_preun %{name}.service %postun %{restart_on_update gnugk } %{insserv_cleanup} +%service_del_postun %{name}.service %files %defattr(-,root,root) @@ -118,5 +128,6 @@ %{_sbindir}/rcgnugk /etc/logrotate.d/gnugk /var/log/gk +%{_unitdir}/%{name}.service %changelog ++++++ gnugk.service ++++++ [Unit] Description=OpenH323 gatekeeper daemon Wants=network.target remote-fs.target After=network.target remote-fs.target [Service] Type=forking PIDFile=/var/run/gnugk.pid ExecStart=/usr/sbin/gnugk -c /etc/gnugk.ini ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
