]> git.pld-linux.org Git - packages/ash.git/commitdiff
kupa drobnych poprawek (teraz te pakiety buduja sie poprawnie)
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 8 Jun 1999 09:02:51 +0000 (09:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ash.spec -> 1.12

ash.spec

index 580e3728d80bddc4fe66d9efd28a333583a71cb0..831eaed0e99463fcb4b7cbdf05c54c15c5d7ca10 100644 (file)
--- a/ash.spec
+++ b/ash.spec
@@ -5,7 +5,7 @@ Summary(pl):    Ma
 Summary(tr):   Ufak bir bourne kabuðu
 Name:          ash
 Version:       0.2
-Release:       17
+Release:       18
 Copyright:     BSD
 Group:         Shells
 Group(pl):     Pow³oki
@@ -50,7 +50,7 @@ make
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{bin,usr/man/man1}
+install -d $RPM_BUILD_ROOT/{bin,%{_mandir}/man1}
 
 install sh $RPM_BUILD_ROOT/bin/ash
 install sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ash.1
@@ -65,19 +65,30 @@ install sh $RPM_BUILD_ROOT/bin/ash.static
 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
 
 %post
-umask 022
-echo "/bin/ash\n/bin/bsh" >> /etc/shells
-cat /etc/shells | sort -u > /etc/shells.new
-mv /etc/shells.new /etc/shells
+if [ ! -f /etc/shells ]; then
+        echo "/bin/ash" > /etc/shells
+        echo "/bin/bsh" >> /etc/shells
+        echo "/bin/ash.static" >> /etc/shells
+else
+        if ! grep '^/bin/ash$' /etc/shells > /dev/null; then
+                echo "/bin/ash" >> /etc/shells
+        fi
+        if ! grep '^/bin/bsh$' /etc/shells > /dev/null; then
+                echo "/bin/bsh" >> /etc/shells
+        fi
+        if ! grep '^/bin/ash.static$' /etc/shells > /dev/null; then
+                echo "/bin/ash.static" >> /etc/shells
+        fi
+fi
 
 %postun
 if [ "$0" = 0 ]; then
-       egrep -v "^/bin/ash|^/bin/bsh" /etc/shells > /etc/shells.new
-       mv /etc/shells.new /etc/shells
+        grep -v /bin/ash /etc/shells | grep -v /bin/bsh | grep -v /bin/ash.static > /etc/shells.new
+        mv /etc/shells.new /etc/shells
 fi
 
 %verifyscript
-for n in ash bsh; do
+for n in ash bsh ash.static; do
     echo -n "Looking for $n in /etc/shells... "
     if ! grep "^/bin/${n}\$" /etc/shells > /dev/null; then
        echo "missing"
@@ -96,6 +107,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/*
 
 %changelog
+* Mon Jun 07 1999 Jan Rêkorajski <baggins@pld.org.pl>
+  [0.2-18]
+- spec cleanup
+
 * Wed Apr 21 1999 Piotr Czerwiñski <pius@pld.org.pl>
   [0.2-17]
 - added Group(pl),
This page took 0.169757 seconds and 4 git commands to generate.