SPECS: icecream.spec - added our init script; adduser user/group icecream
paszczus
paszczus at pld-linux.org
Tue Sep 9 15:13:47 CEST 2008
Author: paszczus Date: Tue Sep 9 13:13:47 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added our init script; adduser user/group icecream
---- Files affected:
SPECS:
icecream.spec (1.9 -> 1.10)
---- Diffs:
================================================================
Index: SPECS/icecream.spec
diff -u SPECS/icecream.spec:1.9 SPECS/icecream.spec:1.10
--- SPECS/icecream.spec:1.9 Tue Sep 9 12:45:57 2008
+++ SPECS/icecream.spec Tue Sep 9 15:13:42 2008
@@ -8,6 +8,7 @@
Group: Development/Languages
Source0: ftp://ftp.suse.com/pub/projects/icecream/icecc-%{version}.tar.bz2
# Source0-md5: d8f65259ef2f72d36c157b64a2ff11d5
+Source1: %{name}-iceccd.init
URL: http://en.opensuse.org/Icecream
BuildRequires: autoconf
BuildRequires: automake
@@ -59,7 +60,7 @@
DESTDIR=$RPM_BUILD_ROOT
install suse/sysconfig.icecream $RPM_BUILD_ROOT/etc/sysconfig/icecream
-install suse/init.icecream $RPM_BUILD_ROOT/etc/rc.d/init.d/icecream
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/iceccd
for i in cc gcc c++ g++; do
ln -sf %{_bindir}/icecc $RPM_BUILD_ROOT%{_libdir}/icecc/bin/$i
@@ -70,22 +71,33 @@
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-/sbin/chkconfig --add %{name}
-%service %{name} restart
+%pre
+%groupadd -g 197 icecream
+%useradd -u 197 -s /bin/false -d /var/cache/icecream -c "Icecream User" -g icecream icecream
+
+
+%post
+/sbin/ldconfig
+/sbin/chkconfig --add iceccd
+%service iceccd restart
%preun
if [ "$1" = "0" ]; then
- %service %{name} stop
- /sbin/chkconfig --del %{name}
+ %service iceccd stop
+ /sbin/chkconfig --del iceccd
fi
-%postun -p /sbin/ldconfig
+%postun
+if [ "$1" = "0" ]; then
+ %userremove icecream
+ %groupremove icecream
+fi
+/sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc COPYING NEWS README TODO
-%attr(754,root,root) /etc/rc.d/init.d/%{name}
+%attr(754,root,root) /etc/rc.d/init.d/iceccd
%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/icecream
%attr(755,root,root) %{_bindir}/icecc
%{_libdir}/icecc/bin/cc
@@ -111,6 +123,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.10 2008/09/09 13:13:42 paszczus
+- added our init script; adduser user/group icecream
+
Revision 1.9 2008/09/09 10:45:57 paszczus
- merged few hacks from fedora
- added %post/preun scripts
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/icecream.spec?r1=1.9&r2=1.10&f=u
More information about the pld-cvs-commit
mailing list