diff options
author | lilydjwg | 2015-07-25 12:39:43 +0800 |
---|---|---|
committer | lilydjwg | 2015-07-25 12:39:43 +0800 |
commit | f09415bcf6befcd7cb13e475a5873d11e1d2e320 (patch) | |
tree | 8bcccb4efb365f51309ed05771b93b1954d4967d | |
download | aur-f09415bcf6befcd7cb13e475a5873d11e1d2e320.tar.gz |
import for AUR3
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 26 | ||||
-rw-r--r-- | beautifuldnsd.install | 16 |
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..81fdb1fe8b99 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +# Generated by makepkg 4.2.1 +# Fri May 15 09:19:51 UTC 2015 +pkgbase = beautifuldnsd + pkgdesc = Quick and clean DNS proxy, especially useful for users with poor ISPs + pkgver = 0.4 + pkgrel = 1 + url = https://github.com/programmervy/beautifuldnsd + install = beautifuldnsd.install + arch = any + license = public domain + depends = python>=3.4 + depends = python-dnslib + depends = python-yaml + optdepends = dnsmasq: DNS cache + optdepends = python-pygeoip: China only DNS configuration + optdepends = geoip-database: provides a database for geoip lookups + backup = etc/beautifuldnsd.yaml + source = beautifuldnsd-0.4.tar.gz::https://github.com/programmervy/beautifuldnsd/archive/v0.4.tar.gz + md5sums = f750c7df394256816c22636d836fbbd7 + +pkgname = beautifuldnsd + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0ac34aeaf0b9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +pkgname=beautifuldnsd +pkgver=0.4 +pkgrel=1 +pkgdesc="Quick and clean DNS proxy, especially useful for users with poor ISPs" +arch=('any') +url=https://github.com/programmervy/beautifuldnsd +license=("public domain") +depends=('python>=3.4' 'python-dnslib' 'python-yaml') +optdepends=( + 'dnsmasq: DNS cache' + 'python-pygeoip: China only DNS configuration' + 'geoip-database: provides a database for geoip lookups' +) +backup=("etc/${pkgname}.yaml") +install=beautifuldnsd.install +source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) +md5sums=('f750c7df394256816c22636d836fbbd7') + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + install -D -m644 systemd/beautifuldnsd.service "${pkgdir}/usr/lib/systemd/system/${pkgname}.service" + install -D -m644 systemd/tmpfiles.conf "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf" + install -D -m644 beautifuldnsd.yaml "${pkgdir}/etc/${pkgname}.yaml" + install -D -m755 beautifuldnsd "${pkgdir}/usr/bin/${pkgname}" +} + diff --git a/beautifuldnsd.install b/beautifuldnsd.install new file mode 100644 index 000000000000..9d8fe2afe0c5 --- /dev/null +++ b/beautifuldnsd.install @@ -0,0 +1,16 @@ +post_install() { + useradd -r -U -d /var/lib/beautifuldnsd -s /bin/false beautifuldnsd &>/dev/null + chown -R beautifuldnsd:beautifuldnsd /etc/beautifuldnsd.yaml + + usr/bin/systemd-tmpfiles --create beautifuldnsd.conf +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + userdel beautifuldnsd &>/dev/null + groupdel beautifuldnsd &>/dev/null + rm -rf var/lib/beautifuldnsd +} |