]> git.pld-linux.org Git - packages/flixengine.git/commitdiff
- initscript needs portmap
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 13 Dec 2006 18:08:53 +0000 (18:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- add service and chkconfig

Changed files:
    flixengine.spec -> 1.7

flixengine.spec

index 57c175bcc6e39eecc16f67acf84d98e890e70b35..90c76e36a919773e9dd96d411d69d270e4dc132f 100644 (file)
@@ -7,7 +7,7 @@
 Summary:       On2 Flix Engine
 Name:          flixengine
 Version:       8.0.7.0
 Summary:       On2 Flix Engine
 Name:          flixengine
 Version:       8.0.7.0
-Release:       0.8
+Release:       0.9
 License:       not distributable
 Group:         Applications
 # download demo from http://flix.on2.com/demos/
 License:       not distributable
 Group:         Applications
 # download demo from http://flix.on2.com/demos/
@@ -26,7 +26,11 @@ BuildRequires:       perl-base
 BuildRequires: php-devel
 BuildRequires: python
 BuildRequires: rpm-perlprov >= 4.1-13
 BuildRequires: php-devel
 BuildRequires: python
 BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun):  /sbin/chkconfig
 Requires:      %{name}-libs = %{version}-%{release}
 Requires:      %{name}-libs = %{version}-%{release}
+Requires:      portmap
+Requires:      rc-scripts
 ExclusiveArch: %{ix86}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 ExclusiveArch: %{ix86}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -248,9 +252,17 @@ rm -rf $RPM_BUILD_ROOT
 %postun        libs -p /sbin/ldconfig
 
 %post
 %postun        libs -p /sbin/ldconfig
 
 %post
+/sbin/chkconfig --add %{name}
 if [ ! -s /var/lib/on2/hostinfo ]; then
        %{_sbindir}/on2_host_info > /var/lib/on2/hostinfo
 fi
 if [ ! -s /var/lib/on2/hostinfo ]; then
        %{_sbindir}/on2_host_info > /var/lib/on2/hostinfo
 fi
+%service %{name} restart
+
+%preun
+if [ "$1" = "0" ]; then
+       %service -q %{name} stop
+       /sbin/chkconfig --del %{name}
+fi
 
 %post -n php-flixengine
 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
 
 %post -n php-flixengine
 [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
This page took 0.093791 seconds and 4 git commands to generate.