[Midnightbsd-cvs] mports [20516] trunk/x11/wdm: update plist and dist sites

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Oct 10 18:36:42 EDT 2015


Revision: 20516
          http://svnweb.midnightbsd.org/mports/?rev=20516
Author:   laffer1
Date:     2015-10-10 18:36:42 -0400 (Sat, 10 Oct 2015)
Log Message:
-----------
update plist and dist sites

Modified Paths:
--------------
    trunk/x11/wdm/Makefile
    trunk/x11/wdm/pkg-plist

Added Paths:
-----------
    trunk/x11/wdm/files/patch-change_wm
    trunk/x11/wdm/files/patch-configs__wdm-config.in
    trunk/x11/wdm/files/patch-src__wdm__session.c

Removed Paths:
-------------
    trunk/x11/wdm/files/patch-configs::wdm-config.in
    trunk/x11/wdm/files/patch-src::wdm::session.c

Modified: trunk/x11/wdm/Makefile
===================================================================
--- trunk/x11/wdm/Makefile	2015-10-10 22:31:35 UTC (rev 20515)
+++ trunk/x11/wdm/Makefile	2015-10-10 22:36:42 UTC (rev 20516)
@@ -2,12 +2,11 @@
 
 PORTNAME=	wdm
 PORTVERSION=	1.28
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	x11 windowmaker
 MASTER_SITES=	http://voins.program.ru/wdm/:wdm \
 		http://wolfram.schneider.org/bsd/gif/bsd/:pic_large \
-		${MASTER_SITE_LOCAL:S/$/:pic_small/}
-MASTER_SITE_SUBDIR=	tg/:pic_small
+		FREEBSD_LOCAL/tg:pic_small
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:wdm \
 		beastie.xpm:pic_small \
 		daemon1-HQ-1280x960.jpg:pic_large
@@ -21,6 +20,12 @@
 
 LIB_DEPENDS=	libWINGs.so:${PORTSDIR}/x11-wm/windowmaker
 
+
+
+OPTIONS_DEFINE=	PAM
+OPTIONS_DEFAULT=	PAM
+OPTIONS_SUB=	yes
+
 USES=		gettext tar:bzip2
 USE_XORG=	x11 xmu
 GNU_CONFIGURE=	yes
@@ -38,7 +43,7 @@
 		--with-wmlist=wmaker:afterstep:blackbox:ctwm:enlightenment:fvwm:fvwm2:fvwm95:olvwm:qvwm:tvtwm
 
 CPPFLAGS+=	-I${LOCALBASE}/include -DCSRG_BASED -DHAS_SETUSERCONTEXT
-LDFLAGS+=	-L${LOCALBASE}/lib -lintl
+LIBS+=		-L${LOCALBASE}/lib
 
 DEF_SERVER?=	${LOCALBASE}/bin/X
 XRDB_PATH?=	${LOCALBASE}/bin/xrdb
@@ -45,30 +50,17 @@
 
 WDMDIR=		${PREFIX}/lib/X11/wdm
 
-.include <bsd.port.pre.mk>
+PAM_CONFIGURE_OFF=	--disable-pam
+PAM_CONFIGURE_ON=	--with-pamdir=${LOCALBASE}/etc/pam.d/
 
-.if !defined(WITHOUT_PAM)
-WITH_PAM=	yes
-CONFIGURE_ARGS+=	--with-pamdir=${LOCALBASE}/etc/pam.d/
-PLIST_SUB+=	PAM=""
-.else
-PLIST_SUB+=	PAM="@comment "
-.endif
-
-.if !defined(WITH_PAM)
-CONFIGURE_ARGS+=	--disable-pam
-.endif
-
-pre-everything::
-.if !defined(WITH_PAM)
-	@${ECHO_MSG}
-	@${ECHO_MSG} "If you want to compile with PAM support,"
-	@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_PAM=yes\""
-	@${ECHO_MSG}
-.endif
-
 post-patch:
 	@${REINPLACE_CMD} -e \
+		's|/usr/X11R6|${PREFIX}|g' ${WRKSRC}/configs/KillConsole
+	@${REINPLACE_CMD} -e \
+		's|/usr/X11R6|${PREFIX}|g' ${WRKSRC}/configs/Xclients.in
+	@${REINPLACE_CMD} -e \
+		's|/usr/X11R6|${PREFIX}|g' ${WRKSRC}/configs/Xsession.in
+	@${REINPLACE_CMD} -e \
 		's|$$(DESTDIR)$$(PAMDIR)/wdm||g' ${WRKSRC}/Makefile.in
 	@${REINPLACE_CMD} -e 's|-ldl||g ; \
 		 s|/authdir||g' ${WRKSRC}/configure
