From ba8d68f482a57dbaa69c0c285d96b0d4a9694802 Mon Sep 17 00:00:00 2001 From: pascalek Date: Sat, 10 May 2003 09:28:37 +0000 Subject: [PATCH] - Req user-bb Changed files: bb4.spec -> 1.11 --- bb4.spec | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/bb4.spec b/bb4.spec index 70e0822..e67b441 100644 --- a/bb4.spec +++ b/bb4.spec @@ -12,13 +12,8 @@ Patch0: %{name}-pld.patch NoSource: 0 URL: http://bb4.com/ PreReq: rc-scripts -Requires(pre): /bin/id -Requires(pre): /usr/bin/getgid -Requires(pre): /usr/sbin/groupadd -Requires(pre): /usr/sbin/useradd +Requires(pre): user-bb Requires(post,preun): /sbin/chkconfig -Requires(postun): /usr/sbin/groupdel -Requires(postun): /usr/sbin/userdel Requires: /usr/bin/setsid Conflicts: iputils-ping < 1:ss020124 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -117,24 +112,6 @@ install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bb %clean rm -rf $RPM_BUILD_ROOT -%pre -if [ -n "`/usr/bin/getgid bb`" ]; then - if [ "`/usr/bin/getgid bb`" != "73" ]; then - echo "Error: group bb doesn't have gid=73. Correct this before installing BB." 1>&2 - exit 1 - fi -else - /usr/sbin/groupadd -g 73 -r -f bb -fi -if [ -n "`/bin/id -u bb 2>/dev/null`" ]; then - if [ "`/bin/id -u bb`" != "73" ]; then - echo "Error: user bb doesn't have uid=73. Correct this before installing BB." 1>&2 - exit 1 - fi -else - /usr/sbin/useradd -u 73 -r -d %{_vardir} -s /bin/sh -c "Big Brother" -g bb -G root,proc,adm bb 1>&2 -fi - %post /sbin/chkconfig --add bb if [ -f /var/lock/subsys/bb ]; then @@ -151,12 +128,6 @@ if [ "$1" = "0" ]; then /sbin/chkconfig --del bb fi -%postun -if [ "$1" = "0" ]; then - /usr/sbin/userdel bb - /usr/sbin/groupdel bb -fi - %files %defattr(644,root,root,755) %doc %{nshort}/{LICENSE,README,README.CHANGES,README.SECURITY,README.SUPPORT} -- 2.44.0