[arch-commits] Commit in iodine/trunk (PKGBUILD iodined.conf.d iodined.service)

Felix Yan fyan at archlinux.org
Tue Nov 11 08:05:07 UTC 2014


    Date: Tuesday, November 11, 2014 @ 09:05:06
  Author: fyan
Revision: 122342

upgpkg: iodine 0.7.0-2

FS#42705 Drop root privileges after start

Modified:
  iodine/trunk/PKGBUILD
  iodine/trunk/iodined.conf.d
  iodine/trunk/iodined.service

-----------------+
 PKGBUILD        |   21 ++++++++++-----------
 iodined.conf.d  |    4 ++++
 iodined.service |    2 +-
 3 files changed, 15 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-11-11 07:26:37 UTC (rev 122341)
+++ PKGBUILD	2014-11-11 08:05:06 UTC (rev 122342)
@@ -1,5 +1,5 @@
 # $Id$
-# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
 # Contributor: Christian Hesse <mail at eworm.de>
 # Contributor: Daenyth <Daenyth+Arch [at] gmail [dot] com>
 # Contributor: nofxx <x at nofxx.com>
@@ -6,24 +6,27 @@
 
 pkgname=iodine
 pkgver=0.7.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Tunnel IPv4 data through a DNS server'
 arch=('i686' 'x86_64')
 url='http://code.kryo.se/iodine'
 license=('custom:ISC')
 depends=('zlib' 'net-tools')
-source=("http://code.kryo.se/${pkgname}/${pkgname}-${pkgver/rc/-rc}.tar.gz"
-       'iodined.service'
-       'iodined.conf.d')
+source=("http://code.kryo.se/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+        'iodined.service'
+        'iodined.conf.d')
+sha256sums=('ad2b40acf1421316ec15800dcde0f587ab31d7d6f891fa8b9967c4ded93c013e'
+            '4019f95432c7b272b96c80a112abd56f4c308bfab4cc920525880c30f417cb84'
+            '47e710954cdf68b4c2f66cac367c2bf4e750f682cd393001b8da67da1cdee54b')
 
 build() {
-  cd ${pkgname}-${pkgver/rc/-rc}/
+  cd ${pkgname}-${pkgver}
 
   make
 }
 
 package() {
-  cd ${pkgname}-${pkgver/rc/-rc}/
+  cd ${pkgname}-${pkgver}
 
   make prefix=/usr sbindir=/usr/bin DESTDIR="${pkgdir}" install
   install -d "${pkgdir}/usr/share/licenses/iodine"
@@ -32,7 +35,3 @@
   install -Dm644 "$srcdir/iodined.service" "$pkgdir/usr/lib/systemd/system/iodined.service"
   install -Dm644 "$srcdir/iodined.conf.d" "$pkgdir/etc/conf.d/iodined"
 }
-
-sha256sums=('ad2b40acf1421316ec15800dcde0f587ab31d7d6f891fa8b9967c4ded93c013e'
-            '4d2c45ab783ce07911afe48403884edc0ee5ccbb463bc4026f83b511d5dde418'
-            '6babc497d86e7b142f61e529f9facacb95e868e920b15dcf66e039891b02929b')

Modified: iodined.conf.d
===================================================================
--- iodined.conf.d	2014-11-11 07:26:37 UTC (rev 122341)
+++ iodined.conf.d	2014-11-11 08:05:06 UTC (rev 122342)
@@ -15,3 +15,7 @@
 
 # External IP of your iodined server, used in DNS answers.
 IODINE_EXT_IP=""
+
+# The user iodined should run as.
+IODINE_USER="nobody"
+

Modified: iodined.service
===================================================================
--- iodined.service	2014-11-11 07:26:37 UTC (rev 122341)
+++ iodined.service	2014-11-11 08:05:06 UTC (rev 122342)
@@ -4,7 +4,7 @@
 
 [Service]
 EnvironmentFile=/etc/conf.d/iodined
-ExecStart=/usr/bin/iodined -f -c -l $IODINE_BIND_ADDRESS -n $IODINE_EXT_IP -p $IODINE_PORT -P $IODINE_PASSWORD $TUN_IP $TOP_DOMAIN
+ExecStart=/usr/bin/iodined -f -c -l $IODINE_BIND_ADDRESS -n $IODINE_EXT_IP -p $IODINE_PORT -P $IODINE_PASSWORD -u $IODINE_USER $TUN_IP $TOP_DOMAIN
 
 [Install]
 WantedBy=multi-user.target


More information about the arch-commits mailing list