mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
network/dhcping: Added (checks if a remote DHCP server is alive)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
parent
e8f26596a8
commit
5b3418da65
4 changed files with 102 additions and 0 deletions
5
network/dhcping/README
Normal file
5
network/dhcping/README
Normal file
|
@ -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.
|
68
network/dhcping/dhcping.SlackBuild
Normal file
68
network/dhcping/dhcping.SlackBuild
Normal file
|
@ -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}
|
10
network/dhcping/dhcping.info
Normal file
10
network/dhcping/dhcping.info
Normal file
|
@ -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"
|
19
network/dhcping/slack-desc
Normal file
19
network/dhcping/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue