blob: 95e4e13bf34e4ea77cdc2c11381e059dcd396d58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# $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=5
_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')
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')
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
}
|