Mercurial > dnsbl
changeset 107:eeaaecda4acc
move to autoconf/automake/docbook
author | carl |
---|---|
date | Sun, 18 Dec 2005 09:50:25 -0800 |
parents | 2fbeeb4ced73 |
children | 1c7677042b78 |
files | clients.conf configure.in package package.bash |
diffstat | 4 files changed, 54 insertions(+), 34 deletions(-) [+] |
line wrap: on
line diff
--- a/clients.conf Sun Dec 18 09:39:53 2005 -0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -include "510sg.conf"; -include "ams.conf"; -include "davd.conf"; -include "mbmg.conf"; -include "neuro.conf"; -include "pmg.conf";
--- a/configure.in Sun Dec 18 09:39:53 2005 -0800 +++ b/configure.in Sun Dec 18 09:50:25 2005 -0800 @@ -1,7 +1,7 @@ AC_INIT(configure.in) AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(dnsbl,5.10) +AM_INIT_AUTOMAKE(dnsbl,5.11) AC_PATH_PROGS(BASH, bash) AC_LANG_CPLUSPLUS
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/package Sun Dec 18 09:50:25 2005 -0800 @@ -0,0 +1,53 @@ +#!/bin/bash + +T=`grep AM_INIT_AUTOMAKE configure.in | cut -d'(' -f2` +NAME=`echo $T | cut -d, -f1` +VER=`echo $T | cut -d, -f2 | cut -d')' -f1` +BALL=$NAME-$VER.tar.gz +web=/home/httpd/html/510sg/$NAME +distlog=/tmp/distcheck + +# make $BALL +chown --recursive root:root * +make -f *cvs +./configure >/dev/null +(cd xml; make; make distclean) +cp -a html/*html $web +make distcheck >$distlog 2>&1 +if [ $? -eq 0 ]; then + if [ -f $BALL ]; then + # expand locally to see the tarball + rm -rf junk + mkdir junk + cd junk + tar xfz ../$BALL + cd $NAME-$VER + ./configure >/dev/null + make >/dev/null + make install >/dev/null + if [ -f /etc/rc.d/init.d/$NAME ]; then + /etc/rc.d/init.d/$NAME stop + fi + make chkconfig + cd .. + cd .. + + # build rpm on target + target=host62 + scp $BALL $target:/tmp + ssh $target "cd /tmp; rpmbuild -ta $BALL >/dev/null 2>&1" + + # add packages to the web site + wp=$web/packages + wp4=$wp/centos4 + rp=/usr/src/redhat + cp -a $BALL $wp + scp $target:$rp/SRPMS/$NAME-$VER*rpm $wp4 + scp $target:$rp/RPMS/i386/$NAME-$VER*rpm $wp4 + (cd $web; chown --recursive web:web *; ls -alR) + rpm -ql -p $wp4/$NAME-$VER*6.rpm + fi +else + tail -10 $distlog +fi +chown --recursive carl:carl *
--- a/package.bash Sun Dec 18 09:39:53 2005 -0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -#!/bin/bash - -VER=dnsbl-5.10 -mkdir $VER - target1=/home/httpd/html/510sg/util/dnsbl.tar.gz - target2=/home/httpd/html/510sg/dnsbl/dnsbl.conf - target3=/home/httpd/html/510sg/dnsbl/index.html - - cp sample1.conf $VER/dnsbl.conf - cp sample.conf $VER - cp html-tags.conf $VER - cp hosts-ignore.conf $VER - cp tld.conf $VER - cp *.cpp *.h *.rc $VER - cp install.bash $VER - cp *spec $VER - cp LICENSE $VER - cp RELEASE_NOTES $VER - tar cfvz $target1 $VER - - cp sample.conf $target2 - cp dnsbl.html $target3 - - scp $target1 ns1:$target1 - scp $target2 ns1:$target2 - scp $target3 ns1:$target3 -rm -rf $VER