diff options
Diffstat (limited to 'network')
-rw-r--r-- | network/fping/fping.SlackBuild | 19 | ||||
-rw-r--r-- | network/fping/fping.info | 2 |
2 files changed, 16 insertions, 5 deletions
diff --git a/network/fping/fping.SlackBuild b/network/fping/fping.SlackBuild index d59f53988c41a..5ee010c8311fd 100644 --- a/network/fping/fping.SlackBuild +++ b/network/fping/fping.SlackBuild @@ -24,13 +24,12 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -set -e - PRGNAM=fping VERSION=2.4b2_to ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -38,10 +37,17 @@ 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 @@ -55,6 +61,7 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man @@ -62,8 +69,10 @@ make make install DESTDIR=$PKG ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) ( cd $PKG/usr/man @@ -79,4 +88,4 @@ 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.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/fping/fping.info b/network/fping/fping.info index 533f93156a863..5cb23e9674a51 100644 --- a/network/fping/fping.info +++ b/network/fping/fping.info @@ -2,7 +2,9 @@ PRGNAM="fping" VERSION="2.4b2_to" HOMEPAGE="http://www.fping.com" DOWNLOAD="http://fping.sourceforge.net/download/fping.tar.gz" +DOWNLOAD_x86_64="" MD5SUM="d5e8be59e307cef76bc479e1684df705" +MD5SUM_x86_64="" MAINTAINER="Mark Walling" EMAIL="mark@markwalling.org" APPROVED="Michiel" |