summaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2002-10-09 06:34:29 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2002-10-09 06:34:29 +0800
commit9757477161720a1f776411b6c41f3f07b801761f (patch)
treeb7548c0751da1d0970ba7f7d07cd1f49c24985d6 /x11
parentbcd2d3ec2230608909933e9eb018052c1c6ca989 (diff)
downloadmarcuscom-ports-9757477161720a1f776411b6c41f3f07b801761f.tar
marcuscom-ports-9757477161720a1f776411b6c41f3f07b801761f.tar.gz
marcuscom-ports-9757477161720a1f776411b6c41f3f07b801761f.tar.bz2
marcuscom-ports-9757477161720a1f776411b6c41f3f07b801761f.tar.lz
marcuscom-ports-9757477161720a1f776411b6c41f3f07b801761f.tar.xz
marcuscom-ports-9757477161720a1f776411b6c41f3f07b801761f.tar.zst
marcuscom-ports-9757477161720a1f776411b6c41f3f07b801761f.zip
Add gdm2.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@35 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11')
-rw-r--r--x11/gdm2/Makefile73
-rw-r--r--x11/gdm2/distinfo1
-rw-r--r--x11/gdm2/files/gdm.sh.sample21
-rw-r--r--x11/gdm2/files/patch-ab69
-rw-r--r--x11/gdm2/files/patch-al10
-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_locale.alias90
-rw-r--r--x11/gdm2/files/patch-configure19
-rw-r--r--x11/gdm2/files/patch-configure.orig64
-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-comment1
-rw-r--r--x11/gdm2/pkg-descr3
-rw-r--r--x11/gdm2/pkg-install42
-rw-r--r--x11/gdm2/pkg-message20
-rw-r--r--x11/gdm2/pkg-plist105
18 files changed, 664 insertions, 0 deletions
diff --git a/x11/gdm2/Makefile b/x11/gdm2/Makefile
new file mode 100644
index 000000000..bdc0a3e87
--- /dev/null
+++ b/x11/gdm2/Makefile
@@ -0,0 +1,73 @@
+# 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.49 2002/09/20 17:07:46 marcus Exp $
+#
+
+PORTNAME= gdm2
+PORTVERSION= 2.4.0.11
+PORTREVISION= 3
+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
+
+LIB_DEPENDS= gnomeui-2.0:${PORTSDIR}/x11-toolkits/libgnomeui \
+ rsvg-2.3:${PORTSDIR}/graphics/librsvg2
+
+USE_BZIP2= yes
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_GNOMENG= yes
+USE_GNOME= gnomeprefix gnomehack gnomehier
+USE_LIBTOOL= yes
+USE_REINPLACE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
+CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
+
+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
+
+post-install:
+.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+.endif
+ @${INSTALL_SCRIPT} ${WRKSRC}/gdm.sh.sample ${PREFIX}/etc/rc.d
+.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
+ @${CHOWN} -R gdm:gdm ${PREFIX}/share/gnome/gdm ${PREFIX}/etc/gdm
+.else
+ @${CHOWN} -R 92:92 ${PREFIX}/share/gnome/gdm ${PREFIX}/etc/gdm
+.endif
+ @${CHMOD} 0750 ${PREFIX}/share/gnome/gdm
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff --git a/x11/gdm2/distinfo b/x11/gdm2/distinfo
new file mode 100644
index 000000000..11fb93610
--- /dev/null
+++ b/x11/gdm2/distinfo
@@ -0,0 +1 @@
+MD5 (gnome2/gdm-2.4.0.11.tar.bz2) = 55c685e086f444c148bbe5269ab9acdb
diff --git a/x11/gdm2/files/gdm.sh.sample b/x11/gdm2/files/gdm.sh.sample
new file mode 100644
index 000000000..d2d25ee98
--- /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.2 2002/09/19 02:23:54 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..db8711ef3
--- /dev/null
+++ b/x11/gdm2/files/patch-ab
@@ -0,0 +1,69 @@
+--- config/gdm.conf.in.orig Fri Aug 23 13:59:57 2002
++++ config/gdm.conf.in Sun Aug 25 13:57:05 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/
+@@ -84,11 +84,11 @@
+ 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.
+@@ -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
+ 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..731d036cf
--- /dev/null
+++ b/x11/gdm2/files/patch-al
@@ -0,0 +1,10 @@
+--- config/gnomerc.in.orig Wed Jul 24 15:52:07 2002
++++ config/gnomerc.in Wed Jul 24 15:52:26 2002
+@@ -2,6 +2,7 @@
+
+ # Do we have gnome-volume-control?
+ # If so we should run it to load the gnome-volume-control settings
++LC_CTYPE= ; export LC_CTYPE
+ if command -v gnome-volume-control > /dev/null 2>&1; then
+ gnome-volume-control -i
+ else if [ -x @EXPANDED_BINDIR@/gnome-volume-control > /dev/null 2>&1; then
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_locale.alias b/x11/gdm2/files/patch-config_locale.alias
new file mode 100644
index 000000000..a162ae142
--- /dev/null
+++ b/x11/gdm2/files/patch-config_locale.alias
@@ -0,0 +1,90 @@
+--- config/locale.alias.orig Thu Aug 22 18:47:35 2002
++++ config/locale.alias Wed Sep 18 22:18:10 2002
+@@ -14,54 +14,36 @@
+ #
+ # - George
+
+-Azerbaijani az_AZ.utf8,az_AZ
+-Arabic(Egypt) ar_EG.utf8,ar_EG
+-Arabic(Lebanon) ar_LB.utf8,ar_LB
+-Basque eu_ES.utf8,eu_ES
+-Bulgarian bg_BG.utf8,bg_BG
+-Catalan ca_ES.utf8,ca_ES
+-Chinese(simplified) zh_CN.utf8,zh_CN
+-Chinese(traditional) zh_TW.utf8,zh_TW
+-Croatian hr_HR.utf8,hr_HR
+-Czech cs_CZ.utf8,cs_CZ
+-Danish da_DK.utf8,da_DK
+-Dutch nl_NL.utf8,nl_NL
+-Estonian et_EE.utf8,et_EE
+-English(American) en_US.utf8,en_US
+-English(Australian) en_AU.utf8,en_AU
+-English(British) en_GB.utf8,en_GB
+-English(Ireland) en_IE.utf8,en_IE
+-Finnish fi_FI.utf8,fi_FI
+-French fr_FR.utf8,fr_FR
+-Galician gl_ES.utf8,gl_ES
+-German de_DE.utf8,de_DE
+-Greek el_GR.utf8,el_GR
+-Hebrew he_IL.utf8,he_IL
+-Hungarian hu_HU.utf8,hu_HU
+-Icelandic is_IS.utf8,is_IS
+-Irish ga_IE.utf8,ga_IE
+-Italian it_IT.utf8,it_IT
+-Japanese ja_JP.utf8,ja_JP
+-Korean ko_KR.utf8,ko_KR
+-Latvian lv_LV.utf8,lv_LV
+-Lithuanian lt_LT.utf8,lt_LT
+-Macedonian mk_MK.utf8,mk_MK
+-Malay ms_MY.utf8,ms_MY
+-Norwegian(bokmal) no_NO.utf8,no_NO
+-Norwegian(nynorsk) nn_NO.utf8,nn_NO
+-Polish pl_PL.utf8,pl_PL
+-Portuguese pt_PT.utf8,pt_PT
+-Portuguese(Brazilian) pt_BR.utf8,pt_BR
+-Romanian ro_RO.utf8,ro_RO
+-Russian ru_RU.utf8,ru_RU
+-Slovak sk_SK.utf8,sk_SK
+-Slovenian sl_SI.utf8,sl_SI
+-Spanish es_ES.utf8,es_ES
+-Spanish(Mexico) es_MX.utf8,es_MX
+-Swedish sv_SE.utf8,sv_SE
+-Swedish(Finland) sv_FI.utf8,sv_FI
+-Tamil ta_IN.utf8,ta_IN
+-Turkish tr_TR.utf8,tr_TR
+-Ukrainian uk_UA.utf8,uk_UA
+-Vietnamese vi_VN.utf8,vi_VN
+-Walloon wa_BE.utf8,wa_BE
++Bulgarian bg_BG.utf8,bg_BG.CP1251
++Chinese(simplified) zh_CN.utf8,zh_CN.EUC
++Chinese(traditional) zh_TW.utf8,zh_TW.Big5
++Croatian hr_HR.utf8,hr_HR.ISO_8859-2
++Czech cs_CZ.utf8,cs_CZ.ISO_8859-2
++Danish da_DK.utf8,da_DK.ISO_8859-1
++Dutch nl_NL.utf8,nl_NL.ISO_8859-1
++Estonian et_EE.utf8,et_EE.ISO_8859-15
++English(American) en_US.utf8,en_US.ISO_8859-1
++English(Australian) en_AU.utf8,en_AU.ISO_8859-1
++English(British) en_GB.utf8,en_GB.ISO_8859-1
++Finnish fi_FI.utf8,fi_FI.ISO_8859-1
++French fr_FR.utf8,fr_FR.ISO_8859-1
++German de_DE.utf8,de_DE.ISO_8859-1
++Greek el_GR.utf8,el_GR.ISO_8859-7
++Hungarian hu_HU.utf8,hu_HU.ISO_8859-2
++Icelandic is_IS.utf8,is_IS.ISO_8859-1
++Italian it_IT.utf8,it_IT.ISO_8859-1
++Japanese ja_JP.utf8,ja_JP.EUC
++Korean ko_KR.utf8,ko_KR.EUC
++Lithuanian lt_LT.utf8,lt_LT.ISO_8859-4
++Norwegian(bokmal) no_NO.utf8,no_NO.ISO_8859-1
++Polish pl_PL.utf8,pl_PL.ISO_8859-2
++Portuguese pt_PT.utf8,pt_PT.ISO_8859-1
++Portuguese(Brazilian) pt_BR.utf8,pt_BR.ISO8859-1
++Romanian ro_RO.utf8,ro_RO.ISO8859-2
++Russian ru_RU.utf8,ru_RU.ISO_8859-5
++Slovak sk_SK.utf8,sk_SK.ISO_8859-2
++Slovenian sl_SI.utf8,sl_SI.ISO_8859-2
++Spanish es_ES.utf8,es_ES.ISO_8859-1
++Swedish sv_SE.utf8,sv_SE.ISO_8859-1
++Turkish tr_TR.utf8,tr_TR.ISO_8859-9
++Ukrainian uk_UA.utf8,uk_UA.ISO8859-5
diff --git a/x11/gdm2/files/patch-configure b/x11/gdm2/files/patch-configure
new file mode 100644
index 000000000..f0917807b
--- /dev/null
+++ b/x11/gdm2/files/patch-configure
@@ -0,0 +1,19 @@
+--- configure.orig Wed Jul 17 17:49:15 2002
++++ configure Wed Jul 17 17:51:03 2002
+@@ -7396,6 +7396,7 @@
+
+ # This can be used to rebuild libtool when needed
+ LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
++$ac_aux_dir/ltconfig $LIBTOOL_DEPS
+
+ # Always use our own libtool.
+ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+@@ -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-configure.orig b/x11/gdm2/files/patch-configure.orig
new file mode 100644
index 000000000..740079442
--- /dev/null
+++ b/x11/gdm2/files/patch-configure.orig
@@ -0,0 +1,64 @@
+--- configure.orig Mon May 20 23:47:49 2002
++++ configure Mon May 20 23:47:42 2002
+@@ -7371,6 +7371,7 @@
+
+ # This can be used to rebuild libtool when needed
+ LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
++$ac_aux_dir/ltconfig $LIBTOOL_DEPS
+
+ # Always use our own libtool.
+ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+@@ -10963,6 +10964,53 @@
+ GDMOPEN=gdmopen
+ fi
+ done
++
++for ac_hdr in sys/types.h login_cap.h
++do
++ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
++echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
++echo "configure:8583: checking for $ac_hdr" >&5
++if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
++ echo $ac_n "(cached) $ac_c" 1>&6
++else
++ cat > conftest.$ac_ext <<EOF
++#line 8588 "configure"
++#include "confdefs.h"
++#include <$ac_hdr>
++EOF
++ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
++{ (eval echo configure:8593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
++ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
++if test -z "$ac_err"; then
++ rm -rf conftest*
++ eval "ac_cv_header_$ac_safe=yes"
++else
++ echo "$ac_err" >&5
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
++ rm -rf conftest*
++ eval "ac_cv_header_$ac_safe=no"
++fi
++rm -f conftest*
++fi
++if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
++ echo "$ac_t""yes" 1>&6
++ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
++ cat >> confdefs.h <<EOF
++#define $ac_tr_hdr 1
++EOF
++
++ LIBS="$LIBS -lutil"
++ cat >> confdefs.h <<\EOF
++#define HAVE_LOGINCAP 1
++EOF
++
++else
++ echo "$ac_t""no" 1>&6
++fi
++done
++
++
+
+ have_pam=no
+ VRFY="verify-crypt"
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-comment b/x11/gdm2/pkg-comment
new file mode 100644
index 000000000..cd5640b89
--- /dev/null
+++ b/x11/gdm2/pkg-comment
@@ -0,0 +1 @@
+GNOME 2.0 version of xdm display manager
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..04f07cb65
--- /dev/null
+++ b/x11/gdm2/pkg-install
@@ -0,0 +1,42 @@
+#!/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
+
+ 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
+ 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..bd01ffaba
--- /dev/null
+++ b/x11/gdm2/pkg-plist
@@ -0,0 +1,105 @@
+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
+@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
+@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
+@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
+@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
+@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
+@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
+@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
+@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
+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/ar/LC_MESSAGES/gdm-2.4.mo
+share/locale/az/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/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/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