diff options
author | Elan Ruusamäe | 2006-03-13 23:14:32 (GMT) |
---|---|---|
committer | cvs2git | 2012-06-24 12:13:13 (GMT) |
commit | 1f0ad0400fc92603e78737e1ba46358f7107fc0a (patch) | |
tree | 368be1389fd6c373736d353d61b3061abc1315fc /smstools.spec | |
parent | b32cbabb478c6bfd0054a3f5ab4aff161de1f2f8 (diff) | |
download | smstools-1f0ad0400fc92603e78737e1ba46358f7107fc0a.zip smstools-1f0ad0400fc92603e78737e1ba46358f7107fc0a.tar.gz |
- use %service
Changed files:
smstools.spec -> 1.41
Diffstat (limited to 'smstools.spec')
-rw-r--r-- | smstools.spec | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/smstools.spec b/smstools.spec index 6fa9e48..ee9db30 100644 --- a/smstools.spec +++ b/smstools.spec @@ -13,8 +13,9 @@ Patch0: %{name}-daemonize.patch Patch1: %{name}-Makefile.patch URL: http://www.meinemullemaus.de/software/smstools/index.html BuildRequires: mm-devel -PreReq: rc-scripts +BuildRequires: rpmbuild(macros) >= 1.268 Requires(post,preun): /sbin/chkconfig +Requires: rc-scripts BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -30,7 +31,7 @@ odbierania przesyłek oraz zestaw skryptów dzięki którym można stworzyć np. bramkę email->SMS. %prep -%setup -q -n smstools +%setup -q -n %{name} %patch0 -p1 %patch1 -p1 @@ -56,17 +57,11 @@ rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add smsd -if [ -f /var/lock/subsys/smsd ]; then - /etc/rc.d/init.d/smsd restart 1>&2 -else - echo "Run \"/etc/rc.d/init.d/smsd start\" to start sms daemon." -fi +%service smsd restart "sms daemon" %preun if [ "$1" = "0" ]; then - if [ -f /var/lock/subsys/smsd ]; then - /etc/rc.d/init.d/smsd stop 1>&2 - fi + %service smsd stop /sbin/chkconfig --del smsd fi |