]> git.pld-linux.org Git - packages/tinyproxy.git/commitdiff
- make use of %service macro, added proper BR auto/ti/tinyproxy-1_7_0-2
authorpawelz <pawelz@pld-linux.org>
Wed, 26 Aug 2009 08:49:45 +0000 (08:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added warning about unstable version

Changed files:
    tinyproxy.spec -> 1.27

tinyproxy.spec

index 8627a31a5ef6239668fd259e67af940c36d95f31..83dd3d0254967e04979cffac8275c0fb618d790d 100644 (file)
@@ -1,3 +1,6 @@
+# NOTE:
+# - acording to tinyproxy homepage this is unstable *development* version not
+#   suitable for production use. See TINYPROXY_1_6 branch for stable version
 Summary:       Small HTTP/SSL proxy daemon
 Summary(pl.UTF-8):     Mały demon proxy
 Name:          tinyproxy
@@ -13,6 +16,7 @@ URL:          http://tinyproxy.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: libtool
+BuildRequires: rpmbuild(macros) >= 1.228
 Requires(post,preun):  /sbin/chkconfig
 Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -55,17 +59,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add tinyproxy
-if [ -f /var/lock/subsys/tinyproxy ]; then
-       /etc/rc.d/init.d/tinyproxy restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/tinyproxy start\" to start tinyproxy daemon."
-fi
+%service tinyproxy restart "tinyproxy daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/tinyproxy ]; then
-               /etc/rc.d/init.d/tinyproxy stop 1>&2
-       fi
+       %service tinyproxy stop
        /sbin/chkconfig --del tinyproxy
 fi
 
This page took 0.09443 seconds and 4 git commands to generate.