From f005c6784df9234849b3996f66d08afe63966dce Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 3 Jul 2014 23:32:53 +0200 Subject: [PATCH] New package: openbsd-netcat-1.105_7 --- srcpkgs/openbsd-netcat/template | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 srcpkgs/openbsd-netcat/template diff --git a/srcpkgs/openbsd-netcat/template b/srcpkgs/openbsd-netcat/template new file mode 100644 index 00000000000..fed4ab0d946 --- /dev/null +++ b/srcpkgs/openbsd-netcat/template @@ -0,0 +1,30 @@ +# Template file for 'openbsd-netcat' +pkgname=openbsd-netcat +version=1.105_7 +revision=1 +hostmakedepends="pkg-config" +makedepends="libbsd-devel" +provides="netcat-${version}_${revision}" +replaces="netcat>=0" +short_desc="TCP/IP swiss army knife. OpenBSD/Debian variant." +maintainer="Christian Neukirchen " +license="BSD" +homepage="http://packages.debian.org/sid/netcat-openbsd" +distfiles="http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_${version%_*}.orig.tar.gz + http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_${version/_/-}.debian.tar.gz" +checksum="40653fe66c1516876b61b07e093d826e2a5463c5d994f1b7e6ce328f3edb211e + eee759327ffea293e81d0dde67921b7fcfcad279ffd7a2c9d037bbc8f882b363" +wrksrc="netcat-openbsd-${version%_*}" + +do_build() { + cat ../debian/patches/*.patch | patch -p1 + make ${makejobs} \ + CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${version}\\\"\" $(pkg-config libbsd --cflags)" \ + LDFLAGS="$LDFLAGS $(pkg-config libbsd --libs)" +} + +do_install() { + vbin nc + ln -sf nc ${DESTDIR}/usr/bin/netcat + vman nc.1 +}