Revert "Providing native systemd file for upcoming F14 Feature Systemd"

This reverts commit d3732f1270.
This commit is contained in:
Nikola Pajkovsky 2010-08-19 10:46:53 +02:00
parent d3732f1270
commit 2f6a6e04b1
2 changed files with 10 additions and 32 deletions

View File

@ -1,14 +0,0 @@
[Unit]
Description=Console Mouse manager
After=syslog.target
# This could probably benefit from socket activation, but honestly I think it
# is time for gpm to go away, and hence I am not planning to spend the time
# to add socket activation here.
[Service]
ExecStart=/usr/sbin/gpm -m /dev/input/mice -t exps2 -D
StandardOutput=syslog
[Install]
WantedBy=multi-user.target

View File

@ -1,14 +1,13 @@
Summary: A mouse server for the Linux console
Name: gpm
Version: 1.20.6
Release: 10%{?dist}
Release: 9%{?dist}
License: GPLv2+
Group: System Environment/Daemons
URL: http://unix.schottelius.org/gpm/
Source: http://unix.schottelius.org/gpm/archives/%{name}-%{version}.tar.lzma
Source1: gpm.init
Source2: inputattach.c
Source3: gpm.service
Patch1: gpm-1.20.6-multilib.patch
Patch2: gpm-1.20.1-lib-silent.patch
Patch3: gpm-1.20.3-gcc4.3.patch
@ -19,7 +18,6 @@ Patch6: gpm-1.20.6-libtool.patch
Requires(post): /sbin/chkconfig /sbin/install-info /sbin/ldconfig
Requires(preun): /sbin/chkconfig /sbin/install-info
Requires(postun): /sbin/ldconfig
Requires: systemd-units
# this defines the library version that this package builds.
%define LIBVER 2.1.0
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
@ -93,10 +91,9 @@ ln -sf libgpm.so.%{LIBVER} %{buildroot}/%{_libdir}/libgpm.so
%ifnarch s390 s390x
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
mkdir -p %{buildroot}/lib/systemd/system/
install -m 755 inputattach %{buildroot}%{_sbindir}
install -m 644 conf/gpm-* %{buildroot}%{_sysconfdir}
install -m 644 %{SOURCE3} %{buildroot}/lib/systemd/system/
install -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/gpm
%else
# we're shipping only libraries in s390[x], so
# remove stuff from the buildroot that we aren't shipping
@ -110,7 +107,7 @@ rm -rf %{buildroot}
%post
%ifnarch s390 s390x
/bin/systemctl enable gpm.service >/dev/null 2>&1 || :
/sbin/chkconfig --add gpm
%endif
if [ -e %{_infodir}/gpm.info.gz ]; then
/sbin/install-info %{_infodir}/gpm.info.gz %{_infodir}/dir || :
@ -120,20 +117,18 @@ fi
%preun
%ifnarch s390 s390x
if [ $1 = 0 ]; then
/bin/systemctl disable gpm.service >/dev/null 2>&1 || :
/bin/systemctl stop gpm.service >/dev/null 2>&1 || :
/sbin/service gpm stop >/dev/null 2>&1
/sbin/chkconfig --del gpm
fi
%endif
if [ $1 = 0 -a -e %{_infodir}/gpm.info.gz ]; then
/sbin/install-info %{_infodir}/gpm.info.gz --delete %{_infodir}/dir || :
f
fi
%postun
%ifnarch s390 s390x
if [ $1 -ge 1 ]; then
# On upgrade, reload init system configuration if we changed unit files
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
# On upgrade, restart the daemon
/bin/systemctl try-restart gpm.service >/dev/null 2>&1 || :
/sbin/service gpm condrestart >/dev/null 2>&1
fi
%endif
/sbin/ldconfig
@ -145,7 +140,7 @@ fi
%{_infodir}/*
%ifnarch s390 s390x
%config(noreplace) %{_sysconfdir}/gpm-*
/lib/systemd/system/gpm.service
%attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/gpm
%{_sbindir}/*
%{_bindir}/*
%{_mandir}/man?/*
@ -165,9 +160,6 @@ fi
%{_libdir}/libgpm.a
%changelog
* Wed Aug 11 2010 Nikola Pajkovsky <npajkovs@redhat.com> 1.20.6-10
- Providing native systemd file for upcoming F14 Feature Systemd
* Thu Dec 10 2009 Nikola Pajkovsky <npajkovs@redhat.com> 1.20.6-9
- add try-restart into gpm.init to be more LSB-compilant