summaryrefslogtreecommitdiff
path: root/testing/sqm-scripts/APKBUILD
blob: e4adb7223967bf254b126761ef5b8a843a85281b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Contributor:
# Maintainer:
pkgname=sqm-scripts
pkgver=1.0.7
pkgrel=0
pkgdesc="SQM scripts traffic shaper"
url="https://github.com/tohojo/sqm-scripts"
arch="noarch"
license="GPLv2"
depends="iproute2 iptables ip6tables"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/tohojo/sqm-scripts/archive/v${pkgver}.tar.gz
	10-Makefile.patch
	10-function.sh.patch
	10-defaults.sh.patch"

_builddir="$srcdir/sqm-scripts-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
}

package() {
	cd "$_builddir"
	install -m 0755 -d $pkgdir/etc/network/if-up.d
        make DESTDIR="$pkgdir" install || return 1
}

md5sums="79c30e7b349becb7006eff6cc7840b63  sqm-scripts-1.0.7.tar.gz
8445b8a37dbad4e1d5616cf22f90e0df  10-Makefile.patch
6b8d3d269e29e5e5fa39670d32ffcb89  10-function.sh.patch
04fb808b2247c0241dad147cec9232fe  10-defaults.sh.patch"
sha256sums="dfbaa5c35a9229d131e394c86d10e3482fb0901e8a063b0fb8a20e20ac54b93f  sqm-scripts-1.0.7.tar.gz
2fa65381b7cade1aa2b068a6c9f27d0b966afbdd3297ed5afe48886ba64d0b9b  10-Makefile.patch
c3ba1e4054fa9aaf1c0a621270ad6941e752b3a58c1048f6bdd681fb880e70b5  10-function.sh.patch
29fb7cc01360c2589a73b24e8d7c1b3fed893cf4f5d400a012272eeb6b167b8f  10-defaults.sh.patch"
sha512sums="4f8a23511669d78a54ad3ec7b9c83a8cac18bf57010003c5208a75577602d8be2ce4e481d8b5e58739d703f46ba9962a1b24fa240da3169705bb1e00ba2674dc  sqm-scripts-1.0.7.tar.gz
4bbdf01ad1c8e79b67586d4eb0397ed9f2e8fff18163b4f81b014afd8a2c6c871da53861d0778531d62e0d7a9f4843d9a4f7a6a5dee5c74f12b1ce2c1454fb17  10-Makefile.patch
b5904eec7196de7ad8ebb3a8c3f6771bc62bae48057e14ba073ea4f34abb50d5459beb436f58f1ee2e2abd3d4f5a7d36370dc09d65a55fa647fd1a43cb3303e6  10-function.sh.patch
a5d90befde15afe588d6ac46a3ce4c7b123d0d233e83be5c36c9f45f14d71622f6da6c9c47fe219645a474705daaacc52e246ce7c21b313631371db2962a3f9a  10-defaults.sh.patch"