From 5b3418da65fe0c69f16ebcd59ad6331392c6ab9c Mon Sep 17 00:00:00 2001 From: Michal Bialozor Date: Thu, 16 Dec 2010 14:06:11 -0600 Subject: network/dhcping: Added (checks if a remote DHCP server is alive) Signed-off-by: Erik Hanson --- network/dhcping/README | 5 +++ network/dhcping/dhcping.SlackBuild | 68 ++++++++++++++++++++++++++++++++++++++ network/dhcping/dhcping.info | 10 ++++++ network/dhcping/slack-desc | 19 +++++++++++ 4 files changed, 102 insertions(+) create mode 100644 network/dhcping/README create mode 100644 network/dhcping/dhcping.SlackBuild create mode 100644 network/dhcping/dhcping.info create mode 100644 network/dhcping/slack-desc (limited to 'network') 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 + +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: -- cgit v1.2.3