Search
j0ke.net Open Build Service
>
Projects
>
server:routing
>
bird
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 8
[-]
[+]
Changed
bird.spec
@@ -9,9 +9,7 @@ Source2: birdc6 Buildroot: %{_tmppath}/%{name}-%{version} Url: http://bird.network.cz -%if 0%{?suse_version} -PreReq: %insserv_prereq -%endif +PreReq: /sbin/chkconfig BuildRequires: readline-devel flex bison @@ -41,7 +39,7 @@ install -d etc/rc.d/init.d install $RPM_SOURCE_DIR/bird.init etc/rc.d/init.d/bird %endif -%if 0%{?suse_version} +%if 0%{?suse_version} || 0%{?sles_version} install -d etc/init.d install $RPM_SOURCE_DIR/bird.init etc/init.d/bird %endif @@ -49,14 +47,15 @@ %post /sbin/ldconfig -%if 0%{?suse_version} -%{fillup_and_insserv -f bird} -%endif +/sbin/chkconfig --add bird + +%preun +%stop_on_removal +if [ $1 -eq 0 ]; then + /sbin/service bird stop &> /dev/null || : + /sbin/chkconfig --del bird +fi -%postun -%if 0%{?suse_version -%insserv_cleanup -%endif %files %defattr(-,root,root) @@ -70,6 +69,6 @@ %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} %attr(755,root,root) /etc/rc.d/init.d/bird %endif -%if 0%{?suse_version} +%if 0%{?suse_version} || 0%{?sles_version} %attr(755,root,root) /etc/init.d/bird %endif