summaryrefslogtreecommitdiff
path: root/app-admin/fifo-cronolog/fifo-cronolog-1.2.3.ebuild
blob: 940b4376a493f4e3cbe04b0570284788ed9fa20d (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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit systemd

DESCRIPTION="cronolog wrapper for use with dumb daemons like squid, varnish and so on"
HOMEPAGE="https://gitweb.gentoo.org/proj/fifo-cronolog.git"
SRC_URI="mirror://gentoo/${P}.tar.gz"

LICENSE="BSD-2 GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="app-admin/cronolog"

src_compile() {
	emake all
}

src_install() {
	dosbin fifo-cronolog
	dosym fifo-cronolog /usr/sbin/squid-cronolog
	dosbin fifo-cronolog-setup

	newinitd openrc/fifo-cronolog.initd fifo-cronolog
	newconfd openrc/fifo-cronolog.confd fifo-cronolog

	systemd_douserunit systemd/fifo-cronolog@.service
	dodoc README.md systemd/fifo-cronolog@example.service.env
}

pkg_postinst() {
	elog "Warning: app-admin/squid-cronolog has been renamed to app-admin/fifo-cronolog."
	elog "This also applies to the binary 'squid-cronolog' but there is a symlink for now"
	elog "Please fix your scripts/configs."
}