Mercurial > dnsbl
annotate package @ 193:3ea79ef741a0
delay autowhitelisting to avoid out of office reply bots
author | carl |
---|---|
date | Sun, 11 Nov 2007 13:05:41 -0800 |
parents | 8f4a9a37d4d9 |
children | fbcf2733fe79 |
rev | line source |
---|---|
107 | 1 #!/bin/bash |
2 | |
192
8f4a9a37d4d9
delay autowhitelisting to avoid out of office reply bots
carl
parents:
152
diff
changeset
|
3 find . -name '*~' | while read a; do rm -f "$a"; done |
8f4a9a37d4d9
delay autowhitelisting to avoid out of office reply bots
carl
parents:
152
diff
changeset
|
4 |
148
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
117
diff
changeset
|
5 T=`grep AC_INIT configure.in | cut -d'(' -f2` |
107 | 6 NAME=`echo $T | cut -d, -f1` |
148
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
117
diff
changeset
|
7 VER=`echo $T | cut -d, -f2` |
107 | 8 BALL=$NAME-$VER.tar.gz |
9 web=/home/httpd/html/510sg/$NAME | |
10 distlog=/tmp/distcheck | |
11 | |
117 | 12 mkdir -p $web |
107 | 13 chown --recursive root:root * |
14 make -f *cvs | |
15 ./configure >/dev/null | |
16 (cd xml; make; make distclean) | |
113 | 17 cp -a html/*html $web |
107 | 18 make distcheck >$distlog 2>&1 |
19 if [ $? -eq 0 ]; then | |
20 if [ -f $BALL ]; then | |
21 # expand locally to see the tarball | |
22 rm -rf junk | |
113 | 23 mkdir junk |
24 cd junk | |
25 tar xfz ../$BALL | |
26 cd $NAME-$VER | |
27 ./configure >/dev/null | |
28 make >/dev/null | |
112 | 29 ## make install >/dev/null |
30 ## if [ -f /etc/rc.d/init.d/$NAME ]; then | |
31 ## /etc/rc.d/init.d/$NAME stop | |
32 ## fi | |
33 ## make chkconfig | |
34 ## if [ -f /etc/rc.d/init.d/$NAME ]; then | |
35 ## chkconfig $NAME on | |
36 ## /etc/rc.d/init.d/$NAME start | |
37 ## fi | |
113 | 38 cd .. |
39 cd .. | |
107 | 40 |
41 # build rpm on target | |
152 | 42 target5=pmg2 |
43 scp $BALL $target5:/tmp | |
44 ssh $target5 "cd /tmp; rpmbuild -ta $BALL" | |
45 | |
46 # build rpm on target | |
47 target4=host62 | |
48 scp $BALL $target4:/tmp | |
49 ssh $target4 "cd /tmp; rpmbuild -ta $BALL" | |
107 | 50 |
51 # add packages to the web site | |
52 wp=$web/packages | |
53 wp4=$wp/centos4 | |
152 | 54 wp5=$wp/centos5 |
55 mkdir -p $wp4 $wp5 | |
107 | 56 rp=/usr/src/redhat |
112 | 57 mv -f $BALL $wp |
152 | 58 scp $target4:$rp/SRPMS/$NAME-$VER*rpm $wp |
59 scp $target4:$rp/RPMS/i386/$NAME-$VER*rpm $wp4 | |
60 scp $target5:$rp/RPMS/i386/$NAME-$VER*rpm $wp5 | |
107 | 61 (cd $web; chown --recursive web:web *; ls -alR) |
62 rpm -ql -p $wp4/$NAME-$VER*6.rpm | |
152 | 63 rpm -ql -p $wp5/$NAME-$VER*6.rpm |
107 | 64 fi |
65 else | |
66 tail -10 $distlog | |
67 fi | |
68 chown --recursive carl:carl * |