blob: 14cfd5aeff73775cd98c80ecb77e77f540940950 (
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
|
# $Id: PKGBUILD 69632 2012-04-20 19:47:13Z lfleischer $
# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor: Kevin Piche <kevin@archlinux.org>
pkgname=stunnel
pkgver=4.53
pkgrel=2
pkgdesc="A program that allows you to encrypt arbitrary TCP connections inside SSL"
arch=('i686' 'x86_64')
url="http://www.stunnel.org"
license=('GPL')
depends=('openssl')
install=$pkgname.install
options=('!libtool')
source=("ftp://ftp.stunnel.org/stunnel/$pkgname-$pkgver.tar.gz"{,.asc}
'Makefile.patch'
'stunnel.rc.d'
'stunnel.tmpfiles.conf')
md5sums=('ab3bfc915357d67da18c73f73610d593'
'ea8d7637e072fa1bb8706c85e6ea0152'
'f15398497e10e080c2406d2fc541660c'
'4c7e3634a9d4dc040102f5d4160fb123'
'2e065a39998e57727ee79887bbd1751e')
build() {
cd "$srcdir/$pkgname-$pkgver"
# don't create a certificate...
patch -p0 < "$srcdir/Makefile.patch"
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-ipv6 \
--disable-libwrap
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
for i in ca.pl importCA.sh; do
install -Dm755 "tools/$i" "$pkgdir/usr/share/stunnel/$i"
done
install -Dm644 tools/stunnel.cnf "$pkgdir/etc/stunnel/stunnel.cnf"
install -Dm755 "$srcdir/stunnel.rc.d" "$pkgdir/etc/rc.d/stunnel"
install -Dm644 "$srcdir/stunnel.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/stunnel.conf"
# move systemd service into place
install -dm755 "$pkgdir/usr/lib/systemd/system"
mv "tools/stunnel.service" "$pkgdir/usr/lib/systemd/system/"
sed -e "s:/usr/var/lib/stunnel/:/var/run/stunnel:g" \
-e "s:/usr/etc/stunnel/:/etc/stunnel/:g" \
-e "s:no\(body\|group\):stunnel:g" \
-i "$pkgdir/etc/stunnel/stunnel.conf-sample"
}
|