blob: e315939b3de0692572f71f55867cf354f138b73d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
# $NetBSD: Makefile,v 1.106 2006/04/06 06:22:58 reed Exp $
#
DISTNAME= gdm-2.14.0
PKGREVISION= 1
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gdm/2.14/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnome.org/
COMMENT= Gnome Display Manager - a re-implementation of the xdm program
BUILD_USES_MSGFMT= YES
DEPENDS+= zenity>=2.14.0:../../x11/zenity
BUILDLINK_API_DEPENDS.libart2+= libart2>=2.3.11
USE_DIRS+= gnome2-1.5
USE_PKGLOCALEDIR= YES
GNU_CONFIGURE= YES
USE_LIBTOOL= YES
USE_MSGFMT_PLURALS= YES
USE_TOOLS+= gmake pkg-config
PKG_OPTIONS_VAR= PKG_OPTIONS.gdm
PKG_SUPPORTED_OPTIONS= inet6 pam
.include "../../mk/bsd.options.mk"
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ENV+= PREFIX=${PREFIX:Q}
CONFIGURE_ENV+= X11BASE=${X11BASE:Q}
INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS}
INSTALL_MAKE_FLAGS+= GDM_CUSTOM_CONF=${EGDIR}/gdm/custom.conf
INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR}
MAKE_ENV+= CHMOD=${CHMOD:Q} CHOWN=${CHOWN:Q}
OWN_DIRS= ${PKG_SYSCONFDIR}/dm
OWN_DIRS+= ${PKG_SYSCONFDIR}/gdm/Init
OWN_DIRS+= ${PKG_SYSCONFDIR}/gdm/PostLogin
OWN_DIRS+= ${PKG_SYSCONFDIR}/gdm/PostSession
OWN_DIRS+= ${PKG_SYSCONFDIR}/gdm/PreSession
OWN_DIRS+= ${PKG_SYSCONFDIR}/gdm/modules
OWN_DIRS+= ${VARBASE}/gdm
OWN_DIRS+= ${VARBASE}/log/gdm
EGDIR= ${PREFIX}/share/examples
CONF_FILES=
.for f in custom.conf locale.alias \
modules/AccessDwellMouseEvents modules/AccessKeyMouseEvents \
modules/factory-AccessDwellMouseEvents \
modules/factory-AccessKeyMouseEvents
CONF_FILES+= ${EGDIR}/gdm/${f} \
${PKG_SYSCONFDIR}/gdm/${f}
.endfor
.for f in Init/Default PostLogin/Default.sample PostSession/Default \
PreSession/Default XKeepsCrashing Xsession
CONF_FILES_PERMS+= ${EGDIR}/gdm/${f} \
${PKG_SYSCONFDIR}/gdm/${f} \
${ROOT_USER} ${ROOT_GROUP} 0755
.endfor
RCD_SCRIPTS= gdm
.include "../../mk/bsd.prefs.mk"
SUBST_CLASSES+= desktop
SUBST_MESSAGE.desktop= "Configuring GDM settings."
SUBST_STAGE.desktop= pre-configure
SUBST_FILES.desktop= config/default.desktop.in
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|^User=gdm$$|User=${GDMOWN}|g'
SUBST_SED.desktop+= -e 's|^Group=gdm$$|Group=${GDMGRP}|g'
SUBST_SED.desktop+= -e 's|^\#Logo=.*$$|Logo=@EXPANDED_PIXMAPDIR@/NetBSD.xpm|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
.if ${OPSYS} == "SunOS"
CFLAGS+= -DSunOS
GDMOWN= daemon
GDMGRP= other
.else
GDMOWN= daemon
GDMGRP= daemon
.endif
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
.if ${OPSYS} == "NetBSD"
CONFIGURE_ARGS+= X_SERVER_ARGS="vt05"
.endif
.if !empty(PKG_OPTIONS:Mpam)
. include "../../mk/pam.buildlink3.mk"
CONFIGURE_ARGS+= --enable-authentication-scheme=pam
. if ${PAM_TYPE} == "linux-pam"
PLIST_SUBST+= PAM_MISC=""
. else
PLIST_SUBST+= PAM_MISC="@comment "
. endif
.elif exists(/etc/shadow)
CONFIGURE_ARGS+= --enable-authentication-scheme=shadow
PLIST_SUBST+= PAM_MISC="@comment "
.else
CONFIGURE_ARGS+= --enable-authentication-scheme=crypt
PLIST_SUBST+= PAM_MISC="@comment "
.endif
.if exists(${X11BASE}/include/X11/extensions/dmxext.h)
PLIST_SUBST+= DMX=""
.else
PLIST_SUBST+= DMX="@comment "
.endif
PRINT_PLIST_AWK+= /dmx/ { print "$${DMX}" $$0; next }
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/libglade2/buildlink3.mk"
.include "../../devel/pango/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/libart2/buildlink3.mk"
.include "../../graphics/libgnomecanvas/buildlink3.mk"
.include "../../graphics/librsvg2/buildlink3.mk"
.include "../../textproc/intltool/buildlink3.mk"
.include "../../textproc/gnome-doc-utils/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/scrollkeeper/omf.mk"
.include "../../x11/gtk2/buildlink3.mk"
post-install:
${INSTALL_DATA} ${FILESDIR}/NetBSD.xpm ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${FILESDIR}/custom.desktop \
${PREFIX}/share/gdm/BuiltInSessions
.include "../../mk/bsd.pkg.mk"
|