blob: 9b51143e77835147ed247c62a46cc6ea84ab33a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="a highly configurable program for managing and archiving log files"
HOMEPAGE="http://www.weird.com/~woods/projects/newsyslog.html"
SRC_URI="http://download.openpkg.org/components/cache/${PN}/${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}/${P}-html.patch" )
DOCS=( newsyslog.conf AUTHORS ChangeLog INSTALL NEWS ToDo )
src_configure() {
local myconf="--with-syslogd_pid=/var/run/syslog.pid"
if has_version 'app-admin/syslog-ng'; then
myconf="--with-syslogd_pid=/var/run/syslog-ng.pid"
fi
econf \
--with-gzip \
--with-newsyslog_conf=/etc/newsyslog.conf \
${myconf}
}
src_install() {
emake \
DESTDIR="${D}" \
catmandir="${T}"/dont-install \
install
einstalldocs
}
|