Changeset 1048
- Timestamp:
- 01/01/08 02:21:20 (1 year ago)
- Files:
-
- 5200R/trunk/ui/base-bluequartz.mod/Makefile (modified) (1 diff)
- 5200R/trunk/ui/base-bluequartz.mod/glue/Makefile (modified) (2 diffs)
- 5200R/trunk/ui/base-bluequartz.mod/glue/configs/procmail (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/configs/sendmail/aliases (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/configs/sendmail/sendmail.pam (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/etc/logrotate.d (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/etc/rc.d/init.d/dbrecover (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/sbin/db_checkpoint.pl (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/scripts/enablePwdb.pl (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/scripts/enableQuota.sh (modified) (1 diff)
- 5200R/trunk/ui/base-bluequartz.mod/glue/scripts/initPam.sh (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/scripts/initProcmail.sh (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/triggers/centos-yumconf (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/triggers/initscripts/ifup (added)
- 5200R/trunk/ui/base-bluequartz.mod/glue/triggers/initscripts/ifup-CentOS3 (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/triggers/initscripts/ifup-CentOS4 (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/triggers/initscripts/ifup-FC1 (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/triggers/iptables/iptables-CentOS3.init (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/triggers/iptables/iptables-CentOS4.init (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/triggers/iptables/iptables-FC1.init (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/triggers/iptables/iptables.init (added)
- 5200R/trunk/ui/base-bluequartz.mod/glue/triggers/sendmail (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/triggers/webalizer/webalizer-fc1.conf (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/glue/triggers/webalizer/webalizer.conf (modified) (4 diffs)
- 5200R/trunk/ui/base-bluequartz.mod/glue/triggers/yum (deleted)
- 5200R/trunk/ui/base-bluequartz.mod/templates/rpmdefs.tmpl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
5200R/trunk/ui/base-bluequartz.mod/Makefile
r964 r1048 7 7 SERVICE=bluequartz 8 8 9 BUILD=200 610129 BUILD=20070624 10 10 11 VERSION=5 100R12 RELEASE= 1.$(BUILD)BQ7511 VERSION=5200R 12 RELEASE=0.$(BUILD)BQ1 13 13 14 14 # add a buildarch if desired 5200R/trunk/ui/base-bluequartz.mod/glue/Makefile
r964 r1048 1 BUILD=200 610121 BUILD=20070624 2 2 PRODUCT=$(shell \ 3 if [ -f /etc/fedora-release ] && [ "`rpm -q --qf=%{version} fedora-release`" = "1" ]; then echo '5100'; fi; \ 4 if [ -f /etc/redhat-release ] && [ "`rpm -q --qf=%{version} centos-release`" = "3" ]; then echo '5101'; fi; \ 5 if [ -f /etc/redhat-release ] && [ "`rpm -q --qf=%{version} centos-release`" = "4" ]; then \ 6 if [ "`rpm -q --qf=%{arch} centos-release`" = "i386" ]; then echo '5102'; fi; \ 7 if [ "`rpm -q --qf=%{arch} centos-release`" = "x86_64" ]; then echo '5103'; fi; \ 8 if [ "`rpm -q --qf=%{arch} centos-release`" = "ppc" ]; then echo '5104'; fi; \ 9 if [ "`rpm -q --qf=%{arch} centos-release`" = "alpha" ]; then echo '5105'; fi; \ 3 if [ -f /etc/redhat-release ] && [ "`rpm -q --qf=%{version} centos-release`" = "5" ]; then \ 4 if [ "`rpm -q --qf=%{arch} centos-release`" = "i386" ]; then echo '5200'; fi; \ 5 if [ "`rpm -q --qf=%{arch} centos-release`" = "x86_64" ]; then echo '5201'; fi; \ 10 6 fi; \ 11 7 ) … … 23 19 mkdir -p $(PREFIX)/usr/sausalito/scripts 24 20 mkdir -p $(PREFIX)/usr/sausalito/runonce 25 tar cBf - --exclude '*CVS*' etc | (cd $(PREFIX)/ ; tar xBf -)21 tar cBf - --exclude '*CVS*' --exclude '.svn' etc | (cd $(PREFIX)/ ; tar xBf -) 26 22 cat etc/build | sed -e 's/XX_BUILD_XX/$(BUILD)/' | \ 27 23 sed -e 's/XX_PRODUCT_XX/$(PRODUCT)/g' > $(PREFIX)/etc/build 28 tar cBf - --exclude '*CVS*' triggers | (cd $(PREFIX)/usr/sausalito/ ; tar xBf -)24 tar cBf - --exclude '*CVS*' --exclude '.svn' triggers | (cd $(PREFIX)/usr/sausalito/ ; tar xBf -) 29 25 mkdir -p $(PREFIX)/var/www/html 30 26 install -m 0644 httpd/index.html $(PREFIX)/var/www/html/index.html 31 tar cBf - --exclude '*CVS*' sbin | (cd $(PREFIX)/usr/sausalito ; tar xBf -)32 tar cBf - --exclude '*CVS*' scripts | (cd $(PREFIX)/usr/sausalito ; tar xBf -)33 tar cBf - --exclude '*CVS*' configs | (cd $(PREFIX)/usr/sausalito ; tar xBf -)27 tar cBf - --exclude '*CVS*' --exclude '.svn' sbin | (cd $(PREFIX)/usr/sausalito ; tar xBf -) 28 tar cBf - --exclude '*CVS*' --exclude '.svn' scripts | (cd $(PREFIX)/usr/sausalito ; tar xBf -) 29 tar cBf - --exclude '*CVS*' --exclude '.svn' configs | (cd $(PREFIX)/usr/sausalito ; tar xBf -) 5200R/trunk/ui/base-bluequartz.mod/glue/scripts/enableQuota.sh
r697 r1048 3 3 tmpfile='/etc/fstab.tmp' 4 4 5 grep '/home ' /etc/fstab > /dev/null 2>&15 grep '/home[[:blank:]]' /etc/fstab > /dev/null 2>&1 6 6 if [ $? -eq 0 ]; 7 7 then 5200R/trunk/ui/base-bluequartz.mod/glue/triggers/webalizer/webalizer.conf
r698 r1048 50 50 # is relative to the output directory, unless absolute (leading /). 51 51 52 HistoryName webalizer.hist52 HistoryName /var/lib/webalizer/webalizer.hist 53 53 54 54 # Incremental processing allows multiple partial log files to be used … … 74 74 # as 'yes' then this option has no meaning. 75 75 76 IncrementalName webalizer.current76 IncrementalName /var/lib/webalizer/webalizer.current 77 77 78 78 # ReportTitle is the text to display as the title. The hostname … … 108 108 PageType htm* 109 109 PageType cgi 110 PageType php 111 PageType shtml 110 112 #PageType phtml 111 113 #PageType php3 … … 230 232 231 233 # FoldSeqErr forces the Webalizer to ignore sequence errors. 232 # This is useful for Netscape and other web servers that cache 233 # the writing of log records and do not guarentee that they 234 # will be in chronological order. The use of the FoldSeqErr 235 # option will cause out of sequence log records to be treated 236 # as if they had the same time stamp as the last valid record. 237 # Default is to ignore out of sequence log records. 238 239 #FoldSeqErr no 234 # The Apache HTTP server may generate out-of-sequence log entries 235 # so this option is enabled. 236 237 FoldSeqErr no 240 238 241 239 # VisitTimeout allows you to set the default timeout for a visit 5200R/trunk/ui/base-bluequartz.mod/templates/rpmdefs.tmpl
r964 r1048 30 30 [AUTOFILL] 31 31 [BUILDARCH] 32 %if "%fedora" == "1" 33 Requires: pwdb >= 0.61.1-9BQ7 nss_db >= 2.2-22BQ3 34 %endif 35 %if "%centos" == "3" 36 Requires: pwdb >= 0.61.1-9BQ8 nss_db >= 2.2-20.4BQ1 37 %endif 38 %if "%centos" == "4" 39 Requires: pwdb >= 0.61.1-9BQ8 nss_db >= 2.2-29BQ1 php-mbstring 40 %endif 32 Requires: php-mbstring 41 33 42 34 %description [LABEL] … … 66 58 %dir /etc/locks 67 59 %config /etc/rc.d/init.d/* 68 %config /etc/logrotate.d/*69 60 %config /etc/cron.d/* 70 61 %attr(0755,root,root) /usr/sausalito/sbin/* … … 113 104 fi 114 105 115 # update sendmail.cf 116 /bin/grep 'setup for Blue Quartz' /etc/mail/sendmail.mc > /dev/null 2>&1 117 if [ $? = 0 ]; then 118 /bin/mv /etc/mail/sendmail.mc /etc/mail/sendmail.mc.bqold 119 /bin/mv /etc/mail/sendmail.cf /etc/mail/sendmail.cf.bqold 120 /usr/sausalito/scripts/initSendmail.sh 121 fi 122 123 # update procmailrc 124 if [ ! -f /etc/procmailrc ]; then 125 /usr/sausalito/scripts/initProcmail.sh 126 else 127 grep '^ORGMAIL=$HOME/mbox' /etc/procmailrc > /dev/null 2>%1 128 if [ $? = 1 ]; then 129 echo 'ORGMAIL=$HOME/mbox' >> /etc/procmailrc 130 fi 131 grep '^DEFAULT=$ORGMAIL' /etc/procmailrc > /dev/null 2>%1 132 if [ $? = 1 ]; then 133 echo 'DEFAULT=$ORGMAIL' >> /etc/procmailrc 134 fi 135 fi 136 137 if [ -f /etc/sysconfig/saslauthd ]; then 138 /usr/bin/perl -pi -e 's|^MECH=shadow|MECH=pam|g' /etc/sysconfig/saslauthd 139 else 140 echo 'MECH=pam' > /etc/sysconfig/saslauthd 141 fi 106 # sync email services 142 107 /usr/sausalito/constructor/base/email/syncEmailService.pl 143 108 144 # Register the dbrecover service 145 /sbin/chkconfig --add dbrecover 109 # Register the bluequartz service 146 110 /sbin/chkconfig --add bluequartz 147 111 … … 181 145 182 146 %triggerin glue -- webalizer 183 %if "%fedora" == "1"184 /bin/cp /usr/sausalito/triggers/webalizer/webalizer-fc1.conf /etc/webalizer.conf185 %else186 147 /bin/cp /usr/sausalito/triggers/webalizer/webalizer.conf /etc/webalizer.conf 187 %endif188 148 189 149 %triggerin glue -- httpd … … 197 157 198 158 %triggerin glue -- sendmail 199 if [ ! -f /etc/mail/aliases ]; then 200 if [ -f /etc/mail/aliases.rpmsave ]; then 201 /bin/mv /etc/mail/aliases.rpmsave /etc/mail/aliases 202 else 203 /bin/cp /usr/sausalito/configs/sendmail/aliases /etc/mail/aliases 204 fi 159 if [ ! -f /etc/aliases ]; then 205 160 /etc/init.d/sendmail condrestart 206 161 fi … … 209 164 /usr/share/sendmail-cf/hack/popauth.m4 210 165 fi 211 /bin/cp /usr/sausalito/triggers/sendmail/smtp.sendmail /etc/pam.d/smtp.sendmail212 166 213 167 # for distributions 214 %if "%centos" == "4"215 %triggerin glue -- centos-yumconf216 /bin/cp /usr/sausalito/triggers/centos-yumconf/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo217 168 %triggerin glue -- iptables 218 /bin/cp /usr/sausalito/triggers/iptables/iptables -CentOS4.init /etc/init.d/iptables169 /bin/cp /usr/sausalito/triggers/iptables/iptables.init /etc/init.d/iptables 219 170 %triggerin glue -- initscripts 220 /bin/cp /usr/sausalito/triggers/initscripts/ifup-CentOS4 /sbin/ifup 221 %endif 171 /bin/cp /usr/sausalito/triggers/initscripts/ifup /sbin/ifup 222 172 223 173 %triggerin glue -- dovecot 224 /bin/cat /etc/dovecot.conf | \ 225 /bin/sed -e 's|#default_mail_env =|default_mail_env = mbox:~/mail/:INBOX=mbox|' \ 226 -e 's|#pop3_uidl_format = %08Xu%08Xv|pop3_uidl_format = %08Xu%08Xv|' \ 227 > /etc/dovecot.conf.new 228 /bin/mv /etc/dovecot.conf.new /etc/dovecot.conf 229 230 %if "%centos" == "3" 231 %triggerin glue -- yum 232 /bin/cp /usr/sausalito/triggers/yum/yum-centos3.conf /etc/yum.conf 233 %triggerin glue -- iptables 234 /bin/cp /usr/sausalito/triggers/iptables/iptables-CentOS3.init /etc/init.d/iptables 235 %triggerin glue -- initscripts 236 /bin/cp /usr/sausalito/triggers/initscripts/ifup-CentOS3 /sbin/ifup 237 %endif 238 239 %if "%fedora" == "1" 240 %triggerin glue -- yum 241 /bin/cp /usr/sausalito/triggers/yum/yum-fc1.conf /etc/yum.conf 242 %triggerin glue -- iptables 243 /bin/cp /usr/sausalito/triggers/iptables/iptables-FC1.init /etc/init.d/iptables 244 %triggerin glue -- initscripts 245 /bin/cp /usr/sausalito/triggers/initscripts/ifup-FC1 /sbin/ifup 246 %endif 174 #/bin/cat /etc/dovecot.conf | \ 175 #/bin/sed -e 's|#default_mail_env =|default_mail_env = mbox:~/mail/:INBOX=mbox|' \ 176 #-e 's|#pop3_uidl_format = %08Xu%08Xv|pop3_uidl_format = %08Xu%08Xv|' \ 177 #> /etc/dovecot.conf.new 178 #/bin/mv /etc/dovecot.conf.new /etc/dovecot.conf 247 179 <end $TRIGGERIN> 248 180 249 181 <begin $TRIGGERUN> 250 182 %triggerpostun glue -- sendmail 251 if [ ! -f /etc/mail/aliases ]; then 252 if [ -f /etc/mail/aliases.rpmsave ]; then 253 /bin/mv /etc/mail/aliases.rpmsave /etc/mail/aliases 254 else 255 /bin/cp /usr/sausalito/configs/sendmail/aliases /etc/mail/aliases 256 fi 183 if [ ! -f /etc/aliases ]; then 257 184 /etc/init.d/sendmail condrestart 258 185 fi … … 260 187 261 188 <begin $CHANGELOG> 189 * Tue Jan 01 2008 Hisao SHIBUYA <shibuya@bluequartz.org> 0.20080101BQ2 190 - remove initSpool.sh to store the mail on homedir. 191 192 * Sun May 06 2007 Hisao SHIBUYA <shibuya@bluequartz.org> 0.20070624BQ1 193 - build for 5200R on CentOS5. 194 262 195 * Thu Oct 12 2006 Hisao SHIBUYA <shibuya@alpha.or.jp> 1.20061012BQ75 263 196 - fixed capability issue on dnsAdmin.
