aboutsummaryrefslogtreecommitdiffstats
path: root/community/stunnel/APKBUILD
blob: 224ce311aaf913d74a60c1406c54530551beb54b (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
53
54
55
56
57
58
59
60
61
62
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Dean Takemori <deant@hawaii.rr.com>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=stunnel
pkgver=5.35
pkgrel=2
pkgdesc="SSL encryption wrapper between network client and server."
url="http://www.stunnel.org/"
arch="all"
license="GPL2+ with OpenSSL exception"
depends="openssl"
makedepends="libressl-dev"
subpackages="$pkgname-doc"
install="$pkgname.pre-install"
source="https://www.stunnel.org/downloads/$pkgname-$pkgver.tar.gz
	stunnel-libressl.patch
	stunnel.initd
	stunnel.conf"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-fips \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"

	make DESTDIR="$pkgdir" install || return 1

	install -Dm755 "$srcdir"/stunnel.initd \
		"$pkgdir"/etc/init.d/stunnel || return 1
	install -m644 "$srcdir"/stunnel.conf \
		"$pkgdir"/etc/stunnel/stunnel.conf || return 1

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples/
	mv "$pkgdir"/etc/stunnel/stunnel.conf-sample \
		"$pkgdir"/usr/share/doc/$pkgname/examples/
}

md5sums="9079f5fafbccaf88b7d92b227d78249a  stunnel-5.35.tar.gz
ee6cd228bb9628336624e2261f3032b5  stunnel-libressl.patch
da32978d82c03158d7b947e10b1ba284  stunnel.initd
f1227c57d136eb7db3853844f683916a  stunnel.conf"
sha256sums="ffa386ae4c825f35f35157c285e7402a6d58779ad8c3822f74a9d355b54aba1d  stunnel-5.35.tar.gz
05df599689d23175ab9450ecc3a73a181e9ac2d9e3800d66e758fe5f0b51bc32  stunnel-libressl.patch
01c7c7f43cebb299659cd344a98bc64418d516f6530d0b24772d70bb1d56847e  stunnel.initd
42971d32e5e79490564d2f71d6a47bbe4aaabd740ba75b75e38207ea0845fec1  stunnel.conf"
sha512sums="cdec7ddafbfac4a1d420704baec72fedbd655871137ec8283c066203c0859019c6e11ce00647e5b471a019409e4eb5e9525166eddd7ddffa25055b95c0cacd9e  stunnel-5.35.tar.gz
42d180aeca48ea5d154f7561445ab7d7bb13598e859f914b71bba8ebf439ed02e0693798aad2b6cf3236844a5da1984bc74fd3827f7639b1e9da48c8589795ee  stunnel-libressl.patch
33e215413e08fdd5783cc76e6ba6a2342fb6d0573f801815c4d3022625e71be6c9739d47a7a61bf7c803f27911b9c92cf6ae3e522add040f83802e1aaeaee000  stunnel.initd
a72bfddeb74787d58c9fd24782d86c0498ce3530a43fbdd4ec4c4b57baa6257b6ef21005aca274b22c4a22cdbbbcee63dd3d841f458af248db9c69e8d59fa56f  stunnel.conf"