SPECS: apparmor-parser.spec - add init script
arekm
arekm at pld-linux.org
Tue Dec 12 16:44:44 CET 2006
Author: arekm Date: Tue Dec 12 15:44:44 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add init script
---- Files affected:
SPECS:
apparmor-parser.spec (1.5 -> 1.6)
---- Diffs:
================================================================
Index: SPECS/apparmor-parser.spec
diff -u SPECS/apparmor-parser.spec:1.5 SPECS/apparmor-parser.spec:1.6
--- SPECS/apparmor-parser.spec:1.5 Tue Dec 12 02:00:01 2006
+++ SPECS/apparmor-parser.spec Tue Dec 12 16:44:39 2006
@@ -5,11 +5,13 @@
Summary(pl): Narzędzie przestrzeni użytkownika do przetwarzania AppArmor
Name: apparmor-parser
Version: %{_ver}.%{_svnrel}
-Release: 0.1
+Release: 0.2
License: GPL
Group: Applications/System
Source0: http://forge.novell.com/modules/xfcontent/private.php/apparmor/Development%20-%20October%20Snapshot/%{name}-%{_ver}-%{_svnrel}.tar.gz
# Source0-md5: cbb25435e4353b10b5fdd96f80c854b9
+Source1: %{name}.init
+Patch0: %{name}-pld.patch
URL: http://forge.novell.com/modules/xfmod/project/?apparmor
BuildRequires: bash
BuildRequires: bison
@@ -31,6 +33,7 @@
%prep
%setup -q -n %{name}-%{_ver}
+%patch0 -p1
%build
%{__make} \
@@ -41,9 +44,13 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir}/apparmor,/sbin,/subdomain,/var/lib/apparmor}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{apparmor,rc.d/init.d},/sbin,/subdomain,/var/lib/apparmor}
+
install apparmor_parser $RPM_BUILD_ROOT/sbin
install subdomain.conf $RPM_BUILD_ROOT%{_sysconfdir}/apparmor
+install rc.apparmor.functions $RPM_BUILD_ROOT%{_sysconfdir}/apparmor
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/apparmor
+
%{__make} -C po install \
DESTDIR=$RPM_BUILD_ROOT \
NAME=%{name}
@@ -52,14 +59,23 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+/sbin/chkconfig --add apparmor
+
+%preun
+if [ "$1" = "0" ]; then
+ /sbin/chkconfig --del apparmor
+fi
+
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc README
%attr(755,root,root) /sbin/apparmor_parser
%dir %{_sysconfdir}/apparmor
+%{_sysconfdir}/apparmor/rc.apparmor.functions
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apparmor/subdomain.conf
+%attr(754,root,root) /etc/rc.d/init.d/apparmor
#%attr(754,root,root) /etc/rc.d/init.d/aaeventd
-#%attr(754,root,root) /etc/rc.d/init.d/apparmor
/subdomain
/var/lib/apparmor
@@ -69,6 +85,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.6 2006/12/12 15:44:39 arekm
+- add init script
+
Revision 1.5 2006/12/12 01:00:01 arekm
- up to 2.0.150
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/apparmor-parser.spec?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list