@@ -79,28 +71,12 @@
 	@${REINPLACE_CMD} -e \
 		's|/etc/X11/wdm|${WDMDIR}|g' ${WRKSRC}/doc/wdmLogin.man
 
-pre-install:
-.if exists(${WDMDIR}/wdm-config)
-	${MV} ${WDMDIR}/wdm-config ${WDMDIR}/wdm-config.preserve
-.endif
-.if exists(${WDMDIR}/Xsetup_0)
-	${MV} ${WDMDIR}/Xsetup_0 ${WDMDIR}/Xsetup_0.preserve
-.endif
-
 post-install:
-	@${CP} ${WDMDIR}/wdm-config ${WDMDIR}/wdm-config.dist
-.if exists(${WDMDIR}/wdm-config.preserve)
-	${MV} ${WDMDIR}/wdm-config.preserve ${WDMDIR}/wdm-config
-.endif
-	@${CP} ${WDMDIR}/Xsetup_0 ${WDMDIR}/Xsetup_0.dist
-.if exists(${WDMDIR}/Xsetup_0.preserve)
-	${MV} ${WDMDIR}/Xsetup_0.preserve ${WDMDIR}/Xsetup_0
-.endif
+	@${MV} ${STAGEDIR}${WDMDIR}/wdm-config ${WDMDIR}/wdm-config.sample
+	@${MV} ${STAGEDIR}${WDMDIR}/Xsetup_0 ${WDMDIR}/Xsetup_0.sample
 .for file in beastie.xpm daemon1-HQ-1280x960.jpg
 	@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${file} ${WDMDIR}/pixmaps
 .endfor
-.if defined(WITH_PAM)
 	${INSTALL_DATA} ${FILESDIR}/wdm.pam ${PREFIX}/etc/pam.d/wdm
