Skip to content
Permalink
Browse files

Bug: https://trac.macports.org/ticket/5658

Submitted by:   rhwood@
Reviewed by:
Approved by:
Obtained from:

Fix gdm to build with PAM.
Use the startupitem.* directives to build a startupitem instead of supplying my own.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@18705 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Randall H. Wood
Randall H. Wood committed Jul 23, 2006
1 parent eb486f2 commit d5833094f37655fe2d0ff318c022e8ec82715016
Showing with 19 additions and 30 deletions.
  1. +19 −30 gnome/gdm/Portfile
@@ -1,8 +1,8 @@
# $Id: Portfile,v 1.8 2006/06/22 23:21:25 rhwood Exp $
# $Id: Portfile,v 1.9 2006/07/23 17:48:48 rhwood Exp $
PortSystem 1.0
name gdm
version 2.14.9
revision 1
revision 2
description The Gnome Display Manager is a re-implementation of the well known xdm program.
long_description The Gnome Display Manager is a re-implementation of the well \
known xdm program. It displays a X11-based graphical login screen. \
@@ -18,40 +18,29 @@ master_sites gnome:sources/gdm/2.14/
checksums md5 7e46bc3b0a5b08e79f1f2f1b869caf40
depends_lib bin:gnome-session:gnome-session
use_bzip2 yes
#patchfiles patch_config.h.in
configure.args --mandir=${prefix}/share/man --disable-scrollkeeper
configure.env CPPFLAGS="-I${prefix}/include -L${prefix}/lib"

post-destroot {
# create required directories
file mkdir \
${destroot}/${prefix}/var/${name} ${destroot}/Library/StartupItems/GDM
configure.args --mandir=${prefix}/share/man --disable-scrollkeeper
configure.env CPPFLAGS="-I${prefix}/include -L${prefix}/lib" \
LDFLAGS="-lresolv -L${prefix}/lib"

# install StartupItem
set startupitem /Library/StartupItems/GDM
file copy ${filespath}/StartupParameters.plist ${filespath}/GDM \
${destroot}${startupitem}
reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${startupitem}/GDM
file attributes ${destroot}${startupitem}/GDM -permissions a+rx,a-w
startupitem.create yes
startupitem.init XDG_DATA_DIRS=${prefix}/share
startupitem.start ${prefix}/bin/gdm
startupitem.stop ${prefix}/sbin/gdm-stop
startupitem.restart ${prefix}/sbin/gdm-restart

# change user and group from gdm/gdm to unknown/unknown
# reinplace "s|User=gdm|User=unknown|" ${destroot}${prefix}/etc/gdm/gdm.conf
# reinplace "s|Group=gdm|Group=unknown|" ${destroot}${prefix}/etc/gdm/gdm.conf
pre-configure {
reinplace "s|security/pam|pam/pam|g" ${worksrcpath}/configure
reinplace "s|security/pam|pam/pam|g" ${worksrcpath}/daemon/verify-pam.c
reinplace "s|security/pam|pam/pam|g" ${worksrcpath}/gui/gdmlogin.c
reinplace "s|security/pam|pam/pam|g" ${worksrcpath}/utils/gdmaskpass.c
reinplace "s|security/pam|pam/pam|g" ${worksrcpath}/gui/greeter/greeter.c
}

ui_msg ""
ui_msg "Insert the following into /etc/hostconfig to run gdm at startup:"
ui_msg "DISPLAYSERVER=-X11-"
ui_msg ""
post-configure {
reinplace "s|security/pam|pam/pam|g" ${worksrcpath}/config/Makefile
}

post-activate {
system "scrollkeeper-update"
}

platform darwin 7 {
configure.env-append LDFLAGS="-lresolv -L${prefix}/lib"
}

platform darwin 8 {
configure.env-append LDFLAGS="-lresolv -L${prefix}/lib"
}

0 comments on commit d583309

Please sign in to comment.
You can’t perform that action at this time.