Tue May 12 16:30:59 2020 UTC ()
x11/gdm: remove nonexistent files from SUBST_FILES


(rillig)
diff -r1.195 -r1.196 pkgsrc/x11/gdm/Makefile

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

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