[arch-commits] Commit in nbd/trunk (PKGBUILD nbd-at.service.tmpl)

Christian Hesse eworm at archlinux.org
Fri Jul 1 06:38:05 UTC 2016


    Date: Friday, July 1, 2016 @ 06:38:05
  Author: eworm
Revision: 181662

upgpkg: nbd 3.14-1

Added:
  nbd/trunk/nbd-at.service.tmpl
Modified:
  nbd/trunk/PKGBUILD

---------------------+
 PKGBUILD            |   13 ++++++++++---
 nbd-at.service.tmpl |   11 +++++++++++
 2 files changed, 21 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-07-01 06:23:38 UTC (rev 181661)
+++ PKGBUILD	2016-07-01 06:38:05 UTC (rev 181662)
@@ -5,13 +5,14 @@
 # Contributor: Gerhard Brauer <gerbra at archlinux.de>
 
 pkgname=nbd
-pkgver=3.13
-pkgrel=2
+pkgver=3.14
+pkgrel=1
 pkgdesc="tools for network block devices, allowing you to use remote block devices over TCP/IP"
 arch=('i686' 'x86_64')
 url="http://nbd.sourceforge.net"
 license=('GPL')
 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz
+	nbd-at.service.tmpl
 	config
 	nbd.service
 	sysusers_nbd.conf)
@@ -18,11 +19,16 @@
 backup=('etc/nbd-server/config')
 depends=('glib2')
 install=nbd.install
-md5sums=('784be37497cc2f9a53c67c8c77d1676d'
+md5sums=('fa29f57ca752e363edc15f0e35f0a95f'
+         'b34f29303dcab511e93e055ca24bbe77'
          'a5b890148b80c5951dbe9daa2f487d63'
          '5d1acc143018117174f79eff15afa038'
          'd969703f3d161935bb160a5c7afd468f')
 
+prepare() {
+  install -D -m0644 nbd-at.service.tmpl "${srcdir}/${pkgname}-${pkgver}"/systemd/nbd at .service.tmpl
+}
+
 build(){
   cd "${srcdir}/${pkgname}-${pkgver}"
 
@@ -39,6 +45,7 @@
   cd "${srcdir}/${pkgname}-${pkgver}"
 
   make DESTDIR="${pkgdir}" install
+  install -D -m644 systemd/nbd at .service "${pkgdir}"/usr/lib/systemd/system/nbd at .service
 
   install -D -m644 "${srcdir}"/config "${pkgdir}"/etc/nbd-server/config
   install -D -m644 "${srcdir}"/nbd.service "${pkgdir}"/usr/lib/systemd/system/nbd.service

Added: nbd-at.service.tmpl
===================================================================
--- nbd-at.service.tmpl	                        (rev 0)
+++ nbd-at.service.tmpl	2016-07-01 06:38:05 UTC (rev 181662)
@@ -0,0 +1,11 @@
+[Unit]
+Description=NBD client connection for %i
+Documentation=man:nbd-client
+PartOf=nbd.service
+[Service]
+Type=forking
+ExecStart=@sbindir@/nbd-client %i
+Before=dev-%i.device
+RequiredBy=dev-%i.device
+[Install]
+RequiredBy=dev-%i.device



More information about the arch-commits mailing list