diff options
Diffstat (limited to 'x11')
-rw-r--r-- | x11/gdm/Makefile | 84 | ||||
-rw-r--r-- | x11/gdm/distinfo | 3 | ||||
-rw-r--r-- | x11/gdm/files/gdm.in | 24 | ||||
-rw-r--r-- | x11/gdm/files/patch-config_Makefile.in | 11 | ||||
-rw-r--r-- | x11/gdm/files/patch-config_gdm.conf.in | 26 | ||||
-rw-r--r-- | x11/gdm/files/patch-config_locale.alias | 160 | ||||
-rw-r--r-- | x11/gdm/files/patch-configure | 25 | ||||
-rw-r--r-- | x11/gdm/files/patch-daemon_gdmconfig.c | 10 | ||||
-rw-r--r-- | x11/gdm/files/patch-daemon_server.c | 10 | ||||
-rw-r--r-- | x11/gdm/files/patch-gui_gdmsetup.c | 11 | ||||
-rw-r--r-- | x11/gdm/pkg-descr | 4 | ||||
-rw-r--r-- | x11/gdm/pkg-install | 47 | ||||
-rw-r--r-- | x11/gdm/pkg-message | 12 | ||||
-rw-r--r-- | x11/gdm/pkg-plist | 287 |
14 files changed, 714 insertions, 0 deletions
diff --git a/x11/gdm/Makefile b/x11/gdm/Makefile new file mode 100644 index 000000000..3b4174796 --- /dev/null +++ b/x11/gdm/Makefile @@ -0,0 +1,84 @@ +# New ports collection makefile for: gdm2 +# Date created: 20 May 2002 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# $MCom$ +# + +PORTNAME= gdm +PORTVERSION= 2.15.0 +CATEGORIES= x11 gnome +MASTER_SITES= ${MASTER_SITE_GNOME} +MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= GNOME 2 version of xdm display manager + +BUILD_DEPENDS= zenity:${PORTSDIR}/x11/zenity +RUN_DEPENDS= zenity:${PORTSDIR}/x11/zenity + +USE_BZIP2= yes +USE_GETTEXT= yes +USE_X_PREFIX= yes +INSTALLS_OMF= yes +INSTALLS_ICONS= yes +USE_RC_SUBR= gdm +USE_GMAKE= yes +USE_GNOME= gnomehack intlhack gnomehier libgnomeui librsvg2 gnomedocutils \ + gnomeprefix +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" \ + GTKDOC="false" + +GDMDIR?= ${PREFIX}/etc/gdm +PKGMESSAGE= ${WRKDIR}/pkg-message + +GNOME_LOCALSTATEDIR= /var + +MAN1= gdm.1 + +OPTIONS= IPV6 "Enable IPv6 support" on + +.include <bsd.port.pre.mk> + +.if ${X_WINDOW_SYSTEM:L} != "xorg" +PLIST_SUB+= X11="" +.else +PLIST_SUB+= X11="@comment " +.endif + +.if exists(/usr/include/security/pam_misc.h) +PLIST_SUB+= PAM_MISC="" +.else +PLIST_SUB+= PAM_MISC="@comment " +.endif + +.if !defined(WITHOUT_IPV6) +CONFIGURE_ARGS+= --enable-ipv6 +.else +CONFIGURE_ARGS+= --disable-ipv6 +.endif + +post-patch: +.if ( ${OSVERSION} > 600000 && ${OSVERSION} < 600006 ) || \ + ( ${OSVERSION} < 503101 ) +.for po in zh_CN.po + @${REINPLACE_CMD} -e 's|%-|%|g' ${WRKSRC}/po/${po} +.endfor +.endif + +post-install: +.if !defined(PACKAGE_BUILDING) + @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL +.endif + ${INSTALL_DATA} ${WRKSRC}/config/gdm.conf-custom \ + ${PREFIX}/etc/gdm/custom.conf.default + @${MKDIR} ${PREFIX}/etc/gdm/Sessions + @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' < ${PKGDIR}/pkg-message \ + | /usr/bin/fmt 75 79 > ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/x11/gdm/distinfo b/x11/gdm/distinfo new file mode 100644 index 000000000..7fb965a9a --- /dev/null +++ b/x11/gdm/distinfo @@ -0,0 +1,3 @@ +MD5 (gnome2/gdm-2.15.0.tar.bz2) = ee8f3c6dd761f14e7e21303baa8d5427 +SHA256 (gnome2/gdm-2.15.0.tar.bz2) = a24c853dd3c50c93fabe8c0f8170507c9a11abe0967bc6135321da6593469213 +SIZE (gnome2/gdm-2.15.0.tar.bz2) = 3051279 diff --git a/x11/gdm/files/gdm.in b/x11/gdm/files/gdm.in new file mode 100644 index 000000000..ebae1dea1 --- /dev/null +++ b/x11/gdm/files/gdm.in @@ -0,0 +1,24 @@ +#!/bin/sh +# $FreeBSD: ports/x11/gdm/files/gdm.in,v 1.1 2006/04/30 00:47:09 marcus Exp $ +# $MCom: ports/x11/gdm/files/gdm.in,v 1.5 2006/03/06 19:02:27 marcus Exp $ + +# PROVIDE: gdm +# REQUIRE: LOGIN cleanvar moused +# +# Add the following to /etc/rc.conf to start GDM at boot time: +# +# gdm_enable="YES" +# + +gdm_enable=${gdm_enable-"NO"} + +. %%RC_SUBR%% + +name=gdm +rcvar=`set_rcvar` +command="%%PREFIX%%/sbin/${name}" +pidfile="/var/run/${name}.pid" +procname="%%PREFIX%%/sbin/gdm-binary" + +load_rc_config ${name} +run_rc_command "$1" diff --git a/x11/gdm/files/patch-config_Makefile.in b/x11/gdm/files/patch-config_Makefile.in new file mode 100644 index 000000000..9678f710c --- /dev/null +++ b/x11/gdm/files/patch-config_Makefile.in @@ -0,0 +1,11 @@ +--- config/Makefile.in.orig Fri Jun 11 15:40:03 2004 ++++ config/Makefile.in Fri Jun 11 15:41:30 2004 +@@ -400,7 +400,7 @@ + + if test '!' -d $(DESTDIR)$(logdir); then \ + $(mkinstalldirs) $(DESTDIR)$(logdir); \ +- chown root:root $(DESTDIR)$(logdir); \ ++ chown root:wheel $(DESTDIR)$(logdir); \ + chmod 755 $(DESTDIR)$(logdir); \ + fi + diff --git a/x11/gdm/files/patch-config_gdm.conf.in b/x11/gdm/files/patch-config_gdm.conf.in new file mode 100644 index 000000000..43e2c566c --- /dev/null +++ b/x11/gdm/files/patch-config_gdm.conf.in @@ -0,0 +1,26 @@ +--- config/gdm.conf.in.orig Fri Apr 7 15:47:20 2006 ++++ config/gdm.conf.in Wed Apr 12 01:53:30 2006 +@@ -156,11 +156,11 @@ StandardXServer=@X_SERVER@ + #FlexiReapDelayMinutes=5 + # The X nest command. + Xnest=@X_XNEST_PATH@/Xnest @X_XNEST_CONFIG_OPTIONS@ +-# Automatic VT allocation. Right now only works on Linux. This way we force ++# Automatic VT allocation. This way + # X to use specific vts. turn VTAllocation to false if this is causing + # problems. +-#FirstVT=7 +-#VTAllocation=true ++FirstVT=9 ++VTAllocation=true + # Should double login be treated with a warning (and possibility to change VT's + # on Linux and FreeBSD systems for console logins) + #DoubleLoginWarning=true +@@ -283,7 +283,7 @@ Enable=false + # The specific gtkrc file we use. It should be the full path to the gtkrc that + # we need. Unless you need a specific gtkrc that doesn't correspond to a + # specific theme, then just use the GtkTheme key. +-#GtkRC=@datadir@/themes/Default/gtk-2.0/gtkrc ++#GtkRC=@datadir@/../themes/Default/gtk-2.0/gtkrc + + # The GTK+ theme to use for the GUI. + #GtkTheme=Default diff --git a/x11/gdm/files/patch-config_locale.alias b/x11/gdm/files/patch-config_locale.alias new file mode 100644 index 000000000..c983c422e --- /dev/null +++ b/x11/gdm/files/patch-config_locale.alias @@ -0,0 +1,160 @@ +--- config/locale.alias.orig Sat Jun 11 02:01:45 2005 ++++ config/locale.alias Sat Jun 11 03:34:22 2005 +@@ -14,104 +14,56 @@ + # + # - George + +-Afrikaans af_ZA.UTF-8,af_ZA +-Albanian sq_AL.UTF-8,sq_AL +-Amharic am_ET.UTF-8,am_ET +-Arabic(Egypt) ar_EG.UTF-8,ar_EG +-Arabic(Lebanon) ar_LB.UTF-8,ar_LB +-Armenian hy_AM.UTF-8,hy_AM +-Azerbaijani az_AZ.UTF-8,az_AZ +-Azerbaijani(Iran) az_IR.UTF-8,az_IR +-Basque eu_ES.UTF-8,eu_ES +-Belarusian be_BY.UTF-8,be_BY +-Bengali bn_BD.UTF-8,bn_BD +-Bengali(India) bn_IN.UTF-8,bn_IN +-Bosnian bs_BA.UTF-8,bs_BA +-Breton br_FR.UTF-8,br_FR +-Bulgarian bg_BG.UTF-8,bg_BG +-Catalan ca_ES.UTF-8,ca_ES +-Chinese(ChinaMainland) zh_CN.UTF-8,zh_CN +-Chinese(Hong-Kong) zh_HK.UTF-8,zh_HK +-Chinese(Singapore) zh_SG.UTF-8,zh_SG +-Chinese(Taiwan) 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 +-English(USA) en_US.UTF-8,en_US +-English(Australia) en_AU.UTF-8,en_AU +-English(UK) en_GB.UTF-8,en_GB +-English(Canada) en_CA.UTF-8,en_CA +-English(Ireland) en_IE.UTF-8,en_IE +-English(SouthAfrica) en_ZA.UTF-8,en_ZA +-Esperanto eo.UTF-8,eo +-Estonian et_EE.UTF-8,et_EE +-Finnish fi_FI.UTF-8,fi_FI +-French fr_FR.UTF-8,fr_FR +-French(Belgium) fr_BE.UTF-8,fr_BE +-French(Switzerland) fr_CH.UTF-8,fr_CH +-Galician gl_ES.UTF-8,gl_ES +-German de_DE.UTF-8,de_DE +-German(Austria) de_AT.UTF-8,de_AT +-German(Switzerland) de_CH.UTF-8,de_CH +-Greek el_GR.UTF-8,el_GR +-Gujarati gu_IN.UTF-8,gu_IN +-Hebrew he_IL.UTF-8,he_IL +-Hindi hi_IN.UTF-8,hi_IN +-Hungarian hu_HU.UTF-8,hu_HU +-Icelandic is_IS.UTF-8,is_IS +-Indonesian id_ID.UTF-8,id_ID +-Interlingua ia.UTF-8,ia +-Irish ga_IE.UTF-8,ga_IE +-Italian it_IT.UTF-8,it_IT +-Japanese ja_JP.UTF-8,ja_JP +-Kannada kn_IN.UTF-8,kn_IN +-Kinyarwanda rw_RW.UTF-8,rw_RW +-Korean ko_KR.UTF-8,ko_KR +-Latvian lv_LV.UTF-8,lv_LV +-Limburgish li_NL.UTF-8,li_NL +-Limburgish(Belgium) li_BE.UTF-8,li_BE +-Limburgish(Germany) li_DE.UTF-8,li_DE +-Lithuanian lt_LT.UTF-8,lt_LT +-Macedonian mk_MK.UTF-8,mk_MK +-Malayalam ml_IN.UTF-8,ml_IN +-Malay ms_MY.UTF-8,ms_MY +-Maori mi_NZ.UTF-8,mi_NZ +-Marathi mr_IN.UTF-8,mr_IN +-Mongolian mn_MN.UTF-8,mn_MN +-Nepali ne_NP.UTF-8,ne_NP +-NorthernSotho nso_ZA.UTF-8,nso_ZA +-Norwegian(bokmal) nb_NO.UTF-8,nb_NO,no_NO.UTF-8,no_NO +-Norwegian(nynorsk) nn_NO.UTF-8,nn_NO +-Oriya or_IN.UTF-8,or_IN +-Panjabi pa_IN.UTF-8,pa_IN +-Persian fa_IR.UTF-8,fa_IR +-Polish pl_PL.UTF-8,pl_PL +-Portuguese(Brazilian) pt_BR.UTF-8,pt_BR +-Portuguese pt_PT.UTF-8,pt_PT +-Romanian ro_RO.UTF-8,ro_RO +-Russian ru_RU.UTF-8,ru_RU +-Serbian sr_CS.UTF-8,sr_CS,sr_YU@cyrillic,sr_YU +-Serbian(Latin) sr_CS.UTF-8@Latn,sr_CS@Latn,sr_YU@Latn +-Serbian(Jekavian) sr_CS.UTF-8@ije,sr_CS@ije,sr_YU@ije +-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(Finland) sv_FI.UTF-8,sv_FI +-Swedish sv_SE.UTF-8,sv_SE +-Tagalog tl_PH.UTF-8,tl_PH +-Tajik tg_TJ.UTF-8,tg_TJ +-Tamil ta_IN.UTF-8,ta_IN +-Telugu te_IN.UTF-8,te_IN +-Thai th_TH.UTF-8,th_TH +-Turkish tr_TR.UTF-8,tr_TR +-Ukrainian uk_UA.UTF-8,uk_UA +-Uzbek uz_UZ.UTF-8,uz_UZ +-Uzbek(Latin) uz_UZ.UTF-8@Latn,uz_UZ@Latn +-Vietnamese vi_VN.UTF-8,vi_VN +-Walloon wa_BE.UTF-8,wa_BE +-Welsh cy_GB.UTF-8,cy_GB +-Xhosa xh_ZA.UTF-8,xh_ZA +-Yiddish yi.UTF-8,yi +-Zulu zu_ZA.UTF-8,zu_ZA ++Afrikaans af_ZA.UTF-8,af_ZA.ISO8859-15,af_ZA.ISO8859-1 ++Amharic am_ET.UTF-8 ++Armenian hy_AM.UTF-8 ++Basque eu_ES.UTF-8,eu_ES.ISO8859-15,eu_ES.ISO8859-1 ++Byelorussian be_BY.UTF-8,be_BY.CP1131,be_BY.CP1251,be_BY.ISO8859-5 ++Bulgarian bg_BG.UTF-8,bg_BG.CP1251 ++Catalan ca_ES.UTF-8,ca_ES.ISO8859-15,ca_ES.ISO8859-1 ++Chinese(simplified) zh_CN.UTF-8,zh_CN.EUC,zh_CN.eucCN ++Chinese(traditional) zh_TW.UTF-8,zh_TW.Big5 ++Chinese(Hong-Kong) zh_HK.UTF-8,zh_HK.Big5HKSCS ++Croatian hr_HR.UTF-8,hr_HR.ISO8859-2 ++Czech cs_CZ.UTF-8,cs_CZ.ISO8859-2 ++Danish da_DK.UTF-8,da_DK.ISO8859-15,da_DK.ISO8859-1 ++Dutch nl_NL.UTF-8,nl_NL.ISO8859-15,nl_NL.ISO8859-1 ++Dutch(Belgian) nl_BE.UTF-8,nl_BE.ISO8859-15,nl_BE.ISO8859-1 ++English(American) en_US.UTF-8,en_US.ISO8859-1,en_US.ISO8859-15 ++English(Australian) en_AU.UTF-8,en_AU.ISO8859-1,en_AU.ISO8859-15 ++English(British) en_GB.UTF-8,en_GB.ISO8859-1,en_GB.ISO8859-15 ++English(Canadian) en_CA.UTF-8,en_CA.ISO8859-1,en_CA.ISO8859-15 ++English(Irish) en_IE.UTF-8,en_IE.ISO8859-1,en_IE.ISO8859-15 ++English(New-Zealand) en_NZ.UTF-8,en_NZ.ISO8859-1,en_NZ.ISO8859-15 ++Estonian et_EE.UTF-8,et_EE.ISO8859-15 ++Finnish fi_FI.UTF-8,fi_FI.ISO8859-15,fi_FI.ISO8859-1 ++French fr_FR.UTF-8,fr_FR.ISO8859-15,fr_FR.ISO8859-1 ++French(Belgium) fr_BE.UTF-8,fr_BE.ISO8859-15,fr_BE.ISO8859-1 ++French(Canadian) fr_CA.UTF-8,fr_CA.ISO8859-1,fr_CA.ISO8859-15 ++French(Swiss) fr_CH.UTF-8,fr_CH.ISO8859-15,fr_CH.ISO8859-1 ++German de_DE.UTF-8,de_DE.ISO8859-15,de_DE.ISO8859-1 ++German(Austria) de_AT.UTF-8,de_AT.ISO8859-15,de_AT.ISO8859-1 ++German(Switzerland) de_CH.UTF-8,de_CH.ISO8859-15,de_CH.ISO8859-1 ++Greek el_GR.UTF-8,el_GR.ISO8859-7 ++Hebrew he_IL.UTF-8 ++Hindi hi_IN.ISCII-DEV ++Hungarian hu_HU.UTF-8,hu_HU.ISO8859-2 ++Icelandic is_IS.UTF-8,is_IS.ISO8859-1,is_IS.ISO8859-15 ++Italian it_IT.UTF-8,it_IT.ISO8859-15,it_IT.ISO8859-1 ++Italian(Swiss) it_CH.UTF-8,it_CH.ISO8859-15,it_CH.ISO8859-1 ++Japanese ja_JP.UTF-8,ja_JP.EUC,ja_JP.eucJP ++Korean ko_KR.UTF-8,ko_KR.EUC,ko_KR.eucKR ++Lithuanian lt_LT.UTF-8,lt_LT.ISO8859-4,lt_LT.ISO8859-13 ++Norwegian(bokmal) nb_NO.UTF-8,nb_NO.ISO8859-1,nb_NO.ISO8859-15,no_NO.UTF-8,no_NO.ISO8859-1,no_NO.ISO8859-15 ++Polish pl_PL.UTF-8,pl_PL.ISO8859-2 ++Portuguese pt_PT.UTF-8,pt_PT.ISO8859-15,pt_PT.ISO8859-1 ++Portuguese(Brazilian) pt_PT.UTF-8,pt_BR.ISO8859-1 ++Romanian ro_RO.UTF-8,ro_RO.ISO8859-2 ++Russian ru_RU.UTF-8,ru_RU.ISO8859-5 ++Serbian sr_YU.UTF-8,sr_YU.ISO8859-2,sr_YU.ISO8859-5 ++Slovak sk_SK.UTF-8,sk_SK.ISO8859-2 ++Slovenian sl_SI.UTF-8,sl_SI.ISO8859-2 ++Spanish es_ES.UTF-8,es_ES.ISO8859-15,es_ES.ISO8859-1 ++Swedish sv_SV.UTF-8,sv_SE.ISO8859-1 ++Turkish tr_TR.UTF-8,tr_TR.ISO8859-9 ++Ukrainian uk_UA.UTF-8,uk_UA.ISO8859-5 diff --git a/x11/gdm/files/patch-configure b/x11/gdm/files/patch-configure new file mode 100644 index 000000000..ae54f1460 --- /dev/null +++ b/x11/gdm/files/patch-configure @@ -0,0 +1,25 @@ +--- configure.orig Wed Mar 29 13:51:40 2006 ++++ configure Wed Mar 29 14:15:56 2006 +@@ -22965,6 +22965,8 @@ _ACEOF + cat confdefs.h >>conftest.$ac_ext + cat >>conftest.$ac_ext <<_ACEOF + /* end confdefs.h. */ ++#include <sys/types.h> ++#include <sys/socket.h> + $ac_includes_default + #include <$ac_header> + _ACEOF +@@ -32415,6 +32417,13 @@ case "$host" in + XSESSION_SHELL=/bin/ksh + SOUND_PROGRAM=/usr/bin/audioplay + ;; ++*freebsd*) ++ GDM_USER_PATH="/bin:/usr/bin" ++ HALT_COMMAND="/sbin/shutdown -p now;/usr/sbin/shutdown -p now" ++ REBOOT_COMMAND="/sbin/shutdown -r now;/usr/sbin/shutdown -r now" ++ SUSPEND_COMMAND="/usr/sbin/zzz" ++ XSESSION_SHELL=/bin/sh ++ ;; + *) + GDM_USER_PATH="/bin:/usr/bin" + HALT_COMMAND="/usr/bin/poweroff;/sbin/poweroff;/sbin/shutdown -h now;/usr/sbin/shutdown -h now" diff --git a/x11/gdm/files/patch-daemon_gdmconfig.c b/x11/gdm/files/patch-daemon_gdmconfig.c new file mode 100644 index 000000000..9ebf10c99 --- /dev/null +++ b/x11/gdm/files/patch-daemon_gdmconfig.c @@ -0,0 +1,10 @@ +--- daemon/gdmconfig.c.orig Thu Jan 5 16:57:06 2006 ++++ daemon/gdmconfig.c Thu Jan 5 16:57:44 2006 +@@ -39,6 +39,7 @@ + #include <fcntl.h> + #include <sys/types.h> + #include <sys/stat.h> ++#include <sys/resource.h> + #include <signal.h> + #include <pwd.h> + #include <grp.h> diff --git a/x11/gdm/files/patch-daemon_server.c b/x11/gdm/files/patch-daemon_server.c new file mode 100644 index 000000000..57f028bfd --- /dev/null +++ b/x11/gdm/files/patch-daemon_server.c @@ -0,0 +1,10 @@ +--- daemon/server.c.orig Thu Jan 5 16:58:37 2006 ++++ daemon/server.c Thu Jan 5 16:58:46 2006 +@@ -29,6 +29,7 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <sys/wait.h> ++#include <sys/resource.h> + #include <strings.h> + #include <signal.h> + #include <syslog.h> diff --git a/x11/gdm/files/patch-gui_gdmsetup.c b/x11/gdm/files/patch-gui_gdmsetup.c new file mode 100644 index 000000000..423000cb6 --- /dev/null +++ b/x11/gdm/files/patch-gui_gdmsetup.c @@ -0,0 +1,11 @@ +--- gui/gdmsetup.c.orig Thu Jun 30 16:47:06 2005 ++++ gui/gdmsetup.c Mon Jul 4 02:53:12 2005 +@@ -3270,7 +3271,7 @@ theme_install_response (GtkWidget *choos + /* HACK! */ + argv[0] = chown; + argv[1] = "-R"; +- argv[2] = "root:root"; ++ argv[2] = "root:wheel"; + argv[3] = quoted; + argv[4] = NULL; + simple_spawn_sync (argv); diff --git a/x11/gdm/pkg-descr b/x11/gdm/pkg-descr new file mode 100644 index 000000000..1699cf5b7 --- /dev/null +++ b/x11/gdm/pkg-descr @@ -0,0 +1,4 @@ +The GNOME 2.0 version of the xdm display manager. It supports user +icons, multiple sessions, and clean system shutdowns. + +WWW: http://www.gnome.org/projects/gdm/ diff --git a/x11/gdm/pkg-install b/x11/gdm/pkg-install new file mode 100644 index 000000000..bcce174fd --- /dev/null +++ b/x11/gdm/pkg-install @@ -0,0 +1,47 @@ +#!/bin/sh + +case $2 in +POST-INSTALL) + USER=gdm + GROUP=${USER} + UID=92 + GID=${UID} + PW=/usr/sbin/pw + CHMOD=/bin/chmod + CHOWN=/usr/sbin/chown + MKDIR=/bin/mkdir + + 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 + ${MKDIR} -p /var/gdm + ${MKDIR} -p /var/log/gdm + ${CHOWN} -R root:${GROUP} /var/gdm + ${CHMOD} 1770 /var/gdm + ${CHOWN} root:wheel ${PKG_PREFIX}/share/gnome/gdm + ${CHMOD} 0755 ${PKG_PREFIX}/share/gnome/gdm + + ${MKDIR} -p ${PKG_PREFIX}/etc/dm/Sessions + exit 0 + ;; +esac diff --git a/x11/gdm/pkg-message b/x11/gdm/pkg-message new file mode 100644 index 000000000..9131c3eb4 --- /dev/null +++ b/x11/gdm/pkg-message @@ -0,0 +1,12 @@ +GDM is installed. + +Do _NOT_ use /etc/ttys to start gdm at boot time. This will result in gdm +hanging or restarting constantly. Instead, add gdm_enable="YES" to +/etc/rc.conf. GDM will be started automatic on the next reboot. + +GDM uses its own locale.alias file to determine its language and especially +the GNOME 2 fontencoding. This file is located in +%%PREFIX%%/etc/gdm/locale.alias. By default, the character set for every +country using the EURO currency is set to ISO8859-15 in order to enable the +EURO sign. If you do not feel comfortable with this, edit this file according +to your preferences. diff --git a/x11/gdm/pkg-plist b/x11/gdm/pkg-plist new file mode 100644 index 000000000..7288ec2f5 --- /dev/null +++ b/x11/gdm/pkg-plist @@ -0,0 +1,287 @@ +%%X11%%bin/gdm-dmx-reconnect-proxy +bin/gdmXnest +bin/gdmXnestchooser +bin/gdmdynamic +bin/gdmflexiserver +bin/gdmphotosetup +bin/gdmthemetester +etc/gdm/Init/Default +etc/gdm/PostLogin/Default.sample +etc/gdm/PostSession/Default +etc/gdm/PreSession/Default +etc/gdm/XKeepsCrashing +etc/gdm/Xsession +@unexec if cmp -s %D/etc/gdm/custom.conf %D/etc/gdm/custom.conf.default; then rm -f %D/etc/gdm/custom.conf; fi +etc/gdm/custom.conf.default +@exec [ -f %B/custom.conf ] || cp %B/%f %B/custom.conf +etc/gdm/locale.alias +@unexec if cmp -s %D/etc/gdm/modules/AccessDwellMouseEvents %D/etc/gdm/modules/factory-AccessDwellMouseEvents; then rm -f %D/etc/gdm/modules/AccessDwellMouseEvents; fi +etc/gdm/modules/factory-AccessDwellMouseEvents +@exec [ -f %B/AccessDwellMouseEvents ] || cp %B/%f %B/AccessDwellMouseEvents +@unexec if cmp -s %D/etc/gdm/modules/AccessKeyMouseEvents %D/etc/gdm/modules/factory-AccessKeyMouseEvents; then rm -f %D/etc/gdm/modules/AccessKeyMouseEvents; fi +etc/gdm/modules/factory-AccessKeyMouseEvents +@exec [ -f %B/AccessKeyMouseEvents ] || cp %B/%f %B/AccessKeyMouseEvents +lib/gtk-2.0/modules/libdwellmouselistener.a +lib/gtk-2.0/modules/libdwellmouselistener.la +lib/gtk-2.0/modules/libdwellmouselistener.so +lib/gtk-2.0/modules/libkeymouselistener.a +lib/gtk-2.0/modules/libkeymouselistener.la +lib/gtk-2.0/modules/libkeymouselistener.so +%%PAM_MISC%%libexec/gdmaskpass +libexec/gdmchooser +libexec/gdmgreeter +libexec/gdmlogin +libexec/gdmtranslate +sbin/gdm +sbin/gdm-binary +sbin/gdm-restart +sbin/gdm-safe-restart +sbin/gdm-stop +sbin/gdmsetup +share/gnome/applications/gdmflexiserver-xnest.desktop +share/gnome/applications/gdmflexiserver.desktop +share/gnome/applications/gdmphotosetup.desktop +share/gnome/applications/gdmsetup.desktop +share/gnome/gdm/BuiltInSessions/default.desktop +share/gnome/gdm/defaults.conf +share/gnome/gdm/factory-defaults.conf +share/gnome/gdm/gdmchooser.glade +share/gnome/gdm/gdmphotosetup.glade +share/gnome/gdm/gdmsetup.glade +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/gdm/themes/happygnome-list/GdmGreeterTheme.desktop +share/gnome/gdm/themes/happygnome-list/background.svg +share/gnome/gdm/themes/happygnome-list/gnome-logo.svg +share/gnome/gdm/themes/happygnome-list/happygnome.xml +share/gnome/gdm/themes/happygnome-list/options.png +share/gnome/gdm/themes/happygnome-list/screenshot.png +share/gnome/gdm/themes/happygnome/GdmGreeterTheme.desktop +share/gnome/gdm/themes/happygnome/background.svg +share/gnome/gdm/themes/happygnome/gnome-logo.svg +share/gnome/gdm/themes/happygnome/happygnome.xml +share/gnome/gdm/themes/happygnome/options.png +share/gnome/gdm/themes/happygnome/screenshot.png +share/gnome/help/gdm/C/gdm.xml +share/gnome/help/gdm/C/legal.xml +share/gnome/help/gdm/de/figures/gdm_window.png +share/gnome/help/gdm/de/gdm.xml +share/gnome/help/gdm/de/legal.xml +share/gnome/help/gdm/es/figures/gdm_window.png +share/gnome/help/gdm/es/gdm.xml +share/gnome/help/gdm/es/legal.xml +share/gnome/help/gdm/fr/figures/gdm_window.png +share/gnome/help/gdm/fr/gdm.xml +share/gnome/help/gdm/fr/legal.xml +share/gnome/help/gdm/it/figures/gdm_window.png +share/gnome/help/gdm/it/gdm.xml +share/gnome/help/gdm/it/legal.xml +share/gnome/help/gdm/ja/figures/gdm_window.png +share/gnome/help/gdm/ja/gdm.xml +share/gnome/help/gdm/ja/legal.xml +share/gnome/help/gdm/ko/figures/gdm_window.png +share/gnome/help/gdm/ko/gdm.xml +share/gnome/help/gdm/ko/legal.xml +share/gnome/help/gdm/sv/figures/gdm_window.png +share/gnome/help/gdm/sv/gdm.xml +share/gnome/help/gdm/sv/legal.xml +share/gnome/help/gdm/uk/gdm.xml +share/gnome/help/gdm/uk/legal.xml +share/gnome/help/gdm/zh_CN/figures/gdm_window.png +share/gnome/help/gdm/zh_CN/gdm.xml +share/gnome/help/gdm/zh_CN/legal.xml +share/gnome/help/gdm/zh_HK/figures/gdm_window.png +share/gnome/help/gdm/zh_HK/gdm.xml +share/gnome/help/gdm/zh_HK/legal.xml +share/gnome/help/gdm/zh_TW/figures/gdm_window.png +share/gnome/help/gdm/zh_TW/gdm.xml +share/gnome/help/gdm/zh_TW/legal.xml +share/gnome/omf/gdm/gdm-C.omf +share/gnome/omf/gdm/gdm-de.omf +share/gnome/omf/gdm/gdm-es.omf +share/gnome/omf/gdm/gdm-fr.omf +share/gnome/omf/gdm/gdm-it.omf +share/gnome/omf/gdm/gdm-ja.omf +share/gnome/omf/gdm/gdm-ko.omf +share/gnome/omf/gdm/gdm-sv.omf +share/gnome/omf/gdm/gdm-uk.omf +share/gnome/omf/gdm/gdm-zh_CN.omf +share/gnome/omf/gdm/gdm-zh_HK.omf +share/gnome/omf/gdm/gdm-zh_TW.omf +share/gnome/pixmaps/faces/astronaut.jpg +share/gnome/pixmaps/faces/baseball.png +share/gnome/pixmaps/faces/butterfly.png +share/gnome/pixmaps/faces/cat-eye.jpg +share/gnome/pixmaps/faces/chess.jpg +share/gnome/pixmaps/faces/coffee.jpg +share/gnome/pixmaps/faces/dice.jpg +share/gnome/pixmaps/faces/energy-arc.jpg +share/gnome/pixmaps/faces/fish.jpg +share/gnome/pixmaps/faces/flake.jpg +share/gnome/pixmaps/faces/flower.jpg +share/gnome/pixmaps/faces/grapes.jpg +share/gnome/pixmaps/faces/guitar.jpg +share/gnome/pixmaps/faces/launch.jpg +share/gnome/pixmaps/faces/leaf.jpg +share/gnome/pixmaps/faces/lightning.jpg +share/gnome/pixmaps/faces/penguin.jpg +share/gnome/pixmaps/faces/puppy.jpg +share/gnome/pixmaps/faces/sky.jpg +share/gnome/pixmaps/faces/soccerball.png +share/gnome/pixmaps/faces/sunflower.jpg +share/gnome/pixmaps/faces/sunset.jpg +share/gnome/pixmaps/faces/tennis-ball.png +share/gnome/pixmaps/faces/yellow-rose.jpg +share/gnome/pixmaps/gdm-foot-logo.png +share/gnome/pixmaps/gdm-setup.png +share/gnome/pixmaps/gdm-xnest.png +share/gnome/pixmaps/gdm.png +share/gnome/pixmaps/login-photo.png +share/gnome/pixmaps/nobody.png +share/gnome/pixmaps/nohost.png +share/gnome/xsessions/gnome.desktop +share/icons/hicolor/16x16/apps/gdm-xnest.png +share/icons/hicolor/32x32/apps/gdm-setup.png +share/icons/hicolor/32x32/apps/gdm-xnest.png +share/locale/af/LC_MESSAGES/gdm.mo +share/locale/am/LC_MESSAGES/gdm.mo +share/locale/ar/LC_MESSAGES/gdm.mo +share/locale/az/LC_MESSAGES/gdm.mo +share/locale/be/LC_MESSAGES/gdm.mo +share/locale/bg/LC_MESSAGES/gdm.mo +share/locale/bn/LC_MESSAGES/gdm.mo +share/locale/bs/LC_MESSAGES/gdm.mo +share/locale/ca/LC_MESSAGES/gdm.mo +share/locale/cs/LC_MESSAGES/gdm.mo +share/locale/cy/LC_MESSAGES/gdm.mo +share/locale/da/LC_MESSAGES/gdm.mo +share/locale/de/LC_MESSAGES/gdm.mo +share/locale/dz/LC_MESSAGES/gdm.mo +share/locale/el/LC_MESSAGES/gdm.mo +share/locale/en_CA/LC_MESSAGES/gdm.mo +share/locale/en_GB/LC_MESSAGES/gdm.mo +share/locale/es/LC_MESSAGES/gdm.mo +share/locale/et/LC_MESSAGES/gdm.mo +share/locale/eu/LC_MESSAGES/gdm.mo +share/locale/fa/LC_MESSAGES/gdm.mo +share/locale/fi/LC_MESSAGES/gdm.mo +share/locale/fr/LC_MESSAGES/gdm.mo +share/locale/ga/LC_MESSAGES/gdm.mo +share/locale/gl/LC_MESSAGES/gdm.mo +share/locale/gu/LC_MESSAGES/gdm.mo +share/locale/he/LC_MESSAGES/gdm.mo +share/locale/hi/LC_MESSAGES/gdm.mo +share/locale/hr/LC_MESSAGES/gdm.mo +share/locale/hu/LC_MESSAGES/gdm.mo +share/locale/id/LC_MESSAGES/gdm.mo +share/locale/is/LC_MESSAGES/gdm.mo +share/locale/it/LC_MESSAGES/gdm.mo +share/locale/ja/LC_MESSAGES/gdm.mo +share/locale/ka/LC_MESSAGES/gdm.mo +share/locale/ko/LC_MESSAGES/gdm.mo +share/locale/ku/LC_MESSAGES/gdm.mo +share/locale/lt/LC_MESSAGES/gdm.mo +share/locale/lv/LC_MESSAGES/gdm.mo +share/locale/mi/LC_MESSAGES/gdm.mo +share/locale/mk/LC_MESSAGES/gdm.mo +share/locale/ml/LC_MESSAGES/gdm.mo +share/locale/mn/LC_MESSAGES/gdm.mo +share/locale/mr/LC_MESSAGES/gdm.mo +share/locale/ms/LC_MESSAGES/gdm.mo +share/locale/nb/LC_MESSAGES/gdm.mo +share/locale/ne/LC_MESSAGES/gdm.mo +share/locale/nl/LC_MESSAGES/gdm.mo +share/locale/nn/LC_MESSAGES/gdm.mo +share/locale/nso/LC_MESSAGES/gdm.mo +share/locale/pa/LC_MESSAGES/gdm.mo +share/locale/pl/LC_MESSAGES/gdm.mo +share/locale/pt/LC_MESSAGES/gdm.mo +share/locale/pt_BR/LC_MESSAGES/gdm.mo +share/locale/ro/LC_MESSAGES/gdm.mo +share/locale/ru/LC_MESSAGES/gdm.mo +share/locale/rw/LC_MESSAGES/gdm.mo +share/locale/sk/LC_MESSAGES/gdm.mo +share/locale/sl/LC_MESSAGES/gdm.mo +share/locale/sq/LC_MESSAGES/gdm.mo +share/locale/sr/LC_MESSAGES/gdm.mo +share/locale/sr@Latn/LC_MESSAGES/gdm.mo +share/locale/sv/LC_MESSAGES/gdm.mo +share/locale/ta/LC_MESSAGES/gdm.mo +share/locale/th/LC_MESSAGES/gdm.mo +share/locale/tr/LC_MESSAGES/gdm.mo +share/locale/uk/LC_MESSAGES/gdm.mo +share/locale/vi/LC_MESSAGES/gdm.mo +share/locale/wa/LC_MESSAGES/gdm.mo +share/locale/xh/LC_MESSAGES/gdm.mo +share/locale/zh_CN/LC_MESSAGES/gdm.mo +share/locale/zh_HK/LC_MESSAGES/gdm.mo +share/locale/zh_TW/LC_MESSAGES/gdm.mo +share/locale/zu/LC_MESSAGES/gdm.mo +@dirrmtry share/locale/zu/LC_MESSAGES +@dirrmtry share/locale/zu +@dirrmtry share/locale/xh/LC_MESSAGES +@dirrmtry share/locale/xh +@dirrmtry share/locale/rw/LC_MESSAGES +@dirrmtry share/locale/rw +@dirrmtry share/locale/nso/LC_MESSAGES +@dirrmtry share/locale/nso +@dirrmtry share/locale/mr/LC_MESSAGES +@dirrmtry share/locale/mr +@dirrmtry share/locale/mi/LC_MESSAGES +@dirrmtry share/locale/mi +@dirrmtry share/locale/ku/LC_MESSAGES +@dirrmtry share/locale/ku +@dirrmtry share/locale/dz/LC_MESSAGES +@dirrmtry share/locale/dz +@dirrm share/gnome/xsessions +@dirrm share/gnome/pixmaps/faces +@dirrm share/gnome/omf/gdm +@dirrm share/gnome/help/gdm/zh_TW/figures +@dirrm share/gnome/help/gdm/zh_TW +@dirrm share/gnome/help/gdm/zh_HK/figures +@dirrm share/gnome/help/gdm/zh_HK +@dirrm share/gnome/help/gdm/zh_CN/figures +@dirrm share/gnome/help/gdm/zh_CN +@dirrm share/gnome/help/gdm/uk +@dirrm share/gnome/help/gdm/sv/figures +@dirrm share/gnome/help/gdm/sv +@dirrm share/gnome/help/gdm/ko/figures +@dirrm share/gnome/help/gdm/ko +@dirrm share/gnome/help/gdm/ja/figures +@dirrm share/gnome/help/gdm/ja +@dirrm share/gnome/help/gdm/it/figures +@dirrm share/gnome/help/gdm/it +@dirrm share/gnome/help/gdm/fr/figures +@dirrm share/gnome/help/gdm/fr +@dirrm share/gnome/help/gdm/es/figures +@dirrm share/gnome/help/gdm/es +@dirrm share/gnome/help/gdm/de/figures +@dirrm share/gnome/help/gdm/de +@dirrm share/gnome/help/gdm/C +@dirrm share/gnome/help/gdm +@dirrm share/gnome/gdm/themes/happygnome-list +@dirrm share/gnome/gdm/themes/happygnome +@dirrm share/gnome/gdm/themes/circles +@dirrm share/gnome/gdm/themes +@dirrm share/gnome/gdm/BuiltInSessions +@dirrm share/gnome/gdm +@dirrm etc/pam.d +@dirrm etc/gdm/modules +@dirrm etc/gdm/Sessions +@dirrm etc/gdm/PreSession +@dirrm etc/gdm/PostSession +@dirrm etc/gdm/PostLogin +@dirrm etc/gdm/Init +@dirrm etc/gdm +@dirrmtry etc/dm/Sessions +@dirrmtry etc/dm +@dirrmtry sbin +@dirrmtry share/gnome/log/gdm +@dirrmtry share/gnome/log +@unexec /bin/rm -rf /var/gdm 2>/dev/null || /usr/bin/true +@unexec /bin/rm -rf /var/log/gdm 2>/dev/null || /usr/bin/true |