openbsd-netcat: xlint.

This commit is contained in:
Christian Neukirchen 2014-11-23 15:27:00 +01:00
parent 0b9023f826
commit f91e7014fd

View file

@ -10,22 +10,22 @@ short_desc="TCP/IP swiss army knife (OpenBSD/Debian variant)"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>" maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="BSD" license="BSD"
homepage="http://packages.debian.org/sid/netcat-openbsd" 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 distfiles="${DEBIAN_SITE}/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" ${DEBIAN_SITE}/main/n/netcat-openbsd/netcat-openbsd_${version/_/-}.debian.tar.gz"
update_pattern='netcat-openbsd_\K[\d.]+\d+' update_pattern='netcat-openbsd_\K[\d.]+\d+'
checksum="40653fe66c1516876b61b07e093d826e2a5463c5d994f1b7e6ce328f3edb211e checksum="40653fe66c1516876b61b07e093d826e2a5463c5d994f1b7e6ce328f3edb211e
eee759327ffea293e81d0dde67921b7fcfcad279ffd7a2c9d037bbc8f882b363" eee759327ffea293e81d0dde67921b7fcfcad279ffd7a2c9d037bbc8f882b363"
wrksrc="netcat-openbsd-${version%_*}" wrksrc="netcat-openbsd-${version%_*}"
do_build() { do_build() {
cat ../debian/patches/*.patch | patch -p1 cat ../debian/patches/*.patch | patch -p1
make ${makejobs} \ make ${makejobs} \
CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${version}\\\"\" $(pkg-config libbsd --cflags)" \ CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${version}\\\"\" $(pkg-config libbsd --cflags)" \
LDFLAGS="$LDFLAGS $(pkg-config libbsd --libs)" LDFLAGS="$LDFLAGS $(pkg-config libbsd --libs)"
} }
do_install() { do_install() {
vbin nc vbin nc
ln -sf nc ${DESTDIR}/usr/bin/netcat ln -sf nc ${DESTDIR}/usr/bin/netcat
vman nc.1 vman nc.1
} }