SPECS: sudo.spec - switched from '__make install' to shell installation, be...

sls sls at pld-linux.org
Wed Oct 15 13:16:50 CEST 2008


Author: sls                          Date: Wed Oct 15 11:16:50 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- switched from '__make install' to shell installation, because:
  __libtoolize overwrites install-sh scripts so $INSTALL from Makefile 
  no longer recognizes '-O' and '-G' options (useless anyway) and fails
  (installation is strongly based on Makefile installation and may seem
  silly - for example: sudoedit and sudoedit.8 hardlinks)

---- Files affected:
SPECS:
   sudo.spec (1.130 -> 1.131) 

---- Diffs:

================================================================
Index: SPECS/sudo.spec
diff -u SPECS/sudo.spec:1.130 SPECS/sudo.spec:1.131
--- SPECS/sudo.spec:1.130	Wed Oct 15 12:32:37 2008
+++ SPECS/sudo.spec	Wed Oct 15 13:16:44 2008
@@ -150,14 +150,23 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{pam.d,logrotate.d},/var/{log,run/sudo},%{_mandir}/man8}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/{pam.d,logrotate.d},/var/{log,run/sudo},%{_mandir}/man{5,8}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}}
 
-%{__make} -j1 install \
-	DESTDIR=$RPM_BUILD_ROOT \
-	install_uid=`id -u` \
-	install_gid=`id -g` \
-	sudoers_uid=`id -u` \
-	sudoers_gid=`id -g`
+install sudo $RPM_BUILD_ROOT%{_bindir}
+ln $RPM_BUILD_ROOT%{_bindir}/{sudo,sudoedit}
+install visudo $RPM_BUILD_ROOT%{_sbindir}
+
+install sesh $RPM_BUILD_ROOT%{_libdir}
+
+install .libs/sudo_noexec.so $RPM_BUILD_ROOT%{_libdir}
+
+install sudoers $RPM_BUILD_ROOT%{_sysconfdir}
+
+install sudoers.man $RPM_BUILD_ROOT%{_mandir}/man5/sudoers.5
+install sudo.man $RPM_BUILD_ROOT%{_mandir}/man8/sudo.8
+install visudo.man $RPM_BUILD_ROOT%{_mandir}/man8/visudo.8
+ln $RPM_BUILD_ROOT%{_mandir}/man8/{sudo,sudoedit}.8
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/sudo
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/sudo-i
@@ -196,6 +205,13 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.131  2008/10/15 11:16:44  sls
+- switched from '__make install' to shell installation, because:
+  __libtoolize overwrites install-sh scripts so $INSTALL from Makefile
+  no longer recognizes '-O' and '-G' options (useless anyway) and fails
+  (installation is strongly based on Makefile installation and may seem
+  silly - for example: sudoedit and sudoedit.8 hardlinks)
+
 Revision 1.130  2008/10/15 10:32:37  sls
 - verbose files
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/sudo.spec?r1=1.130&r2=1.131&f=u



More information about the pld-cvs-commit mailing list