]> git.pld-linux.org Git - packages/bigsister.git/commitdiff
- use %useradd/%groupadd macros
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 1 May 2005 17:31:30 +0000 (17:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bigsister.spec -> 1.55

bigsister.spec

index 09ab4d9b62681a16c6453ffea80046a9a0bcb95b..573a65a856bd85894088f7a36f8f3d7fe03385e9 100644 (file)
@@ -35,7 +35,8 @@ URL:          http://bigsister.graeff.com/
 BuildRequires: perl-libnet
 BuildRequires: perl-libwww
 BuildRequires: rpm-perlprov >= 4.0.2-104
-BuildRequires: rpmbuild(macros) >= 1.159
+BuildRequires: rpmbuild(macros) >= 1.202
+BuildRequires: post-server-is-broken
 Requires(pre): /bin/id
 Requires(pre): /usr/bin/getgid
 Requires(pre): /usr/sbin/groupadd
@@ -221,25 +222,10 @@ install %{SOURCE7} $RPM_BUILD_ROOT/etc/bigsister/etc/mibs.txt
 rm -rf $RPM_BUILD_ROOT
 
 %pre
-if [ -n "`/usr/bin/getgid bs`" ]; then
-       if [ "`/usr/bin/getgid bs`" != 77 ]; then
-               echo "Error: group bs doesn't have gid=77. Correct this before installing bigsister." 1>&2
-               exit 1
-       fi
-else
-       /usr/sbin/groupadd -g 77 bs
-fi
-if [ -n "`/bin/id -u bs 2>/dev/null`" ]; then
-       if [ "`/bin/id -u bs`" != "77" ]; then
-               echo "Error: user bs doesn't have uid=77. Correct this before installing bigsister." 1>&2
-               exit 1
-       fi
-else
-       /usr/sbin/useradd -u 77 -d %{_var}/lib/bigsister/www \
-       -s /bin/false -c "Big Sister" -g bs bs 1>&2
-fi
-%post
+%groupadd -g 77 bs
+%useradd -u 77 -d %{_var}/lib/bigsister/www -s /bin/false -c "Big Sister" -g bs bs
 
+%post
 /sbin/chkconfig --add bigsister
 if [ -f /var/lock/subsys/bigsister ]; then
        /etc/rc.d/init.d/bigsister restart >&2
@@ -247,7 +233,6 @@ else
        echo "Run \"/etc/rc.d/init.d/bigsister start\" to start Big Sister." >&2
 fi
 
-
 %preun
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/bigsister ]; then
@@ -263,7 +248,6 @@ if [ "$1" = "0" ]; then
 fi
 
 %post server
-
 %{_datadir}/bigsister/bin/compile_skin webadmin
 %{_datadir}/bigsister/bin/compile_skin static_lamps
 %{_datadir}/bigsister/bin/compile_skin structured_bg
@@ -278,7 +262,8 @@ fi
 %{_datadir}/bigsister/bin/compile_skin default
 %{_datadir}/bigsister/bin/compile_skin white_bg
 
-if ![ -f /etc/bigsister/password ]; then
+if [ ! -f /etc/bigsister/password ]; then
+# FIXME $PASS variable cames from?
        openssl rand -base64 6 > $PASS
        /usr/bin/htpasswd -cb /etc/bigsister/password admin $PASS
        echo "Your web pasword is: $PASS ."
@@ -449,6 +434,7 @@ fi
 %{_datadir}/bigsister/bin/bscgi.pm
 %{_datadir}/bigsister/bin/display_map.pm
 #te dwa tutaj powinny byc???
+# and in english it means?
 %{_datadir}/bigsister/bin/BER.pm
 %{_datadir}/bigsister/bin/IPCFile.pm
 #
This page took 0.13116 seconds and 4 git commands to generate.