? 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 -*- |
2 | 2 | PortSystem 1.0 |
3 | 3 | name gdm |
4 | 4 | version 2.6.0.6 |
5 | | description The Gnome Display Manager is a re-implementation of the well known xdm program. |
| 5 | revision 1 |
| 6 | description 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. |
6 | 12 | long_description ${description} |
7 | | maintainers olegb@opendarwin.org |
| 13 | maintainers danchr@opendarwin.org |
8 | 14 | categories gnome |
9 | 15 | platforms darwin |
10 | 16 | homepage http://www.gnome.org/ |
… |
… |
|
16 | 22 | configure.args --mandir=${prefix}/share/man |
17 | 23 | configure.env CPPFLAGS="-I${prefix}/include -L${prefix}/lib" |
18 | 24 | |
| 25 | post-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 | |
19 | 47 | platform darwin 7 { |
20 | | configure.env-append LDFLAGS="-lresolv -L${prefix}/lib" |
| 48 | configure.env-append LDFLAGS="-lresolv -L${prefix}/lib" |
21 | 49 | } |