Changeset 476 in ProjectBuilder for projects/dploy
- Timestamp:
- Jun 4, 2008, 4:42:52 PM (17 years ago)
- Location:
- projects/dploy/pbconf/devel
- Files:
-
- 14 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/dploy/pbconf/devel/dploy-common/rpm/dploy-common.spec
r470 r476 45 45 46 46 %files 47 %defattr(-, dploy,dploy)47 %defattr(-,root,root) 48 48 %doc ChangeLog 49 49 %doc INSTALL COPYING README … … 53 53 54 54 %{perlvendorlib}/* 55 #%{_bindir}/*56 #%{_mandir}/man1/*55 %{_bindir}/* 56 %{_mandir}/man1/* 57 57 %{_mandir}/man3/* 58 58 59 59 %pre 60 60 # Create dploy Account and group if needed 61 grep -qE '^ dploy:' %{_sysconfdir}/group61 grep -qE '^PBPROJ:' %{_sysconfdir}/group 62 62 if [ $? -ne 0 ]; then 63 groupadd dploy63 groupadd PBPROJ 64 64 fi 65 grep -qE '^ dploy:' %{_sysconfdir}/passwd65 grep -qE '^PBPROJ:' %{_sysconfdir}/passwd 66 66 if [ $? -ne 0 ]; then 67 useradd -g dploy dploy67 useradd -g PBPROJ PBPROJ 68 68 fi 69 69 70 70 %post 71 # Open ssh access for dploy account with generated keys 72 mkdir -p ~dploy/.ssh 73 chmod 700 ~dploy/.ssh 74 keyf=~dploy/.ssh/authorized_keys 75 if [ -f $keyf ]; then 76 key=`cut -d' ' -f2 %{_sysconfdir}/PBPROJ/keys/dploy_id_dsa.pub` 77 grep -qE \'$key\' $keyf 78 if [ $? -ne 0 ]; then 79 cat %{_sysconfdir}/PBPROJ/keys/dploy_id_dsa.pub >> $keyf 80 fi 81 else 82 cp %{_sysconfdir}/PBPROJ/keys/dploy_id_dsa.pub $keyf 83 chown dploy:dploy $keyf 84 chmod 600 $keyf 85 fi 71 %{_bindir}/dploy-common-post 86 72 87 73 %changelog -
projects/dploy/pbconf/devel/dploy-dhcp/rpm/dploy-dhcp.spec
r470 r476 41 41 #%doc INSTALL COPYING README AUTHORS NEWS 42 42 %{_bindir}/* 43 %{_mandir}/man1/* 43 44 44 45 %post 45 # Include our configuration file in std dhcp.conf file 46 #grep -qE '^include "%{_sysconfdir}/PBPROJ/dhcpd.conf";' /etc/dhcpd.conf 47 #if [ $? -ne 0 ]; then 48 #echo 'include "%{_sysconfdir}/PBPROJ/dhcpd.conf";' >> /etc/dhcpd.conf 49 #fi 50 51 # Give us the rights to modify the DHCP conf file 52 chgrp dploy %{_sysconfdir}/dhcpd.conf 53 chmod 664 %{_sysconfdir}/dhcpd.conf 54 55 # Include dploy in sudoers 56 grep -qE '^dploy ' %{_sysconfdir}/sudoers | grep %{_sysconfdir}/init.d/dhcpd 57 if [ $? -ne 0 ]; then 58 echo 'dploy ALL=NOPASSWD: /etc/init.d/dhcpd ?*' >> %{_sysconfdir}/sudoers 59 fi 46 %{_bindir}/dploy-dhcp-post 60 47 61 48 %changelog -
projects/dploy/pbconf/devel/dploy-pxe/rpm/dploy-pxe.spec
r470 r476 15 15 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n) 16 16 BuildArch: noarch 17 Requires: dploy-common, tftp-server, sudo, perl, syslinux, PBDEP17 Requires: dploy-common, dploy-pxelinux, tftp-server, sudo, perl, PBDEP 18 18 19 19 %description … … 41 41 #%doc INSTALL COPYING README AUTHORS NEWS 42 42 %{_bindir}/* 43 %{_mandir}/man1/* 43 44 44 45 %post 45 # Include dploy in sudoers 46 grep -qE '^dploy ' %{_sysconfdir}/sudoers | grep /bin/umount 47 if [ $? -ne 0 ]; then 48 echo 'dploy ALL=NOPASSWD: /bin/mount -o loop ?*' >> %{_sysconfdir}/sudoers 49 echo 'dploy ALL=NOPASSWD: /bin/umount ?*' >> %{_sysconfdir}/sudoers 50 fi 51 52 # Setup all required paths for tftpboot environment 53 pathpxe=`grep pathpxe %{_sysconfdir}/PBPROJ/dploy.conf | cut -d= -f2` 54 for p in $pathpxe $pathpxe/../mondorescue $pathpxe/../linuxcoe; do 55 if [ ! -d $p ]; then 56 mkdir -p $p 57 fi 58 chgrp dploy $p 59 chmod 775 $p 60 done 46 %{_bindir}/dploy-pxe-post 61 47 62 48 %changelog -
projects/dploy/pbconf/devel/dploy.pb
r445 r476 53 53 # List of files per pkg on which to apply filters 54 54 # Files are mentioned relatively to pbroot/defpkgdir 55 filteredfiles dploy-dhcp = install.sh,bin/dploy-add2dhcp 56 filteredfiles dploy-pxe = install.sh,bin/dploy-add2pxe 57 filteredfiles dploy-common = install.sh,Makefile.PL 55 filteredfiles dploy-dhcp = install.sh,bin/dploy-add2dhcp,dploy-dhcp-post 56 filteredfiles dploy-pxe = install.sh,bin/dploy-add2pxe,dploy-pxe-post 57 filteredfiles dploy-common = install.sh,Makefile.PL,bin/dploy-common-post 58 58 #filteredfiles pkg1-doc = configure.in
Note:
See TracChangeset
for help on using the changeset viewer.