pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/gdm Update to 2.6.0.3nb1:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bbe0c105aa6e
branches:  trunk
changeset: 477590:bbe0c105aa6e
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Mon Jul 05 22:02:58 2004 +0000

description:
Update to 2.6.0.3nb1:
- Use VARBASE instead of hardcoding /var.
- Patch gdm.conf.in directly from the Makefile using subst.mk, instead of
  doing it from a patch _and_ the Makefile.
- Do not register the rc.d script in the PLIST (handled automatically).
- Under NetBSD (and OpenBSD), use /sbin/shutdown to reboot and halt the
  computer, instead of reboot and poweroff.  The former runs the rc.d
  scripts properly while the other two don't.

diffstat:

 x11/gdm/Makefile         |  22 ++++++++++++++--------
 x11/gdm/PLIST            |   3 +--
 x11/gdm/distinfo         |   3 +--
 x11/gdm/patches/patch-ab |  24 ------------------------
 4 files changed, 16 insertions(+), 36 deletions(-)

diffs (122 lines):

diff -r 36efa852dbb0 -r bbe0c105aa6e x11/gdm/Makefile
--- a/x11/gdm/Makefile  Mon Jul 05 21:42:46 2004 +0000
+++ b/x11/gdm/Makefile  Mon Jul 05 22:02:58 2004 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.66 2004/07/05 09:10:19 jmmv Exp $
+# $NetBSD: Makefile,v 1.67 2004/07/05 22:02:58 jmmv Exp $
 #
 
 DISTNAME=      gdm-2.6.0.3
+PKGREVISION=   1
 CATEGORIES=    x11 gnome
 MASTER_SITES=  ${MASTER_SITE_GNOME:=sources/gdm/2.6/}
 EXTRACT_SUFX=  .tar.bz2
@@ -27,7 +28,7 @@
 USE_X11=               YES
 USE_LIBTOOL=           YES
 
-CONFIGURE_ARGS+=       --localstatedir=/var
+CONFIGURE_ARGS+=       --localstatedir=${VARBASE}
 CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
 CONFIGURE_ENV+=                X11BASE=${X11BASE}
 MAKE_ENV+=             CHMOD=${CHMOD} CHOWN=${CHOWN}
@@ -37,8 +38,8 @@
 OWN_DIRS+=             ${PKG_SYSCONFDIR}/gdm/PostSession
 OWN_DIRS+=             ${PKG_SYSCONFDIR}/gdm/PreSession
 OWN_DIRS+=             ${PKG_SYSCONFDIR}/gdm/modules
-OWN_DIRS+=             /var/gdm
-OWN_DIRS+=             /var/log/gdm
+OWN_DIRS+=             ${VARBASE}/gdm
+OWN_DIRS+=             ${VARBASE}/log/gdm
 
 EGDIR=                 ${PREFIX}/share/examples
 CONF_FILES=            ${EGDIR}/dm/Sessions/default.desktop \
@@ -58,6 +59,8 @@
 .endfor
 RCD_SCRIPTS=           gdm
 
+.include "../../mk/bsd.prefs.mk"
+
 SUBST_CLASSES+=                desktop
 SUBST_MESSAGE.desktop= "Configuring GDM settings."
 SUBST_STAGE.desktop=   pre-configure
@@ -65,10 +68,13 @@
 SUBST_FILES.desktop+=  config/gnome.desktop.in
 SUBST_FILES.desktop+=  config/gdm.conf.in
 SUBST_SED.desktop=     -e 's/^_//g'
-SUBST_SED.desktop+=    -e 's|@GDMOWN@|${GDMOWN}|g'
-SUBST_SED.desktop+=    -e 's|@GDMGRP@|${GDMGRP}|g'
-
-.include "../../mk/bsd.prefs.mk"
+SUBST_SED.desktop+=    -e 's|^User=gdm$$|User=${GDMOWN}|g'
+SUBST_SED.desktop+=    -e 's|^Group=gdm$$|Group=${GDMGRP}|g'
+SUBST_SED.desktop+=    -e 's|^\#Logo=.*$$|Logo=@EXPANDED_PIXMAPDIR@/Daemon.png|g'
+.if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD"
+SUBST_SED.desktop+=    -e 's|^\#RebootCommand=.*$$|RebootCommand=/sbin/shutdown -r now|g'
+SUBST_SED.desktop+=    -e 's|^\#HaltCommand=.*$$|HaltCommand=/sbin/shutdown -p now|g'
+.endif
 
 BUILD_DEFS+=           USE_INET6
 
