2014-07-03 21:32:53 +00:00
|
|
|
# Template file for 'openbsd-netcat'
|
|
|
|
pkgname=openbsd-netcat
|
2015-03-20 18:07:53 +00:00
|
|
|
version=1.105p7
|
|
|
|
revision=1
|
2014-07-03 21:32:53 +00:00
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="libbsd-devel"
|
|
|
|
provides="netcat-${version}_${revision}"
|
|
|
|
replaces="netcat>=0"
|
2014-07-08 10:15:57 +00:00
|
|
|
short_desc="TCP/IP swiss army knife (OpenBSD/Debian variant)"
|
2014-07-03 21:32:53 +00:00
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
|
|
license="BSD"
|
|
|
|
homepage="http://packages.debian.org/sid/netcat-openbsd"
|
2015-03-20 18:07:53 +00:00
|
|
|
distfiles="${DEBIAN_SITE}/main/n/netcat-openbsd/netcat-openbsd_${version%p*}.orig.tar.gz
|
|
|
|
${DEBIAN_SITE}/main/n/netcat-openbsd/netcat-openbsd_${version/p/-}.debian.tar.gz"
|
2014-07-03 21:32:53 +00:00
|
|
|
checksum="40653fe66c1516876b61b07e093d826e2a5463c5d994f1b7e6ce328f3edb211e
|
2014-11-23 14:27:00 +00:00
|
|
|
eee759327ffea293e81d0dde67921b7fcfcad279ffd7a2c9d037bbc8f882b363"
|
2015-03-20 18:07:53 +00:00
|
|
|
wrksrc="netcat-openbsd-${version%p*}"
|
2014-07-03 21:32:53 +00:00
|
|
|
|
|
|
|
do_build() {
|
2014-11-23 14:27:00 +00:00
|
|
|
cat ../debian/patches/*.patch | patch -p1
|
|
|
|
make ${makejobs} \
|
|
|
|
CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${version}\\\"\" $(pkg-config libbsd --cflags)" \
|
|
|
|
LDFLAGS="$LDFLAGS $(pkg-config libbsd --libs)"
|
2014-07-03 21:32:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2014-11-23 14:27:00 +00:00
|
|
|
vbin nc
|
|
|
|
ln -sf nc ${DESTDIR}/usr/bin/netcat
|
|
|
|
vman nc.1
|
2014-07-03 21:32:53 +00:00
|
|
|
}
|