You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/newsyslog/newsyslog-1.1-r1.ebuild

45 lines
960 B

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
#inherit eutils
DESCRIPTION="a highly configurable program for managing and archiving log files"
HOMEPAGE="http://www.weird.com/~woods/projects/newsyslog.html"
SRC_URI="ftp://ftp.weird.com/pub/local/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
DEPEND="sys-apps/groff"
RDEPEND="
virtual/cron
app-arch/gzip"
PATCHES=( "${FILESDIR}"/newsyslog-html.patch )
DOCS=( newsyslog.conf AUTHORS ChangeLog INSTALL NEWS ToDo )
src_configure() {
local myconf="--with-syslogd_pid=/var/run/syslog.pid"
has_version 'app-admin/syslog-ng' \
&& myconf="--with-syslogd_pid=/var/run/syslog-ng.pid"
econf \
--with-gzip \
--with-newsyslog_conf=/etc/newsyslog.conf \
${myconf}
}
src_install() {
emake \
DESTDIR="${D}" \
catmandir="${T}"/dont-install \
install
einstalldocs
}