1 # Copyright 1999-2017 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"
21 PATCHES=( "${FILESDIR}"/${PN}-0.9-metalog-conf.patch )
24 econf $(use_with unicode)
28 emake DESTDIR="${D}" install
29 dodoc AUTHORS ChangeLog README NEWS metalog.conf
32 dosbin "${FILESDIR}"/consolelog.sh
34 newinitd "${FILESDIR}"/metalog.initd metalog
35 newconfd "${FILESDIR}"/metalog.confd metalog
36 systemd_newunit "${FILESDIR}/${PN}.service-r1" "${PN}.service"
40 if [[ -d "${ROOT}"/etc/metalog ]] && [[ ! -e "${ROOT}"/etc/metalog.conf ]] ; then
41 mv -f "${ROOT}"/etc/metalog/metalog.conf "${ROOT}"/etc/metalog.conf
42 rmdir "${ROOT}"/etc/metalog
43 export MOVED_METALOG_CONF=true
45 export MOVED_METALOG_CONF=false
50 if ${MOVED_METALOG_CONF} ; then
51 ewarn "The default metalog.conf file has been moved"
52 ewarn "from /etc/metalog/metalog.conf to just"
53 ewarn "/etc/metalog.conf. If you had a standard"
54 ewarn "setup, the file has been moved for you."