]> git.pld-linux.org Git - packages/dip.git/commitdiff
- umask in scripts, other fixes/cosmetics where needed
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 29 Dec 2002 18:00:55 +0000 (18:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dip.spec -> 1.15

dip.spec

index 3dfa3a3a08c01a0a4bbaa5051cbcc645c17d7e6a..620f314abb434c63c69a2e584979a58c8389c19c 100644 (file)
--- a/dip.spec
+++ b/dip.spec
@@ -20,6 +20,8 @@ Patch10:      %{name}-3.3.7o-lockfile.patch
 Patch11:       %{name}-3.3.7o-asm.patch
 Patch12:       %{name}-3.3.7o-db.patch
 Patch13:       %{name}-3.3.7o-types.patch
+Requires(post,preun):  grep
+Requires(preun):       fileutils
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -47,20 +49,23 @@ potzrbuje si
 %patch1 -p1
 %patch2 -p1
 %patch4 -p0
-%patch5 -p1 -b .andor
-%patch3 -p1 -b .glibc
-%patch6 -p1 -b .arm
-%patch7 -p0 -b .skey
-%patch8 -p1 -b .jbj
-%patch9 -p1 -b .timeout
-%patch10 -p1 -b .lockfile
-%patch11 -p1 -b .asm
-%patch12 -p1 -b .db
-%patch13 -p1 -b .types
+%patch5 -p1
+%patch3 -p1
+%patch6 -p1
+%patch7 -p0
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
+%patch12 -p1
+%patch13 -p1
 
 %build
 %{__make} depend
-(cd skey; make clean; make linux)
+cd skey
+%{__make} clean
+%{__make} linux
+cd ..
 %{__make} RPM_OPT_FLAGS="%{rpmcflags}"
 
 %install
@@ -76,8 +81,8 @@ echo ".so dip.8" > $RPM_BUILD_ROOT%{_mandir}/man8/diplogin.8
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-
 %post
+umask 022
 if [ ! -f /etc/shells ]; then
        echo "/usr/sbin/diplogin" > /etc/shells
 else
@@ -88,13 +93,13 @@ fi
 
 %preun
 if [ "$1" = "0" ]; then
+       umask 022
        grep -v /usr/sbin/diplogin /etc/shells > /etc/shells.new
        mv -f /etc/shells.new /etc/shells
 fi
 
-
 %files
 %defattr(644,root,root,755)
-%attr(0755,root,uucp) %{_sbindir}/dip
+%attr(755,root,uucp) %{_sbindir}/dip
 %attr(755,root,root) %{_sbindir}/diplogin
 %{_mandir}/man8/*
This page took 0.077673 seconds and 4 git commands to generate.