Ignore:
Timestamp:
Jul 23, 2006, 5:48:48 PM (14 years ago)
Author:
rhwood
Message:

Bug: 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gnome/gdm/Portfile

    r18473 r18705  
    1 # $Id: Portfile,v 1.8 2006/06/22 23:21:25 rhwood Exp $
     1# $Id: Portfile,v 1.9 2006/07/23 17:48:48 rhwood Exp $
    22PortSystem 1.0
    33name            gdm
    44version         2.14.9
    5 revision        1
     5revision        2
    66description     The Gnome Display Manager is a re-implementation of the well known xdm program.
    77long_description        The Gnome Display Manager is a re-implementation of the well \
     
    1919depends_lib     bin:gnome-session:gnome-session
    2020use_bzip2       yes
    21 #patchfiles     patch_config.h.in
     21
    2222configure.args  --mandir=${prefix}/share/man --disable-scrollkeeper
    23 configure.env   CPPFLAGS="-I${prefix}/include -L${prefix}/lib"
     23configure.env   CPPFLAGS="-I${prefix}/include -L${prefix}/lib" \
     24                LDFLAGS="-lresolv -L${prefix}/lib"
    2425
    25 post-destroot {
    26         # create required directories
    27         file mkdir \
    28         ${destroot}/${prefix}/var/${name} ${destroot}/Library/StartupItems/GDM
     26startupitem.create      yes
     27startupitem.init        XDG_DATA_DIRS=${prefix}/share
     28startupitem.start       ${prefix}/bin/gdm
     29startupitem.stop        ${prefix}/sbin/gdm-stop
     30startupitem.restart     ${prefix}/sbin/gdm-restart
    2931
    30         # install StartupItem
    31         set startupitem /Library/StartupItems/GDM
    32         file copy ${filespath}/StartupParameters.plist ${filespath}/GDM \
    33         ${destroot}${startupitem}
    34         reinplace "s|__PREFIX__|${prefix}|g" ${destroot}${startupitem}/GDM
    35         file attributes ${destroot}${startupitem}/GDM -permissions a+rx,a-w
     32pre-configure {
     33        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/configure
     34        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/daemon/verify-pam.c
     35        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/gui/gdmlogin.c
     36        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/utils/gdmaskpass.c
     37        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/gui/greeter/greeter.c
     38}
    3639
    37         # change user and group from gdm/gdm to unknown/unknown
    38         # reinplace "s|User=gdm|User=unknown|" ${destroot}${prefix}/etc/gdm/gdm.conf
    39         # reinplace "s|Group=gdm|Group=unknown|" ${destroot}${prefix}/etc/gdm/gdm.conf
    40 
    41         ui_msg ""
    42         ui_msg "Insert the following into /etc/hostconfig to run gdm at startup:"
    43         ui_msg "DISPLAYSERVER=-X11-"
    44         ui_msg  ""
     40post-configure {
     41        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/config/Makefile
    4542}
    4643
     
    4845        system "scrollkeeper-update"
    4946}
    50 
    51 platform darwin 7 {
    52         configure.env-append LDFLAGS="-lresolv -L${prefix}/lib"
    53 }
    54 
    55 platform darwin 8 {
    56         configure.env-append LDFLAGS="-lresolv -L${prefix}/lib"
    57 }
Note: See TracChangeset for help on using the changeset viewer.