diff options
author | Sam James <sam@gentoo.org> | 2022-02-26 02:37:55 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-02-26 02:37:55 +0000 |
commit | 052d7331d758dacff62ec6f33f051c361598c193 (patch) | |
tree | c6236771e7ebe34f10efb6bd892cbe220c50bdae /net-misc/balance | |
parent | net-misc/balance: add net_bind_service capability (diff) | |
download | gentoo-052d7331d758dacff62ec6f33f051c361598c193.tar.gz gentoo-052d7331d758dacff62ec6f33f051c361598c193.tar.bz2 gentoo-052d7331d758dacff62ec6f33f051c361598c193.zip |
net-misc/balance: modernise ebuild a bit
- Drop unnecessary declarations
- Make path for fcaps relative
- ${EROOT} prefix for path in pkg_postinst
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/balance')
-rw-r--r-- | net-misc/balance/balance-3.57-r1.ebuild | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/net-misc/balance/balance-3.57-r1.ebuild b/net-misc/balance/balance-3.57-r1.ebuild index b988c64b8a44..bfbf74ec2a13 100644 --- a/net-misc/balance/balance-3.57-r1.ebuild +++ b/net-misc/balance/balance-3.57-r1.ebuild @@ -12,15 +12,11 @@ SRC_URI="http://www.inlab.de/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" -IUSE="" - -DEPEND="" -RDEPEND="" PATCHES=( "${FILESDIR}"/${P}-Makefile.patch ) FILECAPS=( - 'CAP_NET_BIND_SERVICE' '/usr/sbin/balance' + CAP_NET_BIND_SERVICE usr/sbin/balance ) src_prepare() { @@ -32,12 +28,12 @@ src_prepare() { src_install() { default - #autocreated on program start, if missing + # Autocreated on program start, if missing rm -rv "${ED}/var/run" || die } pkg_postinst() { fcaps_pkg_postinst elog "To run as non-root, be sure to have rendezvous directory created" - elog "with either 'mkdir -m 01777 /var/run/balance' or using tmpfiles." + elog "with either 'mkdir -m 01777 ${EROOT}/var/run/balance' or using tmpfiles." } |