#!/bin/bash ## src2pkg script for: ppp ## Auto-generated by sb2sp-0.6 ## sb2sp - Copyright 2009-2010 Gilbert Ashley ## This script is based on ppp.SlackBuild # Copyright 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA ## See the end of this file for the full Copyright/License SOURCE_NAME='ppp-2.4.5.tar.gz' NAME='ppp' # Use ALT_NAME to override guessed value VERSION='2.4.5' # ARCH='x86_64' #BUILD='1' # PRE_FIX='usr' # Any extra options go here: # configure script is non-autoconf EXTRA_CONFIGS="--libdir=/usr/lib${LIBDIRSUFFIX}" PATCHLIST='ppp-patches/008-log-path.diff' EXTRA_DOCS='PLUGINS SETUP scripts' RADVER=0.3.2 PPPVER=1.98 # Optional function replaces configure_source, compile_source, fake_install # build() { } # Get the functions and configs . /usr/libexec/src2pkg/FUNCTIONS ; # Execute the named packaging steps: pre_process find_source make_dirs unpack_source fix_source_perms configure_source # compile_source # If used, the 'build' function replaces these 3 fake_install # mkdir -p $PKG_DIR/usr/share mv $PKG_DIR/share/man $PKG_DIR/usr/share rmdir $PKG_DIR/share mv $PKG_DIR/lib${LIBDIRSUFFIX} $PKG_DIR/usr chmod 755 "$PKG_DIR"/usr/lib${LIBDIRSUFFIX}/pppd/*/*.so cd "$SRC_DIR" # Install PPP config files: mkdir -p "$PKG_DIR"/etc/ppp cp -a etc.ppp/* "$PKG_DIR"/etc/ppp chmod 600 "$PKG_DIR"/etc/ppp/*secrets ( cd "$PKG_DIR"/etc/ppp mv chap-secrets chap-secrets.new mv options options.new mv pap-secrets pap-secrets.new ) zcat $PATCHES_DIR/ppp-patches/options.new.gz > "$PKG_DIR"/etc/ppp/options.new echo "+===============+" echo "| pppsetup-$PPPVER |" echo "+===============+" ( cd $SRC_DIR rm -rf pppsetup-$PPPVER tar xvf $CWD/pppsetup-$PPPVER.tar.gz || exit 1 cd pppsetup-$PPPVER || exit 1 chown -R root:root . zcat $PATCHES_DIR/ppp-patches/pppsetup-1.98.slack.diff.gz | patch -p1 --backup || exit zcat $PATCHES_DIR/ppp-patches/pppsetup-1.98.pppoff.diff.gz | patch -p0 --backup || exit zcat $PATCHES_DIR/ppp-patches/pppsetup-1.98.moredevs.diff.gz | patch -p1 --backup || exit zcat $PATCHES_DIR/ppp-patches/pppsetup-1.98.backupfiles.diff.gz | patch -p1 --backup || exit chmod 755 ppp-off pppsetup mkdir -p "$PKG_DIR"/usr/sbin cp -a ppp-off pppsetup "$PKG_DIR"/usr/sbin mkdir -p "$PKG_DIR"/usr/share/doc/pppsetup-$PPPVER cp -a README.pppsetup ppp-compile.txt pppsetup-$PPPVER.README pppsetup-$PPPVER.lsm "$PKG_DIR"/usr/share/doc/pppsetup-$PPPVER ) fix_pkg_perms strip_bins create_docs compress_man_pages make_description make_doinst make_package post_process ## See the documentation for more help and examples. Below are some of # the most common Extras and Options for easy cut-and-paste use. # DOCLIST='' PATCHLIST='' INSTALL_TYPE='' # CONFIG_COMMAND='' MAKE_COMMAND='' INSTALL_LINE='' # When editing src2pkg scripts to add custom code, use these variables # to refer to the current directory, the sources or the package tree: # $CWD (current directory), $SRC_DIR (sources), $PKG_DIR (package tree) # Other commonly-used directories include: $DOC_DIR (document directory) # $MAN_DIR (man-page directory) $DATA_DIR (shared-data directory) ## Original ppp.SlackBuild Copyright & License: # Copyright 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR IMPLIED # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.