blob: 234d80ce34fc1817449a2b95e0527065074d8ef1 (
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
|
# $NetBSD: Makefile,v 1.8 2000/01/02 18:02:42 tron Exp $
DISTNAME= gdm-2.0beta4
PKGNAME= gdm-2.0b4
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=stable/releases/gnome-1.0.53/} \
${MASTER_SITE_LOCAL}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} Daemon.README Daemon.png
MAINTAINER= tron@netbsd.org
HOMEPAGE= http://www.gnome.org/
DEPENDS+= gnome-libs-*:../../x11/gnome-libs
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
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:
${CHMOD} +x ${WRKSRC}/config/gnomerc
.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
${MKDIR} ${PREFIX}/share/doc/gdm
${INSTALL_DATA} ${DISTDIR}/Daemon.README ${PREFIX}/share/doc/gdm
${INSTALL_DATA} ${DISTDIR}/Daemon.png ${PREFIX}/share/pixmaps
${LN} -fs Gnome ${GDMCFGDIR}/Sessions/Default
.include "../../mk/bsd.pkg.mk"
|