]> git.pld-linux.org Git - packages/bb4.git/blobdiff - bb4.spec
- Req user-bb
[packages/bb4.git] / bb4.spec
index 2a1ea57e576f55fe5c4f351d9aded021f80de835..e67b441bf5005859e9271bc03884b318a1a15d03 100644 (file)
--- a/bb4.spec
+++ b/bb4.spec
@@ -3,33 +3,25 @@ Summary(pl):  Wielki Brat - monitor system
 Name:          bb4
 Version:       1.8d
 %define        nshort  bb18d
-Release:       1
-License:       free for non commercial use, 30-day trial for commercial use; not distributable
+Release:       2
+License:       Free for non-commercial use, 30-day trial for commercial use; not distributable
 Group:         Networking
-Group(de):     Netzwerkwesen
-Group(es):     Red
-Group(pl):     Sieciowe
-Group(pt_BR):  Rede
-Source0:       http://bb4.com/dnld/bb-%{version}.tar.gz
+Source0:       bb-%{version}.tar.gz
 Source1:       %{name}.init
 Patch0:                %{name}-pld.patch
 NoSource:      0
 URL:           http://bb4.com/
-Prereq:                /usr/sbin/groupadd
-Prereq:                /usr/sbin/useradd
-Prereq:                /usr/sbin/groupdel
-Prereq:                /usr/sbin/userdel
-Prereq:                /bin/id
-Prereq:                /usr/bin/getgid
-Prereq:                /sbin/chkconfig
-Prereq:                rc-scripts
+PreReq:                rc-scripts
+Requires(pre): user-bb
+Requires(post,preun):  /sbin/chkconfig
 Requires:      /usr/bin/setsid
+Conflicts:     iputils-ping < 1:ss020124
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _etcdir         /etc/bb
 %define                _libdir         /usr/lib/bb
-%define                _htmldir        /home/httpd/html/bb
-%define                _cgidir         /home/httpd/cgi-bin
+%define                _htmldir        /home/services/httpd/html/bb
+%define                _cgidir         /home/services/httpd/cgi-bin
 %define                _vardir         /var/lib/bb
 %define                _sysconfdir     /etc/dummy
 
@@ -117,30 +109,9 @@ install %{nshort}/etc/{bbdef.sh,bbinc.sh,bbsys.local,bbsys.sh,bbwarnrules.cfg,bb
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bb
 
-cd %{nshort}
-gzip -9nf LICENSE README README.CHANGES README.SECURITY README.SUPPORT
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%pre
-if [ -n "`/usr/bin/getgid bb`" ]; then
-       if [ "`/usr/bin/getgid bb`" != "73" ]; then
-               echo "Warning: group bb haven't 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 "Warning: user bb haven't 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
@@ -157,15 +128,9 @@ 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}/*.gz
+%doc %{nshort}/{LICENSE,README,README.CHANGES,README.SECURITY,README.SUPPORT}
 %dir %{_etcdir}
 %config(noreplace) %verify(not size mtime md5) %{_etcdir}/*
 %attr(755,root,root) %{_cgidir}/*
This page took 0.093705 seconds and 4 git commands to generate.