gentoo-ebuilds/sys-apps/syslog-notify/syslog-notify-0.2.ebuild
Sam James 1acbf3db4c
sys-apps/syslog-notify: update SRC_URI to drop github.com/downloads
Fixes: 21a70945a1
Signed-off-by: Sam James <sam@gentoo.org>
2023-05-01 13:35:50 +01:00

50 lines
1 KiB
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools readme.gentoo-r1
DESCRIPTION="Notifications for syslog entries via libnotify"
HOMEPAGE="https://jtniehof.github.io/syslog-notify/"
SRC_URI="https://github.com/jtniehof/syslog-notify/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
DEPEND=">=x11-libs/libnotify-0.7"
RDEPEND="
${DEPEND}
|| (
app-admin/syslog-ng
app-admin/rsyslog
)"
src_prepare() {
default
eautoreconf
}
src_install() {
default
dodoc HACKING
dodir /var/spool
keepdir /var/spool
local DISABLE_AUTOFORMATTING="yes"
local DOC_CONTENTS="Add the following options on your /etc/syslog-ng/syslog-ng.conf
file:
# destination notify { pipe("/var/spool/syslog-notify"); };
# log { source(src); destination(notify);};
Remember to restart syslog-ng before starting syslog-notify."
readme.gentoo_create_doc
}
pkg_postinst() {
mkfifo "${EROOT}"/var/spool/syslog-notify
readme.gentoo_print_elog
}