Changeset 734 in ProjectBuilder for projects/linuxcoe/pbconf/cvs/linuxcoe-sd-base
- Timestamp:
- Mar 11, 2009, 6:48:41 AM (15 years ago)
- Location:
- projects/linuxcoe/pbconf/cvs/linuxcoe-sd-base
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/linuxcoe/pbconf/cvs/linuxcoe-sd-base/deb/conffiles
r384 r734 1 PB ETCINSTALL/linuxcoe.rc2 PB ETCINSTALL/includes/config.state3 PB ETCINSTALL/includes/LinuxCOE-SystemDesigner.conf4 PB ETCINSTALL/includes/sudoers1 PBsysconfdir/linuxcoe.rc 2 PBsysconfdir/includes/config.state 3 PBsysconfdir/includes/LinuxCOE-SystemDesigner.conf 4 PBsysconfdir/includes/sudoers -
projects/linuxcoe/pbconf/cvs/linuxcoe-sd-base/deb/control
r384 r734 8 8 Package: PBPKG 9 9 Architecture: all 10 Depends: perl, perl-modules, exim | mail-transport-agent, apache2, genisoimage | mkisofs, sudo10 Depends: PBDEP 11 11 Suggests: linuxcoe-sd-docs, palo, libdbi-perl 12 Recommends: linuxcoe-sd-data-centos, linuxcoe-sd-data-debian, linuxcoe-sd-data-fedora, linuxcoe-sd-data-nld, linuxcoe-sd-data-opensuse, linuxcoe-sd-data-rhel, linuxcoe-sd-data-scientific, linuxcoe-sd-data-sles, linuxcoe-sd-data-suse, linuxcoe-sd-data-ubuntu 12 Recommends: linuxcoe-sd-data 13 Provides: PBPROVIDE 13 14 Description: LinuxCOE SystemDesigner web interface 14 15 LinuxCOE SystemDesigner is a unifying web application that allows -
projects/linuxcoe/pbconf/cvs/linuxcoe-sd-base/deb/dirs
r384 r734 1 PB ROOTINSTALL1 PBprefix 2 2 /usr/share/doc/linuxcoe-sd-base 3 PB ETCINSTALL4 PB VARINSTALL/cache/linuxcoe-sd5 PB VARINSTALL/lib/linuxcoe-sd6 PB VARINSTALL/log/linuxcoe-sd3 PBsysconfdir 4 PBlocalstatedir/cache/linuxcoe-sd 5 PBlocalstatedir/lib/linuxcoe-sd 6 PBlocalstatedir/log/linuxcoe-sd -
projects/linuxcoe/pbconf/cvs/linuxcoe-sd-base/deb/postinst
r384 r734 21 21 configure) 22 22 23 PB ROOTINSTALL/bin/post-actions -i23 PBprefix/bin/post-actions -i 24 24 25 25 ;; -
projects/linuxcoe/pbconf/cvs/linuxcoe-sd-base/deb/prerm
r384 r734 21 21 remove|upgrade|deconfigure) 22 22 23 PB ROOTINSTALL/bin/post-actions -u23 PBprefix/bin/post-actions -u 24 24 25 25 ;; -
projects/linuxcoe/pbconf/cvs/linuxcoe-sd-base/deb/rules
r722 r734 32 32 #./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" 33 33 ./configure \ 34 webalias="PBWEBALIAS" \ 35 webworkdir="PBWEBWORKDIR" \ 36 httpdcfgdir="PBHTTPDCONF" \ 37 docrootdir="PBHTTPDDOCROOT" \ 38 httpd_user="PBHTTPDUSER" \ 39 httpd_group="PBHTTPDGROUP" \ 40 sudoers_cfg="PBSUDOERS" \ 41 --prefix=PBROOTINSTALL \ 42 --sysconfdir=PBETCINSTALL \ 43 --localstatedir=PBVARINSTALL \ 34 webalias="PBwebalias" \ 35 webworkdir="PBwebworkdir" \ 36 httpdcfgdir="PBhttpdcfgdir" \ 37 httpd_user="PBhttpd_user" \ 38 httpd_group="PBhttpd_group" \ 39 sudoers_cfg="PBsudoers_cfg" \ 40 --prefix=PBprefix \ 41 --sysconfdir=PBsysconfdir \ 42 --localstatedir=PBlocalstatedir \ 44 43 --host=$(DEB_HOST_GNU_TYPE) \ 45 44 --build=$(DEB_BUILD_GNU_TYPE) \ 46 45 --without-MKISOFS \ 46 --without-PERLMOD \ 47 47 --without-PALO \ 48 --without-PERLMOD \49 48 --without-SENDMAIL \ 50 49 --without-APACHECTL \ -
projects/linuxcoe/pbconf/cvs/linuxcoe-sd-base/pbfilter/rpm.pbf
r384 r734 6 6 7 7 # PBDEP is replaced by the list of dependencies 8 filter PBDEP = httpd, mkisofs 8 filter PBDEP = genisoimage, httpd, perl, sudo 9 10 filter PBPROVIDE = linuxcoe-sd -
projects/linuxcoe/pbconf/cvs/linuxcoe-sd-base/rpm/linuxcoe-sd-base.spec
r384 r734 1 Summary: LinuxCOE SystemDesigner web interface2 1 Name: PBPKG 3 2 Version: PBVER 4 3 Release: PBTAGPBSUF 4 Summary: LinuxCOE SystemDesigner web interface 5 6 Group: PBGRP 5 7 License: GPL 6 8 URL: http://linuxcoe.sourceforge.net/ 7 Group: PBGRP8 # Copyright: 2000-2007 Hewlett-Packard Development Company, L.P9 # Original Packager: Louis Bouchard <louis.bouchard@hp.com>10 #11 # Source Section12 #13 9 Source: PBSRC 10 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) 14 11 15 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)16 12 BuildArch: noarch 17 Requires: perl, sudo, PBDEP 13 #BuildRequires: ?? 14 Requires: PBDEP 15 Provides: PBPROVIDE 18 16 19 17 %description … … 25 23 and retrofit already deployed systems by overlaying other value-add components. 26 24 25 %prep 27 26 28 %prep29 27 %setup -q 30 28 31 29 %build 32 # For the moment done here. Would be better to give it to pb. Needs discussion 33 export httpdcfgdir=PBHTTPDCONF 34 export docrootdir=PBHTTPDDOCROOT 35 export httpd_user=PBHTTPDUSER 36 export httpd_group=PBHTTPDGROUP 37 export sudoers_cfg=PBSUDOERS 38 export webalias=PBWEBALIAS 39 export webworkdir=PBWEBWORKDIR 40 41 # macro configure doesn't work. (Do not put a percent before the word) 42 ./configure --prefix=PBROOTINSTALL --sysconfdir=PBETCINSTALL --localstatedir=%{_var} --mandir=%{_mandir} --without-APACHECTL --without-SUDO --without-PERLMOD --without-MKISOFS --without-SENDMAIL 43 make 30 ./configure \ 31 webalias="PBwebalias" \ 32 webworkdir="PBwebworkdir" \ 33 httpdcfgdir="PBhttpdcfgdir" \ 34 httpd_user="PBhttpd_user" \ 35 httpd_group="PBhttpd_group" \ 36 sudoers_cfg="PBsudoers_cfg" \ 37 --prefix=PBprefix \ 38 --sysconfdir=PBsysconfdir \ 39 --localstatedir=%{_var} \ 40 --without-MKISOFS \ 41 --without-PERLMOD \ 42 --without-PALO \ 43 --without-SENDMAIL \ 44 --without-APACHECTL \ 45 --without-SUDO 44 46 45 47 %install 46 %{__rm} -rf %{buildroot} 47 make DESTDIR="$RPM_BUILD_ROOT" install 48 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d 49 export VARLOG=%{_var}/log 50 cat > $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/LinuxCOE << EOF 51 $VARLOG/* { 52 create 640 PBHTTPDUSER PBHTTPDGROUP 53 rotate 4 54 monthly 55 missingok 56 compress 57 prerotate 58 /etc/init.d/httpd closelogs > /dev/null 2>&1 59 endscript 60 postrotate 61 /etc/init.d/httpd closelogs > /dev/null 2>&1 62 endscript 63 } 64 EOF 48 %{__rm} -rf $RPM_BUILD_ROOT 49 make DESTDIR=$RPM_BUILD_ROOT install 65 50 66 %post 67 # 68 # Invoke post action script 69 # 70 PBROOTINSTALL/bin/post-actions -i -v 71 /etc/init.d/httpd reload 72 if [ -x /usr/sbin/selinuxenabled ]; then 73 /usr/sbin/selinuxenabled 74 if [ $? -eq 0 ]; then 75 echo "WARNING: desactivating SELinux as it is not yet compatible with" 76 echo "LinuxCOE systemDesigner. You'll have to reboot to take it in account" 77 perl -pi -e 's/SELINUX=.*/SELINUX=disabled/' /etc/sysconfig/selinux 78 fi 79 fi 80 81 # THis is not clear at the moment when doing -U updates 82 # this tend to be called after the %post above thus 83 # defeating that task :-( 84 #%preun 85 #if [ -x PBROOTINSTALL/bin/post-actions ]; then 86 #PBROOTINSTALL/bin/post-actions -u -v 87 #fi 88 #perl -pi -e 's/^PBHTTPDUSER.*//' /etc/sudoers 89 #/etc/init.d/httpd reload 51 # scriptlets 90 52 91 53 %clean … … 93 55 94 56 %files 95 %defattr(-,root,root) 96 %config(noreplace) PBETCINSTALL 97 %config %{_sysconfdir}/logrotate.d/LinuxCOE 57 %defattr(-,root,root,-) 58 %config(noreplace) PBsysconfdir/linuxcoe.rc 59 %config(noreplace) PBsysconfdir/includes/LinuxCOE-SystemDesigner.conf 60 %config(noreplace) PBsysconfdir/includes/config.state 61 %config(noreplace) PBsysconfdir/includes/sudoers 62 %config(noreplace) /etc/logrotate.d/LinuxCOE-SystemDesigner 98 63 %doc AUTHORS ChangeLog COPYING INSTALL NEWS README 99 %{_var}/cache/ *100 %{_var}/l og/*101 %{_ localstatedir}/*102 PB ROOTINSTALL64 %{_var}/cache/PBPROVIDE 65 %{_var}/lib/PBPROVIDE 66 %{_var}/log/PBPROVIDE 67 PBprefix 103 68 104 69 %changelog
Note:
See TracChangeset
for help on using the changeset viewer.