mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-21 03:59:06 -07:00
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>
This commit is contained in:
@@ -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."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user