Ticket #2586: gdm.diff

File gdm.diff, 2.2 KB (added by danchr@…, 20 years ago)

Patch against the gdm Portfile

  • Portfile

    ? files/GDM
    ? files/StartupParameters.plist
    RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/gnome/gdm/Portfile,v
    retrieving revision 1.2
    diff -a -u -u -r1.2 Portfile
     
    1 # $Id: Portfile,v 1.2 2004/12/16 18:02:44 olegb Exp $
     1# $Id: Portfile,v 1.2 2004/12/16 18:02:44 olegb Exp $ -*- tcl -*-
    22PortSystem 1.0
    33name            gdm
    44version         2.6.0.6
    5 description     The Gnome Display Manager is a re-implementation of the well known xdm program.
     5revision        1
     6description     The Gnome Display Manager is a re-implementation of the well \
     7    known xdm program. It displays a X11-based graphical login screen. \
     8    \
     9    This port includes a StartupItem installed into /Library/StartupItems \
     10    that can be used to run gdm automatically by inserting \
     11    "DISPLAYSERVER=-X11-" into /etc/hostconfig.
    612long_description        ${description}
    7 maintainers     olegb@opendarwin.org
     13maintainers     danchr@opendarwin.org
    814categories      gnome
    915platforms       darwin
    1016homepage        http://www.gnome.org/
     
    1622configure.args  --mandir=${prefix}/share/man
    1723configure.env   CPPFLAGS="-I${prefix}/include -L${prefix}/lib"
    1824
     25post-destroot {
     26    # create required directories
     27    file mkdir \
     28        ${destroot}/${prefix}/var/${name} ${destroot}/Library/StartupItems/GDM
     29
     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
     36
     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  ""
     45}
     46
    1947platform darwin 7 {
    20                 configure.env-append LDFLAGS="-lresolv -L${prefix}/lib"
     48    configure.env-append LDFLAGS="-lresolv -L${prefix}/lib"
    2149}