Hello community, here is the log from the commit of package killerd for openSUSE:Factory checked in at 2015-03-16 07:00:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/killerd (Old) and /work/SRC/openSUSE:Factory/.killerd.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "killerd" Changes: -------- --- /work/SRC/openSUSE:Factory/killerd/killerd.changes 2014-10-16 18:16:51.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.killerd.new/killerd.changes 2015-03-16 07:01:00.000000000 +0100 @@ -1,0 +2,6 @@ +Fri Mar 13 12:24:33 UTC 2015 - [email protected] + +- Cleanup with spec-cleaner +- Use systemd unit file + +------------------------------------------------------------------- Old: ---- killerd New: ---- killerd.service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ killerd.spec ++++++ --- /var/tmp/diff_new_pack.1FF86i/_old 2015-03-16 07:01:01.000000000 +0100 +++ /var/tmp/diff_new_pack.1FF86i/_new 2015-03-16 07:01:01.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package killerd # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -23,41 +23,50 @@ License: GPL-2.0+ Group: System/Daemons Url: http://mj.ucw.cz/linux.shtml -Source: ftp://atrey.karlin.mff.cuni.cz/pub/local/mj/linux/%name-%version.tar.gz -Source1: killerd -Patch: %{name}-%{version}-makefile.diff +Source: ftp://atrey.karlin.mff.cuni.cz/pub/local/mj/linux/%{name}-%{version}.tar.gz +Source1: killerd.service +Patch0: %{name}-%{version}-makefile.diff +BuildRequires: systemd-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build +%{?systemd_requires} %description KillerD is a simple daemon for automatic killing of login shells with idle time exceeding given limits, runaway processes and other system hogs. Almost everything can be easily configured. - - -Authors: --------- - Martin Mares <[email protected]> - %prep %setup -q -%patch +%patch0 %build -make CFLAGS="%optflags" CC="%__cc" %{?_smp_mflags} +make CFLAGS="%{optflags}" CC="cc" %{?_smp_mflags} %install -mkdir -p $RPM_BUILD_ROOT/%{_sbindir} -mkdir -p $RPM_BUILD_ROOT/etc/init.d -make install SBINDIR=$RPM_BUILD_ROOT/%{_sbindir} CONFIGDIR=$RPM_BUILD_ROOT/%{_sysconfdir} -install -m 755 %{S:1} $RPM_BUILD_ROOT/etc/init.d/killerd -ln -sf ../../etc/init.d/killerd $RPM_BUILD_ROOT/%{_sbindir}/rckillerd +mkdir -p %{buildroot}/%{_sbindir} +mkdir -p %{buildroot}%{_unitdir} +mkdir -p %{buildroot}/%{_sysconfdir} +make install SBINDIR=%{buildroot}/%{_sbindir} CONFIGDIR=%{buildroot}/%{_sysconfdir} +install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service +ln -sf service %{buildroot}/%{_sbindir}/rckillerd + +%pre +%service_add_pre %{name}.service + +%post +%service_add_post %{name}.service + +%preun +%service_del_preun %{name}.service + +%postun +%service_del_postun %{name}.service %files %defattr(-,root,root) %doc ChangeLog %config %{_sysconfdir}/killerd.conf -%config /etc/init.d/killerd +%{_unitdir}/%{name}.service %{_sbindir}/rckillerd %{_sbindir}/killerd ++++++ killerd.service ++++++ [Unit] Description=Daemon for automatic killing of login shells After=local-fs.target [Service] ExecStart=/usr/sbin/killerd [Install] WantedBy=multi-user.target -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
