diff options
author | Andrea Scarpino | 2017-12-02 19:51:54 +0100 |
---|---|---|
committer | Andrea Scarpino | 2017-12-02 19:51:54 +0100 |
commit | 83d422a040471caa566e6818e6331dca3d8c6bbc (patch) | |
tree | 70a7521ff01aa8f86cda2004a504dc8834a8510b /PKGBUILD | |
parent | 0e8e91af05fb55efa5c43c5dbbf4adcff227803d (diff) | |
download | aur-83d422a040471caa566e6818e6331dca3d8c6bbc.tar.gz |
Update to latest development
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 68 |
1 files changed, 47 insertions, 21 deletions
@@ -1,42 +1,68 @@ # Maintainer: Andrea Scarpino <andrea@archlinux.org> pkgname=dowse-git -pkgver=81.e365694 +pkgver=v0.9.r971.g0b0fc46 pkgrel=1 pkgdesc='Minimalistic tool to configure the routing of a local area network' -arch=('any') +arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') url='https://github.com/dyne/dowse' license=('GPL') -depends=('zsh' 'privoxy' 'squid' 'dnsmasq' 'tor' 'daemontools' 'iptables' 'ebtables') +depends=('zsh' 'hiredis' 'jemalloc' 'libltdl' 'libsodium' 'ldns' 'libnetfilter_queue' 'uuid' 'cmake' 'liblo' 'nmap' 'python-flask' 'python-redis' 'xmlstarlet' 'wget') makedepends=('git') conflicts=('dowse') provides=('dowse') -backup=('usr/share/dowse/conf/network' 'usr/share/dowse/conf/settings') -install=dowse.install -source=('git://github.com/dyne/dowse.git' - 'dowse.sh' - 'dowse.service') +backup=('etc/dowse/network.dist' 'etc/dowse/settings.dist') +source=('git+https://github.com/dyne/dowse.git' + 'git+https://github.com/dyne/zuper.git' + 'git+https://github.com/warmcat/libwebsockets.git' + 'git+https://github.com/jedisct1/dnscrypt-proxy' + 'git+https://github.com/dyne/domain-list' + 'git+https://github.com/firehol/netdata' + 'git+https://github.com/node-red/node-red.git' + 'dowse.sh' 'dowse.service' 'dowse-sysusers.conf') md5sums=('SKIP' - '4d296e0099e15aa82fdf42fbe111dc5d' - '112e9e1e5b0bee78abdd09dba2e7606d') + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + '0fc748c686944f0d9432c6a5f71d3bc3' + '112e9e1e5b0bee78abdd09dba2e7606d' + '460d04d7632b4431b4d454326b03a9f0') pkgver() { cd dowse - printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } -package() { +prepare() { + cd dowse + git submodule init + git config submodule.zuper.url "$srcdir/zuper" + git config submodule.src/libwebsockets.url "$srcdir/libwebsockets" + git config submodule.src/dnscrypt-proxy.url "$srcdir/dnscrypt-proxy" + git config submodule.src/domain-list.url "$srcdir/domain-list" + git config submodule.src/netdata.url "$srcdir/netdata" + git config submodule.src/node-red.url "$srcdir/node-red" + git submodule update + + sed -i 's:DOWSE_HOME =.*:DOWSE_HOME = /usr/share/dowse:' config.mk +} + +build() { cd dowse - install -d "${pkgdir}"/usr/share/dowse/conf - install -m755 dowse "${pkgdir}"/usr/share/dowse/ - cp -r {modules,zlibs} "${pkgdir}"/usr/share/dowse/ - touch "${pkgdir}"/usr/share/dowse/conf/{network,settings} + unset LDFLAGS # mosquitto doesn't build with relro,now + make PREFIX=/usr/share/dowse +} - install -d "${pkgdir}"/usr/share/doc/dowse - cp -r {conf,doc} "${pkgdir}"/usr/share/doc/dowse/ +package() { + cd dowse + make DESTDIR="${pkgdir}" PREFIX=/usr/share/dowse install - install -D "${srcdir}"/dowse.sh "${pkgdir}"/usr/bin/dowse + chown -R 1988:1988 "${pkgdir}/usr/share/dowse" - install -d "${pkgdir}"/usr/lib/systemd/system - install "${srcdir}"/dowse.service "${pkgdir}"/usr/lib/systemd/system/ + install -Dm0644 "${srcdir}"/dowse-sysusers.conf "${pkgdir}/usr/lib/sysusers.d/dowse.conf" + install -d "${pkgdir}/usr/lib/systemd/system" + install "${srcdir}/dowse.service" "${pkgdir}/usr/lib/systemd/system/" } |