commit:     90a0342e7bd37e7069b5c6bdaf8eca6f43c4f3a2
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  3 14:36:24 2021 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sat Apr  3 14:36:24 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90a0342e

sys-block/nbd: install systemd service unit

Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 sys-block/nbd/{nbd-3.21.ebuild => nbd-3.21-r1.ebuild} | 7 +++++++
 sys-block/nbd/nbd-9999.ebuild                         | 9 ++++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/sys-block/nbd/nbd-3.21.ebuild b/sys-block/nbd/nbd-3.21-r1.ebuild
similarity index 94%
rename from sys-block/nbd/nbd-3.21.ebuild
rename to sys-block/nbd/nbd-3.21-r1.ebuild
index 57890d32bc1..732367ad897 100644
--- a/sys-block/nbd/nbd-3.21.ebuild
+++ b/sys-block/nbd/nbd-3.21-r1.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=7
 
+inherit systemd
+
 DESCRIPTION="Userland client/server for kernel network block device"
 HOMEPAGE="http://nbd.sourceforge.net/";
 if [[ "${PV}" = 9999 ]] ; then
@@ -58,3 +60,8 @@ src_configure() {
        )
        econf "${myeconfargs[@]}"
 }
+
+src_install() {
+       default
+       systemd_dounit systemd/[email protected]
+}

diff --git a/sys-block/nbd/nbd-9999.ebuild b/sys-block/nbd/nbd-9999.ebuild
index fad2a1deede..732367ad897 100644
--- a/sys-block/nbd/nbd-9999.ebuild
+++ b/sys-block/nbd/nbd-9999.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
+inherit systemd
+
 DESCRIPTION="Userland client/server for kernel network block device"
 HOMEPAGE="http://nbd.sourceforge.net/";
 if [[ "${PV}" = 9999 ]] ; then
@@ -58,3 +60,8 @@ src_configure() {
        )
        econf "${myeconfargs[@]}"
 }
+
+src_install() {
+       default
+       systemd_dounit systemd/[email protected]
+}

Reply via email to