Author: glen Date: Thu Oct 2 11:04:56 2008 GMT Module: SPECS Tag: HEAD ---- Log message: - user/group fragments
---- Files affected: SPECS: template.spec (1.69 -> 1.70) ---- Diffs: ================================================================ Index: SPECS/template.spec diff -u SPECS/template.spec:1.69 SPECS/template.spec:1.70 --- SPECS/template.spec:1.69 Sat Feb 9 11:16:12 2008 +++ SPECS/template.spec Thu Oct 2 13:04:51 2008 @@ -137,12 +137,18 @@ rm -rf $RPM_BUILD_ROOT %pre +%groupadd -g xxx %{name} +%useradd -u xxx -d /var/lib/%{name} -g %{name} -c "XXX User" %{name} %post %preun %postun +if [ "$1" = "0" ]; then + %userremove %{name} + %groupremove %{name} +fi %if %{with ldconfig} %post -p /sbin/ldconfig @@ -194,6 +200,6 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ -Revision 1.69 2008/02/09 10:16:12 glen -- sed macro +Revision 1.70 2008/10/02 11:04:51 glen +- user/group fragments ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/template.spec?r1=1.69&r2=1.70&f=u _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit