[arch-commits] Commit in smartdns/trunk (PKGBUILD systemd.patch)

Felix Yan felixonmars at archlinux.org
Sun May 3 19:59:40 UTC 2020


    Date: Sunday, May 3, 2020 @ 19:59:39
  Author: felixonmars
Revision: 624610

upgpkg: smartdns 31-1

Modified:
  smartdns/trunk/PKGBUILD
Deleted:
  smartdns/trunk/systemd.patch

---------------+
 PKGBUILD      |   19 ++++++-------------
 systemd.patch |   24 ------------------------
 2 files changed, 6 insertions(+), 37 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-03 19:25:57 UTC (rev 624609)
+++ PKGBUILD	2020-05-03 19:59:39 UTC (rev 624610)
@@ -2,7 +2,7 @@
 # Contributor: zlowly <zlowly at gmail.com>
 
 pkgname=smartdns
-pkgver=30
+pkgver=31
 pkgrel=1
 pkgdesc="A local DNS server to obtain the fastest website IP for the best Internet experience"
 arch=('x86_64')
@@ -10,15 +10,9 @@
 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=('f9b2f8947822da1dfb84a2d4c7a8175690d7425ceedaf7217ddb25b79d16677100385a505326c91f85928020aaa66f4c862678132ca415c319325f54913174c0'
-            '8868441c983fe4426f3876a1fa6f1e89bfde2ede78b7fae564cd840a269523b6952c1fbd7f44a562d0c875e35d6d563b335e1f0503e7b49d0aed0fa9655abdab')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pymumu/smartdns/archive/Release$pkgver.tar.gz")
+sha512sums=('fd774714c2ef58bf7bb0d69fb7530cea4472e3b9bbe9371f174ce792be2f3ab26f9dc617f26ac8f07d13c5e08e5a5b3701e19bd11a36753f7d07936a00ebfe9d')
 
-prepare() {
-  patch -p1 -i systemd.patch smartdns-Release$pkgver/systemd/smartdns.service
-}
-
 build() {
   cd smartdns-Release$pkgver/src
   make
@@ -26,8 +20,7 @@
 
 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
+  make DESTDIR="$pkgdir" RUNSTATEDIR=/run SBINDIR=/usr/bin install
+
+  rm -r "$pkgdir"/etc/init.d
 }

Deleted: systemd.patch
===================================================================
--- systemd.patch	2020-05-03 19:25:57 UTC (rev 624609)
+++ systemd.patch	2020-05-03 19:59:39 UTC (rev 624610)
@@ -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



More information about the arch-commits mailing list