From: <bl...@us...> - 2003-10-10 01:33:08
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv1345/scripts Modified Files: squid Added Files: portmap tcp_wrappers yp-tools ypbind-mt ypserv Log Message: Added NIS (YP), RPC Portmapper, and tcp_wrappers. --- NEW FILE: portmap --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/portmap,v $ # $Revision: 1.1 $ # $Date: 2003/10/10 01:32:55 $ # # http://www.devil-linux.org # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings source $MYDIR/functions MYNAME="PORTMAP" case $1 in build ) if [ "$CONFIG_PORTMAP" = "y" ]; then if [ ! -f .patch.done ]; then zcat $DL_DIR/src/portmap_5-1.diff.gz | patch || exit 1 zcat $DL_DIR/src/portmap_5-2.diff.gz | patch || exit 1 touch .patch.done fi make all || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_PORTMAP" = "y" ]; then cp portmap $CDDIR/sbin || exit 1 cp pmap_set pmap_dump $CDDIR/usr/sbin || exit 1 cp $MYDIR/scripts/portmap $ETCDIR/etc/init.d/ || exit 1 echo "# Start $MYNAME?" >> $CONFIGFILE echo "START_$MYNAME=no" >> $CONFIGFILE echo >> $CONFIGFILE || exit 1 echo "HELP_$MYNAME=\"$MYNAME is the RPC Portmapper\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: tcp_wrappers --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/tcp_wrappers,v $ # $Revision: 1.1 $ # $Date: 2003/10/10 01:32:55 $ # # http://www.devil-linux.org # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings source $MYDIR/functions MYNAME="TCP_WRAPPERS" case $1 in build ) if [ "$CONFIG_TCP_WRAPPERS" = "y" ]; then if [ ! -f .patch.done ]; then zcat $DL_DIR/src/tcp_wrappers_7.6.diff.gz | patch || exit 1 touch .patch.done fi make linux || exit 1 strip_debug cp libwrap.a /usr/lib || exit 1 fi ;; install ) if [ "$CONFIG_TCP_WRAPPERS" = "y" ]; then cp tcpdmatch tcpdchk safe_finger tcpd try-from $CDDIR/usr/sbin/ || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: yp-tools --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/yp-tools,v $ # $Revision: 1.1 $ # $Date: 2003/10/10 01:32:55 $ # # http://www.devil-linux.org # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings source $MYDIR/functions MYNAME="YP-TOOLS" case $1 in build ) if [ "$CONFIG_NIS" = "y" ]; then ./configure --prefix=/usr --sysconfdir=/etc || exit 1 make $PMAKE all || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_NIS" = "y" ]; then rm -rf $WORKDIR/tmp || exit 1 mkdir -p $WORKDIR/tmp || exit 1 make install DESTDIR=$WORKDIR/tmp || exit 1 copy_docs $WORKDIR/tmp rm -f $CDDIR/bin/domainname $CDDIR/bin/nisdomainname $CDDIR/bin/ypdomainname cp -dpR $WORKDIR/tmp/* $CDDIR || exit 1 cp etc/nsswitch.conf $ETCDIR/etc/nsswitch.conf.nis || exit 1 rm -rf $WORKDIR/tmp || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: ypbind-mt --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/ypbind-mt,v $ # $Revision: 1.1 $ # $Date: 2003/10/10 01:32:55 $ # # http://www.devil-linux.org # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings source $MYDIR/functions MYNAME="YPBIND" case $1 in build ) if [ "$CONFIG_NIS" = "y" ]; then ./configure --prefix=/usr --sysconfdir=/etc || exit 1 make $PMAKE all || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_NIS" = "y" ]; then rm -rf $WORKDIR/tmp || exit 1 mkdir -p $WORKDIR/tmp || exit 1 make install DESTDIR=$WORKDIR/tmp || exit 1 copy_docs $WORKDIR/tmp cp -dpR $WORKDIR/tmp/* $CDDIR || exit 1 cp etc/yp.conf $ETCDIR/etc/ || exit 1 cp $MYDIR/scripts/ypbind $ETCDIR/etc/init.d/ || exit 1 rm -rf $WORKDIR/tmp || exit 1 echo "# Start $MYNAME?" >> $CONFIGFILE echo "START_$MYNAME=no" >> $CONFIGFILE echo >> $CONFIGFILE || exit 1 echo "HELP_$MYNAME=\"$MYNAME is the NIS client\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: ypserv --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/ypserv,v $ # $Revision: 1.1 $ # $Date: 2003/10/10 01:32:55 $ # # http://www.devil-linux.org # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings source $MYDIR/functions MYNAME="YPSERV" case $1 in build ) if [ "$CONFIG_NIS" = "y" ]; then ./configure --prefix=/usr --sysconfdir=/etc || exit 1 make $PMAKE all || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_NIS" = "y" ]; then rm -rf $WORKDIR/tmp || exit 1 mkdir -p $WORKDIR/tmp || exit 1 make install DESTDIR=$WORKDIR/tmp || exit 1 copy_docs $WORKDIR/tmp cp -dpR $WORKDIR/tmp/* $CDDIR || exit 1 rm -rf $WORKDIR/tmp || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac Index: squid =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/squid,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- squid 9 Oct 2003 01:48:14 -0000 1.12 +++ squid 10 Oct 2003 01:32:55 -0000 1.13 @@ -17,6 +17,12 @@ case $1 in build ) if [ "$CONFIG_SQUID" = "y" ]; then + if [ ! -f .yp-patch.done ]; then + pushd helpers/basic_auth/YP/ > /dev/null + bzcat $DL_DIR/src/yp_auth.patch.bz2 | patch || exit 1 + popd > /dev/null + touch .yp-patch.done + fi ./configure --prefix=/usr --sysconfdir=/etc --bindir=/usr/sbin --libexecdir=/usr/sbin \ --datadir=/usr/share/squid --localstatedir=/var/squid --sharedstatedir=/var/squid \ --enable-delay-pools --enable-useragent-log --enable-referer-log --enable-arp-acl \ |