summaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-04-12 14:52:17 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-04-12 14:52:17 +0800
commitf8c5d4acaeef50cbf08a1616897237c87c55f851 (patch)
treefd8b5d6ead6f712a93bea3d213d8b3830ef1cdf6 /x11
parent1cba425ea862591333bae972dd635b41cc8b4a11 (diff)
downloadmarcuscom-ports-f8c5d4acaeef50cbf08a1616897237c87c55f851.tar
marcuscom-ports-f8c5d4acaeef50cbf08a1616897237c87c55f851.tar.gz
marcuscom-ports-f8c5d4acaeef50cbf08a1616897237c87c55f851.tar.bz2
marcuscom-ports-f8c5d4acaeef50cbf08a1616897237c87c55f851.tar.lz
marcuscom-ports-f8c5d4acaeef50cbf08a1616897237c87c55f851.tar.xz
marcuscom-ports-f8c5d4acaeef50cbf08a1616897237c87c55f851.tar.zst
marcuscom-ports-f8c5d4acaeef50cbf08a1616897237c87c55f851.zip
Add gdm2.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@595 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11')
-rw-r--r--x11/gdm2/Makefile65
-rw-r--r--x11/gdm2/distinfo1
-rw-r--r--x11/gdm2/files/gdm.sh.sample21
-rw-r--r--x11/gdm2/files/patch-ab84
-rw-r--r--x11/gdm2/files/patch-al9
-rw-r--r--x11/gdm2/files/patch-at11
-rw-r--r--x11/gdm2/files/patch-config_Makefile.in101
-rw-r--r--x11/gdm2/files/patch-config_PostSession11
-rw-r--r--x11/gdm2/files/patch-config_PreSession16
-rw-r--r--x11/gdm2/files/patch-config_locale.alias91
-rw-r--r--x11/gdm2/files/patch-configure11
-rw-r--r--x11/gdm2/files/patch-daemon_gdm.c11
-rw-r--r--x11/gdm2/files/patch-daemon_slave.c12
-rw-r--r--x11/gdm2/files/patch-gui::gdmsetup.c11
-rw-r--r--x11/gdm2/pkg-descr3
-rw-r--r--x11/gdm2/pkg-install46
-rw-r--r--x11/gdm2/pkg-message20
-rw-r--r--x11/gdm2/pkg-plist120
18 files changed, 644 insertions, 0 deletions
diff --git a/x11/gdm2/Makefile b/x11/gdm2/Makefile
new file mode 100644
index 000000000..f7a3f2915
--- /dev/null
+++ b/x11/gdm2/Makefile
@@ -0,0 +1,65 @@
+# New ports collection makefile for: gdm2
+# Date created: 20 May 2002
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD: ports/x11/gdm2/Makefile,v 1.58 2003/03/07 06:36:11 ade Exp $
+#
+
+PORTNAME= gdm2
+PORTVERSION= 2.4.1.3
+PORTREVISION= 1
+CATEGORIES= x11 gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.4
+DISTNAME= gdm-${PORTVERSION}
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= GNOME 2.0 version of xdm display manager
+
+USE_BZIP2= yes
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_GNOME= gnomeprefix gnomehack gnomehier libgnomeui librsvg2
+GNU_CONFIGURE= yes
+USE_REINPLACE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
+
+GDMDIR?= ${PREFIX}/etc/gdm
+
+.include <bsd.port.pre.mk>
+
+.if exists(/usr/include/security/pam_misc.h)
+PLIST_SUB= PAM_MISC=""
+.else
+PLIST_SUB= PAM_MISC="@comment "
+.endif
+
+.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
+IS_INTERACTIVE= yes
+.endif
+
+.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
+pre-fetch:
+ ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+.endif
+
+post-extract:
+ @${SED} -e "s,%%PREFIX%%,${PREFIX},g" \
+ ${FILESDIR}/gdm.sh.sample > ${WRKSRC}/gdm.sh.sample
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|[(]libdir[)]/locale|(prefix)/share/locale|g' \
+ ${WRKSRC}/po/Makefile.in.in
+
+post-install:
+.if !defined(PACKAGE_BUILDING)
+ @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+.endif
+ @${INSTALL_SCRIPT} ${WRKSRC}/gdm.sh.sample ${PREFIX}/etc/rc.d
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff --git a/x11/gdm2/distinfo b/x11/gdm2/distinfo
new file mode 100644
index 000000000..07f6ddaaa
--- /dev/null
+++ b/x11/gdm2/distinfo
@@ -0,0 +1 @@
+MD5 (gnome2/gdm-2.4.1.3.tar.bz2) = 448769257c5bda3cda48e63869825173
diff --git a/x11/gdm2/files/gdm.sh.sample b/x11/gdm2/files/gdm.sh.sample
new file mode 100644
index 000000000..641ec8e67
--- /dev/null
+++ b/x11/gdm2/files/gdm.sh.sample
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# $FreeBSD: ports/x11/gdm2/files/gdm.sh.sample,v 1.3 2003/02/07 18:42:14 marcus Exp $
+
+PREFIX=%%PREFIX%%
+
+case "$1" in
+start)
+ ${PREFIX}/bin/gdm
+ ;;
+stop)
+ /usr/bin/killall -m gdm 2>/dev/null
+ ;;
+*)
+ echo "Usage: `basename $0` start | stop"
+ exit 64
+ ;;
+
+esac
+
+exit 0
diff --git a/x11/gdm2/files/patch-ab b/x11/gdm2/files/patch-ab
new file mode 100644
index 000000000..10b04a198
--- /dev/null
+++ b/x11/gdm2/files/patch-ab
@@ -0,0 +1,84 @@
+--- config/gdm.conf.in.orig Fri Aug 23 18:53:53 2002
++++ config/gdm.conf.in Sun Oct 13 17:57:14 2002
+@@ -33,14 +33,14 @@
+ # The gdm configuration program that is run from the login screen, you should
+ # probably leave this alone
+ Configurator=@EXPANDED_GDMCONFIGDIR@/gdmsetup --disable-sound --disable-crash-dialog
+-GnomeDefaultSession=@EXPANDED_DATADIR@/gnome/default.session
++GnomeDefaultSession=@EXPANDED_DATADIR@/default.session
+ # The chooser program. Must output the chosen host on stdout, probably you
+ # should leave this alone
+ Chooser=@EXPANDED_BINDIR@/gdmchooser
+ # Default path to set. The profile scripts will likely override this
+ DefaultPath=/bin:/usr/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/bin:@EXPANDED_BINDIR@
+ # Default path for root. The profile scripts will likely override this
+-RootPath=/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/bin:@EXPANDED_BINDIR@
++RootPath=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:@EXPANDED_BINDIR@
+ DisplayInitDir=@EXPANDED_SYSCONFDIR@/gdm/Init
+ # Greeter for local (non-xdmcp) logins. Change gdmlogin to gdmgreeter to
+ # get the new graphical greeter.
+@@ -57,7 +57,7 @@
+ # To try to kill all clients started at greeter time or in the Init script.
+ # doesn't always work, only if those clients have a window of their own
+ KillInitClients=true
+-LogDir=@EXPANDED_AUTHDIR@
++LogDir=/var/log
+ # You should probably never change this value unless you have a weird setup
+ PidFile=/var/run/gdm.pid
+ PostSessionScriptDir=@EXPANDED_SYSCONFDIR@/gdm/PostSession/
+@@ -72,7 +72,7 @@
+ # Reboot, Halt and suspend commands, you can add different commands
+ # separated by a semicolon and gdm will use the first one it can find
+ RebootCommand=/sbin/shutdown -r now;/usr/sbin/shutdown -r now
+-HaltCommand=/usr/bin/poweroff;/sbin/poweroff;/sbin/shutdown -h now;/usr/sbin/shutdown -h now
++HaltCommand=/sbin/shutdown -p now;/usr/sbin/shutdown -p now
+ SuspendCommand=
+ # Probably should not touch the below this is the standard setup
+ ServAuthDir=@EXPANDED_AUTHDIR@
+@@ -84,16 +84,16 @@
+ UserAuthFBDir=/tmp
+ UserAuthFile=.Xauthority
+ # The X server to use if we can't figure out what else to run.
+-StandardXServer=/usr/X11R6/bin/X
++StandardXServer=@EXPANDED_BINDIR@/X
+ # The maximum number of flexible X servers to run.
+ FlexibleXServers=5
+ # the X nest command
+-Xnest=/usr/X11R6/bin/Xnest -name Xnest
++Xnest=@EXPANDED_BINDIR@/Xnest -name Xnest
+ # Automatic VT allocation. Right now only works on Linux. This way
+ # we force X to use specific vts. turn VTAllocation to false if this
+ # is causing problems.
+ FirstVT=7
+-VTAllocation=true
++VTAllocation=false
+
+ [security]
+ # If any distributions ship with this one off, they should be shot
+@@ -153,7 +153,7 @@
+ # The 'theme'. By default we're using the default gtk theme
+ # Of course assuming that gtk got installed in the same prefix,
+ # if not change this.
+-GtkRC=@EXPANDED_DATADIR@/themes/Default/gtk/gtkrc
++GtkRC=@EXPANDED_DATADIR@/../themes/Default/gtk-2.0/gtkrc
+ # Maximum size of an icon, larger icons are scaled down
+ MaxIconWidth=128
+ MaxIconHeight=128
+@@ -281,7 +281,7 @@
+ # Definition of the standard X server.
+ [server-Standard]
+ name=Standard server
+-command=/usr/X11R6/bin/X
++command=@EXPANDED_BINDIR@/X vt9
+ flexible=true
+
+ # To use this server type you should add -query host or -indirect host
+@@ -289,7 +289,7 @@
+ [server-Terminal]
+ name=Terminal server
+ # Add -terminate to make things behave more nicely
+-command=/usr/X11R6/bin/X -terminate
++command=@EXPANDED_BINDIR@/X -terminate
+ # Make this not appear in the flexible servers (we need extra params
+ # anyway, and terminate would be bad for xdmcp)
+ flexible=false
diff --git a/x11/gdm2/files/patch-al b/x11/gdm2/files/patch-al
new file mode 100644
index 000000000..6458c9e46
--- /dev/null
+++ b/x11/gdm2/files/patch-al
@@ -0,0 +1,9 @@
+--- config/gnomerc.in.orig Mon Nov 11 10:54:52 2002
++++ config/gnomerc.in Fri Jan 3 12:09:49 2003
+@@ -9,5 +9,6 @@
+ #fi
+
+ # path takes precedence
++LC_CTYPE= ; export LC_CTYPE
+ exec gnome-session
+ exec @EXPANDED_BINDIR@/gnome-session
diff --git a/x11/gdm2/files/patch-at b/x11/gdm2/files/patch-at
new file mode 100644
index 000000000..2e73a9b0b
--- /dev/null
+++ b/x11/gdm2/files/patch-at
@@ -0,0 +1,11 @@
+--- utils/Makefile.in.orig Tue May 21 00:01:55 2002
++++ utils/Makefile.in Tue May 21 00:02:20 2002
+@@ -160,7 +160,7 @@
+ gdmmktemp_SOURCES = gdmmktemp.c
+
+
+-gdmaskpass_LDADD = $(INTLLIBS) -lpam -lpam_misc
++gdmaskpass_LDADD = $(INTLLIBS) -lpam
+
+
+ gdmopen_LDADD = $(INTLLIBS)
diff --git a/x11/gdm2/files/patch-config_Makefile.in b/x11/gdm2/files/patch-config_Makefile.in
new file mode 100644
index 000000000..cd45ba7f3
--- /dev/null
+++ b/x11/gdm2/files/patch-config_Makefile.in
@@ -0,0 +1,101 @@
+--- config/Makefile.in.orig Tue Aug 20 16:46:29 2002
++++ config/Makefile.in Tue Aug 20 17:03:19 2002
+@@ -286,71 +286,73 @@
+ fi
+ $(INSTALL_DATA) gdm.conf $(DESTDIR)$(confdir)/factory-gdm.conf
+
+- $(INSTALL_SCRIPT) $(srcdir)/XKeepsCrashing $(DESTDIR)$(confdir)/XKeepsCrashing
++ if test '!' -f $(DESTDIR)$(confdir)/XKeepsCrashing; then \
++ $(INSTALL_SCRIPT) $(srcdir)/XKeepsCrashing $(DESTDIR)$(confdir)/XKeepsCrashing; \
++ fi
++ $(INSTALL_SCRIPT) $(srcdir)/XKeepsCrashing $(DESTDIR)$(confdir)/factory-XKeepsCrashing
+
+- -if test -f $(DESTDIR)$(localedir)/locale.alias; then \
+- cp -f $(DESTDIR)$(localedir)/locale.alias $(DESTDIR)$(localedir)/locale.alias.orig; \
++ if test '!' -f $(DESTDIR)$(localedir)/locale.alias; then \
++ $(INSTALL_DATA) $(srcdir)/locale.alias $(DESTDIR)$(localedir)/locale.alias; \
+ fi
+- $(INSTALL_DATA) $(srcdir)/locale.alias $(DESTDIR)$(localedir)/locale.alias
++ $(INSTALL_DATA) $(srcdir)/locale.alias $(DESTDIR)$(localedir)/factory-locale.alias
+
+ if test '!' -d $(DESTDIR)$(sessdir); then \
+ $(mkinstalldirs) $(DESTDIR)$(sessdir); \
+ chmod 755 $(DESTDIR)$(sessdir); \
+ fi
+
+- -if test -f $(DESTDIR)$(sessdir)/Xsession; then \
+- cp -f $(DESTDIR)$(sessdir)/Xsession $(DESTDIR)$(sessdir)/Xsession.orig; \
++ if test '!' -f $(DESTDIR)$(sessdir)/Xsession; then \
++ $(INSTALL_SCRIPT) Xsession $(DESTDIR)$(sessdir)/Xsession; \
+ fi
+- $(INSTALL_SCRIPT) Xsession $(DESTDIR)$(sessdir)/Xsession
++ $(INSTALL_SCRIPT) Xsession $(DESTDIR)$(sessdir)/factory-Xsession
+
+- -if test -f $(DESTDIR)$(sessdir)/Gnome; then \
+- cp -f $(DESTDIR)$(sessdir)/Gnome $(DESTDIR)$(sessdir)/Gnome.orig; \
++ if test '!' -f $(DESTDIR)$(sessdir)/Gnome; then \
++ $(INSTALL_SCRIPT) Gnome $(DESTDIR)$(sessdir)/Gnome; \
+ fi
+- $(INSTALL_SCRIPT) Gnome $(DESTDIR)$(sessdir)/Gnome
++ $(INSTALL_SCRIPT) Gnome $(DESTDIR)$(sessdir)/factory-Gnome
+
+ -if test -f /usr/bin/switchdesk; then \
+- if test -f $(DESTDIR)$(sessdir)/Default; then \
+- cp -f $(DESTDIR)$(sessdir)/Default $(DESTDIR)$(sessdir)/Default.orig; \
++ if test '!' -f $(DESTDIR)$(sessdir)/Default; then \
++ $(LN_S) -f $(sessdir)/Xsession $(DESTDIR)$(sessdir)/Default; \
+ fi; \
+- $(LN_S) -f $(sessdir)/Xsession $(DESTDIR)$(sessdir)/Default; \
+ fi
+
+ if test '!' -d $(DESTDIR)$(initdir); then \
+ $(mkinstalldirs) $(DESTDIR)$(initdir); \
+ chmod 755 $(DESTDIR)$(initdir); \
+ fi
+- -if test -f $(DESTDIR)$(initdir)/Default; then \
+- cp -f $(DESTDIR)$(initdir)/Default $(DESTDIR)$(initdir)/Default.orig; \
++ if test '!' -f $(DESTDIR)$(initdir)/Default; then \
++ $(INSTALL_SCRIPT) $(srcdir)/Default $(DESTDIR)$(initdir)/Default; \
+ fi
+- $(INSTALL_SCRIPT) $(srcdir)/Default $(DESTDIR)$(initdir)/Default
++ $(INSTALL_SCRIPT) $(srcdir)/Default $(DESTDIR)$(initdir)/factory-Default
+
+ if test '!' -d $(DESTDIR)$(predir); then \
+ $(mkinstalldirs) $(DESTDIR)$(predir); \
+ chmod 755 $(DESTDIR)$(predir); \
+ fi
+- -if test -f $(DESTDIR)$(predir)/Default; then \
+- cp -f $(DESTDIR)$(predir)/Default $(DESTDIR)$(predir)/Default.orig; \
++ if test '!' -f $(DESTDIR)$(predir)/Default; then \
++ $(INSTALL_SCRIPT) $(srcdir)/PreSession $(DESTDIR)$(predir)/Default; \
+ fi
+- $(INSTALL_SCRIPT) $(srcdir)/PreSession $(DESTDIR)$(predir)/Default
++ $(INSTALL_SCRIPT) $(srcdir)/PreSession $(DESTDIR)$(predir)/factory-Default
+
+ if test '!' -d $(DESTDIR)$(postdir); then \
+ $(mkinstalldirs) $(DESTDIR)$(postdir); \
+ chmod 755 $(DESTDIR)$(postdir); \
+ fi
+- -if test -f $(DESTDIR)$(postdir)/Default; then \
+- cp -f $(DESTDIR)$(postdir)/Default $(DESTDIR)$(postdir)/Default.orig; \
++ if test '!' -f $(DESTDIR)$(postdir)/Default; then \
++ $(INSTALL_SCRIPT) $(srcdir)/PostSession $(DESTDIR)$(postdir)/Default; \
+ fi
+- $(INSTALL_SCRIPT) $(srcdir)/PostSession $(DESTDIR)$(postdir)/Default
++ $(INSTALL_SCRIPT) $(srcdir)/PostSession $(DESTDIR)$(postdir)/factory-Default
+
+ if test '!' -d $(DESTDIR)$(gnomercdir); then \
+ $(mkinstalldirs) $(DESTDIR)$(gnomercdir); \
+ chmod 755 $(DESTDIR)$(gnomercdir); \
+ fi
+
+- -if test -f $(DESTDIR)$(gnomercdir)/gnomerc; then \
+- cp -f $(DESTDIR)$(gnomercdir)/gnomerc $(DESTDIR)$(gnomercdir)/gnomerc.orig; \
++ if test '!' -f $(DESTDIR)$(gnomercdir)/gnomerc; then \
++ $(INSTALL_SCRIPT) gnomerc $(DESTDIR)$(gnomercdir)/gnomerc; \
+ fi
+- $(INSTALL_SCRIPT) gnomerc $(DESTDIR)$(gnomercdir)/gnomerc
++ $(INSTALL_SCRIPT) gnomerc $(DESTDIR)$(gnomercdir)/factory-gnomerc
+
+ if test '!' -d $(DESTDIR)$(authdir); then \
+ $(mkinstalldirs) $(DESTDIR)$(authdir); \
diff --git a/x11/gdm2/files/patch-config_PostSession b/x11/gdm2/files/patch-config_PostSession
new file mode 100644
index 000000000..98433e066
--- /dev/null
+++ b/x11/gdm2/files/patch-config_PostSession
@@ -0,0 +1,11 @@
+--- config/PostSession.orig Wed Dec 4 14:05:13 2002
++++ config/PostSession Wed Dec 4 14:05:34 2002
+@@ -2,7 +2,7 @@
+
+ PATH=/usr/bin/X11:/usr/X11R6/bin:/opt/X11R6/bin:$PATH
+
+-if command -v sessreg > /dev/null 2>&1; then
++if /usr/bin/which -s sessreg > /dev/null 2>&1; then
+ sessreg -d -w /var/log/wtmp -u /var/run/utmp -x "$X_SERVERS" -h "$REMOTE_HOST" -l $DISPLAY $USER
+ fi
+ exit 0
diff --git a/x11/gdm2/files/patch-config_PreSession b/x11/gdm2/files/patch-config_PreSession
new file mode 100644
index 000000000..4a37fa9db
--- /dev/null
+++ b/x11/gdm2/files/patch-config_PreSession
@@ -0,0 +1,16 @@
+--- config/PreSession.orig Wed Dec 4 14:05:38 2002
++++ config/PreSession Wed Dec 4 14:06:04 2002
+@@ -8,11 +8,11 @@
+ #
+ PATH=/usr/bin/X11:/usr/X11R6/bin:/opt/X11R6/bin:$PATH
+
+-if command -v xsetroot > /dev/null 2>&1; then
++if /usr/bin/which -s xsetroot > /dev/null 2>&1; then
+ xsetroot -cursor_name left_ptr -solid "#363047"
+ fi
+
+-if command -v sessreg > /dev/null 2>&1; then
++if /usr/bin/which -s sessreg > /dev/null 2>&1; then
+ # some output for easy debugging
+ echo "$0: Registering your session with wtmp and utmp"
+ echo "$0: running: sessreg -a -w /var/log/wtmp -u /var/run/utmp -x \"$X_SERVERS\" -h \"$REMOTE_HOST\" -l $DISPLAY $USER"
diff --git a/x11/gdm2/files/patch-config_locale.alias b/x11/gdm2/files/patch-config_locale.alias
new file mode 100644
index 000000000..48d7d1b00
--- /dev/null
+++ b/x11/gdm2/files/patch-config_locale.alias
@@ -0,0 +1,91 @@
+--- config/locale.alias.orig Wed Jan 8 13:31:44 2003
++++ config/locale.alias Tue Jan 14 16:51:29 2003
+@@ -14,55 +14,36 @@
+ #
+ # - George
+
+-Azerbaijani az_AZ.UTF-8,az_AZ
+-Arabic(Egypt) ar_EG.UTF-8,ar_EG
+-Arabic(Lebanon) ar_LB.UTF-8,ar_LB
+-Amharic am_ET.UTF-8,am_ET
+-Basque eu_ES.UTF-8,eu_ES
+-Bulgarian bg_BG.UTF-8,bg_BG
+-Catalan ca_ES.UTF-8,ca_ES
+-Chinese(simplified) zh_CN.UTF-8,zh_CN
+-Chinese(traditional) zh_TW.UTF-8,zh_TW
+-Croatian hr_HR.UTF-8,hr_HR
+-Czech cs_CZ.UTF-8,cs_CZ
+-Danish da_DK.UTF-8,da_DK
+-Dutch nl_NL.UTF-8,nl_NL
+-Estonian et_EE.UTF-8,et_EE
+-English(American) en_US.UTF-8,en_US
+-English(Australian) en_AU.UTF-8,en_AU
+-English(British) en_GB.UTF-8,en_GB
+-English(Ireland) en_IE.UTF-8,en_IE
+-Finnish fi_FI.UTF-8,fi_FI
+-French fr_FR.UTF-8,fr_FR
+-Galician gl_ES.UTF-8,gl_ES
+-German de_DE.UTF-8,de_DE
+-Greek el_GR.UTF-8,el_GR
+-Hebrew he_IL.UTF-8,he_IL
+-Hungarian hu_HU.UTF-8,hu_HU
+-Icelandic is_IS.UTF-8,is_IS
+-Irish ga_IE.UTF-8,ga_IE
+-Italian it_IT.UTF-8,it_IT
+-Japanese ja_JP.UTF-8,ja_JP
+-Korean ko_KR.UTF-8,ko_KR
+-Latvian lv_LV.UTF-8,lv_LV
+-Lithuanian lt_LT.UTF-8,lt_LT
+-Macedonian mk_MK.UTF-8,mk_MK
+-Malay ms_MY.UTF-8,ms_MY
+-Norwegian(bokmal) no_NO.UTF-8,no_NO
+-Norwegian(nynorsk) nn_NO.UTF-8,nn_NO
+-Polish pl_PL.UTF-8,pl_PL
+-Portuguese pt_PT.UTF-8,pt_PT
+-Portuguese(Brazilian) pt_BR.UTF-8,pt_BR
+-Romanian ro_RO.UTF-8,ro_RO
+-Russian ru_RU.UTF-8,ru_RU
+-Slovak sk_SK.UTF-8,sk_SK
+-Slovenian sl_SI.UTF-8,sl_SI
+-Spanish es_ES.UTF-8,es_ES
+-Spanish(Mexico) es_MX.UTF-8,es_MX
+-Swedish sv_SE.UTF-8,sv_SE
+-Swedish(Finland) sv_FI.UTF-8,sv_FI
+-Tamil ta_IN.UTF-8,ta_IN
+-Turkish tr_TR.UTF-8,tr_TR
+-Ukrainian uk_UA.UTF-8,uk_UA
+-Vietnamese vi_VN.UTF-8,vi_VN
+-Walloon wa_BE.UTF-8,wa_BE
++Bulgarian bg_BG.UTF-8,bg_BG.CP1251
++Chinese(simplified) zh_CN.UTF-8,zh_CN.EUC
++Chinese(traditional) zh_TW.UTF-8,zh_TW.Big5
++Croatian hr_HR.UTF-8,hr_HR.ISO_8859-2
++Czech cs_CZ.UTF-8,cs_CZ.ISO_8859-2
++Danish da_DK.UTF-8,da_DK.ISO_8859-1
++Dutch nl_NL.UTF-8,nl_NL.ISO_8859-1
++Estonian et_EE.UTF-8,et_EE.ISO_8859-15
++English(American) en_US.UTF-8,en_US.ISO_8859-1
++English(Australian) en_AU.UTF-8,en_AU.ISO_8859-1
++English(British) en_GB.UTF-8,en_GB.ISO_8859-1
++Finnish fi_FI.UTF-8,fi_FI.ISO_8859-1
++French fr_FR.UTF-8,fr_FR.ISO_8859-1
++German de_DE.UTF-8,de_DE.ISO_8859-1
++Greek el_GR.UTF-8,el_GR.ISO_8859-7
++Hungarian hu_HU.UTF-8,hu_HU.ISO_8859-2
++Icelandic is_IS.UTF-8,is_IS.ISO_8859-1
++Italian it_IT.UTF-8,it_IT.ISO_8859-1
++Japanese ja_JP.UTF-8,ja_JP.EUC
++Korean ko_KR.UTF-8,ko_KR.EUC
++Lithuanian lt_LT.UTF-8,lt_LT.ISO_8859-4
++Norwegian(bokmal) no_NO.UTF-8,no_NO.ISO_8859-1
++Polish pl_PL.UTF-8,pl_PL.ISO_8859-2
++Portuguese pt_PT.UTF-8,pt_PT.ISO_8859-1
++Portuguese(Brazilian) pt_BR.UTF-8,pt_BR.ISO8859-1
++Romanian ro_RO.UTF-8,ro_RO.ISO8859-2
++Russian ru_RU.UTF-8,ru_RU.ISO_8859-5
++Slovak sk_SK.UTF-8,sk_SK.ISO_8859-2
++Slovenian sl_SI.UTF-8,sl_SI.ISO_8859-2
++Spanish es_ES.UTF-8,es_ES.ISO_8859-1
++Swedish sv_SE.UTF-8,sv_SE.ISO_8859-1
++Turkish tr_TR.UTF-8,tr_TR.ISO_8859-9
++Ukrainian uk_UA.UTF-8,uk_UA.ISO8859-5
diff --git a/x11/gdm2/files/patch-configure b/x11/gdm2/files/patch-configure
new file mode 100644
index 000000000..c7e1c3d22
--- /dev/null
+++ b/x11/gdm2/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig Wed Jul 17 17:49:15 2002
++++ configure Wed Jul 17 17:51:03 2002
+@@ -8531,6 +8532,8 @@
+ cat >conftest.$ac_ext <<_ACEOF
+ #line 8532 "configure"
+ #include "confdefs.h"
++#include <sys/types.h>
++#include <sys/socket.h>
+ $ac_includes_default
+ int
+ main ()
diff --git a/x11/gdm2/files/patch-daemon_gdm.c b/x11/gdm2/files/patch-daemon_gdm.c
new file mode 100644
index 000000000..76c115f8b
--- /dev/null
+++ b/x11/gdm2/files/patch-daemon_gdm.c
@@ -0,0 +1,11 @@
+--- daemon/gdm.c.orig Thu May 30 11:02:29 2002
++++ daemon/gdm.c Thu May 30 10:59:19 2002
+@@ -36,7 +36,7 @@
+ #include <locale.h>
+
+ /* This should be moved to auth.c I suppose */
+-#include <X11/Xauth.h>
++/*#include <X11/Xauth.h>*/
+
+ #include <vicious.h>
+
diff --git a/x11/gdm2/files/patch-daemon_slave.c b/x11/gdm2/files/patch-daemon_slave.c
new file mode 100644
index 000000000..27ac0544a
--- /dev/null
+++ b/x11/gdm2/files/patch-daemon_slave.c
@@ -0,0 +1,12 @@
+--- daemon/slave.c.orig Wed Sep 18 02:25:09 2002
++++ daemon/slave.c Wed Sep 18 02:25:15 2002
+@@ -2327,7 +2327,8 @@
+ if (setusercontext (NULL, pwent, pwent->pw_uid,
+ LOGIN_SETLOGIN | LOGIN_SETPATH |
+ LOGIN_SETPRIORITY | LOGIN_SETRESOURCES |
+- LOGIN_SETUMASK | LOGIN_SETUSER) < 0)
++ LOGIN_SETUMASK | LOGIN_SETUSER |
++ LOGIN_SETENV) < 0)
+ gdm_child_exit (DISPLAY_REMANAGE,
+ _("%s: setusercontext() failed for %s. "
+ "Aborting."), "gdm_slave_session_start",
diff --git a/x11/gdm2/files/patch-gui::gdmsetup.c b/x11/gdm2/files/patch-gui::gdmsetup.c
new file mode 100644
index 000000000..33924be67
--- /dev/null
+++ b/x11/gdm2/files/patch-gui::gdmsetup.c
@@ -0,0 +1,11 @@
+--- gui/gdmsetup.c.orig Sun Aug 4 16:08:52 2002
++++ gui/gdmsetup.c Sun Aug 4 16:09:09 2002
+@@ -1512,7 +1512,7 @@
+ success = TRUE;
+
+ /* HACK! */
+- cmd = g_strdup_printf ("/bin/chown -R root.root %s", dir);
++ cmd = g_strdup_printf ("/usr/sbin/chown -R gdm:gdm %s", dir);
+ system (cmd);
+ g_free (cmd);
+
diff --git a/x11/gdm2/pkg-descr b/x11/gdm2/pkg-descr
new file mode 100644
index 000000000..85c150c4c
--- /dev/null
+++ b/x11/gdm2/pkg-descr
@@ -0,0 +1,3 @@
+The GNOME 2.0 version of the xdm display manager. It has support for
+face pixmaps, multiple sessions plus clean shutdowns from the login
+menu.
diff --git a/x11/gdm2/pkg-install b/x11/gdm2/pkg-install
new file mode 100644
index 000000000..e373a44e3
--- /dev/null
+++ b/x11/gdm2/pkg-install
@@ -0,0 +1,46 @@
+#!/bin/sh
+
+if [ -n "${PACKAGE_BUILDING}" ]; then
+ exit 0
+fi
+
+if [ "$2" = "POST-INSTALL" ]; then
+ USER=gdm
+ GROUP=${USER}
+ UID=92
+ GID=${UID}
+ PW=/usr/sbin/pw
+ CHMOD=/bin/chmod
+ CHOWN=/usr/sbin/chown
+
+ if ${PW} group show "${GROUP}" 2>/dev/null; then
+ echo "You already have a group \"${GROUP}\", so I will use it."
+ else
+ if ${PW} groupadd ${GROUP} -g ${GID}; then
+ echo "Added group \"${GROUP}\"."
+ else
+ echo "Adding group \"${GROUP}\" failed..."
+ exit 1
+ fi
+ fi
+
+ if ${PW} user show "${USER}" 2>/dev/null; then
+ echo "You already have a user \"${USER}\", so I will use it."
+ else
+ if ${PW} useradd ${USER} -u ${UID} -g ${GROUP} -h - \
+ -d "/nonexistent" -s /sbin/nologin -c "GNOME Display Manager"
+ then
+ echo "Added user \"${USER}\"."
+ else
+ echo "Adding user \"${USER}\" failed..."
+ exit 1
+ fi
+ fi
+ ${CHOWN} -R ${USER}:${GROUP} ${PKG_PREFIX}/share/gnome/gdm ${PKG_PREFIX}/etc/gdm
+ ${CHMOD} 0750 ${PKG_PREFIX}/share/gnome/gdm
+ exit 0
+fi
+
+if [ -z "${BATCH}" ]; then
+ /usr/bin/dialog --yesno "GDM may contain vulnerabilities leading local root compromise, and it is reported widely with various security sites and groups. It is not recommended that this port be installed in public environment. Do you wish to accept the security risk and build GDM anyway?" 10 60 || /usr/bin/false
+fi
diff --git a/x11/gdm2/pkg-message b/x11/gdm2/pkg-message
new file mode 100644
index 000000000..91ce3698b
--- /dev/null
+++ b/x11/gdm2/pkg-message
@@ -0,0 +1,20 @@
+GDM is installed.
+
+Please note the following:
+- This port has been tested on 5.0-CURRENT and 4.4-RELEASE and higher.
+- If you are running a version of FreeBSD prior to 4.5-PRERELEASE, you should
+ append these lines to your /etc/pam.conf, otherwise GDM will refuse all
+ logins:
+
+# gdm config
+gdm auth requisite pam_unix.so try_first_pass
+gdm account requisite pam_unix.so try_first_pass
+gdm session required pam_permit.so
+
+- Do _NOT_ use /etc/ttys to start gdm at boot time. This will result in gdm
+ hanging or restarting constantly. Instead, copy the included gdm.sh.sample
+ script to gdm.sh, and restart. This script is found, by default, in
+ /usr/X11R6/etc/rc.d.
+
+These notes were written by: Yukihiro Nakai <nakai@FreeBSD.org>
+and updated by: Joe Marcus Clarke <marcus@FreeBSD.org>
diff --git a/x11/gdm2/pkg-plist b/x11/gdm2/pkg-plist
new file mode 100644
index 000000000..08275bfb9
--- /dev/null
+++ b/x11/gdm2/pkg-plist
@@ -0,0 +1,120 @@
+bin/gdm
+bin/gdm-binary
+bin/gdmXnest
+bin/gdmXnestchooser
+bin/gdmchooser
+bin/gdmflexiserver
+bin/gdmgreeter
+bin/gdmlogin
+bin/gdmmktemp
+bin/gdmphotosetup
+bin/gdmsetup
+bin/gdmthemetester
+@unexec if cmp -s %D/etc/gdm/Init/Default %D/etc/gdm/Init/factory-Default; then rm -f %D/etc/gdm/Init/Default; fi
+etc/gdm/Init/factory-Default
+@exec [ ! -f %B/Default ] && cp %B/%f %B/Default
+@unexec if cmp -s %D/etc/gdm/PostSession/Default %D/etc/gdm/PostSession/factory-Default; then rm -f %D/etc/gdm/PostSession/Default; fi
+etc/gdm/PostSession/factory-Default
+@exec [ ! -f %B/Default ] && cp %B/%f %B/Default
+@unexec if cmp -s %D/etc/gdm/PreSession/Default %D/etc/gdm/PreSession/factory-Default; then rm -f %D/etc/gdm/PreSession/Default; fi
+etc/gdm/PreSession/factory-Default
+@exec [ ! -f %B/Default ] && cp %B/%f %B/Default
+@unexec if cmp -s %D/etc/gdm/Sessions/Gnome %D/etc/gdm/Sessions/factory-Gnome; then rm -f %D/etc/gdm/Sessions/Gnome; fi
+etc/gdm/Sessions/factory-Gnome
+@exec [ ! -f %B/Gnome ] && cp %B/%f %B/Gnome
+@unexec if cmp -s %D/etc/gdm/Sessions/Xsession %D/etc/gdm/Sessions/factory-Xsession; then rm -f %D/etc/gdm/Sessions/Xsession; fi
+etc/gdm/Sessions/factory-Xsession
+@exec [ ! -f %B/Xsession ] && cp %B/%f %B/Xsession
+@unexec if cmp -s %D/etc/gdm/XKeepsCrashing %D/etc/gdm/factory-XKeepsCrashing; then rm -f %D/etc/gdm/XKeepsCrashing; fi
+etc/gdm/factory-XKeepsCrashing
+@exec [ ! -f %B/XKeepsCrashing ] && cp %B/%f %B/XKeepsCrashing
+@unexec if cmp -s %D/etc/gdm/gnomerc %D/etc/gdm/factory-gnomerc; then rm -f %D/etc/gdm/gnomerc; fi
+etc/gdm/factory-gnomerc
+@exec [ ! -f %B/gnomerc ] && cp %B/%f %B/gnomerc
+@unexec if cmp -s %D/etc/gdm/gdm.conf %D/etc/gdm/factory-gdm.conf; then rm -f %D/etc/gdm/gdm.conf; fi
+etc/gdm/factory-gdm.conf
+@exec [ ! -f %B/gdm.conf ] && cp %B/%f %B/gdm.conf
+@unexec if cmp -s %D/etc/gdm/locale.alias %D/etc/gdm/factory-locale.alias; then rm -f %D/etc/gdm/locale.alias; fi
+etc/gdm/factory-locale.alias
+@exec [ ! -f %B/locale.alias ] && cp %B/%f %B/locale.alias
+etc/rc.d/gdm.sh.sample
+sbin/gdm-restart
+sbin/gdm-safe-restart
+sbin/gdm-stop
+%%PAM_MISC%%sbin/gdmaskpass
+sbin/gdmconfig
+share/gnome/applications/gdmflexiserver-xnest.desktop
+share/gnome/applications/gdmflexiserver.desktop
+share/gnome/applications/gdmsetup.desktop
+share/gnome/capplets/gdmphotosetup.desktop
+share/gnome/gdm/gdmchooser.glade
+share/gnome/gdm/gdmsetup.glade
+share/gnome/gdm/themes/happygnome/GdmGreeterTheme.desktop
+share/gnome/gdm/themes/happygnome/background.svg
+share/gnome/gdm/themes/happygnome/disconnect.png
+share/gnome/gdm/themes/happygnome/gnome-logo.png
+share/gnome/gdm/themes/happygnome/happygnome.xml
+share/gnome/gdm/themes/happygnome/options.png
+share/gnome/gdm/themes/happygnome/screenshot.png
+share/gnome/gdm/themes/happygnome/session.png
+share/gnome/gdm/themes/happygnome/system.png
+share/gnome/gdm/themes/circles/GdmGreeterTheme.desktop
+share/gnome/gdm/themes/circles/background.svg
+share/gnome/gdm/themes/circles/circles.xml
+share/gnome/gdm/themes/circles/flower.png
+share/gnome/gdm/themes/circles/help.png
+share/gnome/gdm/themes/circles/options.png
+share/gnome/gdm/themes/circles/screenshot.png
+share/gnome/pixmaps/gdm-foot-logo.png
+share/gnome/pixmaps/gdm.png
+share/gnome/pixmaps/login-photo.png
+share/gnome/pixmaps/nobody.png
+share/gnome/pixmaps/nohost.png
+share/locale/am/LC_MESSAGES/gdm-2.4.mo
+share/locale/ar/LC_MESSAGES/gdm-2.4.mo
+share/locale/az/LC_MESSAGES/gdm-2.4.mo
+share/locale/be/LC_MESSAGES/gdm-2.4.mo
+share/locale/bg/LC_MESSAGES/gdm-2.4.mo
+share/locale/ca/LC_MESSAGES/gdm-2.4.mo
+share/locale/cs/LC_MESSAGES/gdm-2.4.mo
+share/locale/da/LC_MESSAGES/gdm-2.4.mo
+share/locale/de/LC_MESSAGES/gdm-2.4.mo
+share/locale/el/LC_MESSAGES/gdm-2.4.mo
+share/locale/es/LC_MESSAGES/gdm-2.4.mo
+share/locale/et/LC_MESSAGES/gdm-2.4.mo
+share/locale/eu/LC_MESSAGES/gdm-2.4.mo
+share/locale/fi/LC_MESSAGES/gdm-2.4.mo
+share/locale/fr/LC_MESSAGES/gdm-2.4.mo
+share/locale/ga/LC_MESSAGES/gdm-2.4.mo
+share/locale/gl/LC_MESSAGES/gdm-2.4.mo
+share/locale/he/LC_MESSAGES/gdm-2.4.mo
+share/locale/hu/LC_MESSAGES/gdm-2.4.mo
+share/locale/it/LC_MESSAGES/gdm-2.4.mo
+share/locale/ja/LC_MESSAGES/gdm-2.4.mo
+share/locale/ko/LC_MESSAGES/gdm-2.4.mo
+share/locale/lt/LC_MESSAGES/gdm-2.4.mo
+share/locale/lv/LC_MESSAGES/gdm-2.4.mo
+share/locale/mk/LC_MESSAGES/gdm-2.4.mo
+share/locale/mn/LC_MESSAGES/gdm-2.4.mo
+share/locale/ms/LC_MESSAGES/gdm-2.4.mo
+share/locale/nl/LC_MESSAGES/gdm-2.4.mo
+share/locale/nn/LC_MESSAGES/gdm-2.4.mo
+share/locale/no/LC_MESSAGES/gdm-2.4.mo
+share/locale/pl/LC_MESSAGES/gdm-2.4.mo
+share/locale/pt/LC_MESSAGES/gdm-2.4.mo
+share/locale/pt_BR/LC_MESSAGES/gdm-2.4.mo
+share/locale/ro/LC_MESSAGES/gdm-2.4.mo
+share/locale/ru/LC_MESSAGES/gdm-2.4.mo
+share/locale/sk/LC_MESSAGES/gdm-2.4.mo
+share/locale/sl/LC_MESSAGES/gdm-2.4.mo
+share/locale/sv/LC_MESSAGES/gdm-2.4.mo
+share/locale/ta/LC_MESSAGES/gdm-2.4.mo
+share/locale/tr/LC_MESSAGES/gdm-2.4.mo
+share/locale/uk/LC_MESSAGES/gdm-2.4.mo
+share/locale/vi/LC_MESSAGES/gdm-2.4.mo
+share/locale/zh_CN/LC_MESSAGES/gdm-2.4.mo
+share/locale/zh_TW/LC_MESSAGES/gdm-2.4.mo
+@dirrm share/gnome/gdm/themes/happygnome
+@dirrm share/gnome/gdm/themes/circles
+@dirrm share/gnome/gdm/themes
+@dirrm etc/pam.d