From 301ead7d092082d60bf9b6b5d885c1fb84930120 Mon Sep 17 00:00:00 2001 From: Alexander Zhirov Date: Thu, 14 Mar 2024 18:59:11 +0300 Subject: [PATCH] added xorg-xdm package --- packages/x/xorg-xdm/Pkgfile | 28 ++++++++++++++++++++++++++++ packages/x/xorg-xdm/xdm | 23 +++++++++++++++++++++++ packages/x/xorg-xdm/xdm.pam | 7 +++++++ 3 files changed, 58 insertions(+) create mode 100644 packages/x/xorg-xdm/Pkgfile create mode 100644 packages/x/xorg-xdm/xdm create mode 100644 packages/x/xorg-xdm/xdm.pam diff --git a/packages/x/xorg-xdm/Pkgfile b/packages/x/xorg-xdm/Pkgfile new file mode 100644 index 0000000..5aa887d --- /dev/null +++ b/packages/x/xorg-xdm/Pkgfile @@ -0,0 +1,28 @@ +# Description: X display manager +# URL: http://xorg.freedesktop.org +# Maintainer: Alexander Zhirov +# Depends on: linux-pam xorg-server xorg-xrdb + +name=xorg-xdm +version=1.1.14 +release=1 +source=( + https://www.x.org/releases/individual/app/xdm-$version.tar.xz + xdm + xdm.pam +) + +build() { + cd xdm-$version + + ./configure \ + --prefix=/usr \ + --with-xdmconfigdir=/etc/X11/xdm \ + --enable-xdmshell + + make + make DESTDIR=$PKG install + + install -D -m 755 $SRC/xdm $PKG/etc/rc.d/xdm + install -D -m 755 $SRC/xdm.pam $PKG/etc/pam.d/xdm +} diff --git a/packages/x/xorg-xdm/xdm b/packages/x/xorg-xdm/xdm new file mode 100644 index 0000000..a502da4 --- /dev/null +++ b/packages/x/xorg-xdm/xdm @@ -0,0 +1,23 @@ +#!/bin/sh +# +# /etc/rc.d/xdm: start/stop xdm +# + +case $1 in +start) + /usr/bin/xdm + ;; +stop) + killall -q /usr/bin/xdm + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + ;; +esac + +# End of file diff --git a/packages/x/xorg-xdm/xdm.pam b/packages/x/xorg-xdm/xdm.pam new file mode 100644 index 0000000..fac5187 --- /dev/null +++ b/packages/x/xorg-xdm/xdm.pam @@ -0,0 +1,7 @@ +# +# /etc/pam.d/xdm - xdm service module configuration +# + +auth include common-auth + +account include common-account