diff options
author | Andrea Scarpino | 2015-06-10 18:56:54 +0200 |
---|---|---|
committer | Andrea Scarpino | 2015-06-10 18:56:54 +0200 |
commit | fddbc98c993ba284962e18ac2e4cd8ce707ab2c9 (patch) | |
tree | 86ceafad17b3cef0bcde3be83da38f907f8c4568 | |
download | aur-fddbc98c993ba284962e18ac2e4cd8ce707ab2c9.tar.gz |
Initial import
-rw-r--r-- | .AURINFO | 29 | ||||
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | dowse.install | 22 | ||||
-rwxr-xr-x | dowse.service | 10 | ||||
-rwxr-xr-x | dowse.sh | 4 |
6 files changed, 129 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO new file mode 100644 index 000000000000..2bb4d1bc1aff --- /dev/null +++ b/.AURINFO @@ -0,0 +1,29 @@ +pkgbase = dowse + pkgdesc = Minimalistic tool to configure the routing of a local area network + pkgver = 0.5 + pkgrel = 1 + url = https://github.com/dyne/dowse + install = dowse.install + arch = any + license = GPL + depends = zsh + depends = privoxy + depends = squid + depends = dnsmasq + depends = tor + depends = daemontools + depends = iptables + depends = ebtables + backup = usr/share/dowse/conf/network + backup = usr/share/dowse/conf/settings + source = https://releases.dyne.org/dowse/dowse-0.5.tar.gz + source = https://releases.dyne.org/dowse/dowse-0.5.tar.gz.asc + source = dowse.sh + source = dowse.service + sha256sums = 3c818fa7ca54829c107cb324bb7419cfe4c88f087900c5c42a8e57fb69adffe2 + sha256sums = SKIP + sha256sums = aa6072eac2bd0102697a1b8dcaa7d65535c60a93b5073cfb2fedeccab7660750 + sha256sums = 55d07c0166c10a536190845e70ee68c781d47164050d51906639cc2016a7aaea + +pkgname = dowse + diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2bb4d1bc1aff --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,29 @@ +pkgbase = dowse + pkgdesc = Minimalistic tool to configure the routing of a local area network + pkgver = 0.5 + pkgrel = 1 + url = https://github.com/dyne/dowse + install = dowse.install + arch = any + license = GPL + depends = zsh + depends = privoxy + depends = squid + depends = dnsmasq + depends = tor + depends = daemontools + depends = iptables + depends = ebtables + backup = usr/share/dowse/conf/network + backup = usr/share/dowse/conf/settings + source = https://releases.dyne.org/dowse/dowse-0.5.tar.gz + source = https://releases.dyne.org/dowse/dowse-0.5.tar.gz.asc + source = dowse.sh + source = dowse.service + sha256sums = 3c818fa7ca54829c107cb324bb7419cfe4c88f087900c5c42a8e57fb69adffe2 + sha256sums = SKIP + sha256sums = aa6072eac2bd0102697a1b8dcaa7d65535c60a93b5073cfb2fedeccab7660750 + sha256sums = 55d07c0166c10a536190845e70ee68c781d47164050d51906639cc2016a7aaea + +pkgname = dowse + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f4d555d22d93 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Andrea Scarpino <andrea@archlinux.org> + +pkgname=dowse +pkgver=0.5 +pkgrel=1 +pkgdesc='Minimalistic tool to configure the routing of a local area network' +arch=('any') +url='https://github.com/dyne/dowse' +license=('GPL') +depends=('zsh' 'privoxy' 'squid' 'dnsmasq' 'tor' 'daemontools' 'iptables' 'ebtables') +backup=('usr/share/dowse/conf/network' 'usr/share/dowse/conf/settings') +install=${pkgname}.install +source=("https://releases.dyne.org/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.asc} + 'dowse.sh' + 'dowse.service') +sha256sums=('3c818fa7ca54829c107cb324bb7419cfe4c88f087900c5c42a8e57fb69adffe2' + 'SKIP' + 'aa6072eac2bd0102697a1b8dcaa7d65535c60a93b5073cfb2fedeccab7660750' + '55d07c0166c10a536190845e70ee68c781d47164050d51906639cc2016a7aaea') + +package() { + cd ${pkgname}-${pkgver} + install -d "${pkgdir}"/usr/share/dowse/conf + install -m755 dowse "${pkgdir}"/usr/share/dowse/ + cp -r modules "${pkgdir}"/usr/share/dowse/ + touch "${pkgdir}"/usr/share/dowse/conf/{network,settings} + + install -d "${pkgdir}"/usr/share/doc/dowse + cp -r {conf,doc} "${pkgdir}"/usr/share/doc/dowse/ + + install -D "${srcdir}"/dowse.sh "${pkgdir}"/usr/bin/dowse + + install -d "${pkgdir}"/usr/lib/systemd/system + install "${srcdir}"/dowse.service "${pkgdir}"/usr/lib/systemd/system/ +} diff --git a/dowse.install b/dowse.install new file mode 100644 index 000000000000..4f6a64ffdf70 --- /dev/null +++ b/dowse.install @@ -0,0 +1,22 @@ +post_install() { + getent group dowse >/dev/null 2>&1 || groupadd -r dowse + getent passwd dowse >/dev/null 2>&1 || useradd -g dowse -d /usr/share/dowse -s /bin/zsh -r dowse + chown -R dowse:dowse /usr/share/dowse + + echo "==> In order to configure dowse you need to adjust both 'network' and 'settings' files" + echo " into dowse configuration dir: /usr/share/dowse/conf. See /usr/share/doc/dowse/conf" + echo " for exmaples." +} + +post_upgrade() { + post_install +} + +pre_remove() { + if getent passwd dowse >/dev/null 2>&1; then + userdel dowse + fi + if getent group dowse >/dev/null 2>&1; then + groupdel dowse + fi +} diff --git a/dowse.service b/dowse.service new file mode 100755 index 000000000000..2cf3dd64be1f --- /dev/null +++ b/dowse.service @@ -0,0 +1,10 @@ +[Unit] +Description=Dowse +After=network.target + +[Service] +User=dowse +ExecStart=/usr/bin/dowse start + +[Install] +WantedBy=multi-user.target diff --git a/dowse.sh b/dowse.sh new file mode 100755 index 000000000000..e3315c27d8de --- /dev/null +++ b/dowse.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +cd /usr/share/dowse +zsh ./dowse "$@" |