summaryrefslogtreecommitdiff
path: root/community/openbsd-netcat/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/openbsd-netcat/PKGBUILD')
-rw-r--r--community/openbsd-netcat/PKGBUILD44
1 files changed, 23 insertions, 21 deletions
diff --git a/community/openbsd-netcat/PKGBUILD b/community/openbsd-netcat/PKGBUILD
index 95e4e13bf..35f531dea 100644
--- a/community/openbsd-netcat/PKGBUILD
+++ b/community/openbsd-netcat/PKGBUILD
@@ -1,35 +1,37 @@
-# $Id: PKGBUILD 66256 2012-02-23 05:29:19Z spupykin $
+# $Id: PKGBUILD 67793 2012-03-14 13:02:34Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu>
pkgname="openbsd-netcat"
-pkgver=1.89
-pkgrel=5
+pkgver=1.105
+pkgrel=1
_patch=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')
+depends=('glib2' 'libbsd')
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}-${_patch}.diff.gz")
-md5sums=('7238ce15aae43069e96ba7faf03f153e'
- '00c65aa22243b76998174c733cbb64cc')
+ "http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_${pkgver}-${_patch}.debian.tar.gz")
+md5sums=('7e67b22f1ad41a1b7effbb59ff28fca1'
+ '76b88083b77eb2e6f014cdb3020a96ac')
build() {
- cd $srcdir/netcat-openbsd-${pkgver}.orig
- patch -p1 < ../netcat-openbsd_${pkgver}-${_patch}.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
- mkdir -p $pkgdir/usr/share/licenses/$pkgname/
- head -n28 netcat.c | tail -n+2 >$pkgdir/usr/share/licenses/$pkgname/LICENSE
+ cd $srcdir/netcat-openbsd-${pkgver}
+ 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}\\\"\" -I/usr/include/libbsd" \
+ LDFLAGS="$LDFLAGS -lbsd"
+}
+
+package() {
+ cd $srcdir/netcat-openbsd-${pkgver}
+ install -Dm0755 nc $pkgdir/usr/bin/nc.openbsd
+ install -Dm0644 nc.1 $pkgdir/usr/share/man/man1/nc.openbsd.1
+ install -dm0755 $pkgdir/usr/share/licenses/$pkgname/
+ head -n28 netcat.c | tail -n+2 >$pkgdir/usr/share/licenses/$pkgname/LICENSE
}