1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
6 pkgdesc="X Display Manager"
8 url="https://xorg.freedesktop.org/"
10 depends=('pam' 'libxaw' 'libxinerama' 'xorg-xrdb' 'xorg-sessreg' 'libxft' 'systemd' 'libxcrypt')
11 makedepends=('xorg-util-macros' 'xtrans')
12 backup=(etc/X11/xdm/Xaccess etc/X11/xdm/Xresources etc/X11/xdm/Xservers etc/X11/xdm/xdm-config etc/pam.d/xdm etc/X11/xdm/Xsetup_0 etc/X11/xdm/Xsession)
13 source=(${url}/releases/individual/app/xdm-${pkgver}.tar.xz{,.sig}
14 Xsession-loginshell.patch
16 xdm-1.0.5-sessreg-utmp-fix-bug177890.patch
19 sha512sums=('1c7ba51dc8c6989ff6ede3a3abd06e002903609d4ebd31f06ec39fbfee3a80a690c6180f85c3ab135a0de4623261d92a191d1ca5f733cdb3bd2e7e78977b98e5'
21 'cf79d5ced77568f346e0955d955438ce27dae99cca21fdd80df779c97cfc03b3b15b561d483f8a8206e1db0785434b816b3474d6cc20c5adb8072c0985254c69'
22 '9ba9b515d18c595cec402c7d4f2a8c4b9b10d99ee1bb0a86f2c72c813962a325c3c6e85ea5387f11819f8c046761494d6e54df0cb33bb4ab1e87ef354dc61c5b'
23 '698d401899660708dc17eaa84bd2323426afa4c3c094ff8d4a8d9c54e26e073f40dafed67636855bb230f351523a88f1f1ed1ec443d77d92ef65646b5a6976d5'
24 'cb912013a294f0801b357a43f3e5313ffa9ac5fcc493b2318843983388eb0b839c84060a97c355e12ca03f3b056644aa4a2bb8a74ed73a0f2405816b8d6efdc0'
25 '36136bdec96dbe034d93b68f14dbd34663e3423520eb8674a5760c7e6379006b32e42c43691cf6d91f9d683bee07e117c7ffc326c50b9e24f7515495e12cd89b')
26 validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # Alan Coopersmith <alan.coopersmith@oracle.com>
30 patch -Np0 -i "${srcdir}/Xsession-loginshell.patch"
31 patch -Np1 -i "${srcdir}/Xsession-xsm.patch"
32 patch -Np0 -i "${srcdir}/xdm-1.0.5-sessreg-utmp-fix-bug177890.patch"
33 patch -Np1 -i ../nolisten.patch
40 # FS#63867 XDM's default userPath / systemPath hide /usr/local
43 ./configure --prefix=/usr \
46 --with-xdmconfigdir=/etc/X11/xdm \
47 --with-xdmscriptdir=/etc/X11/xdm \
48 --with-pixmapdir=/usr/share/xdm/pixmaps \
49 DEF_USER_PATH="/usr/local/bin:/usr/bin:/bin" \
50 DEF_SYSTEM_PATH="/usr/local/bin:/usr/bin:/bin"
52 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
64 make DESTDIR="${pkgdir}" install
65 install -m755 -d "${pkgdir}/var/lib/xdm"
66 install -m755 -d "${pkgdir}/etc/pam.d"
67 install -m644 "${srcdir}/xdm.pam" "${pkgdir}/etc/pam.d/xdm"
68 install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
69 install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
71 sed -i -e 's/\/X11R6//g' "${pkgdir}"/etc/X11/xdm/*
73 sed -i 's|^Alias=.*|Alias=display-manager.service|' \
74 "$pkgdir/usr/lib/systemd/system/xdm.service"