Source

autotunnel / PKGBUILD

# Maintainer: Josh VanderLinden <arch@cloudlery.com>
pkgname=autotunnel
pkgver=0.3.2
pkgrel=2
pkgdesc="Easily create tunnels, reverse tunnels, and socks proxies"
arch=('any')
url="http://www.codekoala.com/"
license=('BSD')
depends=(
  'autossh'
  'openssh'
)
optdepends=(
  'supervisor: systemd-less magic'
  'systemd: preferred method of operation'
)
backup=(
  'etc/autotunnel.d/default.conf'
  'etc/autotunnel.d/autotunnel.ini'
)
install=autotunnel.install
md5sums=() #generate with 'makepkg -g'

package() {
  cd ..

  mkdir -p ${pkgdir}/etc/autotunnel.d
  mkdir -p ${pkgdir}/usr/local/bin
  mkdir -p ${pkgdir}/usr/lib/systemd/system
  mkdir -p ${pkgdir}/usr/share/man/man1

  cp default.conf ${pkgdir}/etc/autotunnel.d/
  cp autotunnel.ini ${pkgdir}/etc/autotunnel.d/
  cp autotunnel ${pkgdir}/usr/local/bin/
  cp *.service ${pkgdir}/usr/lib/systemd/system/

  # manpage
  rst2man2 README.rst > autotunnel.1
  gzip autotunnel.1
  mv autotunnel.1.gz ${pkgdir}/usr/share/man/man1
}

# vim:set ts=2 sw=2 et: