aboutsummaryrefslogtreecommitdiffstats
path: root/community/redsocks/APKBUILD
blob: 5e76300fa6fdea5d7457e4ba97521ad98a5447e7 (plain) (blame)
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.5
pkgrel=0
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="721ab51500ab47a6dbd5e226abdafeec  redsocks-0.5.zip
ebf676a98e9798731c621900ad50e1bf  redsocks.initd"
sha256sums="d47e0da01c7d3b6b7e89f0bfa9d6e9aaa43d54cd960ba3e33a94384322e65eb2  redsocks-0.5.zip
42f7d2318b8e6e2601fecb8310f0e9d1b6b4ed442b872b4cdea406e84e154b5b  redsocks.initd"
sha512sums="3141679953a8011973c47dbef973462c38a84b26426d67cfb9178711e25c2aea0ef23c5788fdb4ab13c9a1df4b266267c63342dff9d6268599844ab54d8fd680  redsocks-0.5.zip
e2da5e1c5025a46c1f64daec4017d34a700d9d269cc463ef9395989c73d9aeefad222409f6cdfba92742011c4ef4a9edef554706f3353dfd0f7bc526247551c5  redsocks.initd"