aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/lightdm/APKBUILD15
-rwxr-xr-xtesting/lightdm/lightdm.initd8
2 files changed, 16 insertions, 7 deletions
diff --git a/testing/lightdm/APKBUILD b/testing/lightdm/APKBUILD
index 7276705c4e..b2f0cf85d6 100644
--- a/testing/lightdm/APKBUILD
+++ b/testing/lightdm/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lightdm
pkgver=1.10.1
-pkgrel=3
+pkgrel=4
pkgdesc="A cross-desktop display manager"
url="http://www.freedesktop.org/wiki/Software/LightDM"
arch="all"
@@ -13,6 +13,8 @@ makedepends="$depends_dev linux-pam-dev gtk+3.0-dev libxext-dev
autoconf automake libtool gobject-introspection-dev itstool
libgcrypt-dev"
install="$pkgname.pre-install"
+pkgusers="lightdm"
+pkggroups="lightdm"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://launchpad.net/lightdm/${pkgver%.*}/$pkgver/+download/lightdm-$pkgver.tar.xz
musl-language.patch
@@ -57,7 +59,10 @@ package() {
mv "$pkgdir"/usr/lib/locale "$pkgdir"/usr/share/
ln -s /etc/X11/xinit/Xsession "$pkgdir"/usr/bin/lightdm-session
- install -Dm755 "$srcdir"/lightdm.initd "$pkgdir"/etc/init.d/lightdm
+ install -Dm755 "$srcdir"/lightdm.initd "$pkgdir"/etc/init.d/lightdm \
+ || return 1
+ install -o lightdm -g lightdm -d "$pkgdir"/var/lib/lightdm-data \
+ || return 1
}
md5sums="b237530f833bd3aafe613a85b76a5826 lightdm-1.10.1.tar.xz
@@ -65,16 +70,16 @@ md5sums="b237530f833bd3aafe613a85b76a5826 lightdm-1.10.1.tar.xz
83463e0720df1c4462fd988d48ae4edc musl-is-linux.patch
518dbd5723f352c19d59f3d645ee1636 musl-updwtmpx.patch
19a8a105b6d60c4c5c4e8138f57cb105 disallow-guest.patch
-9eb01e4202919424face9bafbda4936c lightdm.initd"
+b99313116feff2b90cc3ce6c8d582632 lightdm.initd"
sha256sums="737123001a7ae2ab126c75f61dcebb767d082ec043c012285eab6fa6b0d6a58f lightdm-1.10.1.tar.xz
869834983f3dfd4818aac7b18b78e4c78a4e3bdf3740c7a21be2fa9b56e7664e musl-language.patch
65e8d3ae8f40c5803b89e66b2cbeb9b0dbc7303c398770a9e28680312b1864f5 musl-is-linux.patch
38bfafdf569407f98261f998936ce23152fa9e4c53b797f6f775c697c7c25ebe musl-updwtmpx.patch
97f658c6382133ce3456de59c70ebe1a850a1035cb871ff1e0885027559e56dd disallow-guest.patch
-cb9c10fe131073dbe589222beeab8fdb7fd28897001aa6b3c71eaab587fac3ef lightdm.initd"
+71006b95c7e335e3fd231f8ae1f5b6a5fb0abc4689392fcb7477d8b50c6191f1 lightdm.initd"
sha512sums="e235eeb03999d31d693c89a0e06fc33371d40f7c3c216942440a8498990b1efa0b5f19c72bc0ed18611a3b401b8ee521e2c2caa5e441247bad625466a8346278 lightdm-1.10.1.tar.xz
04df1146c8e33410c0fbbd016a3197e7e11b8ac5792f4578cb1a3fccba432294e1f4597b3fcab85f5167cac3dea8ead416872cf8c97cf381db5d0d7e9772d1a7 musl-language.patch
480b2757321212aa04c265ee052f2226059dc45c99a2e19c9dd06198bf03237a34ccdd87d997eb0e1addcf8e1d429a43e0d61e9e0b871f7dc28d203ee7fc2006 musl-is-linux.patch
46ab123c1b0e9d89020dbb50f73418e41aa9fb5c7614eaf1add0aca3496f2f178e7f0e485abbd0de2ed15297ff00099e37ef7f7d245d280ec356d5d7b09af77d musl-updwtmpx.patch
404a4cb4f58921e750aa29b3757c684ecb9d2b9146fd31b7359e49bf3a63400f757bb85d9f3ceabf0cbabc88bbbd18f11369713ccd7bae18574821c75af7143f disallow-guest.patch
-dfaf02f094dc621f4b094b766c9a10d836943506df5f3655bd00f0981b2e8466e829b25fb7ea4374570598ea4a12c1cdde3091280e9681fcc07b64229c2d86f1 lightdm.initd"
+0df8e56995387b971a348d5b56e1c82b4b0f55aa18be1edaa8d6535ee23c215a9bdf7f120922b23722fbcf8af2505c82b2bbcb653e559fe3e173cb17742f2dcc lightdm.initd"
diff --git a/testing/lightdm/lightdm.initd b/testing/lightdm/lightdm.initd
index 4e560c3fcc..1f04573aca 100755
--- a/testing/lightdm/lightdm.initd
+++ b/testing/lightdm/lightdm.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
-depends() {
- needs localmount dbus
+depend() {
+ need localmount dbus
}
description="Lightweigh display manager"
@@ -9,3 +9,7 @@ command="/usr/sbin/lightdm"
command_background="yes"
pidfile="/var/run/lightdm.pid"
+start_pre() {
+ checkpath --owner lighdm:lightdm --directory /var/run/lightdm
+}
+