1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= X.Org display manager (a.k.a. login manager)
8 HOMEPAGE= https://www.x.org/wiki/
9 CONTACT= Leonid_Bobrov[goleo@disroot.org]
12 SITES[main]= https://www.x.org/releases/individual/app/
13 DISTFILE[1]= xdm-1.1.14.tar.xz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 RUN_DEPENDS= xorg-sessreg:single:standard
21 xorg-xconsole:single:standard
22 xorg-xrdb:single:standard
24 USES= cpe libtool pkgconfig
25 XORG_COMPONENTS= x11 xau xaw xmu xorgproto xdmcp xext xinerama xpm xt
27 CPE_PRODUCT= x_display_manager
29 FPC_EQUIVALENT= x11/xdm
32 CONFIGURE_ARGS= --with-xdmconfigdir={{PREFIX}}/etc/X11/xdm
33 --with-xdmscriptdir={{PREFIX}}/etc/X11/xdm
34 --with-pixmapdir={{PREFIX}}/share/pixmaps
35 --with-authdir=/var/db/xdm
38 INSTALL_TARGET= install-strip
41 ${MKDIR} ${STAGEDIR}/var/db/xdm
42 .for f in GiveConsole TakeConsole Xaccess Xreset Xresources Xservers Xsession Xsetup_0 Xstartup Xwilling xdm-config
43 ${MV} ${STAGEDIR}${PREFIX}/etc/X11/xdm/${f} \
44 ${STAGEDIR}${PREFIX}/etc/X11/xdm/${f}.sample
47 [FILE:420:descriptions/desc.single]
48 Xdm manages a collection of X displays, which may be on the local host or
49 remote servers. The design of xdm was guided by the needs of X terminals
50 as well as The Open Group standard XDMCP, the X Display Manager Control
51 Protocol. Xdm provides services similar to those provided by init, getty
52 and login on character terminals: prompting for login name and password,
53 authenticating the user, and running a "session."
57 3e9bf25636797ec9e595286dd6820ecc33901439f07705eaf608ecda012c3d5f 419324 xdm-1.1.14.tar.xz
60 [FILE:612:manifests/plist.single]
61 @sample etc/X11/xdm/GiveConsole.sample
62 @sample etc/X11/xdm/TakeConsole.sample
63 @sample etc/X11/xdm/Xaccess.sample
64 @sample etc/X11/xdm/Xreset.sample
65 @sample etc/X11/xdm/Xresources.sample
66 @sample etc/X11/xdm/Xservers.sample
67 @sample etc/X11/xdm/Xsession.sample
68 @sample etc/X11/xdm/Xsetup_0.sample
69 @sample etc/X11/xdm/Xstartup.sample
70 @sample etc/X11/xdm/Xwilling.sample
71 @sample etc/X11/xdm/xdm-config.sample
76 share/X11/app-defaults/Chooser
77 share/man/man8/xdm.8.gz
82 @postunexec rm -rf /var/db/xdm/* 2>/dev/null || true
85 [FILE:418:patches/patch-config_Xresources.in]
86 --- config/Xresources.in.orig 2022-12-03 21:38:28 UTC
87 +++ config/Xresources.in
88 @@ -59,9 +59,9 @@ xlogin*hiColor: black
92 -xlogin*logoFileName: BITMAPDIR/**//XDM_PIXMAP
93 +xlogin*logoFileName: BITMAPDIR/XDM_PIXMAP
95 -xlogin*logoFileName: BITMAPDIR/**//XDM_BWPIXMAP
96 +xlogin*logoFileName: BITMAPDIR/XDM_BWPIXMAP
99 xlogin*logoPadding: 10
102 [FILE:398:patches/patch-config_xdm-config.in]
103 --- config/xdm-config.in.orig 2022-12-03 21:38:28 UTC
104 +++ config/xdm-config.in
105 @@ -25,6 +25,7 @@ DisplayManager*authComplain: true
106 DisplayManager._0.setup: XDMSCRIPTDIR/Xsetup_0
107 DisplayManager._0.startup: XDMSCRIPTDIR/GiveConsole
108 DisplayManager._0.reset: XDMSCRIPTDIR/TakeConsole
109 +DisplayManager.*.authName: MIT-MAGIC-COOKIE-1
111 DisplayManager*loginmoveInterval: 10
115 [FILE:290:patches/patch-greeter-greet.c]
116 --- greeter/greet.c.orig 2022-12-03 21:38:28 UTC
118 @@ -639,6 +639,7 @@ greet_user_rtn GreetUser(
120 DeleteXloginResources (d, *dpy);
123 Debug ("Greet loop finished\n");
125 * Run system-wide initialization file
128 [FILE:818:patches/patch-xdm_session.c]
129 --- xdm/session.c.orig 2022-12-03 21:38:28 UTC
131 @@ -590,6 +590,7 @@ StartClient (
133 #ifdef HAVE_SETUSERCONTEXT
135 + extern char **environ;
138 pam_handle_t *pamh = thepamh ();
139 @@ -674,6 +675,8 @@ StartClient (
140 * Set the user's credentials: uid, gid, groups,
141 * environment variables, resource limits, and umask.
143 + /* destroy user environment before calling setusercontext */
144 + environ = verify->userEnviron;
145 pwd = getpwnam(name);
147 if (setusercontext(NULL, pwd, pwd->pw_uid, LOGIN_SETALL) < 0) {
148 @@ -681,6 +684,7 @@ StartClient (
149 name, _SysErrorMsg (errno));
152 + verify->userEnviron = environ;
155 LogError ("getpwnam for \"%s\" failed: %s\n",