|
From: Serge L. <sma...@us...> - 2006-01-15 11:18:46
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16127 Modified Files: Tag: rel-1-2-patches portslave ppp Added Files: Tag: rel-1-2-patches radiusclient Log Message: - ppp updated to 4.2.3 - fixed portslave compilation --- NEW FILE: radiusclient --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/Attic/radiusclient,v $ # $Revision: 1.1.2.1 $ # $Date: 2006/01/15 11:18:35 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: radiusclient # 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= case $1 in build ) if [ "$CONFIG_PPP" = "y" ] && [ "$CONFIG_PORTSLAVE" = "y" ]; then ./configure -prefix=/usr --sysconfdir=/etc make strip_debug make install fi ;; install ) if [ "$CONFIG_PPP" = "y" ] && [ "$CONFIG_PORTSLAVE" = "y" ]; then rm -rf $TMPDIR || exit 1 mkdir -p $TMPDIR || exit 1 make install DESTDIR=$TMPDIR || exit 1 rm -rf $TMPDIR/usr/include || exit 1 # rm -f $TMPDIR/usr/lib/libradiusclient.*a || exit 1 copy_files $TMPDIR/usr $CDDIR || exit 1 copy_files $TMPDIR/etc $ETCDIR/ || exit 1 rm -rf $TMPDIR || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac Index: ppp =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/ppp,v retrieving revision 1.15.2.3 retrieving revision 1.15.2.4 diff -u -d -r1.15.2.3 -r1.15.2.4 --- ppp 15 Aug 2005 13:05:25 -0000 1.15.2.3 +++ ppp 15 Jan 2006 11:18:35 -0000 1.15.2.4 @@ -10,7 +10,7 @@ ### BEGIN INIT INFO # Provides: ppp -# Required-Start: $basebuildtools $libs pptp-patches pppoe-patch4 portslave +# Required-Start: $basebuildtools $libs pptp-patches pppoe-patch4 # Required-Stop: # Default-Start: 1 2 # Default-Stop: @@ -27,37 +27,39 @@ case $1 in build ) - if [ "$CONFIG_PPP" = "y" ]; then - if [ ! -e .patches_done ]; then - cat ../ppp-patches/* | patch -p1 || exit 1 - touch .patches_done - fi - ./configure || exit 1 - replace_str pppd/Makefile "#CBCP=y" "CBCP=y" - replace_str pppd/Makefile "USE_PAM=y" "#USE_PAM=y" - replace_str pppd/plugins/Makefile.linux "# SUBDIRS += radius" "SUBDIRS += radius" - make $PMAKE all || exit 1 - strip_debug - - # install it so other programs know we're here - make install + if [ "$CONFIG_PPP" = "y" ]; then + if [ ! -e .patches_done ]; then + cat ../ppp-patches/* | patch -p1 || exit 1 + touch .patches_done fi - ;; + ./configure --prefix=/usr || exit 1 + replace_str pppd/Makefile "#CBCP=y" "CBCP=y" +# replace_str pppd/Makefile "USE_PAM=y" "#USE_PAM=y" + replace_str pppd/plugins/Makefile.linux "# SUBDIRS += radius" "SUBDIRS += radius" + replace_str pppd/Makefile 'LIBDIR = $(DESTDIR)/usr/lib/$(shell' 'LIBDIR = /lib/$(shell' + make $PMAKE all || exit 1 + strip_debug + + # install it so other programs know we're here + make install + fi + ;; install ) - if [ "$CONFIG_PPP" = "y" ]; then - rm -rf $WORKDIR/tmp || exit 1 - mkdir -p $WORKDIR/tmp || exit 1 - make install DESTDIR=$WORKDIR/tmp || exit 1 - rm -rf $WORKDIR/tmp/usr/include || exit 1 - copy_docs $WORKDIR/tmp || exit 1 - copy_files $WORKDIR/tmp/usr $CDDIR/ || exit 1 - copy_files $WORKDIR/tmp/etc $ETCDIR/ || exit 1 - mkdir -p $CDDIR/var/run/ppp || exit 1 - touch $CDDIR/var/run/ppp/resolv.conf || exit 1 - rm -rf $WORKDIR/tmp || exit 1 - fi - ;; + if [ "$CONFIG_PPP" = "y" ]; then + rm -rf $TMPDIIR || exit 1 + mkdir -p $TMPDIR || exit 1 + make install install-etcppp DESTDIR=$TMPDIR || exit 1 + rm -rf $TMPDIR/include || exit 1 + copy_docs $TMPDIR || exit 1 + copy_files $TMPDIR/etc $ETCDIR/ || exit 1 + rm -rf $TMPDIR/etc || exit 1 + cp -ar $TMPDIR/* $CDDIR/usr/ || exit 1 + mkdir -p $CDDIR/var/run/ppp || exit 1 + touch $CDDIR/var/run/ppp/resolv.conf || exit 1 + rm -rf $TMPDIR || exit 1 + fi + ;; * ) echo "ERROR ($0)" Index: portslave =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/portslave,v retrieving revision 1.15 retrieving revision 1.15.2.1 diff -u -d -r1.15 -r1.15.2.1 --- portslave 11 Jan 2004 14:43:05 -0000 1.15 +++ portslave 15 Jan 2006 11:18:35 -0000 1.15.2.1 @@ -10,7 +10,7 @@ ### BEGIN INIT INFO # Provides: portslave -# Required-Start: $basebuildtools $libs +# Required-Start: $basebuildtools $libs radiusclient ppp # Required-Stop: # Default-Start: 1 2 # Default-Stop: @@ -28,9 +28,9 @@ case $1 in build ) if [ "$CONFIG_PPP" = "y" ] && [ "$CONFIG_PORTSLAVE" = "y" ]; then - PPPDIR=$(find_src_dir ppp) - PPPDIR=${PPPDIR##/*/} - PATCHDIR=$(pwd)/patches/$PPPDIR + #PPPDIR=$(find_src_dir ppp) + #PPPDIR=${PPPDIR##/*/} + #PATCHDIR=$(pwd)/patches/$PPPDIR # patch pppd #pushd ../$PPPDIR > /dev/null || exit 1 #for PATCH in $(ls $PATCHDIR/*.diff) @@ -38,9 +38,10 @@ #patch -p1 < $PATCH || exit 1 #done #popd > /dev/null || exit 1 - ln -sf ../$PPPDIR ppp-2.4.1 - echo "" > extract_and_patch.in - ./configure --prefix=/usr --with-pppdir=$PPPDIR --sysconfdir=/etc/portslave --enable-ipv6 || exit 1 + # ln -sf ../$PPPDIR ppp-2.4.1 + # echo "" > extract_and_patch.in + #./configure --prefix=/usr --with-pppdir=$PPPDIR --sysconfdir=/etc/portslave --enable-ipv6 || exit 1 + ./configure --prefix=/usr --enable-shadow --enable-ipv6 --with-pppdradius=/usr/sbin/pppd || exit 1 make $PMAKE -C src dep make $PMAKE || exit 1 strip_debug @@ -49,15 +50,17 @@ install ) if [ "$CONFIG_PPP" = "y" ] && [ "$CONFIG_PORTSLAVE" = "y" ]; then - rm -rf $WORKDIR/tmp || exit 1 - mkdir -p $WORKDIR/tmp || exit 1 - make install INST_PREFIX=$WORKDIR/tmp || exit 1 + rm -rf $TMPDIR || exit 1 + mkdir -p $TMPDIR || exit 1 + make install DESTDIR=$TMPDIR || exit 1 mkdir -p $DOCDIR/portslave || exit 1 cp -p docs/* $DOCDIR/portslave || exit 1 - copy_docs $WORKDIR/tmp - copy_files $WORKDIR/tmp/usr $CDDIR || exit 1 - copy_files $WORKDIR/tmp/etc $ETCDIR/ || exit 1 - rm -rf $WORKDIR/tmp || exit 1 + copy_docs $TMPDIR + copy_files $TMPDIR/usr $CDDIR || exit 1 +# copy_files $TMPDIR/etc $ETCDIR/ || exit 1 + install -d -m 755 -o root $ETCDIR/etc/portslave/ + install -c -m 644 pslave.conf $ETCDIR/etc/portslave/pslave.conf.sample + rm -rf $TMPDIR || exit 1 fi ;; |