source: trunk/dports/gnome/gdm/Portfile @ 20300

Last change on this file since 20300 was 20300, checked in by blair@…, 14 years ago

Set the svn:keywords property to 'Id' for all Portfile's. This
re-enables the Id keyword substitution that was present in the CVS
repository.

See this thread for more information:
http://lists.macosforge.org/pipermail/macports-dev/2006-October/000180.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 20300 2006-11-01 20:35:09Z blair@macports.org $
2
3# TODO: figure out how to make PAM happy without blowing a large hole
4#       in the security of the OS or touching PAM
5
6PortSystem 1.0
7name            gdm
8version         2.16.1
9revision        0
10description     The Gnome Display Manager is a re-implementation of the well known xdm program.
11long_description        The Gnome Display Manager is a re-implementation of the well \
12                        known xdm program. It displays a X11-based graphical login screen. \
13                        \
14                        This port includes a StartupItem installed into /Library/StartupItems \
15                        that can be used to run gdm automatically by inserting \
16                        \"DISPLAYSERVER=-X11-\" into /etc/hostconfig.
17maintainers     darwinports@opendarwin.org
18categories      gnome
19platforms       darwin
20homepage        http://www.gnome.org/
21master_sites    gnome:sources/gdm/2.16/
22checksums       md5 a0bf247fdaf32add6d5a69495a433bbf
23depends_lib     bin:gnome-session:gnome-session \
24                port:librsvg \
25                port:DarwinPortsStartup
26use_bzip2       yes
27
28configure.args  --mandir=${prefix}/share/man --disable-scrollkeeper
29configure.env   CPPFLAGS="-I${prefix}/include -L${prefix}/lib" \
30                LDFLAGS="-lresolv -L${prefix}/lib"
31
32startupitem.create      yes
33startupitem.init        XDG_DATA_DIRS=${prefix}/share
34startupitem.start       ${prefix}/bin/gdm
35startupitem.stop        ${prefix}/sbin/gdm-stop
36startupitem.restart     ${prefix}/sbin/gdm-restart
37
38pre-configure {
39        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/configure
40        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/daemon/verify-pam.c
41        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/gui/gdmlogin.c
42        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/utils/gdmaskpass.c
43        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/gui/greeter/greeter.c
44}
45
46post-configure {
47        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/config/Makefile
48}
49
50pre-activate {
51        addgroup gdm
52        adduser gdm gid=[existsgroup gdm]
53}
54
55post-activate {
56        system "scrollkeeper-update"
57        file mkdir ${prefix}/var/gdm
58        file attributes ${prefix}/var/gdm -owner gdm -group gdm
59}
Note: See TracBrowser for help on using the repository browser.