[arch-commits] Commit in smartdns/repos/community-x86_64 (3 files)

Felix Yan felixonmars at archlinux.org
Sun May 3 20:00:08 UTC 2020


    Date: Sunday, May 3, 2020 @ 20:00:07
  Author: felixonmars
Revision: 624611

archrelease: copy trunk to community-x86_64

Added:
  smartdns/repos/community-x86_64/PKGBUILD
    (from rev 624610, smartdns/trunk/PKGBUILD)
Deleted:
  smartdns/repos/community-x86_64/PKGBUILD
  smartdns/repos/community-x86_64/systemd.patch

---------------+
 PKGBUILD      |   59 ++++++++++++++++++++++++--------------------------------
 systemd.patch |   24 ----------------------
 2 files changed, 26 insertions(+), 57 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-03 19:59:39 UTC (rev 624610)
+++ PKGBUILD	2020-05-03 20:00:07 UTC (rev 624611)
@@ -1,33 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: zlowly <zlowly at gmail.com>
-
-pkgname=smartdns
-pkgver=30
-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=('f9b2f8947822da1dfb84a2d4c7a8175690d7425ceedaf7217ddb25b79d16677100385a505326c91f85928020aaa66f4c862678132ca415c319325f54913174c0'
-            '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/PKGBUILD (from rev 624610, smartdns/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-03 20:00:07 UTC (rev 624611)
@@ -0,0 +1,26 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: zlowly <zlowly at gmail.com>
+
+pkgname=smartdns
+pkgver=31
+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")
+sha512sums=('fd774714c2ef58bf7bb0d69fb7530cea4472e3b9bbe9371f174ce792be2f3ab26f9dc617f26ac8f07d13c5e08e5a5b3701e19bd11a36753f7d07936a00ebfe9d')
+
+build() {
+  cd smartdns-Release$pkgver/src
+  make
+}
+
+package() {
+  cd smartdns-Release$pkgver
+  make DESTDIR="$pkgdir" RUNSTATEDIR=/run SBINDIR=/usr/bin install
+
+  rm -r "$pkgdir"/etc/init.d
+}

Deleted: systemd.patch
===================================================================
--- systemd.patch	2020-05-03 19:59:39 UTC (rev 624610)
+++ systemd.patch	2020-05-03 20:00:07 UTC (rev 624611)
@@ -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