Source

autotunnel / PKGBUILD

# Maintainer: Josh VanderLinden <arch@cloudlery.com>
pkgname=autotunnel
pkgver=0.2.1
pkgrel=1
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/default.conf'
  'etc/supervisor.d/autotunnel.ini'
)
md5sums=() #generate with 'makepkg -g'

package() {
  cd ..

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

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

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