|
From: Heiko Z. <smi...@us...> - 2004-04-24 00:59:02
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22039/scripts Added Files: libdvdcss libdvdread quagga vobcopy Log Message: replaced zebra with quagga initial checkin of libdvdread, libdvdcss and vobcopy --- NEW FILE: quagga --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/quagga,v $ # $Revision: 1.2 $ # $Date: 2004/04/24 00:58:54 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: quagga # Required-Start: $basebuildtools $libs # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings MYNAME=QUAGGA case $1 in build ) if [ "$CONFIG_QUAGGA" = "y" ]; then if [ ! -f devil-linux-quagga-patches.done ]; then touch devil-linux-quagga-patches.done bzcat $DL_DIR/src/ht-*-linux-rfc2385.patch.bz2 | patch -p0 || exit 1 fi ./configure --prefix=/usr --sysconfdir=/etc/zebra --localstatedir=/var/state/quagga --enable-snmp \ --enable-netlink --enable-vtysh --enable-linux-rfc2385 || exit 1 make $PMAKE || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_QUAGGA" = "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 copy_files $WORKDIR/tmp/usr $CDDIR || exit 1 copy_files $WORKDIR/tmp/etc $ETCDIR/ || exit 1 cp $MYDIR/scripts/quagga $ETCDIR/etc/init.d || exit 1 cp $MYDIR/scripts/bgpd $ETCDIR/etc/init.d || exit 1 cp $MYDIR/scripts/ospf6d $ETCDIR/etc/init.d || exit 1 cp $MYDIR/scripts/ospfd $ETCDIR/etc/init.d || exit 1 cp $MYDIR/scripts/ripd $ETCDIR/etc/init.d || exit 1 cp $MYDIR/scripts/ripngd $ETCDIR/etc/init.d || exit 1 rm -rf $WORKDIR/tmp || exit 1 groupadd -g 62 quagga || exit 1 useradd -u 62 -g quagga -s /bin/false quagga || exit 1 echo "# Start QUAGGA?" >> $CONFIGFILE echo "START_QUAGGA=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "# Start bgpd?" >> $CONFIGFILE echo "START_BGPD=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "# Start OSPFD?" >> $CONFIGFILE echo "START_OSPFD=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "# Start OSPF6D?" >> $CONFIGFILE echo "START_OSPF6D=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "# Start RIPD?" >> $CONFIGFILE echo "START_RIPD=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "# Start RIPNGD?" >> $CONFIGFILE echo "START_RIPNGD=no" >> $CONFIGFILE echo >> $CONFIGFILE echo "HELP_BGPD=\"BGPD Manages BGP-4 and BGP-4+ protocols\"" >> $SOFTWAREHELP echo "HELP_RIPD=\"RIPD Manages Manages RIPv1, v2 protocols\"" >> $SOFTWAREHELP echo "HELP_RIPNGD=\"RIPNGD Manages the RIPng protocol\"" >> $SOFTWAREHELP echo "HELP_OSPFD=\"OSPFD Manages the OSPFv2 protocol\"" >> $SOFTWAREHELP echo "HELP_OSPF6D=\"OSPF6D Manages the OSPFv3 protocol\"" >> $SOFTWAREHELP echo "HELP_QUAGGA=\"QUAGGA handles Kernel table updates for routing protocols\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: libdvdcss --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/libdvdcss,v $ # $Revision: 1.1 $ # $Date: 2004/04/24 00:58:54 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: libdvdcss # Required-Start: $basebuildtools glibc # Required-Stop: # Default-Start: 1 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) ./configure --prefix=/usr --localstatedir=/var || exit 1 make $PMAKE all || exit 1 strip_debug # install it in local system, because other programs could need it make install ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: vobcopy --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/vobcopy,v $ # $Revision: 1.1 $ # $Date: 2004/04/24 00:58:54 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: vobcopy # Required-Start: $basebuildtools $libs # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) if [ "$CONFIG_VOBCOPY" = "y" ]; then replace_str Makefile /usr/local /usr make $PMAKE || exit 1 strip_debug fi ;; install ) if [ "$CONFIG_VOBCOPY" = "y" ]; then copy_man cp vobcopy $CDDIR/usr/bin || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: libdvdread --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/libdvdread,v $ # $Revision: 1.1 $ # $Date: 2004/04/24 00:58:54 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: libdvdread # Required-Start: $basebuildtools glibc libdvdcss # Required-Stop: # Default-Start: 1 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) ./configure --prefix=/usr --localstatedir=/var || exit 1 make $PMAKE all || exit 1 strip_debug # install it in local system, because other programs could need it make install ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |