1 |
commit: 052d7331d758dacff62ec6f33f051c361598c193 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 26 02:37:55 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 02:37:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=052d7331 |
7 |
|
8 |
net-misc/balance: modernise ebuild a bit |
9 |
|
10 |
- Drop unnecessary declarations |
11 |
- Make path for fcaps relative |
12 |
- ${EROOT} prefix for path in pkg_postinst |
13 |
|
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
net-misc/balance/balance-3.57-r1.ebuild | 10 +++------- |
17 |
1 file changed, 3 insertions(+), 7 deletions(-) |
18 |
|
19 |
diff --git a/net-misc/balance/balance-3.57-r1.ebuild b/net-misc/balance/balance-3.57-r1.ebuild |
20 |
index b988c64b8a44..bfbf74ec2a13 100644 |
21 |
--- a/net-misc/balance/balance-3.57-r1.ebuild |
22 |
+++ b/net-misc/balance/balance-3.57-r1.ebuild |
23 |
@@ -12,15 +12,11 @@ SRC_URI="http://www.inlab.de/${P}.tar.gz" |
24 |
LICENSE="GPL-2" |
25 |
SLOT="0" |
26 |
KEYWORDS="~amd64 ~ppc ~x86" |
27 |
-IUSE="" |
28 |
- |
29 |
-DEPEND="" |
30 |
-RDEPEND="" |
31 |
|
32 |
PATCHES=( "${FILESDIR}"/${P}-Makefile.patch ) |
33 |
|
34 |
FILECAPS=( |
35 |
- 'CAP_NET_BIND_SERVICE' '/usr/sbin/balance' |
36 |
+ CAP_NET_BIND_SERVICE usr/sbin/balance |
37 |
) |
38 |
|
39 |
src_prepare() { |
40 |
@@ -32,12 +28,12 @@ src_prepare() { |
41 |
src_install() { |
42 |
default |
43 |
|
44 |
- #autocreated on program start, if missing |
45 |
+ # Autocreated on program start, if missing |
46 |
rm -rv "${ED}/var/run" || die |
47 |
} |
48 |
|
49 |
pkg_postinst() { |
50 |
fcaps_pkg_postinst |
51 |
elog "To run as non-root, be sure to have rendezvous directory created" |
52 |
- elog "with either 'mkdir -m 01777 /var/run/balance' or using tmpfiles." |
53 |
+ elog "with either 'mkdir -m 01777 ${EROOT}/var/run/balance' or using tmpfiles." |
54 |
} |