-.endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Added: trunk/x11/wdm/files/patch-change_wm
===================================================================
--- trunk/x11/wdm/files/patch-change_wm	                        (rev 0)
+++ trunk/x11/wdm/files/patch-change_wm	2015-10-10 22:36:42 UTC (rev 20516)
@@ -0,0 +1,452 @@
+
+--- configs/Xsession.in.orig	Sat Mar 26 14:57:04 2005
++++ configs/Xsession.in	Tue Oct 10 11:51:31 2006
+@@ -1,6 +1,8 @@
+-#!@SHELL_LOGIN@
++#!/bin/sh
+ # @configure_input@
+ # $XConsortium: Xsession /main/10 1995/12/18 18:21:28 gildea $
++#
++# /usr/local/lib/X11/wdm/Xsession : FreeBSD : mato [24-sep-2006]
+ 
+ # This is the basic login script for a user.  Much of the logic/code
+ # for selecting and invoking the window manager is in the related file
+@@ -9,17 +11,16 @@
+ # ~/.Xclients.
+ 
+ # cleanup wdm resources
+-        @XRDB_PATH@ -load /dev/null
+-
++ at XRDB_PATH@ -load /dev/null
+ 
+ case $# in
+ 1)
+-        case $1 in
+-        failsafe)
+-                exec @FAILSAFE@ -geometry 80x24-0-0
+-                ;;
++        case "$1" in
++                failsafe)
++                        exec @FAILSAFE@ -geometry 80x24+0+0
++                        ;;
+         esac
+-        echo $1 >$HOME/.wm_style
++        echo "$1" >| "$HOME/.wm_style"
+ esac
+ 
+ # redirect errors to a file in user's home directory if we can
+@@ -66,19 +67,23 @@
+ #       fi
+ #       exec @DMDIR@/Xclients
+ 
+-startup=$HOME/.xsession
+-resources=$HOME/.Xresources
++sysresources="/usr/local/lib/X11/xinit/.Xresources"
++userresources="$HOME/.Xresources"
++
++if [ -f "$sysresources" ]; then
++        @XRDB_PATH@ -merge "$sysresources"
++fi
+ 
+-if [ -f $resources ]; then
+-        @XRDB_PATH@ -load $resources
++if [ -f "$userresources" ]; then
++        @XRDB_PATH@ -merge "$userresources"
+ fi
+ 
+-if [ -x $startup ]; then
+-        exec $startup
++if [ -x "$HOME/.xsession" ]; then
++        exec "$HOME/.xsession"
+ fi
+ 
+-if [ -x $HOME/.Xclients ]; then
+-        exec $HOME/.Xclients
++if [ -x "$HOME/.Xclients" ]; then
++        exec "$HOME/.Xclients"
+ fi
+ 
+ if [ -x @DMDIR@/Xclients ]; then
+--- configs/Xclients.in.orig	Sat Mar 26 14:57:04 2005
++++ configs/Xclients.in	Tue Oct 10 12:31:47 2006
+@@ -1,5 +1,7 @@
+ #!@SHELL_LOGIN@
+ # @configure_input@
++#
++# ~/.Xclients * WDM/FreeBSD * modified by martinko [23-sep-2006]
+ 
+ ########################################################################
+ # -*- sh -*-                                                           #
+@@ -32,133 +34,279 @@
+ 	done
+ }
+ 
++# output startup message
++Starting()
++{
++	echo "Starting $1 on `date`" >| "$xwm_msgs"
++}
++
++
++wm_style="$HOME/.wm_style"
++xwm_msgs="$HOME/.xwm.msgs"
++xrootenv="$HOME/Xrootenv.0"
+ 
+ 
+ # these files are left sitting around by TheNextLevel.
+-rm -f $HOME/Xrootenv.0
++rm -f "$xrootenv"
+ rm -f /tmp/fvwmrc* 2>/dev/null
+ 
+-# check for and set x-resources
+-if [ -f $HOME/.Xresources ] ; then
+-	@XRDB_PATH@ -merge $HOME/.Xresources
++# check for and set X-resources
++
++sysresources="/usr/local/lib/X11/xinit/.Xresources"
++sysmodmap="/usr/local/lib/X11/xinit/.Xmodmap"
++userresources="$HOME/.Xresources"
++usermodmap="$HOME/.Xmodmap"
++
++# merge in defaults and keymaps
++
++if [ -f "$sysresources" ]; then
++	xrdb -merge "$sysresources"
+ fi
+ 
+-if [ -f $HOME/.Xdefaults ] ; then
+-	@XRDB_PATH@ -merge $HOME/.Xdefaults
++if [ -f "$sysmodmap" ]; then
++	xmodmap "$sysmodmap"
+ fi
+ 
+-WINMGR_NAME=@WINMGR_NAME@
+-if test -z "$WINMGR_NAME"; then
+-	WINMGR_NAME="UserDefined"
++if [ -f "$userresources" ]; then
++	xrdb -merge "$userresources"
++fi
++
++if [ -f "$usermodmap" ]; then
++	xmodmap "$usermodmap"
+ fi
+ 
+-# First thing - check the user preferences
+-if [ -f $HOME/.wm_style ] ; then
+-	WMSTYLE=`cat $HOME/.wm_style`
+-	case "$WMSTYLE" in 
+-#
+-# first, a general purpose entry:
+-	$WINMGR_NAME*)
+-		# startup a window manager
+-		WINMGR_PATH=@WINMGR_PATH@
+-		if test -x "$WINMGR_PATH" ; then
+-	        	echo Starting $WINMGR_NAME >$HOME/.xwm.msgs
+-			exec $WINMGR_PATH >>$HOME/.xwm.msgs 2>&1
+-		fi
+-		;;
+ 
+-	wmaker*|WindowMaker*)
+-		# startup WindowMaker
+-		WMAKER_PATH=@WMAKER_PATH@
++# First thing - check the user preferences
++if [ -f "$wm_style" ]
++then
++	WMSTYLE="`cat "$wm_style"`"
++	case "$WMSTYLE" in
++
++	wmaker*|WMaker*|WindowMaker*)
++		# startup Window Maker
++		WMAKER_PATH=wmaker
+ 		if ! test -x $WMAKER_PATH ; then
+ 			FindInPath $WMAKER_PATH
+ 			if test -n "$result" -a -x "$result"; then
+-				WMAKER_PATH="$result";
++				WMAKER_PATH="$result"
+ 			fi
+ 		fi
+-	
+ 		if test -x $WMAKER_PATH ; then
+-			echo Starting WindowMaker >$HOME/.xwm.msgs
+-			env > "$HOME"/Xrootenv.0
+-			exec $WMAKER_PATH >>$HOME/.xwm.msgs 2>&1
++			Starting "Window Maker"
++			#env >| "$xrootenv"
++			exec $WMAKER_PATH >> "$xwm_msgs" 2>&1
+ 		fi
+ 		;;
+ 
+ 	afterstep*|Afterstep*|AfterStep*)
+-		# we have to start up afterstep
+-		AFTERSTEP_PATH=@AFTERSTEP_PATH@
++		# we have to start up AfterStep
++		AFTERSTEP_PATH=afterstep
+ 		if ! test -x $AFTERSTEP_PATH ; then
+ 			FindInPath $AFTERSTEP_PATH
+ 			if test -n "$result" -a -x "$result"; then
+-				AFTERSTEP_PATH="$result";
++				AFTERSTEP_PATH="$result"
+ 			fi
+ 		fi
+ 		if [ -x $AFTERSTEP_PATH -a -f /usr/share/afterstep/wmconfig.conf ] ; then
+ 			mkdir -p $HOME/GNUstep/Library/AfterStep
+ 			wmconfig --output=afterstep --directories /usr/share/afterstep/wmconfig.conf 2>/dev/null
+-			env > "$HOME"/Xrootenv.0
++			#env >| "$xrootenv"
+ 			# if this works, we stop here
+-			eval "exec $AFTERSTEP_PATH" > "$HOME"/.AfterStep-errors 2>&1
++			eval "exec $AFTERSTEP_PATH" >| "$HOME"/.AfterStep-errors 2>&1
+ 		fi
+ 		;;
+ 
+-	blackbox*|BlackBox)
+-		# startup blackbox
+-		BLACKBOX_PATH=@BLACKBOX_PATH@
++	blackbox*|Blackbox*|BlackBox*)
++		# startup Blackbox
++		BLACKBOX_PATH=blackbox
+ 		if ! test -x $BLACKBOX_PATH ; then
+ 			FindInPath $BLACKBOX_PATH
+ 			if test -n "$result" -a -x "$result"; then
+-				BLACKBOX_PATH="$result";
++				BLACKBOX_PATH="$result"
+ 			fi
+ 		fi
+ 		if [ -x $BLACKBOX_PATH ] ; then
+-			echo Starting BlackBox >$HOME/.xwm.msgs
+-			exec $BLACKBOX_PATH >>$HOME/.xwm.msgs 2>&1
++			Starting "Blackbox"
++			#env >| "$xrootenv"
++			exec $BLACKBOX_PATH >> "$xwm_msgs" 2>&1
+ 		fi
+ 		;;
+ 
+-	icewm*|IceWm)
+-		# startup icewm
+-		ICEWM_PATH=@ICEWM_PATH@
++	fluxbox*|Fluxbox*|FluxBox*)
++		# startup Fluxbox
++		FLUXBOX_PATH=startfluxbox
++		if ! test -x $FLUXBOX_PATH ; then
++			FindInPath $FLUXBOX_PATH
++			if test -n "$result" -a -x "$result"; then
++				FLUXBOX_PATH="$result"
++			fi
++		fi
++		if [ -x $FLUXBOX_PATH ] ; then
++			Starting "Fluxbox"
++			#env >| "$xrootenv"
++			exec $FLUXBOX_PATH >> "$xwm_msgs" 2>&1
++		fi
++		;;
++
++	fvwm*|FVWM*)
++		# startup FVWM
++		FVWM_PATH=fvwm
++		if ! test -x $FVWM_PATH ; then
++			FindInPath $FVWM_PATH
++			if test -n "$result" -a -x "$result"; then
++				FVWM_PATH="$result"
++			fi
++		fi
++		if test -x $FVWM_PATH ; then
++			Starting "FVWM"
++			#env >| "$xrootenv"
++			exec $FVWM_PATH >> "$xwm_msgs" 2>&1
++		fi
++		;;
++
++	fvwm2*|FVWM2*)
++		# startup FVWM2
++		FVWM2_PATH=fvwm2
++		if ! test -x $FVWM2_PATH ; then
++			FindInPath $FVWM2_PATH
++			if test -n "$result" -a -x "$result"; then
++				FVWM2_PATH="$result"
++			fi
++		fi
++		if test -x $FVWM2_PATH ; then
++			Starting "FVWM2"
++			#env >| "$xrootenv"
++			exec $FVWM2_PATH >> "$xwm_msgs" 2>&1
++		fi
++		;;
++
++	fvwm95*|FVWM95*)
++		# startup FVWM95
++		FVWM95_PATH=fvwm95
++		if ! test -x $FVWM95_PATH ; then
++			FindInPath $FVWM95_PATH
++			if test -n "$result" -a -x "$result"; then
++				FVWM95_PATH="$result"
++			fi
++		fi
++		if test -x $FVWM95_PATH ; then
++			Starting "FVWM95"
++			#env >| "$xrootenv"
++			exec $FVWM95_PATH >> "$xwm_msgs" 2>&1
++		fi
++		;;
++
++	icewm*|IceWm*|IceWM*)
++		# startup IceWM
++		ICEWM_PATH=icewm
+ 		if ! test -x $ICEWM_PATH ; then
+ 			FindInPath $ICEWM_PATH
+ 			if test -n "$result" -a -x "$result"; then
+-				ICEWM_PATH="$result";
++				ICEWM_PATH="$result"
+ 			fi
+ 		fi
+ 		if [ -x $ICEWM_PATH ] ; then
+-			echo Starting icewm >$HOME/.xwm.msgs
+-			exec $ICEWM_PATH >>$HOME/.xwm.msgs 2>&1
++			Starting "IceWM"
++			#env >| "$xrootenv"
++			exec $ICEWM_PATH >> "$xwm_msgs" 2>&1
++		fi
++		;;
++
++	twm*|TWM*)
++		# startup TWM
++		TWM_PATH=twm
++		if ! test -x $TWM_PATH ; then
++			FindInPath $TWM_PATH
++			if test -n "$result" -a -x "$result"; then
++				TWM_PATH="$result"
++			fi
++		fi
++		if test -x $TWM_PATH ; then
++			Starting "TWM"
++			#env >| "$xrootenv"
++			exec $TWM_PATH >> "$xwm_msgs" 2>&1
++		fi
++		;;
++
++	xfce*|Xfce*|XFce*|XFCE*)
++		# startup Xfce
++		XFCE_PATH=startxfce4
++		if ! test -x $XFCE_PATH ; then
++			FindInPath $XFCE_PATH
++			if test -n "$result" -a -x "$result"; then
++				XFCE_PATH="$result"
++			fi
++		fi
++		if test -x $XFCE_PATH ; then
++			Starting "Xfce"
++			#env >| "$xrootenv"
++			exec $XFCE_PATH >> "$xwm_msgs" 2>&1
++		fi
++		;;
++
++	gnome*|Gnome*)
++		# startup Gnome
++		GNOME_PATH=gnome-session
++		if ! test -x $GNOME_PATH ; then
++			FindInPath $GNOME_PATH
++			if test -n "$result" -a -x "$result"; then
++				GNOME_PATH="$result"
++			fi
++		fi
++		if test -x $GNOME_PATH ; then
++			Starting "Gnome"
++			#env >| "$xrootenv"
++			exec $GNOME_PATH >> "$xwm_msgs" 2>&1
++		fi
++		;;
++
++	startkde*|kde*|KDE*)
++		# startup KDE
++		STARTKDE_PATH=startkde
++		if ! test -x $STARTKDE_PATH ; then
++			FindInPath $STARTKDE_PATH
++			if test -n "$result" -a -x "$result"; then
++				STARTKDE_PATH="$result"
++			fi
++		fi
++		if [ -x $STARTKDE_PATH ] ; then
++			Starting "KDE"
++			#env >| "$xrootenv"
++			exec $STARTKDE_PATH -console >> "$xwm_msgs" 2>&1
+ 		fi
+ 		;;
+ 
+ 	xsession*|Xsession*)
+ 		# startup xsession
+-		XSESSION_PATH=@XSESSION_PATH@
++		XSESSION_PATH=xsession
+ 		if ! test -x $XSESSION_PATH ; then
+ 			FindInPath $XSESSION_PATH
+ 			if test -n "$result" -a -x "$result"; then
+-				XSESSION_PATH="$result";
++				XSESSION_PATH="$result"
+ 			fi
+ 		fi
+ 		if [ -x $XSESSION_PATH ] ; then
+-			echo Starting xsession >$HOME/.xwm.msgs
+-			exec $XSESSION_PATH -console >>$HOME/.xwm.msgs 2>&1
++			Starting "xsession"
++			#env >| "$xrootenv"
++			exec $XSESSION_PATH -console >> "$xwm_msgs" 2>&1
+ 		fi
+ 		;;
+ 
+-	startkde*|kde*|KDE*)
+-		# startup kde
+-		STARTKDE_PATH=@STARTKDE_PATH@
+-		if ! test -x $STARTKDE_PATH ; then
+-			FindInPath $STARTKDE_PATH
++	# last, a general purpose entry:
++	*)
++		# try and startup a window manager
++		WINMGR_NAME="$WMSTYLE"
++		WINMGR_PATH="$WMSTYLE"
++		if ! test -x $WINMGR_PATH ; then
++			FindInPath $WINMGR_PATH
+ 			if test -n "$result" -a -x "$result"; then
+-				STARTKDE_PATH="$result";
++				WINMGR_PATH="$result"
+ 			fi
+ 		fi
+-		if [ -x $STARTKDE_PATH ] ; then
+-			echo Starting kde >$HOME/.xwm.msgs
+-			exec $STARTKDE_PATH -console >>$HOME/.xwm.msgs 2>&1
++		if test -x "$WINMGR_PATH" ; then
++	        	Starting "$WINMGR_NAME"
++			#env >| "$xrootenv"
++			exec $WINMGR_PATH >> "$xwm_msgs" 2>&1
+ 		fi
+ 		;;
+     esac
+@@ -186,16 +334,16 @@
+ # with both fvwm95 and fvwm2
+ # (try fvwm95 first, then fvwm2).
+ for FVWMVER in 95 95-2 2; do
+-    if [ -n "$(type -path fvwm${FVWMVER})" ]; then
+-        env > "$HOME"/Xrootenv.0
++    if [ -n "`type -path fvwm${FVWMVER}`" ]; then
++        #env >| "$xrootenv"
+         # if this works, we stop here
+-        eval "exec fvwm${FVWMVER} ${FVWMOPTIONS}" > "$HOME"/.FVWM${FVWMVER}-errors 2>&1
++        eval "exec fvwm${FVWMVER} ${FVWMOPTIONS}" >| "$HOME"/.FVWM${FVWMVER}-errors 2>&1
+     fi
+ done
+ 
+ # gosh, neither fvwm95 nor fvwm2 is available;
+ # let's try regular fvwm (AnotherLevel doesn't work with fvwm1).
+-if [ -n "$(type -path fvwm)" ]; then
++if [ -n "`type -path fvwm`" ]; then
+     # if this works, we stop here
+     exec fvwm
+ fi
+--- configs/KillConsole.orig	Tue Oct 10 13:04:27 2006
++++ configs/KillConsole	Tue Oct 10 13:01:47 2006
+@@ -0,0 +1,7 @@
++#!/bin/sh
++#
++# /usr/local/lib/X11/wdm/KillConsole * mato [10-oct-2006]
++#
++# Kill xconsole process started before the Login window.
++#
++pkill xconsole || true
+


