Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Metalog bump.

  • Loading branch information...
commit af02620cb3bd807736a364dfa8206ef377b05c54 1 parent 4e928d4
Piotr Karbowski authored
Showing with 62 additions and 2 deletions.
  1. +3 −2 app-admin/metalog/Manifest
  2. +59 −0 app-admin/metalog/metalog-3.ebuild
View
5 app-admin/metalog/Manifest
@@ -1,2 +1,3 @@
-DIST metalog-1.tar.lzma 276450 RMD160 219257e59e7634c9c38ab979fe01ce167ed3ce2c SHA1 420c9d1050a5085bd8b1b7fd849804c589bda26d SHA256 4f27a64e7abb1a1ecb078147db8db4e1edf2bcb72723ec5d9456af09255ff167
-DIST metalog-2.tar.xz 342848 RMD160 687d7aa17f58ba0c5f4011d852d60de3d69740ef SHA1 c22e94c95c41285f5b54c98cc94849d29e0edd78 SHA256 4c7e6a6aae6b38d3e03bf34bb9256fcba68888a58c4dbbb1c7d14ba73f8d8f42
+DIST metalog-1.tar.lzma 276450 SHA256 4f27a64e7abb1a1ecb078147db8db4e1edf2bcb72723ec5d9456af09255ff167
+DIST metalog-2.tar.xz 342848 SHA256 4c7e6a6aae6b38d3e03bf34bb9256fcba68888a58c4dbbb1c7d14ba73f8d8f42 SHA512 194d9ca0c5bc8addd1970362cfa7bf1a368f50a9aa7370e2c4d63eb9d9819df08df001a3a85595a74e7b16fdd78c94ffde3cd9a63962ebc9f6ed71b1a574d7cf WHIRLPOOL 23dafa1944808f40e41aee5fe6254222cebaa647e63ac503783fd07445cdc222c0724823676d5a5fe8b63496228d2629301c0dc5d88cd87e74f84841e9cef41b
+DIST metalog-3.tar.xz 360784 SHA256 0c3a1e19008b3d525eab6e5548a4e8cbb0fb235f2804dc41aace82c67ceeebe0 SHA512 2ac614bb85fe466308c4ced0842fdab5f056eda60e892189a8220719f1e06a72fce3c76842a2ac8c63a6808c20d8b7a7d8676896e14f7f54e40630ecbd21e289 WHIRLPOOL d06a23622bfcef053ac4d959952060c8c1649ea0a5e2f759612caf5819a32944b3c7f6d78233fec83944fe7b5535851d7dca4579b7849e08951da18be503ed09
View
59 app-admin/metalog/metalog-3.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/metalog/metalog-2.ebuild,v 1.1 2011/09/23 03:15:23 vapier Exp $
+
+EAPI="3"
+
+inherit eutils
+
+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 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
+IUSE="unicode"
+
+RDEPEND=">=dev-libs/libpcre-3.4"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+src_configure() {
+ econf $(use_with unicode)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ dodoc AUTHORS ChangeLog README NEWS metalog.conf
+
+ # Replace stock metalog.conf with new one.
+ rm -f "${D}/etc/metalog.conf"
+ install "${FILESDIR}/metalog.conf" "${D}/etc/metalog.conf" -m 0600 -o root -g root
+
+ into /
+ dosbin "${FILESDIR}"/consolelog.sh || die
+ dosbin "${FILESDIR}/metalog-postrotate-compress.sh" || die
+
+ newinitd "${FILESDIR}"/metalog.initd metalog
+ newconfd "${FILESDIR}"/metalog.confd metalog
+}
+
+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
+ ewarn "The default metalog.conf file has been moved"
+ ewarn "from /etc/metalog/metalog.conf to just"
+ ewarn "/etc/metalog.conf. If you had a standard"
+ ewarn "setup, the file has been moved for you."
+ fi
+}
Please sign in to comment.
Something went wrong with that request. Please try again.