packages: pld-builder/pld-builder.spec, pld-builder/sudo (NEW) - add sudoer...

glen glen at pld-linux.org
Mon Nov 28 01:01:07 CET 2011


Author: glen                         Date: Mon Nov 28 00:01:07 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add sudoers rule

---- Files affected:
packages/pld-builder:
   pld-builder.spec (1.78 -> 1.79) , sudo (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/pld-builder/pld-builder.spec
diff -u packages/pld-builder/pld-builder.spec:1.78 packages/pld-builder/pld-builder.spec:1.79
--- packages/pld-builder/pld-builder.spec:1.78	Sun Nov 27 22:31:43 2011
+++ packages/pld-builder/pld-builder.spec	Mon Nov 28 01:01:02 2011
@@ -15,6 +15,7 @@
 Source4:	rpm.macros
 Source5:	crontab
 Source6:	procmailrc
+Source7:	sudo
 URL:		http://cvs.pld-linux.org/cgi-bin/cvsweb/pld-builder.new/
 BuildRequires:	python
 BuildRequires:	rpm-pythonprov
@@ -125,11 +126,11 @@
 
 # python
 install -d $RPM_BUILD_ROOT%{py_scriptdir}/PLD_Builder
-cp -a PLD_Builder/*.py[co] $RPM_BUILD_ROOT%{py_scriptdir}/PLD_Builder
+cp -p PLD_Builder/*.py[co] $RPM_BUILD_ROOT%{py_scriptdir}/PLD_Builder
 
 # other
 install -d $RPM_BUILD_ROOT%{_sysconfdir}
-cp -a config/{rsync-passwords,*.conf} $RPM_BUILD_ROOT%{_sysconfdir}
+cp -p config/{rsync-passwords,*.conf} $RPM_BUILD_ROOT%{_sysconfdir}
 install -d $RPM_BUILD_ROOT%{_datadir}/{bin,admin}
 for a in bin/*.sh; do
 sed -e '
@@ -152,17 +153,21 @@
 touch $RPM_BUILD_ROOT/home/services/builder/rpm/packages/CVS/Entries{,.Static}
 
 install -d $RPM_BUILD_ROOT/etc/poldek/repos.d
-cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/poldek/repos.d/%{name}.conf
+cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/poldek/repos.d/%{name}.conf
 
 install -d $RPM_BUILD_ROOT/etc/rpm
-cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/rpm/macros.builder
+cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rpm/macros.builder
 
 # crontab
 install -d $RPM_BUILD_ROOT/etc/cron.d
-cp -a %{SOURCE5} $RPM_BUILD_ROOT/etc/cron.d/%{name}
+cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/cron.d/%{name}
+
+# sudo
+install -d $RPM_BUILD_ROOT/etc/sudoers.d
+cp -p %{SOURCE7} $RPM_BUILD_ROOT/etc/sudoers.d/%{name}
 
 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pld-builder
-cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/pld-builder
+cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/pld-builder
 
 # from admin/fresh-queue.sh
 cd $RPM_BUILD_ROOT%{_sharedstatedir}/%{name}
@@ -220,6 +225,7 @@
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pld-builder
 
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sudoers.d/%{name}
 
 %dir %{_sysconfdir}
 %attr(640,root,builder) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
@@ -288,6 +294,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.79  2011/11/28 00:01:02  glen
+- add sudoers rule
+
 Revision 1.78  2011/11/27 21:31:43  glen
 - 20111127 snap
 

================================================================
Index: packages/pld-builder/sudo
diff -u /dev/null packages/pld-builder/sudo:1.1
--- /dev/null	Mon Nov 28 01:01:07 2011
+++ packages/pld-builder/sudo	Mon Nov 28 01:01:02 2011
@@ -0,0 +1,2 @@
+# allow to run all comments under builder chroot
+#builder ALL=(ALL) NOPASSWD: /usr/sbin/chroot /srv/chroot *
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/pld-builder/pld-builder.spec?r1=1.78&r2=1.79&f=u



More information about the pld-cvs-commit mailing list