Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 433036 Details for
Bug 581926
app-admin/metalog: update init script's shebang from runscript to openrc-run
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
0001-app-admin-metalog-update-to-EAPI-6.patch (text/plain), 2.60 KB, created by
Austin English (RETIRED)
on 2016-05-03 08:14:16 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Austin English (RETIRED)
Created:
2016-05-03 08:14:16 UTC
Size:
2.60 KB
patch
obsolete
>From 0f32043d5eac00776f40df911bfe79b375ac547d Mon Sep 17 00:00:00 2001 >From: Austin English <wizardedit@gentoo.org> >Date: Tue, 3 May 2016 03:11:36 -0500 >Subject: [PATCH] app-admin/metalog; update to EAPI=6 > >Signed-off-by: Austin English <wizardedit@gentoo.org> >--- > app-admin/metalog/files/metalog.initd | 4 +-- > app-admin/metalog/metalog-3-r2.ebuild | 61 +++++++++++++++++++++++++++++++++++ > 2 files changed, 63 insertions(+), 2 deletions(-) > create mode 100644 app-admin/metalog/metalog-3-r2.ebuild > >diff --git a/app-admin/metalog/files/metalog.initd b/app-admin/metalog/files/metalog.initd >index a921c0d..af9af5a 100644 >--- a/app-admin/metalog/files/metalog.initd >+++ b/app-admin/metalog/files/metalog.initd >@@ -1,5 +1,5 @@ >-#!/sbin/runscript >-# Copyright 1999-2011 Gentoo Foundation >+#!/sbin/openrc-run >+# Copyright 1999-2016 Gentoo Foundation > # Distributed under the terms of the GNU General Public License v2 > # $Id$ > >diff --git a/app-admin/metalog/metalog-3-r2.ebuild b/app-admin/metalog/metalog-3-r2.ebuild >new file mode 100644 >index 0000000..33220ec >--- /dev/null >+++ b/app-admin/metalog/metalog-3-r2.ebuild >@@ -0,0 +1,61 @@ >+# Copyright 1999-2016 Gentoo Foundation >+# Distributed under the terms of the GNU General Public License v2 >+# $Id$ >+ >+EAPI="6" >+inherit systemd >+ >+DESCRIPTION="A highly configurable replacement for syslogd/klogd" >+HOMEPAGE="http://metalog.sourceforge.net/" >+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" >+ >+LICENSE="GPL-2" >+SLOT="0" >+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" >+IUSE="unicode" >+ >+RDEPEND=">=dev-libs/libpcre-3.4" >+DEPEND="${RDEPEND} >+ virtual/pkgconfig >+ app-arch/xz-utils" >+ >+src_prepare() { >+ eapply -p0 "${FILESDIR}"/${PN}-0.9-metalog-conf.patch >+ default >+} >+ >+src_configure() { >+ econf $(use_with unicode) >+} >+ >+src_install() { >+ default >+ >+ dodoc metalog.conf >+ >+ into / >+ dosbin "${FILESDIR}"/consolelog.sh >+ >+ newinitd "${FILESDIR}"/metalog.initd metalog >+ newconfd "${FILESDIR}"/metalog.confd metalog >+ systemd_newunit "${FILESDIR}/${PN}.service-r1" "${PN}.service" >+} >+ >+pkg_preinst() { >+ if [[ -d "${ROOT}"/etc/metalog ]] && [[ ! -e "${ROOT}"/etc/metalog.conf ]] ; then >+ mv -f "${ROOT}"/etc/metalog/metalog.conf "${ROOT}"/etc/metalog.conf >+ rmdir "${ROOT}"/etc/metalog >+ export MOVED_METALOG_CONF=true >+ else >+ export MOVED_METALOG_CONF=false >+ fi >+} >+ >+pkg_postinst() { >+ if ${MOVED_METALOG_CONF} ; then >+ elog "The default metalog.conf file has been moved" >+ elog "from /etc/metalog/metalog.conf to just" >+ elog "/etc/metalog.conf. If you had a standard" >+ elog "setup, the file has been moved for you." >+ fi >+} >-- >2.7.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 581926
: 433036