diff options
-rw-r--r-- | network/dhcping/README | 5 | ||||
-rw-r--r-- | network/dhcping/dhcping.SlackBuild | 68 | ||||
-rw-r--r-- | network/dhcping/dhcping.info | 10 | ||||
-rw-r--r-- | network/dhcping/slack-desc | 19 |
4 files changed, 102 insertions, 0 deletions
diff --git a/network/dhcping/README b/network/dhcping/README new file mode 100644 index 0000000000000..b74d865d20713 --- /dev/null +++ b/network/dhcping/README @@ -0,0 +1,5 @@ +dhcping - send a DHCP request to DHCP server to see if it's up and +running + +dhcping allows the system administrator to check if a remote DHCP +server is still functioning. diff --git a/network/dhcping/dhcping.SlackBuild b/network/dhcping/dhcping.SlackBuild new file mode 100644 index 0000000000000..ba13f745affcb --- /dev/null +++ b/network/dhcping/dhcping.SlackBuild @@ -0,0 +1,68 @@ +#!/bin/sh + +# Slackware build script for libdbi +# Written by Michal Bialozor <bialyy@o2.pl> + +PRGNAM=dhcping +VERSION=1.2 +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +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" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP || exit 1 +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +cd $PRGNAM-$VERSION || exit 1 +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --mandir=/usr/man \ + --build=$ARCH-slackware-linux \ + || exit 1 + +make +make install DESTDIR=$PKG + +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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGES CONTACT LICENSE $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 + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/dhcping/dhcping.info b/network/dhcping/dhcping.info new file mode 100644 index 0000000000000..a934c33856d32 --- /dev/null +++ b/network/dhcping/dhcping.info @@ -0,0 +1,10 @@ +PRGNAM="dhcping" +VERSION="1.2" +HOMEPAGE="http://www.mavetju.org" +DOWNLOAD="http://www.mavetju.org/download/dhcping-1.2.tar.gz" +MD5SUM="c4b22bbf3446c8567e371c40aa552d5d" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Michal Bialozor" +EMAIL="bialyy@o2.pl" +APPROVED="Erik Hanson" diff --git a/network/dhcping/slack-desc b/network/dhcping/slack-desc new file mode 100644 index 0000000000000..16be34f7f9687 --- /dev/null +++ b/network/dhcping/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler-------------------------------------------------------| +dhcping: dhcping (checks if a remote DHCP server is alive) +dhcping: +dhcping: dhcping allows the system administrator to check if a remote DHCP +dhcping: server is still functioning +dhcping: +dhcping: +dhcping: +dhcping: +dhcping: +dhcping: It can be obtained from http://www.mavetju.org +dhcping: |