app-admin/logrotate: Fix path in service unit and remove src_compile
authorChris Mayo <aklhfex@gmail.com>
Wed, 12 Jul 2017 11:37:39 +0000 (13:37 +0200)
committerChema Alonso Josa <nimiux@gentoo.org>
Wed, 12 Jul 2017 11:52:41 +0000 (13:52 +0200)
Closes: https://github.com/gentoo/gentoo/pull/5037

Package-Manager: Portage-2.3.6, Repoman-2.3.1

app-admin/logrotate/logrotate-3.12.3.ebuild

index d455e749b40f31d8843b76acbce3a4091b346200..30879bc88d80d04a806aa683f718967b0c9d615e 100644 (file)
@@ -38,8 +38,8 @@ PATCHES=(
 )
 
 src_prepare() {
-       default
-       sed -i -e 's#/usr/sbin/logrotate#/usr/bin/logrotate#' "${S}"/examples/logrotate.cron || die
+       sed -i -e 's#/usr/sbin/logrotate#/usr/bin/logrotate#' "${S}"/examples/logrotate.{cron,service} || die
+       eapply_user
 }
 
 src_configure() {
@@ -49,10 +49,6 @@ src_configure() {
        econf $(use_with acl) $(use_with selinux) ${compressconf}
 }
 
-src_compile() {
-       emake RPM_OPT_FLAGS="${CFLAGS}"
-}
-
 src_test() {
        emake test
 }