# Contributor: Johannes Matheis # Maintainer: Johannes Matheis pkgname=quicktun pkgver=2.2.4 pkgrel=2 pkgdesc="Simple and secure VPN software using NaCl encryption" url="http://wiki.ucis.nl/QuickTun" arch="all" license="BSD" depends="" depends_dev="tar libsodium-dev" makedepends="$depends_dev linux-headers" install="quicktun.pre-install" subpackages="$pkgname-keypair" source="http://oss.ucis.nl/${pkgname}/src/${pkgname}-${pkgver}.tgz quicktun.initd quicktun.conf" _builddir="$srcdir/${pkgname}-${pkgver}" prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./build.sh } package() { cd "$_builddir" install -D out/quicktun.combined "${pkgdir}/usr/bin/quicktun.combined" ln -s quicktun.combined "${pkgdir}/usr/bin/quicktun" install -D -m600 ${srcdir}/quicktun.conf "${pkgdir}"/etc/quicktun/quicktun.conf install -D -m755 ${srcdir}/quicktun.initd "${pkgdir}"/etc/init.d/quicktun } keypair() { pkgdesc="Tool to create a quicktun public/private keypair" cd "$_builddir" install -D out/quicktun.keypair "${subpkgdir}/usr/bin/quicktun.keypair" } md5sums="5e27c9b1ccae0c6d6e4b30ca476f910d quicktun-2.2.4.tgz 66a25dd9e7212001123e78901477337c quicktun.initd 097c43021134f43294c894464099a8fb quicktun.conf" sha256sums="652383d30f4a1ac2d42500e676f4c8590efaeea21a1e40a3ad1c332aa2ba3a0c quicktun-2.2.4.tgz 53b6d6fbeb5267a62618f9b4fe992436d48d6b1c80940c698cd08132828094e8 quicktun.initd 787a37b2fbae6b44adebd422e6476da08c37c8db6bf0ac35a8d790ba4c50fe59 quicktun.conf" sha512sums="da60fc39d8e85d5b2c162633840b887be3fd58d9f2b3a99fe605fa13546e4f53878ce6246d835b7931e42193fb044330c539b29751cdb6f54d025efc52041487 quicktun-2.2.4.tgz 8d6808d3d359a25c489d344cd40d6e69df052deaba56414c23c8244bd6cf4f95a4ac1b498ceb5a3503bfb5ebf0511cb234fd8d75bba712bd8ef1a653cd97e9d6 quicktun.initd 6056ea4d4f8f8c58198a101b0f59f258e9318c3b57b6efbc6f3587665315b5b5990dee5662a27ee0e15a2333446c1d18b2a3650af7abbfbb4fe572c002b2a1b7 quicktun.conf"