1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="A highly configurable replacement for syslogd/klogd"
8 HOMEPAGE="http://metalog.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
13 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
16 RDEPEND=">=dev-libs/libpcre-3.4"
22 epatch "${FILESDIR}"/${PN}-0.9-metalog-conf.patch
26 econf $(use_with unicode)
30 emake DESTDIR="${D}" install || die "make install failed"
31 dodoc AUTHORS ChangeLog README NEWS metalog.conf
34 dosbin "${FILESDIR}"/consolelog.sh || die
36 newinitd "${FILESDIR}"/metalog.initd metalog
37 newconfd "${FILESDIR}"/metalog.confd metalog
38 systemd_newunit "${FILESDIR}/${PN}.service-r1" "${PN}.service"
42 if [[ -d "${ROOT}"/etc/metalog ]] && [[ ! -e "${ROOT}"/etc/metalog.conf ]] ; then
43 mv -f "${ROOT}"/etc/metalog/metalog.conf "${ROOT}"/etc/metalog.conf
44 rmdir "${ROOT}"/etc/metalog
45 export MOVED_METALOG_CONF=true
47 export MOVED_METALOG_CONF=false
52 if ${MOVED_METALOG_CONF} ; then
53 ewarn "The default metalog.conf file has been moved"
54 ewarn "from /etc/metalog/metalog.conf to just"
55 ewarn "/etc/metalog.conf. If you had a standard"
56 ewarn "setup, the file has been moved for you."