updated on Sun Jan 15 20:01:04 UTC 2012
[aur-mirror.git] / sslh / PKGBUILD
blob7dd56c13eb4458b0b50e4a4be02026a6ca9c2728
1 # Maintainer: Le_suisse <lesuisse.dev+aur at gmail dot com>
2 # Contributor: Jason Rodriguez <jason-aur@catloaf.net>
3 pkgname=sslh
4 pkgver=1.10
5 pkgrel=2
6 pkgdesc="SSL/SSH Multiplexer"
7 arch=('any')
8 url="http://www.rutschle.net/tech/sslh.shtml"
9 license=('GPL2')
10 backup=('etc/conf.d/sslh')
11 source=("http://www.rutschle.net/tech/${pkgname}-${pkgver}.tar.gz"
12         "rc.sslh")
14 md5sums=('bc34e9a4770d634633e70589c72708cc'
15          '60197b40960bb4c0e30e7bb41aceb784')
17 build() {
18   cd "$srcdir/$pkgname-$pkgver"
19   sed -i -e "s+init.d+rc.d+" $srcdir/$pkgname-$pkgver/sslh.pod
20   sed -i -e "s+/etc/default+/etc/conf.d+" $srcdir/$pkgname-$pkgver/sslh.pod
22   make || return 1
23   sed -i -e "s+^PREFIX=/usr/local+PREFIX=${pkgdir}/usr+" $srcdir/$pkgname-$pkgver/Makefile
24   make install
25   install -D -m 0644 $srcdir/$pkgname-$pkgver/scripts/etc.default.sslh ${pkgdir}/etc/conf.d/sslh
26   install -D -m 0755 ../rc.sslh ${pkgdir}/etc/rc.d/sslh