summaryrefslogtreecommitdiff
path: root/extra/ypbind-mt
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-24 00:04:12 +0000
committerroot <root@rshg054.dnsready.net>2012-06-24 00:04:12 +0000
commit4319f36e44d4e7c70bf010c3286bb1739c59d4de (patch)
tree570e5a756192067d69cbabeab8fcf6b81cec3c51 /extra/ypbind-mt
parent11357a5ab02a7d536375fb8333b2fb67278b4a36 (diff)
Sun Jun 24 00:04:11 UTC 2012
Diffstat (limited to 'extra/ypbind-mt')
-rw-r--r--extra/ypbind-mt/PKGBUILD14
-rw-r--r--extra/ypbind-mt/ypbind.service13
2 files changed, 21 insertions, 6 deletions
diff --git a/extra/ypbind-mt/PKGBUILD b/extra/ypbind-mt/PKGBUILD
index 352078fe3..d4ce1b4d9 100644
--- a/extra/ypbind-mt/PKGBUILD
+++ b/extra/ypbind-mt/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 150656 2012-02-19 12:54:57Z tomegun $
+# $Id: PKGBUILD 162167 2012-06-22 13:00:20Z dreisner $
# Maintainer: Tom Gundersen <teg@jklm.no>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
@@ -6,20 +6,20 @@
pkgname=ypbind-mt
pkgver=1.33
-pkgrel=4
+pkgrel=5
pkgdesc='Linux NIS daemon'
url='http://www.linux-nis.org/nis/ypbind-mt/'
license=('GPL2')
arch=('i686' 'x86_64')
makedepends=('networkmanager')
-depends=('rpcbind' 'openslp' 'dbus-glib')
-optdepends=('yp-tools: to set a domain name')
+depends=('rpcbind' 'openslp' 'dbus-glib' 'yp-tools')
backup=('etc/yp.conf' 'etc/conf.d/ypbind' 'etc/conf.d/nisdomainname')
#source=("ftp://ftp.kernel.org/pub/linux/utils/net/NIS/${pkgname}-${pkgver}.tar.gz"
source=("ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
'nisdomainname.conf'
'ypbind.conf'
- 'ypbind')
+ 'ypbind'
+ 'ypbind.service')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
@@ -40,9 +40,11 @@ package() {
install -D -m755 ../ypbind "${pkgdir}"/etc/rc.d/ypbind
install -D -m644 ../ypbind.conf "${pkgdir}"/etc/conf.d/ypbind
install -D -m644 ../nisdomainname.conf "${pkgdir}"/etc/conf.d/nisdomainname
+ install -D -m644 ../ypbind.service "${pkgdir}"/usr/lib/systemd/system/ypbind.service
install -d -m755 "${pkgdir}"/var/yp/binding
}
md5sums=('692f68ed0476762be4228ce543a5b791'
'e83a85291ea2ee152a78f2c16b0b1185'
'229309a989abad27703ac2e6d07dc7ae'
- '1f7a4c80414d580c9afb3a08267beed0')
+ '1f7a4c80414d580c9afb3a08267beed0'
+ '88a721095e334cd442f4649a151ba9be')
diff --git a/extra/ypbind-mt/ypbind.service b/extra/ypbind-mt/ypbind.service
new file mode 100644
index 000000000..c59231000
--- /dev/null
+++ b/extra/ypbind-mt/ypbind.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=YP Bind
+Requires=rpcbind.service domainname.service
+After=rpcbind.service domainname.service network.target
+Before=systemd-user-sessions.service
+
+[Service]
+Type=forking
+PIDFile=/run/ypbind.pid
+ExecStart=/usr/sbin/ypbind
+
+[Install]
+WantedBy=multi-user.target