aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-08-13 10:13:24 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-08-15 18:24:48 -0300
commit85f8eb97caff8f39a6fa9342b81912dcddd699d7 (patch)
treefa51db7a6536379154ad6f618558e338ce59a68e /testing
parent54cab2765158e9ce1beb2f5739eb2ada978d1e52 (diff)
downloadaports-85f8eb97caff8f39a6fa9342b81912dcddd699d7.tar.bz2
aports-85f8eb97caff8f39a6fa9342b81912dcddd699d7.tar.xz
testing/openrc-settingsd: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/openrc-settingsd/APKBUILD45
-rw-r--r--testing/openrc-settingsd/use-profiled-instead-of-envd.patch15
2 files changed, 60 insertions, 0 deletions
diff --git a/testing/openrc-settingsd/APKBUILD b/testing/openrc-settingsd/APKBUILD
new file mode 100644
index 0000000000..d45bbe47ae
--- /dev/null
+++ b/testing/openrc-settingsd/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Rasmus Thomsen <oss@cogitri.dev>
+# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
+pkgname=openrc-settingsd
+pkgver=1.0.1
+pkgrel=0
+pkgdesc="System settings D-Bus service for OpenRC"
+url="https://gitweb.gentoo.org/proj/openrc-settingsd.git"
+arch="all"
+license="GPL-2.0-or-later"
+makedepends="glib-dev dbus-dev openrc-dev polkit-dev libdaemon-dev automake autoconf
+ libtool bash"
+subpackages="$pkgname-doc $pkgname-openrc"
+source="https://gitweb.gentoo.org/proj/openrc-settingsd.git/snapshot/openrc-settingsd-$pkgver.tar.gz
+ use-profiled-instead-of-envd.patch"
+
+prepare() {
+ default_prepare
+
+ sed -i -e 's:/sbin/runscript:/sbin/openrc-run:g' data/init.d/openrc-settingsd.in
+
+ autoreconf -if
+}
+
+build() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --with-pidfile=/run/openrc-settingsd.pid
+ make SHELL="/bin/bash"
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="bca589de7d2c96d8d15d93882b7296523a0d6301fe1d33f7fc03386544b5c050f2d819b9e1f005ee10a794883175ea1b1172411aad3598f967a6a5677a5c4aad openrc-settingsd-1.0.1.tar.gz
+bb0415eee6ec86cdf4c19abe6a83ae0890a1393fbf7ee2f4d96384556ad1fc6e3d3db93a1fcfad94bfef0b447bcdf7e32019ceac54a3e30d30ee22c4b4c2f36e use-profiled-instead-of-envd.patch"
diff --git a/testing/openrc-settingsd/use-profiled-instead-of-envd.patch b/testing/openrc-settingsd/use-profiled-instead-of-envd.patch
new file mode 100644
index 0000000000..67e328b106
--- /dev/null
+++ b/testing/openrc-settingsd/use-profiled-instead-of-envd.patch
@@ -0,0 +1,15 @@
+We don't use env.d in Alpine.
+
+diff --git a/src/localed.c b/src/localed.c
+index 008ed16..4a210b6 100644
+--- a/src/localed.c
++++ b/src/localed.c
+@@ -1281,7 +1281,7 @@ localed_init (gboolean _read_only)
+
+ read_only = _read_only;
+ kbd_model_map_file = g_file_new_for_path (PKGDATADIR "/kbd-model-map");
+- locale_file = g_file_new_for_path (SYSCONFDIR "/env.d/02locale");
++ locale_file = g_file_new_for_path (SYSCONFDIR "/profile.d/02locale.sh");
+ keymaps_file = g_file_new_for_path (SYSCONFDIR "/conf.d/keymaps");
+
+ /* See http://www.gentoo.org/doc/en/xorg-config.xml */