From cf636e5e801183f0ed779b287dbba0fa9b81efcf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 17 Jul 2011 09:51:11 +0000 Subject: Initial APKBUILD for nbtscan Package description: NBTscan is a program for scanning IP networks for NetBIOS name information. It sends a NetBIOS status query to each address in supplied range and lists received information in human readable form. --- testing/nbtscan/APKBUILD | 43 ++++++++++++++++++++++++++++ testing/nbtscan/nbtscan-1.5.1-makefile.patch | 20 +++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 testing/nbtscan/APKBUILD create mode 100644 testing/nbtscan/nbtscan-1.5.1-makefile.patch (limited to 'testing/nbtscan') diff --git a/testing/nbtscan/APKBUILD b/testing/nbtscan/APKBUILD new file mode 100644 index 0000000000..cdc4704aff --- /dev/null +++ b/testing/nbtscan/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Fabian Affolter +# Maintainer: +pkgname=nbtscan +pkgver=1.5.1 +pkgrel=0 +pkgdesc="A NetBIOS name network scanner" +url="http://www.inetcat.net/software/nbtscan.html" +arch="all" +license="GPL2" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="" +source="http://www.inetcat.net/software/$pkgname-$pkgver.tar.gz + $pkgname-$pkgver-makefile.patch" +_builddir="$srcdir"/$pkgname-"$pkgver"a + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure \ + --prefix=/usr \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="85bb085077c380b82a6ff73e0de0c154 nbtscan-1.5.1.tar.gz +513430ac89e76bfdb2fd9f8bfce4cca2 nbtscan-1.5.1-makefile.patch" diff --git a/testing/nbtscan/nbtscan-1.5.1-makefile.patch b/testing/nbtscan/nbtscan-1.5.1-makefile.patch new file mode 100644 index 0000000000..300f2a6aef --- /dev/null +++ b/testing/nbtscan/nbtscan-1.5.1-makefile.patch @@ -0,0 +1,20 @@ +--- nbtscan-1.5.1a/Makefile.in.orig ++++ nbtscan-1.5.1a/Makefile.in +@@ -5,6 +5,7 @@ + OBJECTS=nbtscan.o statusq.o range.o list.o + DEFS=@DEFS@ + TARGET=@TARGET@ ++DESTDIR= + + prefix = @prefix@ + exec_prefix = @exec_prefix@ +@@ -14,7 +15,8 @@ + $(CC) $(CFLAGS) -o nbtscan $(OBJECTS) $(LIBS) + + install: +- $(INSTALL) $(TARGET) $(BINDIR)/$(TARGET) ++ mkdir -p $(DESTDIR)$(BINDIR) ++ $(INSTALL) $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET) + + nbtscan.o: nbtscan.c statusq.h range.h list.h + $(CC) $(CFLAGS) $(DEFS) -c nbtscan.c -- cgit v1.2.3