diff options
author | tron <tron> | 1999-11-10 23:15:27 +0000 |
---|---|---|
committer | tron <tron> | 1999-11-10 23:15:27 +0000 |
commit | 71bd3920b07d6d182798c1d6a4e2dba11653ef59 (patch) | |
tree | 3e725bcb75a71a052c7876a63bda68debba3fc95 /x11/gdm | |
parent | d10fe4526ea7305a39f8e580671704cffba2e5f6 (diff) | |
download | pkgsrc-71bd3920b07d6d182798c1d6a4e2dba11653ef59.tar.gz |
Import new "gdm" package included in the GNOME 1.0.53 release:
Gnome Display Manager - a re-implementation of the xdm program
Diffstat (limited to 'x11/gdm')
-rw-r--r-- | x11/gdm/Makefile | 91 | ||||
-rw-r--r-- | x11/gdm/files/md5 | 3 | ||||
-rw-r--r-- | x11/gdm/files/patch-sum | 8 | ||||
-rw-r--r-- | x11/gdm/patches/patch-aa | 24 | ||||
-rw-r--r-- | x11/gdm/patches/patch-ab | 39 | ||||
-rw-r--r-- | x11/gdm/patches/patch-ac | 10 | ||||
-rw-r--r-- | x11/gdm/patches/patch-ad | 22 | ||||
-rw-r--r-- | x11/gdm/patches/patch-ae | 13 | ||||
-rw-r--r-- | x11/gdm/patches/patch-af | 13 | ||||
-rw-r--r-- | x11/gdm/pkg/COMMENT | 1 | ||||
-rw-r--r-- | x11/gdm/pkg/DEINSTALL | 19 | ||||
-rw-r--r-- | x11/gdm/pkg/DESCR | 23 | ||||
-rw-r--r-- | x11/gdm/pkg/INSTALL | 20 | ||||
-rw-r--r-- | x11/gdm/pkg/PLIST | 48 |
14 files changed, 334 insertions, 0 deletions
diff --git a/x11/gdm/Makefile b/x11/gdm/Makefile new file mode 100644 index 00000000000..ef14d0c9a97 --- /dev/null +++ b/x11/gdm/Makefile @@ -0,0 +1,91 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/11/10 23:15:27 tron Exp $ + +DISTNAME= gdm-2.0beta4 +PKGNAME= gdm-2.0b4 +CATEGORIES= x11 gnome +MASTER_SITES= ${MASTER_SITE_GNOME:=gnome-1.0.53/sources/} + +MAINTAINER= tron@netbsd.org +HOMEPAGE= http://www.gnome.org/ + +DEPENDS+= gnome-libs-*:../../x11/gnome-libs + +GNU_CONFIGURE= yes +USE_X11BASE= yes + +CPPFLAGS= -I${LOCALBASE}/include +LIBS= -lintl +LOCALSTATEDIR= /var/gnome +CONFIGURE_ARGS+= --localstatedir=${LOCALSTATEDIR} +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LIBS="${LIBS}" \ + LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} + +DEINSTALL_FILE= ${WRKDIR}/DEINSTALL +INSTALL_FILE= ${WRKDIR}/INSTALL +MAKE_ENV+= GDMOWN=${GDMOWN} GDMGRP=${GDMGRP} +PLIST_SUBST+= GDMOWN=${GDMOWN} GDMGRP=${GDMGRP} \ + INSTALL="${INSTALL}" LOCALSTATEDIR="${LOCALSTATEDIR}" + +GDMOWN= daemon +GDMGRP= daemon +GDMCFGDIR= ${PREFIX}/etc/gdm +GDMCFGFILES= Default:Init.default/Default \ + PostSession:PostSession.default/Default \ + PreSession:PreSession.default/Default \ + Gnome:Sessions.default/Gnome \ + KDE:Sessions.default/KDE \ + Xsession:Sessions.default/Xsession \ + gdm.conf:gdm.conf.default \ + locale.alias:locale.alias.default \ + gnomerc:../gnomerc.default + +post-build: +.for FILE in DEINSTALL INSTALL + ${SED} -e 's#@@CP@@#${CP}#' \ + -e 's#@@LN@@#${LN}#' \ + -e 's#@@MKDIR@@#${MKDIR}#' \ + -e 's#@@RM@@#${RM}#' \ + -e 's#@@GDMCFGDIR@@#${GDMCFGDIR}#g' \ + -e 's#@@GDMCFGFILES@@#${GDMCFGFILES:C/.*://g}#g' \ + ${PKGDIR}/${FILE} >${WRKDIR}/${FILE} +.endfor +.for FILE in Default PostSession PreSession + cd ${WRKSRC}/config; \ + ${SED} -e 's#/usr/bin/X11#${X11BASE}/bin#g' ${FILE} >${FILE}.new; \ + ${MV} ${FILE}.new ${FILE}; \ + ${CHMOD} +x ${FILE} +.endfor + cd ${WRKSRC}/config; \ + ${RM} -f KDE Xsession; \ + ${ECHO} '#!${SH}' >KDE; \ + ${ECHO} 'export KDEDIR=${X11BASE}' >>KDE; \ + ${ECHO} 'exec $${KDEDIR}/bin/startkde $$@' >>KDE; \ + ${ECHO} '#!${SH}' >Xsession; \ + ${ECHO} 'exec ${X11BASE}/lib/X11/xdm/Xsession $$@' >>Xsession; \ + ${CHMOD} +x KDE Xsession + +post-install: +.for FILE in ${GDMCFGFILES} + cd ${WRKSRC}/config; \ + SOURCE=${FILE:C/:.*//}; \ + TARGET=${GDMCFGDIR}/${FILE:C/.*://:S/.default//}; \ + if [ ! -f $$TARGET ]; then \ + ${ECHO} "installing $$SOURCE as $$TARGET"; \ + if [ -x $$SOURCE ]; then \ + ${INSTALL_SCRIPT} $$SOURCE $$TARGET; \ + else \ + ${INSTALL_DATA} $$SOURCE $$TARGET; \ + fi; \ + fi; \ + TARGET=${GDMCFGDIR}/${FILE:C/.*://}; \ + ${MKDIR} `dirname $$TARGET`; \ + ${ECHO} "installing $$SOURCE as $$TARGET"; \ + if [ -x $$SOURCE ]; then \ + ${INSTALL_SCRIPT} $$SOURCE $$TARGET; \ + else \ + ${INSTALL_DATA} $$SOURCE $$TARGET; \ + fi +.endfor + ${LN} -fs Gnome ${GDMCFGDIR}/Sessions/Default + +.include "../../mk/bsd.pkg.mk" diff --git a/x11/gdm/files/md5 b/x11/gdm/files/md5 new file mode 100644 index 00000000000..fafb4c2dfbd --- /dev/null +++ b/x11/gdm/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 1999/11/10 23:15:27 tron Exp $ + +MD5 (gdm-2.0beta4.tar.gz) = 651fd0762fb1a2e70ab2d0379a7d3374 diff --git a/x11/gdm/files/patch-sum b/x11/gdm/files/patch-sum new file mode 100644 index 00000000000..244f1542cb5 --- /dev/null +++ b/x11/gdm/files/patch-sum @@ -0,0 +1,8 @@ +$NetBSD: patch-sum,v 1.1.1.1 1999/11/10 23:15:27 tron Exp $ + +MD5 (patch-aa) = 2467d33da85bef94f9af52c61e0dcd3a +MD5 (patch-ab) = 74545f81c15f33c95d30736d2c7ada06 +MD5 (patch-ac) = e79133c3fccf8671ee1be210a0e9b111 +MD5 (patch-ad) = 40cad34a11fd0c81b9016fa170a70b9e +MD5 (patch-ae) = 68d772ee3a07c03eb122332bc5bf8822 +MD5 (patch-af) = cbbd1555cb58256206bff130e802fe48 diff --git a/x11/gdm/patches/patch-aa b/x11/gdm/patches/patch-aa new file mode 100644 index 00000000000..52f448b51b0 --- /dev/null +++ b/x11/gdm/patches/patch-aa @@ -0,0 +1,24 @@ +$NetBSD: patch-aa,v 1.1.1.1 1999/11/10 23:15:28 tron Exp $ + +--- config/Makefile.in.orig Thu Sep 30 01:15:45 1999 ++++ config/Makefile.in Tue Nov 9 23:30:28 1999 +@@ -243,6 +243,10 @@ + -e 's,\@sysconfdir\@,$(sysconfdir),g' \ + -e 's,\@localedir\@,$(localedir),g' \ + -e 's,\@authdir\@,$(authdir),g' \ ++ -e 's,\@GDMOWN\@,$(GDMOWN),g' \ ++ -e 's,\@GDMGRP\@,$(GDMGRP),g' \ ++ -e 's,\@X11BASE\@,$(X11BASE),g' \ ++ -e 's,\@LOCALBASE\@,$(LOCALBASE),g' \ + < $(srcdir)/gdm.conf.in > gdm.conf.tmp; \ + mv -f gdm.conf.tmp gdm.conf + +@@ -300,7 +304,7 @@ + fi + if test '!' -d $(authdir); then \ + $(mkinstalldirs) $(authdir); \ +- chown gdm.gdm $(authdir); \ ++ chown $(GDMOWN):$(GDMGRP) $(authdir); \ + chmod 750 $(authdir); \ + fi + diff --git a/x11/gdm/patches/patch-ab b/x11/gdm/patches/patch-ab new file mode 100644 index 00000000000..44dac780e72 --- /dev/null +++ b/x11/gdm/patches/patch-ab @@ -0,0 +1,39 @@ +$NetBSD: patch-ab,v 1.1.1.1 1999/11/10 23:15:28 tron Exp $ + +--- config/gdm.conf.in.orig Tue Sep 7 06:37:16 1999 ++++ config/gdm.conf.in Tue Nov 9 23:30:28 1999 +@@ -1,9 +1,9 @@ + [daemon] + Chooser=@bindir@/gdmchooser --disable-sound --disable-crash-dialog +-DefaultPath=/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:@bindir@ ++DefaultPath=/bin:/usr/bin:/usr/local/bin:@X11BASE@/bin:@LOCALBASE@/bin + DisplayInitDir=@sysconfdir@/gdm/Init + Greeter=@bindir@/gdmlogin --disable-sound --disable-crash-dialog +-Group=gdm ++Group=@GDMGRP@ + HaltCommand=/sbin/shutdown -h now + KillInitClients=1 + LogDir=@authdir@ +@@ -11,10 +11,10 @@ + PostSessionScriptDir=@sysconfdir@/gdm/PostSession/ + PreSessionScriptDir=@sysconfdir@/gdm/PreSession/ + RebootCommand=/sbin/shutdown -r now +-RootPath=/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:@bindir@ ++RootPath=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:@X11BASE@/bin:@LOCALBASE@/bin + ServAuthDir=@authdir@ + SessionDir=@sysconfdir@/gdm/Sessions/ +-User=gdm ++User=@GDMOWN@ + UserAuthDir= + UserAuthFBDir=/tmp + UserAuthFile=.Xauthority +@@ -64,7 +64,7 @@ + Enable=0 + + [servers] +-0=/usr/bin/X11/X +-#1=/usr/bin/X11/X ++0=@X11BASE@/bin/X ++#1=@X11BASE@/bin/X + + diff --git a/x11/gdm/patches/patch-ac b/x11/gdm/patches/patch-ac new file mode 100644 index 00000000000..d8b1d545743 --- /dev/null +++ b/x11/gdm/patches/patch-ac @@ -0,0 +1,10 @@ +$NetBSD: patch-ac,v 1.1.1.1 1999/11/10 23:15:28 tron Exp $ + +--- config/Gnome.in.orig Mon Apr 19 00:08:08 1999 ++++ config/Gnome.in Tue Nov 9 23:30:28 1999 +@@ -1,4 +1,4 @@ +-#!/bin/bash -login ++#!/bin/sh + + for errfile in "$HOME/.gnomerc-errors" "${TMPDIR-/tmp}/gnomerc-$USER" "/tmp/gnomerc-$USER" + do diff --git a/x11/gdm/patches/patch-ad b/x11/gdm/patches/patch-ad new file mode 100644 index 00000000000..03274f60f5e --- /dev/null +++ b/x11/gdm/patches/patch-ad @@ -0,0 +1,22 @@ +$NetBSD: patch-ad,v 1.1.1.1 1999/11/10 23:15:28 tron Exp $ + +--- gui/gdmlogin.c.orig Thu Sep 30 00:56:35 1999 ++++ gui/gdmlogin.c Wed Nov 10 01:30:54 1999 +@@ -1007,7 +1007,7 @@ + gint cols, rows; + struct stat statbuf; + +- if(GdmGtkRC) ++ if(*GdmGtkRC) + gtk_rc_parse (GdmGtkRC); + + rootwin = gdk_window_foreign_new (GDK_ROOT_WINDOW ()); +@@ -1083,7 +1083,7 @@ + gtk_widget_show (GTK_WIDGET (item)); + } + +- if (GdmIcon) { ++ if (*GdmIcon) { + if (access (GdmIcon, R_OK)) { + syslog (LOG_WARNING, _("Can't open icon file: %s. Suspending iconify feature!"), GdmIcon); + } diff --git a/x11/gdm/patches/patch-ae b/x11/gdm/patches/patch-ae new file mode 100644 index 00000000000..4a2ce86886b --- /dev/null +++ b/x11/gdm/patches/patch-ae @@ -0,0 +1,13 @@ +$NetBSD: patch-ae,v 1.1.1.1 1999/11/10 23:15:28 tron Exp $ + +--- po/Makefile.in.in.orig Thu Sep 30 01:14:23 1999 ++++ po/Makefile.in.in Tue Nov 9 23:30:28 1999 +@@ -19,7 +19,7 @@ + prefix = @prefix@ + exec_prefix = @exec_prefix@ + datadir = $(prefix)/@DATADIRNAME@ +-localedir = $(datadir)/locale ++localedir = $(prefix)/share/locale + gnulocaledir = $(prefix)/share/locale + gettextsrcdir = $(prefix)/share/gettext/po + subdir = po diff --git a/x11/gdm/patches/patch-af b/x11/gdm/patches/patch-af new file mode 100644 index 00000000000..840093a3fc9 --- /dev/null +++ b/x11/gdm/patches/patch-af @@ -0,0 +1,13 @@ +$NetBSD: patch-af,v 1.1.1.1 1999/11/10 23:15:28 tron Exp $ + +--- daemon/slave.c.orig Thu Sep 30 00:56:35 1999 ++++ daemon/slave.c Wed Nov 10 01:18:48 1999 +@@ -423,7 +423,7 @@ + /* Restore sigmask inherited from init */ + sigprocmask (SIG_SETMASK, &sysmask, NULL); + +- execl (sesspath, NULL); ++ execl (sesspath, sesspath, NULL); + + gdm_error (_("gdm_slave_session_start: Could not start session `%s'"), sesspath); + diff --git a/x11/gdm/pkg/COMMENT b/x11/gdm/pkg/COMMENT new file mode 100644 index 00000000000..392b6720b71 --- /dev/null +++ b/x11/gdm/pkg/COMMENT @@ -0,0 +1 @@ +Gnome Display Manager - a re-implementation of the xdm program diff --git a/x11/gdm/pkg/DEINSTALL b/x11/gdm/pkg/DEINSTALL new file mode 100644 index 00000000000..9a3ddaf60cf --- /dev/null +++ b/x11/gdm/pkg/DEINSTALL @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $NetBSD: DEINSTALL,v 1.1.1.1 1999/11/10 23:15:28 tron Exp $ + +if [ "$2" != POST-DEINSTALL ] +then + cd @@GDMCFGDIR@@ + @@RM@@ -f Sessions/Default + for SOURCE in @@GDMCFGFILES@@ + do + TARGET=${SOURCE%.default*}${SOURCE##*.default} + if cmp -s $SOURCE $TARGET + then + @@RM@@ -f $TARGET + fi + done +fi + +exit 0 diff --git a/x11/gdm/pkg/DESCR b/x11/gdm/pkg/DESCR new file mode 100644 index 00000000000..5fa91dd0c88 --- /dev/null +++ b/x11/gdm/pkg/DESCR @@ -0,0 +1,23 @@ +The Gnome Display Manager is a re-implementation of the well known xdm +program. gdm 2.0beta4 implements all significant features required for +managing local and remote displays. + +gdm daemon: + o X Authentication + o Default and per-display initialization scripts + o Pre and post session scripts + o Pluggable Authentication Modules + o XDMCP + o TCP Wrappers for access control + +gdmlogin: + o Logo image + o Halt and reboot + o Iconified login window + o Session selection support + o Language selection support + o Face browser + +gdmchooser: + o Visual host browser + o Customizable icons diff --git a/x11/gdm/pkg/INSTALL b/x11/gdm/pkg/INSTALL new file mode 100644 index 00000000000..c0bb4dbeedd --- /dev/null +++ b/x11/gdm/pkg/INSTALL @@ -0,0 +1,20 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1.1.1 1999/11/10 23:15:28 tron Exp $ + +if [ "$2" = POST-INSTALL ] +then + cd @@GDMCFGDIR@@ + for SOURCE in @@GDMCFGFILES@@ + do + TARGET=${SOURCE%.default*}${SOURCE##*.default} + if [ ! -f $TARGET ] + then + @@MKDIR@@ `dirname $TARGET` + @@CP@@ -p $SOURCE $TARGET + fi + done + @@LN@@ -fs Gnome Sessions/Default +fi + +exit 0 diff --git a/x11/gdm/pkg/PLIST b/x11/gdm/pkg/PLIST new file mode 100644 index 00000000000..be61db569ef --- /dev/null +++ b/x11/gdm/pkg/PLIST @@ -0,0 +1,48 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1999/11/10 23:15:28 tron Exp $ +bin/gdm +bin/gdmchooser +bin/gdmlogin +etc/gdm/Init.default/Default +etc/gdm/PostSession.default/Default +etc/gdm/PreSession.default/Default +etc/gdm/Sessions.default/Gnome +etc/gdm/Sessions.default/KDE +etc/gdm/Sessions.default/Xsession +etc/gdm/gdm.conf.default +etc/gdm/locale.alias.default +etc/gnomerc.default +share/gnome/help/gdm/C/configuration.html +share/gnome/help/gdm/C/daemonov.html +share/gnome/help/gdm/C/docbook.css +share/gnome/help/gdm/C/f21.html +share/gnome/help/gdm/C/gdm.html +@exec mkdir -p %D/share/gnome/help/gdm/C/images +share/gnome/help/gdm/C/index.html +share/gnome/help/gdm/C/intro.html +share/gnome/help/gdm/C/ln15.html +share/gnome/help/gdm/C/x60.html +share/gnome/help/gdm/C/x69.html +share/gnome/help/gdm/C/x135.html +share/locale/da/LC_MESSAGES/gdm.mo +share/locale/de/LC_MESSAGES/gdm.mo +share/locale/es/LC_MESSAGES/gdm.mo +share/locale/et/LC_MESSAGES/gdm.mo +share/locale/fr/LC_MESSAGES/gdm.mo +share/locale/ko/LC_MESSAGES/gdm.mo +share/locale/no/LC_MESSAGES/gdm.mo +share/locale/sv/LC_MESSAGES/gdm.mo +share/locale/pl/LC_MESSAGES/gdm.mo +share/locale/pt_BR/LC_MESSAGES/gdm.mo +share/pixmaps/gdm.xpm +share/pixmaps/nobody.png +share/pixmaps/nohost.png +@dirrm share/gnome/help/gdm/C/images +@dirrm share/gnome/help/gdm/C +@dirrm share/gnome/help/gdm +@dirrm etc/gdm/Sessions.default +@dirrm etc/gdm/PreSession.default +@dirrm etc/gdm/PostSession.default +@dirrm etc/gdm/Init.default +@unexec rmdir %D/etc/gdm/Sessions %D/etc/gdm/PreSession %D/etc/gdm/PostSession %D/etc/gdm/Init %D/etc/gdm 2>/dev/null || true +@exec ${INSTALL} -d -o ${GDMOWN} -g ${GDMGRP} -m 750 ${LOCALSTATEDIR}/gdm +@unexec rm -rf ${LOCALSTATEDIR}/gdm |