Mon Feb 8 09:47:06 2010 UTC ()
Fix wrong ownership of config files. Bump PKGREVISION.


(tnn)
diff -r1.155 -r1.156 pkgsrc/x11/gdm/Makefile

cvs diff -r1.155 -r1.156 pkgsrc/x11/gdm/Attic/Makefile (switch to unified diff)

--- pkgsrc/x11/gdm/Attic/Makefile 2009/08/26 19:58:29 1.155
+++ pkgsrc/x11/gdm/Attic/Makefile 2010/02/08 09:47:06 1.156
@@ -1,151 +1,151 @@ @@ -1,151 +1,151 @@
1# $NetBSD: Makefile,v 1.155 2009/08/26 19:58:29 sno Exp $ 1# $NetBSD: Makefile,v 1.156 2010/02/08 09:47:06 tnn Exp $
2# 2#
3 3
4DISTNAME= gdm-2.20.10 4DISTNAME= gdm-2.20.10
5PKGREVISION= 2 5PKGREVISION= 3
6CATEGORIES= x11 gnome 6CATEGORIES= x11 gnome
7MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gdm/2.20/} 7MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gdm/2.20/}
8EXTRACT_SUFX= .tar.bz2 8EXTRACT_SUFX= .tar.bz2
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://www.gnome.org/ 11HOMEPAGE= http://www.gnome.org/
12COMMENT= Gnome Display Manager - a re-implementation of the xdm program 12COMMENT= Gnome Display Manager - a re-implementation of the xdm program
13 13
14PKG_DESTDIR_SUPPORT= user-destdir 14PKG_DESTDIR_SUPPORT= user-destdir
15 15
16DEPENDS+= zenity>=2.16.0:../../x11/zenity 16DEPENDS+= zenity>=2.16.0:../../x11/zenity
17 17
18USE_PKGLOCALEDIR= YES 18USE_PKGLOCALEDIR= YES
19GNU_CONFIGURE= YES 19GNU_CONFIGURE= YES
20USE_LIBTOOL= YES 20USE_LIBTOOL= YES
21USE_TOOLS+= gmake intltool msgfmt pkg-config 21USE_TOOLS+= gmake intltool msgfmt pkg-config
22BUILD_DEFS+= VARBASE 22BUILD_DEFS+= VARBASE
23 23
24.include "options.mk" 24.include "options.mk"
25 25
26CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} 26CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
27CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} 27CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
28CONFIGURE_ARGS+= --with-dmconfdir=${PKG_SYSCONFDIR:Q}/dm 28CONFIGURE_ARGS+= --with-dmconfdir=${PKG_SYSCONFDIR:Q}/dm
29CONFIGURE_ARGS+= --with-sysconfsubdir= 29CONFIGURE_ARGS+= --with-sysconfsubdir=
30CONFIGURE_ARGS+= --with-prefetch=yes 30CONFIGURE_ARGS+= --with-prefetch=yes
31CONFIGURE_ENV+= PREFIX=${PREFIX:Q} 31CONFIGURE_ENV+= PREFIX=${PREFIX:Q}
32CONFIGURE_ENV+= X11BASE=${X11BASE:Q} 32CONFIGURE_ENV+= X11BASE=${X11BASE:Q}
33INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} 33INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS}
34INSTALL_MAKE_FLAGS+= GDM_CUSTOM_CONF=${EGDIR:Q}/custom.conf 34INSTALL_MAKE_FLAGS+= GDM_CUSTOM_CONF=${EGDIR:Q}/custom.conf
35INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR:Q} 35INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR:Q}
36MAKE_ENV+= CHMOD=${CHMOD:Q} CHOWN=${CHOWN:Q} 36MAKE_ENV+= CHMOD=${CHMOD:Q} CHOWN=${CHOWN:Q}
37 37
38OWN_DIRS= ${PKG_SYSCONFDIR}/Init 38OWN_DIRS= ${PKG_SYSCONFDIR}/Init
39OWN_DIRS+= ${PKG_SYSCONFDIR}/PostLogin 39OWN_DIRS+= ${PKG_SYSCONFDIR}/PostLogin
40OWN_DIRS+= ${PKG_SYSCONFDIR}/PostSession 40OWN_DIRS+= ${PKG_SYSCONFDIR}/PostSession
41OWN_DIRS+= ${PKG_SYSCONFDIR}/PreSession 41OWN_DIRS+= ${PKG_SYSCONFDIR}/PreSession
42OWN_DIRS+= ${PKG_SYSCONFDIR}/dm 42OWN_DIRS+= ${PKG_SYSCONFDIR}/dm
43OWN_DIRS+= ${PKG_SYSCONFDIR}/modules 43OWN_DIRS+= ${PKG_SYSCONFDIR}/modules
44OWN_DIRS+= ${VARBASE}/gdm 44OWN_DIRS+= ${VARBASE}/gdm
45OWN_DIRS+= ${VARBASE}/log/gdm 45OWN_DIRS+= ${VARBASE}/log/gdm
46 46
47PKG_SYSCONFSUBDIR= gdm 47PKG_SYSCONFSUBDIR= gdm
48EGDIR= ${PREFIX}/share/examples/gdm 48EGDIR= ${PREFIX}/share/examples/gdm
49CONF_FILES= 49CONF_FILES=
50.for f in custom.conf locale.alias \ 50.for f in custom.conf locale.alias \
51 modules/AccessDwellMouseEvents modules/AccessKeyMouseEvents \ 51 modules/AccessDwellMouseEvents modules/AccessKeyMouseEvents \
52 modules/factory-AccessDwellMouseEvents \ 52 modules/factory-AccessDwellMouseEvents \
53 modules/factory-AccessKeyMouseEvents 53 modules/factory-AccessKeyMouseEvents
54CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} 54CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
55.endfor 55.endfor
56.for f in Init/Default PostLogin/Default.sample PostSession/Default \ 56.for f in Init/Default PostLogin/Default.sample PostSession/Default \
57 PreSession/Default XKeepsCrashing Xsession 57 PreSession/Default XKeepsCrashing Xsession
58CONF_FILES_PERMS+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} \ 58CONF_FILES_PERMS+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f} \
59 ${ROOT_USER} ${ROOT_GROUP} 0755 59 ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0755
60.endfor 60.endfor
61RCD_SCRIPTS= gdm 61RCD_SCRIPTS= gdm
62 62
63.include "../../mk/bsd.prefs.mk" 63.include "../../mk/bsd.prefs.mk"
64 64
65SUBST_CLASSES+= desktop 65SUBST_CLASSES+= desktop
66SUBST_MESSAGE.desktop= Configuring GDM settings. 66SUBST_MESSAGE.desktop= Configuring GDM settings.
67SUBST_STAGE.desktop= pre-configure 67SUBST_STAGE.desktop= pre-configure
68SUBST_FILES.desktop= config/default.desktop.in 68SUBST_FILES.desktop= config/default.desktop.in
69#SUBST_FILES.desktop+= config/gnome.desktop.in 69#SUBST_FILES.desktop+= config/gnome.desktop.in
70SUBST_FILES.desktop+= config/gdm.conf.in 70SUBST_FILES.desktop+= config/gdm.conf.in
71SUBST_SED.desktop= -e 's/^_//g' 71SUBST_SED.desktop= -e 's/^_//g'
72SUBST_SED.desktop+= -e 's|^User=gdm$$|User=${GDMOWN}|g' 72SUBST_SED.desktop+= -e 's|^User=gdm$$|User=${GDMOWN}|g'
73SUBST_SED.desktop+= -e 's|^Group=gdm$$|Group=${GDMGRP}|g' 73SUBST_SED.desktop+= -e 's|^Group=gdm$$|Group=${GDMGRP}|g'
74SUBST_SED.desktop+= -e 's|^\#GtkTheme=.*$$|GtkTheme=Clearlooks|g' 74SUBST_SED.desktop+= -e 's|^\#GtkTheme=.*$$|GtkTheme=Clearlooks|g'
75SUBST_SED.desktop+= -e 's|^\#FirstVT=.*$$|FirstVT=5|g' 75SUBST_SED.desktop+= -e 's|^\#FirstVT=.*$$|FirstVT=5|g'
76SUBST_SED.desktop+= -e 's|^\#VTAllocation=.*$$|VTAllocation=true|g' 76SUBST_SED.desktop+= -e 's|^\#VTAllocation=.*$$|VTAllocation=true|g'
77.if ${OPSYS} == "NetBSD" 77.if ${OPSYS} == "NetBSD"
78SUBST_SED.desktop+= -e 's|^\#Logo=.*$$|Logo=${PREFIX}/share/pixmaps/NetBSD.xpm|g' 78SUBST_SED.desktop+= -e 's|^\#Logo=.*$$|Logo=${PREFIX}/share/pixmaps/NetBSD.xpm|g'
79.endif 79.endif
80.if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD" 80.if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD"
81SUBST_SED.desktop+= -e 's|^\#RebootCommand=.*$$|RebootCommand=/sbin/shutdown -r now|g' 81SUBST_SED.desktop+= -e 's|^\#RebootCommand=.*$$|RebootCommand=/sbin/shutdown -r now|g'
82SUBST_SED.desktop+= -e 's|^\#HaltCommand=.*$$|HaltCommand=/sbin/shutdown -p now|g' 82SUBST_SED.desktop+= -e 's|^\#HaltCommand=.*$$|HaltCommand=/sbin/shutdown -p now|g'
83.endif 83.endif
84SUBST_SED.desktop+= -e 's|^PreFetchProgram=.*$$|PreFetchProgram=${PREFIX}/libexec/gdmprefetch @${PKG_SYSCONFDIR}/gdmprefetchlist|g' 84SUBST_SED.desktop+= -e 's|^PreFetchProgram=.*$$|PreFetchProgram=${PREFIX}/libexec/gdmprefetch @${PKG_SYSCONFDIR}/gdmprefetchlist|g'
85 85
86SUBST_CLASSES+= gdmsetup 86SUBST_CLASSES+= gdmsetup
87SUBST_MESSAGE.gdmsetup= Patching gdmsetup theme installer to use ${ROOT_USER}:${ROOT_GROUP} 87SUBST_MESSAGE.gdmsetup= Patching gdmsetup theme installer to use ${REAL_ROOT_USER}:${REAL_ROOT_GROUP}
88SUBST_STAGE.gdmsetup= post-patch 88SUBST_STAGE.gdmsetup= post-patch
89SUBST_FILES.gdmsetup= gui/gdmsetup.c 89SUBST_FILES.gdmsetup= gui/gdmsetup.c
90SUBST_SED.gdmsetup= -e 's/root:root/${ROOT_USER}:${ROOT_GROUP}/g' 90SUBST_SED.gdmsetup= -e 's/root:root/${REAL_ROOT_USER}:${REAL_ROOT_GROUP}/g'
91 91
92.if ${OPSYS} == "SunOS" 92.if ${OPSYS} == "SunOS"
93CFLAGS+= -DSunOS 93CFLAGS+= -DSunOS
94GDMOWN= daemon 94GDMOWN= daemon
95GDMGRP= other 95GDMGRP= other
96.else 96.else
97GDMOWN= daemon 97GDMOWN= daemon
98GDMGRP= daemon 98GDMGRP= daemon
99.endif 99.endif
100 100
101# The following forces the X server to start on the 5th virtual terminal. 101# The following forces the X server to start on the 5th virtual terminal.
102# This is suboptimal but matches the defaults for the xdm configuration, 102# This is suboptimal but matches the defaults for the xdm configuration,
103# which should work for most installations. See the definition of 103# which should work for most installations. See the definition of
104# DEFAULTVT in xsrc/xfree/xc/programs/xdm/config/Imakefile. 104# DEFAULTVT in xsrc/xfree/xc/programs/xdm/config/Imakefile.
105# 105#
106# If we do not do this, we hit a very annoying and obscure problem: during 106# If we do not do this, we hit a very annoying and obscure problem: during
107# system startup, gdm starts before init spawns gettys. If the X server 107# system startup, gdm starts before init spawns gettys. If the X server
108# is started before init spawns the gettys (which easily happens on slow 108# is started before init spawns the gettys (which easily happens on slow
109# machines), it grabs the first virtual terminal (instead of the first 109# machines), it grabs the first virtual terminal (instead of the first
110# "free" one). Later on, when the first getty is started, it grabs the 110# "free" one). Later on, when the first getty is started, it grabs the
111# same terminal X used (the first one). As a result, only one of them 111# same terminal X used (the first one). As a result, only one of them
112# will receive key presses. And on slow machines, X will have lost access 112# will receive key presses. And on slow machines, X will have lost access
113# to the keyboard. 113# to the keyboard.
114.if (${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD") && \ 114.if (${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD") && \
115 (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") 115 (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
116CONFIGURE_ARGS+= X_SERVER_ARGS="vt05" 116CONFIGURE_ARGS+= X_SERVER_ARGS="vt05"
117.endif 117.endif
118 118
119PLIST_VARS+= dmx 119PLIST_VARS+= dmx
120.if exists(${X11BASE}/include/X11/extensions/dmxext.h) 120.if exists(${X11BASE}/include/X11/extensions/dmxext.h)
121PLIST.dmx= yes 121PLIST.dmx= yes
122.endif 122.endif
123PRINT_PLIST_AWK+= /dmx/ { print "$${DMX}" $$0; next } 123PRINT_PLIST_AWK+= /dmx/ { print "$${DMX}" $$0; next }
124 124
125PLIST_VARS+= gdmopen 125PLIST_VARS+= gdmopen
126.if exists(/usr/include/linux/vt.h) 126.if exists(/usr/include/linux/vt.h)
127PLIST.gdmopen= yes 127PLIST.gdmopen= yes
128.endif 128.endif
129PRINT_PLIST_AWK+= /gdmopen/ { print "$${GDMOPEN}" $$0; next } 129PRINT_PLIST_AWK+= /gdmopen/ { print "$${GDMOPEN}" $$0; next }
130 130
131.include "../../devel/gettext-lib/buildlink3.mk" 131.include "../../devel/gettext-lib/buildlink3.mk"
132.include "../../devel/glib2/buildlink3.mk" 132.include "../../devel/glib2/buildlink3.mk"
133.include "../../devel/libglade/buildlink3.mk" 133.include "../../devel/libglade/buildlink3.mk"
134.include "../../devel/pango/buildlink3.mk" 134.include "../../devel/pango/buildlink3.mk"
135.include "../../devel/popt/buildlink3.mk" 135.include "../../devel/popt/buildlink3.mk"
136.include "../../graphics/hicolor-icon-theme/buildlink3.mk" 136.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
137BUILDLINK_API_DEPENDS.libart+= libart>=2.3.11 137BUILDLINK_API_DEPENDS.libart+= libart>=2.3.11
138.include "../../graphics/libart/buildlink3.mk" 138.include "../../graphics/libart/buildlink3.mk"
139.include "../../graphics/libgnomecanvas/buildlink3.mk" 139.include "../../graphics/libgnomecanvas/buildlink3.mk"
140.include "../../graphics/librsvg/buildlink3.mk" 140.include "../../graphics/librsvg/buildlink3.mk"
141.include "../../textproc/gnome-doc-utils/buildlink3.mk" 141.include "../../textproc/gnome-doc-utils/buildlink3.mk"
142.include "../../textproc/libxml2/buildlink3.mk" 142.include "../../textproc/libxml2/buildlink3.mk"
143.include "../../mk/omf-scrollkeeper.mk" 143.include "../../mk/omf-scrollkeeper.mk"
144.include "../../x11/gtk2/buildlink3.mk" 144.include "../../x11/gtk2/buildlink3.mk"
145 145
146post-install: 146post-install:
147 ${INSTALL_DATA} ${FILESDIR}/NetBSD.xpm ${DESTDIR}${PREFIX}/share/pixmaps 147 ${INSTALL_DATA} ${FILESDIR}/NetBSD.xpm ${DESTDIR}${PREFIX}/share/pixmaps
148 ${INSTALL_DATA} ${FILESDIR}/custom.desktop \ 148 ${INSTALL_DATA} ${FILESDIR}/custom.desktop \
149 ${DESTDIR}${PREFIX}/share/gdm/BuiltInSessions 149 ${DESTDIR}${PREFIX}/share/gdm/BuiltInSessions
150 150
151.include "../../mk/bsd.pkg.mk" 151.include "../../mk/bsd.pkg.mk"