Property changes on: trunk/x11/wdm/files/patch-change_wm
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Deleted: trunk/x11/wdm/files/patch-configs::wdm-config.in
===================================================================
--- trunk/x11/wdm/files/patch-configs::wdm-config.in	2015-10-10 22:31:35 UTC (rev 20515)
+++ trunk/x11/wdm/files/patch-configs::wdm-config.in	2015-10-10 22:36:42 UTC (rev 20516)
@@ -1,25 +0,0 @@
---- configs/wdm-config.in.orig	Sun Jun  1 17:00:09 2003
-+++ configs/wdm-config.in	Sun Jun  1 22:45:23 2003
-@@ -3,7 +3,7 @@
- ! wdm configuration file input (sed in Makefile)
- !
- DisplayManager.errorLogFile:    @LOGDIR@/xdm-errors.log
--DisplayManager.pidFile:         @RUNDIR@/xdm-pid
-+DisplayManager.pidFile:         @RUNDIR@/xdm.pid
- DisplayManager.keyFile:         @DMDIR@/xdm-keys
- DisplayManager.servers:         @DMDIR@/Xservers
- DisplayManager.accessFile:      @DMDIR@/Xaccess
-@@ -25,11 +25,11 @@
- ! display screen background--if not set or set to none, then the
- !                            background is not set by wdm.
- ! DisplayManager*wdmBg:         none
--DisplayManager*wdmBg:           solid:RoyalBlue
-+! DisplayManager*wdmBg:         solid:RoyalBlue
- ! DisplayManager*wdmBg:         dgradient:RoyalBlue,FireBrick,Black
- ! DisplayManager*wdmBg:         hgradient:RoyalBlue,FireBrick,Black
- ! DisplayManager*wdmBg:         vgradient:RoyalBlue,FireBrick,Black
--! DisplayManager*wdmBg:         pixmap:@GFXDIR@/Stars.jpg
-+DisplayManager*wdmBg:           pixmap:@GFXDIR@/daemon1-HQ-1280x960.jpg
- !
- ! optional pixmap for logo
- @PIXMAPCOMMENT at DisplayManager*wdmLogo:  @GFXDIR@/@PIXMAPFILE@

