]> git.pld-linux.org Git - packages/lsvpd.git/commitdiff
- standard service restart and stop (if it's bad idea leave note)
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 2 Mar 2006 22:55:45 +0000 (22:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lsvpd.spec -> 1.14

lsvpd.spec

index 55b1ecf9da04069257b904c50b676469278391af..adf1d5c6672ffa47ce62e83ca64a38fbe7c335f5 100644 (file)
@@ -9,10 +9,10 @@ Source0:      http://dl.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
 # Source0-md5: f310891ca548358e778d7009ba0c0976
 URL:           http://linux-diag.sourceforge.net/Lsvpd.html
 BuildRequires: perl-base
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: sed >= 4.0
 BuildRequires: sg3_utils-devel >= 1.01
 BuildRequires: sysfsutils-devel >= 1.3.0-3
-PreReq:                rc-scripts
 Requires(post,preun):  /sbin/chkconfig
 Requires:      /bin/bash
 Requires:      /bin/sed
@@ -41,7 +41,6 @@ wypisuje poziomy mikrokodu i firmware'u.
 
 %prep
 %setup -q
-
 sed -i -e "s,#!/bin/sh,#!/bin/bash," scripts/lsvpd.in
 
 %build
@@ -71,9 +70,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add lsvpd
+%service lsvpd restart
 
 %preun
 if [ "$1" = "0" ] ; then
+       %service lsvpd stop
        /sbin/chkconfig --del lsvpd
 fi
 
This page took 0.045973 seconds and 4 git commands to generate.