summaryrefslogtreecommitdiff
path: root/community/openbsd-netcat
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/openbsd-netcat
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/openbsd-netcat')
-rw-r--r--community/openbsd-netcat/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/community/openbsd-netcat/PKGBUILD b/community/openbsd-netcat/PKGBUILD
new file mode 100644
index 000000000..6c2899eb8
--- /dev/null
+++ b/community/openbsd-netcat/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu>
+
+pkgname="openbsd-netcat"
+pkgver=1.89
+pkgrel=4
+pkgdesc="TCP/IP swiss army knife. OpenBSD variant."
+arch=('i686' 'x86_64')
+url="http://packages.debian.org/sid/netcat-openbsd"
+license=('BSD')
+depends=('glib2')
+makedepends=('gcc' 'make')
+source=("http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_${pkgver}.orig.tar.gz"
+ "http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_${pkgver}-${pkgrel}.diff.gz")
+md5sums=('7238ce15aae43069e96ba7faf03f153e'
+ '00c65aa22243b76998174c733cbb64cc')
+
+build() {
+ cd $srcdir/netcat-openbsd-${pkgver}.orig
+ patch -p1 < ../netcat-openbsd_${pkgver}-${pkgrel}.diff
+ for i in `cat debian/patches/series`
+ do
+ echo "** patch $i" 1>&2
+ cat "debian/patches/$i"
+ done | patch -p1
+ make CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
+ install -d $pkgdir/usr/bin/
+ install -d $pkgdir/usr/share/man/man1/
+ install nc $pkgdir/usr/bin/nc.openbsd
+ install nc.1 $pkgdir/usr/share/man/man1/nc.openbsd.1
+}