diff -r 36efa852dbb0 -r bbe0c105aa6e x11/gdm/PLIST
--- a/x11/gdm/PLIST     Mon Jul 05 21:42:46 2004 +0000
+++ b/x11/gdm/PLIST     Mon Jul 05 22:02:58 2004 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.10 2004/06/20 21:25:46 jmmv Exp $
+@comment $NetBSD: PLIST,v 1.11 2004/07/05 22:02:58 jmmv Exp $
 bin/gdm
 bin/gdm-binary
 bin/gdmXnest
@@ -10,7 +10,6 @@
 bin/gdmphotosetup
 bin/gdmsetup
 bin/gdmthemetester
-etc/rc.d/gdm
 lib/gtk-2.0/modules/libdwellmouselistener.a
 lib/gtk-2.0/modules/libdwellmouselistener.la
 lib/gtk-2.0/modules/libkeymouselistener.a
diff -r 36efa852dbb0 -r bbe0c105aa6e x11/gdm/distinfo
--- a/x11/gdm/distinfo  Mon Jul 05 21:42:46 2004 +0000
+++ b/x11/gdm/distinfo  Mon Jul 05 22:02:58 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2004/07/05 09:10:19 jmmv Exp $
+$NetBSD: distinfo,v 1.16 2004/07/05 22:02:58 jmmv Exp $
 
 SHA1 (gdm-2.6.0.3.tar.bz2) = 03462ee0ac5eb7238e7460fc6c985724500470b1
 Size (gdm-2.6.0.3.tar.bz2) = 3079606 bytes
@@ -7,7 +7,6 @@
 SHA1 (Daemon.png) = e77a42c644beecd66c4b95c0ae68c08c728a4e6d
 Size (Daemon.png) = 15725 bytes
 SHA1 (patch-aa) = 2704d70b2ad3b3908749e3423fc60e8815287451
-SHA1 (patch-ab) = 049d4fe8b6e71239392e7a8bae00006103dff309
 SHA1 (patch-ac) = d810e16076aa69070f238900198a0050eaf12516
 SHA1 (patch-ae) = f05e3bffbcb1522ac6265869eef52655d35511c2
 SHA1 (patch-af) = 467afc3ee4d555fac4d5d26e49c3ff8b098e7369
diff -r 36efa852dbb0 -r bbe0c105aa6e x11/gdm/patches/patch-ab
--- a/x11/gdm/patches/patch-ab  Mon Jul 05 21:42:46 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-$NetBSD: patch-ab,v 1.5 2004/01/20 13:41:06 xtraeme Exp $
-
---- config/gdm.conf.in.orig    2003-10-10 16:03:16.000000000 -0500
-+++ config/gdm.conf.in
-@@ -68,8 +68,8 @@ TimedLoginDelay=30
- # you should create these user and group.  Anyone found running this as
- # someone too privilaged will get a kick in the ass.  This should have
- # access to only the gdm directories and files.
--User=gdm
--Group=gdm
-+User=@GDMOWN@
-+Group=@GDMGRP@
- # 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
-@@ -237,7 +237,7 @@ Browser=false
- # although gdm will be able to read a standard locale.alias file as well.
- #LocaleFile=@EXPANDED_LOCALEDIR@/locale.alias
- # Logo shown in the standard greeter
--#Logo=@EXPANDED_PIXMAPDIR@/gdm-foot-logo.png
-+Logo=@EXPANDED_PIXMAPDIR@/Daemon.png
- # The standard greeter should shake if a user entered the wrong username or
- # password.  Kind of cool looking
- #Quiver=true



Home | Main Index | Thread Index | Old Index