blob: a3e8312de1e03c8903220a00eb3e1516c7f22453 (
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.6
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="saveas-https://github.com/tohojo/sqm-scripts/archive/v${pkgver}.tar.gz/$pkgname-$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="7d4b7b5651190139fd2b3227a3f24bc8 sqm-scripts-1.0.6.tar.gz
a429ea21effe77d4f196970d204bcf80 10-Makefile.patch
57a4ce0e7fcc5a73e76a71f0f24eb1f7 10-function.sh.patch
5b6dda1d6b4d93326972d5fabe4208f1 10-defaults.sh.patch"
sha256sums="7531140f744712714b9551d53c622faec370ba0a6911ef07cdd663981eae23fb sqm-scripts-1.0.6.tar.gz
59f26dc845302e9471be73560ccac1d31522688003aa65923b52d4a75f285ad2 10-Makefile.patch
7ed3c38d043134dd4adbe602efb129bc78d0601818fdc1276adfa988c17a199f 10-function.sh.patch
4c26984bb61b6b320c75a4a5ea0c878104d9e429a3c64b718db40e16dde955ce 10-defaults.sh.patch"
sha512sums="3e296f984816ba728cc62e13cb2a7d09183abcf7df04c170a0cb62bef0000ed62cfcb338b5d49bc258677e44e128282f0cdf7ec9d8949507e9f5f37375bdebcc sqm-scripts-1.0.6.tar.gz
7ecb7dc71e010b9d2c1fd227de78a34bf6b67b466741ec1756f41a54d372a656d1572f09f9fc7cca45c45591f894037a71c198c7759d8db476de1a0af9292e7e 10-Makefile.patch
5ecc99eb2edeeff4c9535b1d2c46d27779c8907f6bc00bfd037bead84bbb39d257d155c2c6722d910bf03177ced57f3aabbb576aaaa9bbce0484b6681d30b5f2 10-function.sh.patch
dcef599c249abf93e7686e14b0aee06f6e8a2a25809665c4e796a7b715e3d1153ad02c8061485bfe5c0cf662e2d4c8d22377318db60c743e170b49f49ce70a0a 10-defaults.sh.patch"
|