summaryrefslogtreecommitdiff
path: root/nonsystemd
diff options
context:
space:
mode:
authorArnaud Fontaine <arnau@mini-dweeb.org>2020-11-13 08:46:40 +0900
committerAndreas Grapentin <andreas@grapentin.org>2020-12-02 16:40:39 +0100
commitb22af69452fc2985beba682da5d53f5cfcfd3ad5 (patch)
treeba9a87d29ea0f98d5481c3f3ce806c6a87432057 /nonsystemd
parent362de6bd3c6d67514e406f6c0e51dc94d50baca5 (diff)
downloadabslibre-b22af69452fc2985beba682da5d53f5cfcfd3ad5.tar.gz
abslibre-b22af69452fc2985beba682da5d53f5cfcfd3ad5.tar.bz2
abslibre-b22af69452fc2985beba682da5d53f5cfcfd3ad5.zip
nonsystemd/openrc-desktop: Add chronyd-openrc.
Signed-off-by: Andreas Grapentin <andreas@grapentin.org>
Diffstat (limited to 'nonsystemd')
-rw-r--r--nonsystemd/openrc-desktop/PKGBUILD27
1 files changed, 24 insertions, 3 deletions
diff --git a/nonsystemd/openrc-desktop/PKGBUILD b/nonsystemd/openrc-desktop/PKGBUILD
index ea946695d..0c3e51489 100644
--- a/nonsystemd/openrc-desktop/PKGBUILD
+++ b/nonsystemd/openrc-desktop/PKGBUILD
@@ -13,7 +13,8 @@ pkgname=('acpid-openrc'
'bluez-openrc'
'displaymanager-openrc'
'gpm-openrc'
- 'wpa_supplicant-openrc')
+ 'wpa_supplicant-openrc'
+ 'chrony-openrc')
pkgrel=1
arch=('any')
url='https://github.com/gentoo/gentoo'
@@ -35,7 +36,9 @@ source=('acpid.confd'
"gpm.initd::${_url}/sys-libs/gpm/files/gpm.rc6-2"
"wpa_supplicant.confd::${_url}/net-wireless/wpa_supplicant/files/wpa_supplicant-conf.d"
"wpa_supplicant.initd::${_url}/net-wireless/wpa_supplicant/files/wpa_supplicant-init.d"
- "${_url}/net-wireless/wpa_supplicant/files/wpa_cli.sh")
+ "${_url}/net-wireless/wpa_supplicant/files/wpa_cli.sh"
+ "chronyd.confd::${_url}/net-misc/chrony/files/chronyd.conf-r1"
+ "chronyd.initd::${_url}/net-misc/chrony/files/chronyd.init-r2")
sha256sums=('3755d4eb8bb64a1304e5defedb949305ac550565da36fe4f94d5f31beee821ba'
'5dcf5721a129b3782c13fc453853c390c34e2ad4ee00706388ce014454b063ee'
'd1c55400b701a72dcb8bb85e016b5013fa3eb6a2766ffc20dae278d0ee4c1a43'
@@ -52,7 +55,9 @@ sha256sums=('3755d4eb8bb64a1304e5defedb949305ac550565da36fe4f94d5f31beee821ba'
'b48fd8ef0c4e64ca3f3ada72e8e2148a276f86bf3cbb1a165504058bd15385c1'
'27833f60a091464612e74e6171cc98c3e3f994e2fde0ccc4535dd0d84ed041fa'
'98985142371d39ea6294d757e85a3d3fc9fc21718063afbf81869e1d2ca648a7'
- 'f3aa34b99a90213c53496f8ea014c487266338791f3526043a7fd97adc651fc6')
+ 'f3aa34b99a90213c53496f8ea014c487266338791f3526043a7fd97adc651fc6'
+ 'a55216d5bc267004ebfd16f3371acaf04953b9cfdbc55518b26c80492584f647'
+ 'fc2ff6922c4b64686bba9c6f482a64b2bebc1156d63e09f49adb0ffcfb240a1c')
_inst_initd(){
install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1
@@ -138,3 +143,19 @@ package_wpa_supplicant-openrc() {
sed -e "s|gentoo-release|parabola-release|" -i "${pkgdir}/etc/wpa_supplicant/wpa_cli.sh"
}
+
+package_chrony-openrc() {
+ pkgdesc="OpenRC chrony init script"
+ depends=('openrc' 'chrony')
+ backup=('etc/conf.d/chronyd')
+
+ _inst_confd 'chronyd'
+ sed -e 's|ARGS=".*"|ARGS=""|' \
+ -e 's|CFGFILE=".*"|CFGFILE="/etc/chrony.conf"|' \
+ -i "${pkgdir}/etc/conf.d/chronyd"
+
+ _inst_initd 'chronyd'
+ sed -e 's|/sbin|/usr/bin|' \
+ -e 's|/etc/chrony/|/etc/|' \
+ -i "${pkgdir}/etc/init.d/chronyd"
+}