already in alpine Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7814>
86 lines
2.3 KiB
Bash
86 lines
2.3 KiB
Bash
# Forked from Alpine for systemd support and dropping x11
|
|
# Co-Maintainer: Pablo Correa Gomez <pabloyoyoista@postmarketos.org>
|
|
# Co-Maintainer: Achill Gilgenast <achill@achill.org>
|
|
maintainer="Newbyte <newbyte@postmarketos.org>"
|
|
pkgname=gdm
|
|
_pkgver=49.0.1
|
|
pkgver=9999$_pkgver
|
|
pkgrel=1
|
|
pkgdesc="GNOME display manager"
|
|
url="https://gitlab.gnome.org/GNOME/gdm"
|
|
# blocked by gnome-shell
|
|
arch="all !armhf !s390x"
|
|
license="GPL-2.0-or-later"
|
|
depends="
|
|
dbus
|
|
gnome-session
|
|
gnome-settings-daemon
|
|
gnome-shell
|
|
gsettings-desktop-schemas
|
|
linux-pam>=1.4
|
|
xrdb
|
|
xwayland
|
|
"
|
|
makedepends="
|
|
accountsservice-dev
|
|
dconf
|
|
eudev-dev
|
|
gettext
|
|
glib-dev
|
|
gtk+3.0-dev
|
|
itstool
|
|
json-glib-dev
|
|
libcanberra-dev
|
|
libgudev-dev
|
|
libsm-dev
|
|
libx11-dev
|
|
libxau-dev
|
|
libxcb-dev
|
|
libxdmcp-dev
|
|
linux-pam-dev
|
|
meson
|
|
systemd-dev
|
|
"
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-systemd"
|
|
options="!check" # Causes circular dep with gnome-shell
|
|
source="https://download.gnome.org/sources/gdm/${_pkgver%%.*}/gdm-$_pkgver.tar.xz
|
|
0003-DOWNSTREAM-pam-rename-common-to-base.patch
|
|
disable-userdb.patch
|
|
gdm.sysusers
|
|
"
|
|
install="gdm.pre-install gdm.post-deinstall"
|
|
builddir="$srcdir/gdm-$_pkgver"
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
-Ddefault-pam-config=openembedded \
|
|
-Dgdm-xsession=false \
|
|
-Dpam-mod-dir=/usr/lib/security \
|
|
-Dselinux=disabled \
|
|
-Dlibaudit=disabled \
|
|
-Dsystemdsystemunitdir=/usr/lib/systemd/system \
|
|
-Dsystemduserunitdir=/usr/lib/systemd/user \
|
|
-Dx11-support=false \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
|
|
install -Dm644 "$srcdir/gdm.sysusers" "$pkgdir"/usr/lib/sysusers.d/gdm.conf
|
|
}
|
|
|
|
systemd() {
|
|
amove usr/lib/sysusers.d/gdm.conf
|
|
default_systemd
|
|
}
|
|
|
|
sha512sums="
|
|
bbe2e20276c07e636f86c4ad962de726463db722e4ea373b719507757ac50809a463e536d10b34cf3eacaad67c57002a8d4ccf37c2bd49ba77263d788e4d78a6 gdm-49.0.1.tar.xz
|
|
66611d49fc4c9578415a7e554834edcb9de99396bd0ca511dcfd4fb256e8a1cd1fd5f10464f4668ffe04799d919bc22ddb58e8bf272017edba69a7951522e63d 0003-DOWNSTREAM-pam-rename-common-to-base.patch
|
|
4cbaf87896c6d890b5bdbdf13ee31c81b3cdbcba44cd8a48606268f28202fd775361c9507a503d680c70ba49eff00b896935942daf8615f434b903ae0e76fe20 disable-userdb.patch
|
|
cdac8a8d0563f050ed7b8f4d31ea085ae24550bd99ab57ed4f3469723aea2bdcdb92330b625a96e4e366a8c3334d3b7657e0fafe9b914df6f846ea2bd0be22ec gdm.sysusers
|
|
"
|