View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit systemd
DESCRIPTION="some custom timer units for systemd on gentoo based systems"
HOMEPAGE="https://github.com/internethering"
# Need to set S due to PMS saying we need it existing, but no SRC_URI
S=${WORKDIR}
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="geoip clamav-unofficial-sigs dhparams"
RDEPEND="geoip? ( dev-libs/geoip )"
src_install() {
if use geoip ; then
systemd_dounit "${FILESDIR}/geoipupdate.timer"
systemd_dounit "${FILESDIR}/geoipupdate.service"
fi
if use dhparams ; then
systemd_newunit "${FILESDIR}/dhparams-update.service" "dhparams-update@.service"
systemd_newunit "${FILESDIR}/dhparams-update.timer" "dhparams-update@.timer"
fi
systemd_dounit "${FILESDIR}/start-failed.service"
systemd_dounit "${FILESDIR}/start-failed.timer"
}