1 |
commit: bef0042bf2cd2e9b23494f8d136473bc343569b9 |
2 |
Author: charIes17 <charles17 <AT> arcor <DOT> de> |
3 |
AuthorDate: Mon Aug 7 16:09:09 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 26 21:45:05 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bef0042b |
7 |
|
8 |
app-admin/metalog: Bump EAPI 6, Gentoo-Bug 618572 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/5340 |
12 |
|
13 |
.../metalog/files/metalog-0.9-metalog-conf.patch | 4 +- |
14 |
app-admin/metalog/metalog-3-r2.ebuild | 56 ++++++++++++++++++++++ |
15 |
2 files changed, 58 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/app-admin/metalog/files/metalog-0.9-metalog-conf.patch b/app-admin/metalog/files/metalog-0.9-metalog-conf.patch |
18 |
index d3b2efc2e26..efb794de545 100644 |
19 |
--- a/app-admin/metalog/files/metalog-0.9-metalog-conf.patch |
20 |
+++ b/app-admin/metalog/files/metalog-0.9-metalog-conf.patch |
21 |
@@ -1,5 +1,5 @@ |
22 |
---- metalog.conf |
23 |
-+++ metalog.conf |
24 |
+--- a/metalog.conf |
25 |
++++ b/metalog.conf |
26 |
@@ -21,6 +21,8 @@ |
27 |
# merely write $@ to some device (your console for messages): |
28 |
# echo "$@" > /dev/tty10 |
29 |
|
30 |
diff --git a/app-admin/metalog/metalog-3-r2.ebuild b/app-admin/metalog/metalog-3-r2.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..073d55ec90e |
33 |
--- /dev/null |
34 |
+++ b/app-admin/metalog/metalog-3-r2.ebuild |
35 |
@@ -0,0 +1,56 @@ |
36 |
+# Copyright 1999-2017 Gentoo Foundation |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI="6" |
40 |
+inherit eutils systemd |
41 |
+ |
42 |
+DESCRIPTION="A highly configurable replacement for syslogd/klogd" |
43 |
+HOMEPAGE="http://metalog.sourceforge.net/" |
44 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz" |
45 |
+ |
46 |
+LICENSE="GPL-2" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" |
49 |
+IUSE="unicode" |
50 |
+ |
51 |
+RDEPEND=">=dev-libs/libpcre-3.4" |
52 |
+DEPEND="${RDEPEND} |
53 |
+ virtual/pkgconfig |
54 |
+ app-arch/xz-utils" |
55 |
+ |
56 |
+PATCHES=( "${FILESDIR}"/${PN}-0.9-metalog-conf.patch ) |
57 |
+ |
58 |
+src_configure() { |
59 |
+ econf $(use_with unicode) |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ emake DESTDIR="${D}" install |
64 |
+ dodoc AUTHORS ChangeLog README NEWS metalog.conf |
65 |
+ |
66 |
+ into / |
67 |
+ dosbin "${FILESDIR}"/consolelog.sh |
68 |
+ |
69 |
+ newinitd "${FILESDIR}"/metalog.initd metalog |
70 |
+ newconfd "${FILESDIR}"/metalog.confd metalog |
71 |
+ systemd_newunit "${FILESDIR}/${PN}.service-r1" "${PN}.service" |
72 |
+} |
73 |
+ |
74 |
+pkg_preinst() { |
75 |
+ if [[ -d "${ROOT}"/etc/metalog ]] && [[ ! -e "${ROOT}"/etc/metalog.conf ]] ; then |
76 |
+ mv -f "${ROOT}"/etc/metalog/metalog.conf "${ROOT}"/etc/metalog.conf |
77 |
+ rmdir "${ROOT}"/etc/metalog |
78 |
+ export MOVED_METALOG_CONF=true |
79 |
+ else |
80 |
+ export MOVED_METALOG_CONF=false |
81 |
+ fi |
82 |
+} |
83 |
+ |
84 |
+pkg_postinst() { |
85 |
+ if ${MOVED_METALOG_CONF} ; then |
86 |
+ ewarn "The default metalog.conf file has been moved" |
87 |
+ ewarn "from /etc/metalog/metalog.conf to just" |
88 |
+ ewarn "/etc/metalog.conf. If you had a standard" |
89 |
+ ewarn "setup, the file has been moved for you." |
90 |
+ fi |
91 |
+} |