Changeset 734 in ProjectBuilder for projects/linuxcoe/pbconf/cvs/linuxcoe-sd-base/rpm/linuxcoe-sd-base.spec
- Timestamp:
- Mar 11, 2009, 6:48:41 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.