diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2011-05-16 13:57:53 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2011-05-16 14:00:58 +0000 |
commit | d95f46d8f7ee391376b9870c16918227a7311b90 (patch) | |
tree | 8b0940b33b452da888cbdf677c4221d470cc988d /main/netcat-openbsd/APKBUILD | |
parent | b96893b13489058b4aa701ea6b05b079efc0471f (diff) | |
download | aports-d95f46d8f7ee391376b9870c16918227a7311b90.tar.bz2 aports-d95f46d8f7ee391376b9870c16918227a7311b90.tar.xz |
testing/netcat-openbsd: move to main
Diffstat (limited to 'main/netcat-openbsd/APKBUILD')
-rw-r--r-- | main/netcat-openbsd/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/main/netcat-openbsd/APKBUILD b/main/netcat-openbsd/APKBUILD new file mode 100644 index 000000000..0ea0d739e --- /dev/null +++ b/main/netcat-openbsd/APKBUILD @@ -0,0 +1,49 @@ +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> +pkgname=netcat-openbsd +pkgver=1.89 +pkgrel=0 +pkgdesc="The TCP/IP swiss army knife. OpenBSD variant." +url="http://packages.debian.org/sid/netcat-openbsd" +arch="all" +license="GPL" +depends= +depends_dev="glib-dev" +makedepends="$depends_dev" +install="$pkgname.post-deinstall" +subpackages="$pkgname-doc" +source="http://ftp.debian.org/debian/pool/main/n/$pkgname/${pkgname}_${pkgver}.orig.tar.gz + netcat-openbsd_1.89-4.diff" + +_builddir="$srcdir"/$pkgname-$pkgver.orig + +prepare() { + cd "$_builddir" + + for i in ../*.diff + do + msg "Applying patch $i" + patch -p1 -i $i || return 1 + done + + for i in `cat debian/patches/series` + do + echo "Applying patch $i" 1>&2 + patch -p1 -i "debian/patches/$i" || return 1 + done +} + +build() { + cd "$_builddir" + make CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"4\\\"\"" || return 1 +} + +package() { + cd "$_builddir" + install -d $pkgdir/usr/bin/ + install -d $pkgdir/usr/share/man/man1/ + install nc $pkgdir/usr/bin/nc + install nc.1 $pkgdir/usr/share/man/man1/nc.openbsd.1 +} + +md5sums="7238ce15aae43069e96ba7faf03f153e netcat-openbsd_1.89.orig.tar.gz +8e88cb91ca8cad6f9a75d3b84e028298 netcat-openbsd_1.89-4.diff" |