aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-02-04 13:30:41 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-02-04 13:30:41 +0000
commit7aa2f29646a7ea6b6063684a313fd8721fd27413 (patch)
tree8601878c9aa61e14033de5e4bedd9a4f47e7c87c /main
parentf37b7da842eba47d12f465f70764ab2a3619f908 (diff)
downloadaports-7aa2f29646a7ea6b6063684a313fd8721fd27413.tar.bz2
aports-7aa2f29646a7ea6b6063684a313fd8721fd27413.tar.xz
main/cutter: build fix for musl
Diffstat (limited to 'main')
-rw-r--r--main/cutter/APKBUILD19
-rw-r--r--main/cutter/musl-fix.patch10
2 files changed, 24 insertions, 5 deletions
diff --git a/main/cutter/APKBUILD b/main/cutter/APKBUILD
index 572acc5b2e..9c180eddd6 100644
--- a/main/cutter/APKBUILD
+++ b/main/cutter/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=cutter
pkgver=1.03
-pkgrel=4
+pkgrel=5
pkgdesc="A program that allows firewall administrators to abort TCP/IP connections"
url="http://www.digitage.co.uk/digitage/software/linux-security/cutter"
arch="all"
@@ -11,12 +11,18 @@ depends=""
makedepends=""
install=""
subpackages=""
-source="http://www.digitage.co.uk/digitage/files/cutter/$pkgname-$pkgver.tgz"
+source="http://www.digitage.co.uk/digitage/files/cutter/$pkgname-$pkgver.tgz
+ musl-fix.patch"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
update_config_sub || return 1
}
@@ -30,6 +36,9 @@ package() {
install -m755 -D $pkgname "$pkgdir"/usr/sbin/$pkgname || return 1
}
-md5sums="50093db9b64277643969ee75b83ebbd1 cutter-1.03.tgz"
-sha256sums="4df4fac7c2208afafb279abb443005bf77d3dcf01af05fe1f2898213b9109615 cutter-1.03.tgz"
-sha512sums="821e8abf496e22b86bdd855fb1c9c51648a276ebb572edd2ccb172ae7025a38794df37dfe153c1807785ecec279c34b9df5e2bcc2de582b3a88ee3776cf46eea cutter-1.03.tgz"
+md5sums="50093db9b64277643969ee75b83ebbd1 cutter-1.03.tgz
+dca1d7b39deb52edfd353bc8a7eb1d34 musl-fix.patch"
+sha256sums="4df4fac7c2208afafb279abb443005bf77d3dcf01af05fe1f2898213b9109615 cutter-1.03.tgz
+66baab0636e605a935199785bb916219c24e0673c682289ff04a44d061a3e1fb musl-fix.patch"
+sha512sums="821e8abf496e22b86bdd855fb1c9c51648a276ebb572edd2ccb172ae7025a38794df37dfe153c1807785ecec279c34b9df5e2bcc2de582b3a88ee3776cf46eea cutter-1.03.tgz
+815ffcfbae6865443b49390f1c5dc583243009150271804468aad00102b136ac2e6abe565efa18d15f4411690444ca6fdd1184a8b31e61f5a62115f87f6d53dc musl-fix.patch"
diff --git a/main/cutter/musl-fix.patch b/main/cutter/musl-fix.patch
new file mode 100644
index 0000000000..e8ff6de41d
--- /dev/null
+++ b/main/cutter/musl-fix.patch
@@ -0,0 +1,10 @@
+--- ./cutter.c.orig
++++ ./cutter.c
+@@ -47,7 +47,6 @@
+ #include <linux/socket.h>
+ #include <linux/ip.h>
+ #include <linux/tcp.h>
+-#include <linux/if_ether.h>
+ #include <fcntl.h>
+ #include <netpacket/packet.h>
+ #include <net/ethernet.h> /* the L2 protocols */