Copied: trunk/x11/wdm/files/patch-configs__wdm-config.in (from rev 20344, trunk/x11/wdm/files/patch-configs::wdm-config.in)
===================================================================
--- trunk/x11/wdm/files/patch-configs__wdm-config.in	                        (rev 0)
+++ trunk/x11/wdm/files/patch-configs__wdm-config.in	2015-10-10 22:36:42 UTC (rev 20516)
@@ -0,0 +1,25 @@
+--- configs/wdm-config.in.orig	Sun Jun  1 17:00:09 2003
++++ configs/wdm-config.in	Sun Jun  1 22:45:23 2003
+@@ -3,7 +3,7 @@
+ ! wdm configuration file input (sed in Makefile)
+ !
+ DisplayManager.errorLogFile:    @LOGDIR@/xdm-errors.log
+-DisplayManager.pidFile:         @RUNDIR@/xdm-pid
++DisplayManager.pidFile:         @RUNDIR@/xdm.pid
+ DisplayManager.keyFile:         @DMDIR@/xdm-keys
+ DisplayManager.servers:         @DMDIR@/Xservers
+ DisplayManager.accessFile:      @DMDIR@/Xaccess
+@@ -25,11 +25,11 @@
+ ! display screen background--if not set or set to none, then the
+ !                            background is not set by wdm.
+ ! DisplayManager*wdmBg:         none
+-DisplayManager*wdmBg:           solid:RoyalBlue
++! DisplayManager*wdmBg:         solid:RoyalBlue
+ ! DisplayManager*wdmBg:         dgradient:RoyalBlue,FireBrick,Black
+ ! DisplayManager*wdmBg:         hgradient:RoyalBlue,FireBrick,Black
+ ! DisplayManager*wdmBg:         vgradient:RoyalBlue,FireBrick,Black
+-! DisplayManager*wdmBg:         pixmap:@GFXDIR@/Stars.jpg
++DisplayManager*wdmBg:           pixmap:@GFXDIR@/daemon1-HQ-1280x960.jpg
+ !
+ ! optional pixmap for logo
+ @PIXMAPCOMMENT at DisplayManager*wdmLogo:  @GFXDIR@/@PIXMAPFILE@

