aboutsummaryrefslogtreecommitdiffstats
path: root/community/redsocks/APKBUILD
blob: 8656b58322ed92174a05e82511ff03c88e1c920f (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=redsocks
pkgver=0.4
pkgrel=1
pkgdesc="Transparent redirector of any TCP connection to proxy using your firewall"
url="http://darkk.net.ru/redsocks"
arch="all"
license="Apache-2.0"
depends=""
makedepends="libevent-dev iptables-dev"
install=""
subpackages=""
source="redsocks-$pkgver.zip::https://github.com/darkk/$pkgname/archive/release-$pkgver.zip
	redsocks.initd"
builddir="$srcdir"/$pkgname-release-$pkgver

build() {
	cd "$builddir"
	make || return 1
}

package() {
	cd "$builddir"
	install -Dm755 redsocks "$pkgdir/usr/bin/redsocks"
	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -Dm644 redsocks.conf.example "$pkgdir"/etc/$pkgname/redsocks.conf
}

md5sums="1f29854b20d931f2f4590a3c832ee3ec  redsocks-0.4.zip
ebf676a98e9798731c621900ad50e1bf  redsocks.initd"
sha256sums="eedb7fd6cb00b207938c463c5eda63aae7cec1a43715b7e1c0106bd6fdaea729  redsocks-0.4.zip
42f7d2318b8e6e2601fecb8310f0e9d1b6b4ed442b872b4cdea406e84e154b5b  redsocks.initd"
sha512sums="bd88684f2964a7f94b6965f445379479f2a70938490a28bcacbeafcad911cbbf40a640cf37ff5fcbc0475075dbf1858bbb905cd5db9519ff76d900e9b35e1242  redsocks-0.4.zip
e2da5e1c5025a46c1f64daec4017d34a700d9d269cc463ef9395989c73d9aeefad222409f6cdfba92742011c4ef4a9edef554706f3353dfd0f7bc526247551c5  redsocks.initd"