diff options
author | Nikos Giotis <nikos.giotis@gmail.com> | 2019-04-12 22:44:58 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-04-12 22:44:58 +0700 |
commit | 99822beef8cc3dca96457dd2aecd0723032b84d2 (patch) | |
tree | c9fb81818850ed976629440864382646dffa46fd /system/multipath-tools/multipath-tools.SlackBuild | |
parent | a1e55b482a37997927da498fc15124ba1ad79a71 (diff) |
system/multipath-tools: Updated for version 0.7.8.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/multipath-tools/multipath-tools.SlackBuild')
-rw-r--r-- | system/multipath-tools/multipath-tools.SlackBuild | 40 |
1 files changed, 27 insertions, 13 deletions
diff --git a/system/multipath-tools/multipath-tools.SlackBuild b/system/multipath-tools/multipath-tools.SlackBuild index e4428d9217fd6..7148af368b56e 100644 --- a/system/multipath-tools/multipath-tools.SlackBuild +++ b/system/multipath-tools/multipath-tools.SlackBuild @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright 2014 Nikos Yotis <nikos.giotis@gmail.com> +# Copyright 2014,2018 Nikos Yotis <nikos.giotis@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -19,8 +19,12 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 22-Oct-2018 +# Updated for version 0.7.8 + PRGNAM=multipath-tools -VERSION=${VERSION:-0.5.0} +VERSION=${VERSION:-0.7.8} +SRCNAM="index.html?p=multipath-tools%2F.git;a=snapshot;sf=tgz;h=refs%2Ftags%2F$VERSION" BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -57,13 +61,11 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$SRCNAM cd $PRGNAM-$VERSION -# Patches for slackware compatibility -zcat $CWD/multipathd.slackware.patch.gz | patch -p0 --verbose -zcat $CWD/rcdir.patch.gz | patch -p0 --verbose -zcat $CWD/libmpathpersist.remove.empty.dir.patch.gz | patch -p0 --verbose +# Patch for slackware compatibility +cat $CWD/0002-multipathd-add-ncurses-to-linker.patch | patch -p0 --verbose chown -R root:root . find -L . \ @@ -75,24 +77,36 @@ find -L . \ # Build cd $TMP/$PRGNAM-$VERSION CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" make -mkdir -p $PKG/usr/bin make install DESTDIR=$PKG +# Move everything in place +mv $PKG/usr/lib/ $PKG/ + +# Manpages mv $PKG/usr/share/man $PKG/usr/ +rm -rf $PKG/usr/share find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -rm -rf $PKG/usr/share -( - cd $PKG/lib${LIBDIRSUFFIX} - ln -sf libmpathpersist.so.0 libmpathpersist.so -) +# init script +mkdir -p $PKG/etc/rc.d +cat $CWD/rc.multipathd.new > $PKG/etc/rc.d/rc.multipathd.new +chmod 755 $PKG/etc/rc.d/rc.multipathd.new + +# default config +cat $CWD/multipath.conf.new > $PKG/etc/multipath.conf.new +chmod 644 $PKG/etc/multipath.conf.new +# Docs mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + COPYING README README.alua $CWD/README.SLACKWARE \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |