1 |
commit: 90a0342e7bd37e7069b5c6bdaf8eca6f43c4f3a2 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 3 14:36:24 2021 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 3 14:36:24 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90a0342e |
7 |
|
8 |
sys-block/nbd: install systemd service unit |
9 |
|
10 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
11 |
|
12 |
sys-block/nbd/{nbd-3.21.ebuild => nbd-3.21-r1.ebuild} | 7 +++++++ |
13 |
sys-block/nbd/nbd-9999.ebuild | 9 ++++++++- |
14 |
2 files changed, 15 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/sys-block/nbd/nbd-3.21.ebuild b/sys-block/nbd/nbd-3.21-r1.ebuild |
17 |
similarity index 94% |
18 |
rename from sys-block/nbd/nbd-3.21.ebuild |
19 |
rename to sys-block/nbd/nbd-3.21-r1.ebuild |
20 |
index 57890d32bc1..732367ad897 100644 |
21 |
--- a/sys-block/nbd/nbd-3.21.ebuild |
22 |
+++ b/sys-block/nbd/nbd-3.21-r1.ebuild |
23 |
@@ -3,6 +3,8 @@ |
24 |
|
25 |
EAPI=7 |
26 |
|
27 |
+inherit systemd |
28 |
+ |
29 |
DESCRIPTION="Userland client/server for kernel network block device" |
30 |
HOMEPAGE="http://nbd.sourceforge.net/" |
31 |
if [[ "${PV}" = 9999 ]] ; then |
32 |
@@ -58,3 +60,8 @@ src_configure() { |
33 |
) |
34 |
econf "${myeconfargs[@]}" |
35 |
} |
36 |
+ |
37 |
+src_install() { |
38 |
+ default |
39 |
+ systemd_dounit systemd/nbd@.service |
40 |
+} |
41 |
|
42 |
diff --git a/sys-block/nbd/nbd-9999.ebuild b/sys-block/nbd/nbd-9999.ebuild |
43 |
index fad2a1deede..732367ad897 100644 |
44 |
--- a/sys-block/nbd/nbd-9999.ebuild |
45 |
+++ b/sys-block/nbd/nbd-9999.ebuild |
46 |
@@ -1,8 +1,10 @@ |
47 |
-# Copyright 1999-2019 Gentoo Authors |
48 |
+# Copyright 1999-2021 Gentoo Authors |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
|
51 |
EAPI=7 |
52 |
|
53 |
+inherit systemd |
54 |
+ |
55 |
DESCRIPTION="Userland client/server for kernel network block device" |
56 |
HOMEPAGE="http://nbd.sourceforge.net/" |
57 |
if [[ "${PV}" = 9999 ]] ; then |
58 |
@@ -58,3 +60,8 @@ src_configure() { |
59 |
) |
60 |
econf "${myeconfargs[@]}" |
61 |
} |
62 |
+ |
63 |
+src_install() { |
64 |
+ default |
65 |
+ systemd_dounit systemd/nbd@.service |
66 |
+} |