diff options
author | zlowly | 2020-03-03 10:54:44 +0800 |
---|---|---|
committer | zlowly | 2020-03-03 10:54:44 +0800 |
commit | 6f6baf667e02be594c0ab8fb62f4c635a0c40e7b (patch) | |
tree | da4014437534d321e0de73dc82e51e986dd40640 | |
parent | 42abe10da7b841dc080cd0162cdc9dd458487ffa (diff) | |
download | aur-smartdns-git.tar.gz |
update to new version and remove unneeded patch files
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 17 | ||||
-rw-r--r-- | smartdns.patch | 24 |
3 files changed, 7 insertions, 38 deletions
@@ -1,6 +1,6 @@ pkgbase = smartdns-git 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. - pkgver = r288.d6c3465 + pkgver = r319.3ad7cd7 pkgrel = 1 url = https://github.com/pymumu/smartdns arch = x86_64 @@ -11,9 +11,7 @@ pkgbase = smartdns-git conflicts = smartdns backup = etc/smartdns/smartdns.conf source = smartdns::git+https://github.com/pymumu/smartdns.git - source = smartdns.patch md5sums = SKIP - md5sums = 2481e2bdb5bf5c140107fef66f13151f pkgname = smartdns-git @@ -1,32 +1,27 @@ # Maintainer: zlowly <zlowly@gmail.com> pkgname=smartdns-git _pkgname=${pkgname%-git} -pkgver=r288.d6c3465 +pkgver=r319.3ad7cd7 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') +depends=('openssl') makedepends=('git') provides=("${_pkgname}") conflicts=("${_pkgname}") -source=("smartdns::git+https://github.com/pymumu/smartdns.git" "${_pkgname}.patch") +source=("smartdns::git+https://github.com/pymumu/smartdns.git") backup=("etc/smartdns/smartdns.conf") -md5sums=('SKIP' - '2481e2bdb5bf5c140107fef66f13151f') +md5sums=('SKIP') pkgver() { cd "$srcdir/${_pkgname}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } -prepare() { - cd "$srcdir" - patch -p1 "${_pkgname}/systemd/smartdns.service" < "${_pkgname}.patch" -} build() { cd "$srcdir/${_pkgname}" - make -C ./src clean - make -C ./src all VER=$pkgver + make clean + make VER=$pkgver SBINDIR=/usr/bin RUNSTATEDIR=/run } package() { cd "$srcdir/${_pkgname}" diff --git a/smartdns.patch b/smartdns.patch deleted file mode 100644 index bc511092ff92..000000000000 --- a/smartdns.patch +++ /dev/null @@ -1,24 +0,0 @@ ---- smartdns.service.old 2019-09-24 10:41:44.487335094 +0800 -+++ smartdns.service.new 2019-09-24 10:44:43.832401460 +0800 -@@ -1,17 +1,17 @@ - [Unit] - Description=smart dns server - After=network.target -+StartLimitBurst=0 -+StartLimitIntervalSec=60 - - [Service] - Type=forking --PIDFile=/var/run/smartdns.pid -+PIDFile=/run/smartdns.pid - EnvironmentFile=/etc/default/smartdns --ExecStart=/usr/sbin/smartdns $SMART_DNS_OPTS -+ExecStart=/usr/bin/smartdns $SMART_DNS_OPTS - KillMode=process - Restart=always - RestartSec=2 --StartLimitBurst=0 --StartLimitIntervalSec=60 - - [Install] - WantedBy=multi-user.target |