1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Add proper gdm detection using code from x11/xfce4.

The port installation would fail if you did not have the etc/dm/Sessions directory.

Noticed by:	rafan
This commit is contained in:
Jimmy Olgeni 2006-12-12 12:33:37 +00:00
parent c50cf0fe19
commit 9a780fc8d7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=179557
2 changed files with 14 additions and 1 deletions

View File

@ -23,6 +23,17 @@ SUB_FILES= rox-session rox.desktop
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/sbin/gdm)
WITH_GDM= yes
.endif
.if defined(WITH_GDM)
RUN_DEPENDS+= ${LOCALBASE}/sbin/gdm:${PORTSDIR}/x11/gdm
PLIST_SUB+= GDM=""
.else
PLIST_SUB+= GDM="@comment "
.endif
post-patch:
@${FIND} ${WRKSRC} -name *.orig | ${XARGS} ${RM}
@ -35,6 +46,8 @@ do-install:
@${CP} -r ${WRKSRC}/ROX-Session ${PREFIX}/apps/
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/apps/ROX-Session
@${INSTALL_SCRIPT} ${WRKDIR}/rox-session ${PREFIX}/sbin
.if defined(WITH_GDM)
@${INSTALL_DATA} ${WRKDIR}/rox.desktop ${PREFIX}/etc/dm/Sessions
.endif
.include <bsd.port.post.mk>

View File

@ -106,7 +106,7 @@ apps/ROX-Session/xsettings.pyo
apps/ROX-Session/xxmlrpc.py
apps/ROX-Session/xxmlrpc.pyc
apps/ROX-Session/xxmlrpc.pyo
etc/dm/Sessions/rox.desktop
%%GDM%%etc/dm/Sessions/rox.desktop
sbin/rox-session
@dirrm apps/ROX-Session/tests
@dirrm apps/ROX-Session/images