Date: Thursday, February 13, 2020 @ 22:24:21 Author: felixonmars Revision: 570945
archrelease: copy trunk to community-x86_64 Added: smartdns/repos/community-x86_64/ smartdns/repos/community-x86_64/PKGBUILD (from rev 570944, smartdns/trunk/PKGBUILD) smartdns/repos/community-x86_64/systemd.patch (from rev 570944, smartdns/trunk/systemd.patch) ---------------+ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ systemd.patch | 24 ++++++++++++++++++++++++ 2 files changed, 57 insertions(+) Copied: smartdns/repos/community-x86_64/PKGBUILD (from rev 570944, smartdns/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2020-02-13 22:24:21 UTC (rev 570945) @@ -0,0 +1,33 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: zlowly <zlo...@gmail.com> + +pkgname=smartdns +pkgver=28 +pkgrel=1 +pkgdesc="A local DNS server to obtain the fastest website IP for the best Internet experience" +arch=('x86_64') +license=('GPL') +url="https://github.com/pymumu/smartdns" +backup=("etc/smartdns/smartdns.conf") +depends=('openssl') +source=("$pkgname-$pkgver.tar.gz::https://github.com/pymumu/smartdns/archive/Release$pkgver.tar.gz" + systemd.patch) +sha512sums=('040b8917cc4f7a03b33a07262e4727ac076956c20facb64029b2edbac90827ed50a51c1e85ecf8a3bd0fb104c14032d378fe12e3c7da0f64b7758509bcd4df0f' + '8868441c983fe4426f3876a1fa6f1e89bfde2ede78b7fae564cd840a269523b6952c1fbd7f44a562d0c875e35d6d563b335e1f0503e7b49d0aed0fa9655abdab') + +prepare() { + patch -p1 -i systemd.patch smartdns-Release$pkgver/systemd/smartdns.service +} + +build() { + cd smartdns-Release$pkgver/src + make +} + +package() { + cd smartdns-Release$pkgver + install -Dm755 src/smartdns "$pkgdir"/usr/bin/smartdns + install -Dm644 etc/smartdns/smartdns.conf "$pkgdir"/etc/smartdns/smartdns.conf + install -Dm644 etc/default/smartdns "$pkgdir"/etc/default/smartdns + install -Dm644 systemd/smartdns.service "$pkgdir"/usr/lib/systemd/system/smartdns.service +} Copied: smartdns/repos/community-x86_64/systemd.patch (from rev 570944, smartdns/trunk/systemd.patch) =================================================================== --- community-x86_64/systemd.patch (rev 0) +++ community-x86_64/systemd.patch 2020-02-13 22:24:21 UTC (rev 570945) @@ -0,0 +1,24 @@ +--- 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