updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / sslh-git / PKGBUILD
blob7110296804db7a761d540f4a651b17ccc36cda13
1 pkgname=sslh-git
2 pkgver=20100830
3 pkgrel=1
4 pkgdesc="SSL/SSH Multiplexer"
5 arch=('i686' 'x86_64')
6 url="http://www.rutschle.net/tech/sslh.shtml"
7 license=('unknown')
8 backup=('etc/conf.d/sslh')
9 source=(rc.sslh)
10 conflicts=(sslh)
11 provides=(sslh)
13 md5sums=('a3ce8df734690d97bd24c76405896052')
15 _gitroot="http://github.com/slubman/sslh.git"
16 _gitname="sslh"
18 build() {
19   cd $srcdir
21   if [ -e $_gitname ] ; then
22     cd $_gitname
23     git pull || return 1
24     cd ..
25   else
26     git clone $_gitroot $_gitname || return 1
27   fi
29   cd $srcdir/${_gitname}
31   sed -i -e "s+init.d+rc.d+" $srcdir/${_gitname}/sslh.pod
32   sed -i -e "s+/etc/default+/etc/conf.d+" $srcdir/${_gitname}/sslh.pod
34   make || return 1
35   sed -i -e "s+^PREFIX=/usr/local+PREFIX=${pkgdir}/usr+" $srcdir/${_gitname}/Makefile
36   make install
37   install -D -m 0644 $srcdir/${_gitname}/scripts/etc.default.sslh ${pkgdir}/etc/conf.d/sslh
38   install -D -m 0755 ../rc.sslh ${pkgdir}/etc/rc.d/sslh
41 # vim:set ts=2 sw=2 et: