# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 inherit systemd DESCRIPTION="Save/restore system clock on machines without working RTC hardware" HOMEPAGE="https://packages.debian.org/unstable/main/fake-hwclock" MY_P=${PN}_${PV} SRC_URI="mirror://debian/pool/main/f/${PN}/${MY_P}.tar.gz" LICENSE="GPL-2+" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64" S=${WORKDIR}/git src_install() { doman fake-hwclock.8 dodoc debian/changelog systemd_newunit debian/fake-hwclock.service fake-hwclock.service systemd_newunit "${FILESDIR}"/fake-hwclock-save.service fake-hwclock-save.service systemd_newunit "${FILESDIR}"/fake-hwclock-save.timer fake-hwclock-save.timer into / dosbin fake-hwclock } pkg_postinst() { elog "To enable all functionality, do:" elog "systemctl enable fake-hwclock.service" elog "systemctl start fake-hwclock.service" elog "systemctl start fake-hwclock-save.timer" elog "systemctl enable fake-hwclock-save.timer" }