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

Last change on this file since 32243 was 32243, checked in by ryandesign@…, 11 years ago

gdm: fix whitespace, and also fix improper line continuation in long description which hid the maintainers variable

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 32243 2007-12-21 21:02:36Z ryandesign@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
7
8name            gdm
9version         2.18.3
10revision        0
11description     The Gnome Display Manager is a re-implementation of the well known xdm program.
12long_description        \
13        The Gnome Display Manager is a re-implementation of the well \
14        known xdm program. It displays a X11-based graphical login screen.
15maintainers     nomaintainer
16categories      gnome
17platforms       darwin
18homepage        http://www.gnome.org/
19master_sites    gnome:sources/gdm/[strsed ${version} {/\.[0-9]*$//}]/
20checksums       md5 08555fce34d247062625c1a451a4d5a6
21depends_build   \
22        port:gzip \
23        port:p5-xml-parser \
24        port:pkgconfig \
25        port:gnome-doc-utils
26depends_lib     \
27        port:atk \
28        port:cairo \
29        port:dbus-glib \
30        port:fontconfig \
31        port:freetype \
32        port:gettext \
33        port:glib2 \
34        port:gtk2 \
35        port:howl \
36        port:libart_lgpl \
37        port:libglade2 \
38        port:libgnomecanvas \
39        port:libiconv \
40        port:libpng \
41        port:librsvg \
42        port:libxml2 \
43        port:openssl \
44        port:pango \
45        port:xrender
46use_bzip2       yes
47
48configure.args  --mandir=${prefix}/share/man --disable-scrollkeeper
49configure.cppflags-append       "-I${x11prefix}/include"
50configure.ldflags-append        "-lresolv"
51
52startupitem.create      yes
53startupitem.name        gdm
54startupitem.init        XDG_DATA_DIRS=${prefix}/share
55startupitem.start       ${prefix}/sbin/gdm
56startupitem.stop        ${prefix}/sbin/gdm-stop
57startupitem.restart     ${prefix}/sbin/gdm-restart
58
59pre-configure {
60        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/configure
61        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/daemon/verify-pam.c
62        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/gui/gdmlogin.c
63        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/utils/gdmaskpass.c
64        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/gui/greeter/greeter.c
65}
66
67post-configure {
68        reinplace       "s|security/pam|pam/pam|g" ${worksrcpath}/config/Makefile
69}
70
71post-destroot   {
72        xinstall -m 644 ${filespath}/pam.sample ${destroot}${prefix}/etc/gdm
73        xinstall ${filespath}/macports-gdm-util ${destroot}${prefix}/bin
74}
75
76pre-activate {
77        addgroup gdm
78        adduser gdm gid=[existsgroup gdm] realname=GNOME\ Display\ Manager
79}
80
81post-activate {
82        system "scrollkeeper-update"
83        file mkdir ${prefix}/var/gdm
84        file attributes ${prefix}/var/gdm -owner gdm -group gdm
85}
Note: See TracBrowser for help on using the repository browser.