aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Healy <lmiphay@gmail.com>2024-07-25 12:17:53 +0100
committerPaul Healy <lmiphay@gmail.com>2024-07-25 12:17:53 +0100
commitf64e90db2fcd32a9770b81d99a2100bd3248ecdc (patch)
tree9c319a60cedc16e84b6f47220bbb488a4ee1fcde /sys-apps/fake-hwclock
parenttidy up f-h postinst (diff)
downloadlmiphay-f64e90db2fcd32a9770b81d99a2100bd3248ecdc.tar.gz
lmiphay-f64e90db2fcd32a9770b81d99a2100bd3248ecdc.tar.bz2
lmiphay-f64e90db2fcd32a9770b81d99a2100bd3248ecdc.zip
switch f-hwclock back to tarball
Signed-off-by: Paul Healy <lmiphay@gmail.com>
Diffstat (limited to 'sys-apps/fake-hwclock')
-rw-r--r--sys-apps/fake-hwclock/Manifest3
-rw-r--r--sys-apps/fake-hwclock/fake-hwclock-0.14.ebuild42
2 files changed, 23 insertions, 22 deletions
diff --git a/sys-apps/fake-hwclock/Manifest b/sys-apps/fake-hwclock/Manifest
index 78194e3..9566d74 100644
--- a/sys-apps/fake-hwclock/Manifest
+++ b/sys-apps/fake-hwclock/Manifest
@@ -1,2 +1,3 @@
AUX fake-hwclock.init.d 399 BLAKE2B c11d2c961671b3811645776ce5243a9f326be656c63ef67da6c92047d73a5821f4abaf8bf42f7252ffb30e43c19519e0c5c34960bd2338bb0e90609bf9b99543 SHA512 0a5145f6add853f1cf4d95aca1bb57c9bd998b428771d2945df777658976d5224546dfbf545fd71387aba90e0cec552c529f8eabf17e39c2623487f846dd6e8d
-EBUILD fake-hwclock-0.14.ebuild 1172 BLAKE2B a8832ed2230b134f6771205c3a36cb80d868c91f05ccf5f4e52db634f0a65dd1e4f7e05c15114842b25a576d8c23627e5b216f5e60988bc1e01e8d3564f7c309 SHA512 4b7caa682707ae48df266b763ea6698b5437653c9b35b5e9faf009f1026dd974486b382a679adc1853b7241000e701d0597652c23f990f6a5a531e6ae1f4816c
+DIST fake-hwclock_0.14.tar.xz 11900 BLAKE2B 23d403e339afbaec71a9bfb0676eb81885108f6579ed03ef73299ebf7e4e2d7293b8de9dc254bbc3cadebeb2d613e952af83aae4df6aba77b2d50980fb918b58 SHA512 b221911814083aec7c8a94b9dffabc1f92847e2760e9e619d132fe9e5234c75e193a094340d20d58a8cbd163b6e40e2660141af811c099065b09e9ef5e37d105
+EBUILD fake-hwclock-0.14.ebuild 1134 BLAKE2B 1e805f2f21906e35ebcb87b6835364b2b147f4e94634b1a3bd61cc008b0a9bded3f59974a5744535c4c4bdb613628ba06b3c55c72d8ca710834d7c5cf4dd5e3c SHA512 b4f6a39e2adf98daf8bb804341d15d10d196ecaaf318374201c2f31c925011a7ae3c56d896c39f36ec994e341deffa56cb6b8edf224b61842c9190ae87bf8fae
diff --git a/sys-apps/fake-hwclock/fake-hwclock-0.14.ebuild b/sys-apps/fake-hwclock/fake-hwclock-0.14.ebuild
index 0bff12e..730ffcc 100644
--- a/sys-apps/fake-hwclock/fake-hwclock-0.14.ebuild
+++ b/sys-apps/fake-hwclock/fake-hwclock-0.14.ebuild
@@ -1,47 +1,47 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-# see: https://bugs.gentoo.org/704920
-
EAPI="8"
-inherit systemd git-r3
+inherit systemd
DESCRIPTION="Save/restore system clock on machines without working RTC hardware"
-HOMEPAGE="https://tracker.debian.org/pkg/fake-hwclock"
-EGIT_REPO_URI="https://git.einval.com/git/fake-hwclock.git"
-EGIT_COMMIT="00a0feb706bfc11e1e0dbaa887c603b8f9875c78"
+HOMEPAGE="https://tracker.debian.org/pkg/${PN}"
+SRC_URI="mirror://debian/pool/main/f/${PN}/${PN}_${PV}.tar.xz"
-LICENSE="GPL-2+"
+LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64"
+S=${WORKDIR}/git
+
src_prepare() {
- sed -i -e 's:/etc/fake-hwclock.data:/var/lib/fake-hwclock/data:' fake-hwclock
+ sed -i -e "s:/etc/${PN}.data:/var/lib/${PN}/data:" "${PN}" "${PN}.8"
+ sed -i -e "s:/etc/default/fake-hwclock:/etc/conf.d/fake-hwclock:" "${PN}.8"
eapply_user
}
src_install() {
- insinto "/var/lib/fake-hwclock"
- date -u '+%Y-%m-%d %H:%M:%S' > "${T}/data"
- doins "${T}/data"
+ keepdir "/var/lib/${PN}"
into /
- dosbin fake-hwclock
-
- newinitd "${FILESDIR}/fake-hwclock.init.d" fake-hwclock
+ dosbin "${PN}"
+ doman "${PN}.8"
+ dodoc debian/changelog
- systemd_dounit debian/fake-hwclock-load.service
- systemd_dounit debian/fake-hwclock-save.service
- systemd_dounit debian/fake-hwclock-save.timer
+ newinitd "${FILESDIR}/${PN}.init.d" "${PN}"
+ doconfd "etc/default/${PN}"
+ insinto /etc/cron.hourly
+ newins "debian/${PN}.cron.hourly" "${PN}.cron"
- doman fake-hwclock.8
- dodoc debian/changelog
+ systemd_dounit "debian/${PN}-load.service"
+ systemd_dounit "debian/${PN}-save.service"
+ systemd_dounit "debian/${PN}-save.timer"
}
pkg_postinst() {
- elog "To enable and start the services:"
+ elog "To enable and start the systemd services:"
elog ""
- elog "systemctl enable --now fake-hwclock-load.service fake-hwclock-save.service fake-hwclock-save.timer"
+ elog "systemctl enable --now ${PN}-load.service ${PN}-save.service ${PN}-save.timer"
}