aboutsummaryrefslogtreecommitdiffstats
path: root/main/netcat-openbsd/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/netcat-openbsd/APKBUILD')
-rw-r--r--main/netcat-openbsd/APKBUILD28
1 files changed, 18 insertions, 10 deletions
diff --git a/main/netcat-openbsd/APKBUILD b/main/netcat-openbsd/APKBUILD
index 5e7a48865e..cf4a4cb636 100644
--- a/main/netcat-openbsd/APKBUILD
+++ b/main/netcat-openbsd/APKBUILD
@@ -12,21 +12,22 @@ makedepends="$depends_dev"
install=
subpackages="$pkgname-doc"
source="http://ftp.debian.org/debian/pool/main/n/$pkgname/${pkgname}_${pkgver}.orig.tar.gz
- netcat-openbsd_1.89-4.diff"
+ netcat-openbsd_1.89-4.diff
+ fix-cdefs.patch
+ "
_builddir="$srcdir"/$pkgname-$pkgver.orig
prepare() {
- cd "$_builddir"
+ local i
- for i in ../*.diff
- do
- msg "Applying patch $i"
- patch -p1 -i $i || return 1
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch|*.diff) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
done
-
- for i in `cat debian/patches/series`
- do
+ for i in `cat debian/patches/series`; do
echo "Applying patch $i" 1>&2
patch -p1 -i "debian/patches/$i" || return 1
done
@@ -46,4 +47,11 @@ package() {
}
md5sums="7238ce15aae43069e96ba7faf03f153e netcat-openbsd_1.89.orig.tar.gz
-8e88cb91ca8cad6f9a75d3b84e028298 netcat-openbsd_1.89-4.diff"
+8e88cb91ca8cad6f9a75d3b84e028298 netcat-openbsd_1.89-4.diff
+c9161b439eb4c4a75295be39ad32d1ac fix-cdefs.patch"
+sha256sums="72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b netcat-openbsd_1.89.orig.tar.gz
+4faa7854302889e06a376f03b2113beeae5443de59bdc0de155ab1e0902e28e9 netcat-openbsd_1.89-4.diff
+4bf424667b7321a895e48bb9fafcc7b85b578fcecd27d1b982f9e28350429b6c fix-cdefs.patch"
+sha512sums="4e18289c507461fb8257e466ab082a2b18489218c3065af5b4626369cd3acb378f68eb69cfe77ff46d5fba222c12e2bc30dc71c0a88d2921a7e513b926b8b75d netcat-openbsd_1.89.orig.tar.gz
+8ec30df716d91ec26102ecf76a47d456cd287511516319d28a6b99467e256e158789bc2bfafbd5e13b3effd9237c158eefd6cfd5ba014570395813bccf469ef1 netcat-openbsd_1.89-4.diff
+b70e19344c358ece0c5edcafc2be3df3b09c0fcbef95dc21e0bf8fe31593905a3191870cc9bb5eb707d12748d727276a19918c3998277d6f0a9a10954931a0a0 fix-cdefs.patch"