From dee9f17b595ea903a982d31d1124b302bb17e2ff Mon Sep 17 00:00:00 2001 From: root Date: Wed, 17 Jul 2013 00:58:52 -0700 Subject: Wed Jul 17 00:58:51 PDT 2013 --- community/nbd/PKGBUILD | 40 ---------------------------------------- community/nbd/config | 33 --------------------------------- community/nbd/nbd.install | 13 ------------- community/nbd/nbd.service | 10 ---------- 4 files changed, 96 deletions(-) delete mode 100644 community/nbd/PKGBUILD delete mode 100644 community/nbd/config delete mode 100644 community/nbd/nbd.install delete mode 100644 community/nbd/nbd.service (limited to 'community/nbd') diff --git a/community/nbd/PKGBUILD b/community/nbd/PKGBUILD deleted file mode 100644 index bc073921d..000000000 --- a/community/nbd/PKGBUILD +++ /dev/null @@ -1,40 +0,0 @@ -# $Id: PKGBUILD 90984 2013-05-16 23:49:59Z svenstaro $ -# Maintainer: Sven-Hendrik Haase -# Contributor: Christian Hesse -# Contributor: Ionut Biru -# Contributor: Gerhard Brauer - -pkgname=nbd -pkgver=3.3 -pkgrel=3 -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.bz2 - config nbd.service) -backup=('etc/nbd-server/config') -depends=('glib2') -install=nbd.install -md5sums=('cde8fe6e870b8a7459f12e5dcf572d86' - '2d05d426b8c2708d5f8a0d028fcbae05' - '5d1acc143018117174f79eff15afa038') - -build(){ - cd "${srcdir}/${pkgname}-${pkgver}" - - ./configure --prefix=/usr --sysconfdir=/etc --enable-syslog --sbindir=/usr/bin - - make -} - -package() { - cd "${srcdir}/${pkgname}-${pkgver}" - - make DESTDIR="${pkgdir}" install - - install -D -m644 "${srcdir}"/config "${pkgdir}"/etc/nbd-server/config - install -D -m644 "${srcdir}"/nbd.service "${pkgdir}"/usr/lib/systemd/system/nbd.service - - install -D -m644 README "${pkgdir}"/usr/share/doc/nbd/README -} diff --git a/community/nbd/config b/community/nbd/config deleted file mode 100644 index 777f0ef24..000000000 --- a/community/nbd/config +++ /dev/null @@ -1,33 +0,0 @@ -[generic] - # The [generic] section is required, even if nothing is specified - # there. - # When either of these options are specified, nbd-server drops - # privileges to the given user and group after opening ports, but - # _before_ opening files. - user = nbd - group = nbd - # Since version 2.9.17, nbd-server will do exports on a name - # basis (the used name is the name of the section in which the - # export is specified). This however required an incompatible - # protocol change. To enable backwards-compatible port-based - # exports, uncomment the following line: - # oldstyle = true -[export1] - exportname = /export/nbd/export1-file - # The following line will be ignored unless the - # "oldstyle = true" line in the generic section above is - # enabled. - #port = 12345 - authfile = /export/nbd/export1-authfile - timeout = 30 - filesize = 10000000 - readonly = false - multifile = false - copyonwrite = false - prerun = dd if=/dev/zero of=%s bs=1k count=500 - postrun = rm -f %s -[otherexport] - exportname = /export/nbd/experiment - # The other options are all optional, except this one in case - # the oldstyle option is used in [generic]: - # port = 12346 diff --git a/community/nbd/nbd.install b/community/nbd/nbd.install deleted file mode 100644 index 9e7a01e98..000000000 --- a/community/nbd/nbd.install +++ /dev/null @@ -1,13 +0,0 @@ -post_install() { - getent group "nbd" &>/dev/null || groupadd -r -g 44 nbd 1>/dev/null - getent passwd "nbd" &>/dev/null || useradd -r -u 44 -g nbd -d "/var/empty" -s "/bin/false" nbd 1>/dev/null -} - -post_upgrade() { - post_install -} - -pre_remove() { - getent passwd "nbd" &>/dev/null && userdel nbd 1>/dev/null - getent group "nbd" &>/dev/null && groupdel nbd 1>/dev/null -} diff --git a/community/nbd/nbd.service b/community/nbd/nbd.service deleted file mode 100644 index 3d580514c..000000000 --- a/community/nbd/nbd.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Network Block Device Server -After=network.target - -[Service] -Type=forking -ExecStart=/usr/bin/nbd-server - -[Install] -WantedBy=multi-user.target -- cgit v1.2.3-54-g00ecf