summaryrefslogtreecommitdiff
path: root/community/openbsd-netcat
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-02-24 23:15:21 +0000
committerroot <root@rshg054.dnsready.net>2012-02-24 23:15:21 +0000
commit299e917c17619f800f0c21cf43209065b608223f (patch)
treee175a7bbdb5d933670f10b09f1cc52ece45ced87 /community/openbsd-netcat
parentd466ef49f224a9347fe0375eac8126725e10a0a4 (diff)
Fri Feb 24 23:15:21 UTC 2012
Diffstat (limited to 'community/openbsd-netcat')
-rw-r--r--community/openbsd-netcat/PKGBUILD11
1 files changed, 7 insertions, 4 deletions
diff --git a/community/openbsd-netcat/PKGBUILD b/community/openbsd-netcat/PKGBUILD
index 6c2899eb8..95e4e13bf 100644
--- a/community/openbsd-netcat/PKGBUILD
+++ b/community/openbsd-netcat/PKGBUILD
@@ -1,10 +1,11 @@
-# $Id$
+# $Id: PKGBUILD 66256 2012-02-23 05:29:19Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu>
pkgname="openbsd-netcat"
pkgver=1.89
-pkgrel=4
+pkgrel=5
+_patch=4
pkgdesc="TCP/IP swiss army knife. OpenBSD variant."
arch=('i686' 'x86_64')
url="http://packages.debian.org/sid/netcat-openbsd"
@@ -12,13 +13,13 @@ 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")
+ "http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_${pkgver}-${_patch}.diff.gz")
md5sums=('7238ce15aae43069e96ba7faf03f153e'
'00c65aa22243b76998174c733cbb64cc')
build() {
cd $srcdir/netcat-openbsd-${pkgver}.orig
- patch -p1 < ../netcat-openbsd_${pkgver}-${pkgrel}.diff
+ patch -p1 < ../netcat-openbsd_${pkgver}-${_patch}.diff
for i in `cat debian/patches/series`
do
echo "** patch $i" 1>&2
@@ -29,4 +30,6 @@ build() {
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
}