public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] dev/mgorny:master commit in: profiles/, systemd-units/rpcbind/, systemd-units/rpcbind/files/
@ 2011-12-12 12:09 Michał Górny
  0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2011-12-12 12:09 UTC (permalink / raw
  To: gentoo-commits

commit:     52966a637fa72dc96c7672a9161c50a47dc1aca5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 12 12:10:08 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Dec 12 12:10:08 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/mgorny.git;a=commit;h=52966a63

Add rpcbind units ebuild for systemd.

---
 profiles/categories                         |    1 +
 systemd-units/rpcbind/files/rpcbind.service |   12 ++++++++++++
 systemd-units/rpcbind/files/rpcbind.socket  |    8 ++++++++
 systemd-units/rpcbind/rpcbind-0.ebuild      |   22 ++++++++++++++++++++++
 4 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/profiles/categories b/profiles/categories
new file mode 100644
index 0000000..faee772
--- /dev/null
+++ b/profiles/categories
@@ -0,0 +1 @@
+systemd-units

diff --git a/systemd-units/rpcbind/files/rpcbind.service b/systemd-units/rpcbind/files/rpcbind.service
new file mode 100644
index 0000000..b960cd1
--- /dev/null
+++ b/systemd-units/rpcbind/files/rpcbind.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=RPC bind service
+Requires=rpcbind.socket
+After=syslog.target network.target
+
+[Service]
+# use --debug not to fork
+ExecStart=/sbin/rpcbind -a -d
+
+[Install]
+WantedBy=multi-user.target
+Also=rpcbind.socket

diff --git a/systemd-units/rpcbind/files/rpcbind.socket b/systemd-units/rpcbind/files/rpcbind.socket
new file mode 100644
index 0000000..d63c1d9
--- /dev/null
+++ b/systemd-units/rpcbind/files/rpcbind.socket
@@ -0,0 +1,8 @@
+[Unit]
+Description=RPCbind Server Activation Socket
+
+[Socket]
+ListenStream=/var/run/rpcbind.sock
+
+[Install]
+WantedBy=sockets.target

diff --git a/systemd-units/rpcbind/rpcbind-0.ebuild b/systemd-units/rpcbind/rpcbind-0.ebuild
new file mode 100644
index 0000000..a640a18
--- /dev/null
+++ b/systemd-units/rpcbind/rpcbind-0.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit systemd
+
+DESCRIPTION="Systemd units for net-nds/rpcbind"
+HOMEPAGE=""
+SRC_URI=""
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S=${WORKDIR}
+
+src_install() {
+	systemd_dounit "${FILESDIR}"/${PN}.{service,socket}
+}



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-12-12 12:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-12 12:09 [gentoo-commits] dev/mgorny:master commit in: profiles/, systemd-units/rpcbind/, systemd-units/rpcbind/files/ Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox