]> git.pld-linux.org Git - packages/amanda.git/commitdiff
- check if user/group amanda exists; release 7, STBR amanda-2_4_2p2-7
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 3 Jan 2002 14:58:53 +0000 (14:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    amanda.spec -> 1.57

amanda.spec

index 5c524c3745ef690b60e374692a597eb87112d7a6..4fdf2815b565aa32397fdb8d6b922950b7f61425 100644 (file)
@@ -2,7 +2,7 @@ Summary:        A network-capable tape backup solution
 Summary(pl):   Sieciowo zorientowany system tworzenia kopii zapasowych
 Name:          amanda
 Version:       2.4.2p2
-Release:       6
+Release:       7
 License:       BSD
 Group:         Networking/Utilities
 Group(de):     Netzwerkwesen/Werkzeuge
@@ -65,11 +65,17 @@ Summary(pl):        Biblioteki wsp
 Group:         Networking/Utilities
 Group(de):     Netzwerkwesen/Werkzeuge
 Group(pl):     Sieciowe/Narzêdzia
+Prereq:                /usr/bin/getgid
+Prereq:                /bin/id
+Prereq:                /usr/sbin/groupadd
+Prereq:                /usr/sbin/useradd
+Prereq:                /usr/sbin/groupdel
+Prereq:                /usr/sbin/userdel
 
 %description libs
 Amanda shared libraries.
 
-%description -l pl libs
+%description libs -l pl
 Biblioteki wspó³dzielone pakietu amanda.
 
 %package client
@@ -88,7 +94,7 @@ be backed up by AMANDA (including the server if it also needs to be
 backed up). You will also need to install the amanda package to each
 AMANDA client. It requires at least one of dump and GNU tar installed.
 
-%description -l pl client
+%description client -l pl
 Ten pakiet powinien byæ zainstalowany ma maszynach, z których
 zawarto¶ci bêd± tworzone kopie zapasowe. Wymaga zainstalowanego co
 najmniej jednego z pakietów dump i GNU tar.
@@ -114,7 +120,7 @@ backups will be written. You will also need to install the amanda
 package to the AMANDA server. And, if the server is also to be backed
 up, the server also needs to have the amanda-client package installed.
 
-%description -l pl server
+%description server -l pl
 Ten pakiet powinien byæ zainstalowanych na maszynach, na których bêd±
 magazynowane kopie zapasowe (lub do których podpiête s± urz±dzenia
 typu streamer).
@@ -183,8 +189,22 @@ rm -rf $RPM_BUILD_ROOT
 /usr/sbin/chsh -s /bin/sh amanda
 
 %pre libs
-/usr/sbin/groupadd -g 80 -r -f amanda
-/usr/sbin/useradd -u 80 -r -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda
+if [ -n "`/usr/bin/getgid amanda`" ]; then
+       if [ "`getgid amanda`" != "80" ]; then
+               echo "Warning: group amanda haven't gid=80. Correct this before installing amanda-libs" 1>&2
+               exit 1
+       fi
+else
+       /usr/sbin/groupadd -g 80 -r -f amanda
+fi
+if [ -n "`/bin/id -u amanda 2>/dev/null`" ]; then
+       if [ "`/bin/id -u amanda`" != "80" ]; then
+               echo "Warning: user amanda haven't uid=80. Correct this before installing amanda-libs" 1>&2
+               exit 1
+       fi
+else
+       /usr/sbin/useradd -u 80 -r -d /var/lib/amanda -s /bin/sh -c "Amanda Backup user" -g amanda amanda 1>&2
+fi
 
 %post libs -p /sbin/ldconfig
 
This page took 0.185457 seconds and 4 git commands to generate.