Deleted: trunk/x11/wdm/files/patch-src::wdm::session.c
===================================================================
--- trunk/x11/wdm/files/patch-src::wdm::session.c	2015-10-10 22:31:35 UTC (rev 20515)
+++ trunk/x11/wdm/files/patch-src::wdm::session.c	2015-10-10 22:36:42 UTC (rev 20516)
@@ -1,50 +0,0 @@
---- src/wdm/session.c.orig	Sat Mar 26 22:57:04 2005
-+++ src/wdm/session.c	Sun Mar 27 09:22:42 2005
-@@ -533,6 +533,7 @@
-     int	pid;
- #ifdef HAS_SETUSERCONTEXT
-     struct passwd* pwd;
-+    extern char **environ;
- #endif
- #ifdef USE_PAM 
-     pam_handle_t *pamh = thepamh();
-@@ -562,6 +563,7 @@
- 	/* Do system-dependent login setup here */
- 
- #ifndef AIXV3
-+#ifndef HAS_SETUSERCONTEXT
- 	if (setgid(verify->gid) < 0)
- 	{
- 	    WDMError("setgid %d (user \"%s\") failed, errno=%d\n",
-@@ -609,6 +611,31 @@
- 		     verify->uid, name, errno);
- 	    return (0);
- 	}
-+#else /* HAS_SETUSERCONTEXT */
-+	/*
-+	 * Set the user's credentials: uid, gid, groups,
-+	 * environment variables, resource limits, and umask.
-+	 */
-+        /* destroy user environment before calling setusercontext */
-+	environ = verify->userEnviron;
-+	pwd = getpwnam(name);
-+	if (pwd)
-+	{
-+	    if (setusercontext(NULL, pwd, pwd->pw_uid, LOGIN_SETALL) < 0)
-+	    {
-+		WDMError("setusercontext for \"%s\" failed, errno=%d\n", name,
-+		    errno);
-+		return (0);
-+	    }
-+            verify->userEnviron = environ;    
-+	    endpwent();
-+	}
-+	else
-+	{
-+	    WDMError("getpwnam for \"%s\" failed, errno=%d\n", name, errno);
-+	    return (0);
-+	}
-+#endif /* HAS_SETUSERCONTEXT */
- #else /* AIXV3 */
- 	/*
- 	 * Set the user's credentials: uid, gid, groups,

Copied: trunk/x11/wdm/files/patch-src__wdm__session.c (from rev 20344, trunk/x11/wdm/files/patch-src::wdm::session.c)
===================================================================
--- trunk/x11/wdm/files/patch-src__wdm__session.c	                        (rev 0)
+++ trunk/x11/wdm/files/patch-src__wdm__session.c	2015-10-10 22:36:42 UTC (rev 20516)
@@ -0,0 +1,50 @@
+--- src/wdm/session.c.orig	Sat Mar 26 22:57:04 2005
++++ src/wdm/session.c	Sun Mar 27 09:22:42 2005
+@@ -533,6 +533,7 @@
+     int	pid;
+ #ifdef HAS_SETUSERCONTEXT
+     struct passwd* pwd;
++    extern char **environ;
+ #endif
+ #ifdef USE_PAM 
+     pam_handle_t *pamh = thepamh();
+@@ -562,6 +563,7 @@
+ 	/* Do system-dependent login setup here */
+ 
+ #ifndef AIXV3
++#ifndef HAS_SETUSERCONTEXT
+ 	if (setgid(verify->gid) < 0)
+ 	{
+ 	    WDMError("setgid %d (user \"%s\") failed, errno=%d\n",
+@@ -609,6 +611,31 @@
+ 		     verify->uid, name, errno);
+ 	    return (0);
+ 	}
++#else /* HAS_SETUSERCONTEXT */
++	/*
++	 * Set the user's credentials: uid, gid, groups,
++	 * environment variables, resource limits, and umask.
++	 */
++        /* destroy user environment before calling setusercontext */
++	environ = verify->userEnviron;
++	pwd = getpwnam(name);
++	if (pwd)
++	{
++	    if (setusercontext(NULL, pwd, pwd->pw_uid, LOGIN_SETALL) < 0)
++	    {
++		WDMError("setusercontext for \"%s\" failed, errno=%d\n", name,
++		    errno);
++		return (0);
++	    }
++            verify->userEnviron = environ;    
++	    endpwent();
++	}
++	else
++	{
++	    WDMError("getpwnam for \"%s\" failed, errno=%d\n", name, errno);
++	    return (0);
++	}
++#endif /* HAS_SETUSERCONTEXT */
+ #else /* AIXV3 */
+ 	/*
+ 	 * Set the user's credentials: uid, gid, groups,

Modified: trunk/x11/wdm/pkg-plist
===================================================================
--- trunk/x11/wdm/pkg-plist	2015-10-10 22:31:35 UTC (rev 20515)
+++ trunk/x11/wdm/pkg-plist	2015-10-10 22:36:42 UTC (rev 20516)
@@ -12,9 +12,7 @@
 lib/X11/wdm/Xsession
 lib/X11/wdm/Xsession.XFree86
 lib/X11/wdm/Xsession.orig
- at unexec if cmp -s %D/lib/X11/wdm/Xsetup_0.dist %D/lib/X11/wdm/Xsetup_0; then rm -f %D/lib/X11/wdm/Xsetup_0; fi
-lib/X11/wdm/Xsetup_0.dist
- at exec [ -f %D/lib/X11/wdm/Xsetup_0 ] || (cp %D/lib/X11/wdm/Xsetup_0.dist %D/lib/X11/wdm/Xsetup_0)
+ at sample lib/X11/wdm/Xsetup_0.sample
 lib/X11/wdm/pixmaps/Eagle.xpm
 lib/X11/wdm/pixmaps/Earth.jpg
 lib/X11/wdm/pixmaps/Earth200x130.xpm
@@ -24,9 +22,7 @@
 lib/X11/wdm/pixmaps/beastie.xpm
 lib/X11/wdm/pixmaps/daemon1-HQ-1280x960.jpg
 lib/X11/wdm/pixmaps/gnuLogo.xpm
- at unexec if cmp -s %D/lib/X11/wdm/wdm-config.dist %D/lib/X11/wdm/wdm-config; then rm -f %D/lib/X11/wdm/wdm-config; fi
-lib/X11/wdm/wdm-config.dist
- at exec [ -f %D/lib/X11/wdm/wdm-config ] || (cp %D/lib/X11/wdm/wdm-config.dist %D/lib/X11/wdm/wdm-config)
+ at sample lib/X11/wdm/wdm-config.sample
 lib/X11/wdm/wdm-config.in
 lib/X11/wdm/wdmReconfig
 man/man1/wdm.1.gz
@@ -39,10 +35,4 @@
 share/locale/fr_FR/LC_MESSAGES/wdm.mo
 share/locale/ja/LC_MESSAGES/wdm.mo
 share/locale/ru/LC_MESSAGES/wdm.mo
- at dirrmtry lib/X11/wdm/pixmaps
- at exec mkdir -p %D/lib/X11/wdm/authdir
- at dirrmtry lib/X11/wdm/authdir/authfiles
- at dirrmtry lib/X11/wdm/authdir
- at dirrmtry lib/X11/wdm
-%%PAM%%@cwd %%LOCALBASE%%
-%%PAM%%etc/pam.d/wdm
+%%PAM%%%%LOCALBASE%%/etc/pam.d/wdm



More information about the Midnightbsd-cvs mailing list