diff options
Diffstat (limited to 'app-admin/scylla-manager-agent/scylla-manager-agent-2.1.2.ebuild')
-rw-r--r-- | app-admin/scylla-manager-agent/scylla-manager-agent-2.1.2.ebuild | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/app-admin/scylla-manager-agent/scylla-manager-agent-2.1.2.ebuild b/app-admin/scylla-manager-agent/scylla-manager-agent-2.1.2.ebuild index 94f0edc..8c71da9 100644 --- a/app-admin/scylla-manager-agent/scylla-manager-agent-2.1.2.ebuild +++ b/app-admin/scylla-manager-agent/scylla-manager-agent-2.1.2.ebuild @@ -20,7 +20,7 @@ RDEPEND=" DEPEND="${RDEPEND}" RESTRICT="fetch" -S=${WORKDIR} +S="${WORKDIR}/${PN}-${MY_V}.x86_64" src_unpack() { for rpm in ${A}; do @@ -28,6 +28,14 @@ src_unpack() { done } +src_prepare() { + default + sed -e 's/User=scylla-manager/User=scylla/g' -i usr/lib/systemd/system/*.service || die + sed -e 's/Group=scylla-manager/User=scylla/g' -i usr/lib/systemd/system/*.service || die + + rm -rf usr/share || die +} + src_install() { default @@ -35,12 +43,10 @@ src_install() { fowners scylla:scylla "/var/lib/scylla-manager" insinto /etc - doins -r */etc/* - - rm -rf */usr/share || die + doins -r etc/* insinto /usr - doins -r */usr/* + doins -r usr/* fperms +x /usr/bin/scylla-manager-agent fperms +x /usr/lib/scylla-manager/scyllamgr_agent_setup |