39 lines
1.3 KiB
Bash
39 lines
1.3 KiB
Bash
# Template file for 'openbsd-netcat'
|
|
pkgname=openbsd-netcat
|
|
version=1.217
|
|
revision=1
|
|
wrksrc="netcat-openbsd-${version%p*}"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libbsd-devel"
|
|
short_desc="TCP/IP swiss army knife (OpenBSD/Debian variant)"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD-2-Clause,BSD-3-Clause"
|
|
homepage="http://packages.debian.org/sid/netcat-openbsd"
|
|
distfiles="
|
|
${DEBIAN_SITE}/main/n/netcat-openbsd/netcat-openbsd_${version%p*}.orig.tar.gz
|
|
${DEBIAN_SITE}/main/n/netcat-openbsd/netcat-openbsd_${version}-1.debian.tar.xz"
|
|
checksum="fcb551d9987fd51d020c62b6d81df0c2bb17ce1887bbc3fda4d28313791cc0f5
|
|
c18cec8f286cd77828cdcf6412c6a3a9686f97cfdb47fd7dde4af392a21ab352"
|
|
|
|
alternatives="
|
|
nc:nc:/usr/bin/openbsd-nc
|
|
nc:nc.1:/usr/share/man/man1/openbsd-nc.1"
|
|
|
|
do_build() {
|
|
( cd ../debian/patches; xargs cat <series; ) | patch -p1
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) # Add missing b64_ntop() and b64_pton() functions
|
|
cp ${FILESDIR}/base64.c .
|
|
sed -i Makefile -e "/SRCS=/s;\(.*\);& base64.c;"
|
|
;;
|
|
esac
|
|
make ${makejobs} \
|
|
CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${version}\\\"\" $(pkg-config libbsd --cflags)" \
|
|
LDFLAGS="$LDFLAGS $(pkg-config libbsd --libs)"
|
|
}
|
|
|
|
do_install() {
|
|
vbin nc openbsd-nc
|
|
vman nc.1 openbsd-nc.1
|
|
vlicense ../debian/copyright LICENSE
|
|
}
|