diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:37:31 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:37:31 +0200 |
commit | a47569e9c3112b6ab58ab1215b3ed23c17bb5b5f (patch) | |
tree | 3b8fb551492e670e521cfd8bae09138a1e350eb2 /network/netstat-nat/netstat-nat.SlackBuild | |
parent | c21486d5860680e6a1bb4a002b45de0bdbbe4173 (diff) |
network/netstat-nat: Updated for version 1.4.9
Diffstat (limited to 'network/netstat-nat/netstat-nat.SlackBuild')
-rw-r--r-- | network/netstat-nat/netstat-nat.SlackBuild | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/network/netstat-nat/netstat-nat.SlackBuild b/network/netstat-nat/netstat-nat.SlackBuild index 49527d63ac67..352d668279a9 100644 --- a/network/netstat-nat/netstat-nat.SlackBuild +++ b/network/netstat-nat/netstat-nat.SlackBuild @@ -22,13 +22,12 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -set -e - PRGNAM=netstat-nat -VERSION=1.4.7 +VERSION=1.4.9 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -36,34 +35,45 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar -xvzf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 -cd $PRGNAM-$VERSION || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . CFLAGS="$SLKCFLAGS" \ -./configure --prefix=/usr || exit 1 +./configure \ + --prefix=/usr \ + --mandir=/usr/man \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --build=$ARCH-slackware-linux # Fix documentation directory in the Makefile -sed -i s#'docdir = $(prefix)/share/doc'#'docdir = $(prefix)/doc'# Makefile || exit 1 +#sed -i s#'docdir = $(prefix)/share/doc'#'docdir = $(prefix)/doc'# Makefile || exit 1 -make || exit 1 -make install-strip DESTDIR=$PKG || exit 1 +make docdir=/usr/doc/$PRGNAM-$VERSION +make docdir=/usr/doc/$PRGNAM-$VERSION install-strip DESTDIR=$PKG cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +gzip -9 $PKG/usr/man/man?/*.? + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -gzip -9 $PKG/usr/man/man?/* - cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |