SPECS: openct.spec - useradd/del
arekm
arekm at pld-linux.org
Sun Nov 16 23:22:21 CET 2008
Author: arekm Date: Sun Nov 16 22:22:21 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- useradd/del
---- Files affected:
SPECS:
openct.spec (1.44 -> 1.45)
---- Diffs:
================================================================
Index: SPECS/openct.spec
diff -u SPECS/openct.spec:1.44 SPECS/openct.spec:1.45
--- SPECS/openct.spec:1.44 Sun Nov 16 23:14:32 2008
+++ SPECS/openct.spec Sun Nov 16 23:22:16 2008
@@ -19,6 +19,8 @@
BuildRequires: pcsc-lite-devel
BuildRequires: pkgconfig >= 1:0.9.0
Requires(post,preun): /sbin/chkconfig
+Requires(pre): /usr/sbin/useradd
+Requires(pre): /usr/sbin/usermod
Requires: %{name}-libs = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -155,6 +157,9 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%pre
+%useradd -u 196 -d %{_datadir}/empty -c "openctd User" -g usb openctd
+
%post
/sbin/chkconfig --add openct
if [ -f /var/lock/subsys/openct ]; then
@@ -171,6 +176,11 @@
/sbin/chkconfig --del openct
fi
+%postun
+if [ "$1" = "0" ]; then
+ %userremove openctd
+fi
+
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
@@ -234,6 +244,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.45 2008/11/16 22:22:16 arekm
+- useradd/del
+
Revision 1.44 2008/11/16 22:14:32 arekm
- rel 3; add hal subpkg; fix udev
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/openct.spec?r1=1.44&r2=1.45&f=u
More information about the pld-cvs-commit
mailing list