diff options
author | zlowly | 2019-11-05 15:02:41 +0800 |
---|---|---|
committer | zlowly | 2019-11-05 15:02:41 +0800 |
commit | 092eb44266f92a44377d4ebec86226383835aca3 (patch) | |
tree | 06ce066bdfdf43d9f0d8a1d65f819da26505eb28 /PKGBUILD | |
download | aur-092eb44266f92a44377d4ebec86226383835aca3.tar.gz |
initial version
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fae3a57bbef1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: zlowly <zlowly@gmail.com> +pkgname=smartdns +pkgver=1.2019.05.21 +pkgrel=1 +pkgdesc="Local DNS server that accepts DNS query requests from local clients, obtains DNS query results from multiple upstream DNS servers, and returns the fastest access results to clients." +arch=("x86_64") +url="https://github.com/pymumu/smartdns" +license=("GPL3") +depends=('openssl-1.0') +source=("https://github.com/pymumu/smartdns/releases/download/Release25/smartdns.$pkgver-2250.$CARCH.tar.gz" "$pkgname.patch") +md5sums=('a523051f8ee0a66d9c6880e7876917cd' + '2481e2bdb5bf5c140107fef66f13151f') +prepare() { + patch -p1 "$srcdir/$pkgname/systemd/smartdns.service" < "$pkgname.patch" +} +package() { + cd $pkgname + install -Dm755 src/smartdns "$pkgdir/usr/bin/smartdns" + install -Dm640 etc/smartdns/smartdns.conf "$pkgdir/etc/smartdns/smartdns.conf" + install -Dm640 etc/default/smartdns "$pkgdir/etc/default/smartdns" + install -Dm644 systemd/smartdns.service "$pkgdir/usr/lib/systemd/system/smartdns.service" +} |