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

Last change on this file since 117869 was 117869, checked in by devans@…, 6 years ago

gdm: in configure.ac patch, replace /opt/local with @MP_PREFIX@ and replace with ${prefix} in post-patch.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 117869 2014-03-15 16:15:24Z devans@macports.org $
3
4# TODO: figure out how to make PAM happy without blowing a large hole
5#       in the security of the OS or touching PAM
6
7PortSystem      1.0
8
9name            gdm
10version         3.10.0.1
11revision        2
12license         GPL-2
13set branch      [join [lrange [split ${version} .] 0 1] .]
14description     The Gnome Display Manager is a re-implementation of the well known xdm program.
15long_description \
16                The Gnome Display Manager is a re-implementation of the well \
17                known xdm program. It displays a X11-based graphical login screen.
18maintainers     nomaintainer
19categories      gnome
20platforms       darwin
21homepage        https://wiki.gnome.org/Projects/GDM
22master_sites    gnome:sources/${name}/${branch}/
23
24use_xz          yes
25
26checksums       rmd160  3e4839d56165e2f68451374d89d70986f5e247a1 \
27                sha256  549a42009af9c79a4e07632e405dcb71ba2e876e766cff02471511ad641b6ae7
28
29depends_build   port:pkgconfig \
30                port:intltool \
31                port:itstool
32
33depends_lib     port:desktop-file-utils \
34                port:gtk3 \
35                port:accountsservice \
36                port:nss \
37                port:libcanberra \
38                port:upower \
39                port:fontconfig \
40                port:gobject-introspection \
41                port:iso-codes \
42                port:xorg-libX11 \
43                port:xorg-libXau \
44                port:xorg-libXrandr \
45                port:xorg-libXdmcp \
46                port:xorg-libXi \
47                port:xorg-libXinerama \
48                port:xorg-libXevie
49
50depends_run     port:gnome-session \
51                port:gnome-settings-daemon
52               
53patchfiles      patch-daemon-gdm-session-worker.c.diff \
54                patch-use-g_credentials_get_unix_pid.diff \
55                patch-configure.ac.diff
56
57post-patch {
58    reinplace "s|@MP_PREFIX@|${prefix}|" ${worksrcpath}/configure.ac
59    file attributes ${worksrcpath}/install-sh -permissions +x
60}
61
62use_parallel_build no
63
64# update m4/intltool.m4 and autoreconf
65
66pre-configure {
67    copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4
68}
69
70use_autoreconf  yes
71autoreconf.args -fvi
72
73configure.args  --enable-ipv6 \
74                --without-console-kit \
75                --disable-schemas-compile \
76                --disable-silent-rules
77
78startupitem.create  yes
79startupitem.name    gdm
80startupitem.init    XDG_DATA_DIRS=${prefix}/share
81startupitem.start   ${prefix}/sbin/gdm
82startupitem.stop    ${prefix}/sbin/gdm-stop
83startupitem.restart ${prefix}/sbin/gdm-restart
84
85post-destroot   {
86    xinstall -m 644 ${filespath}/pam.sample ${destroot}${prefix}/etc/gdm
87    xinstall ${filespath}/macports-gdm-util ${destroot}${prefix}/bin
88}
89
90universal_variant no
91
92pre-activate {
93    addgroup gdm
94    adduser gdm gid=[existsgroup gdm] realname=GNOME\ Display\ Manager
95}
96
97post-activate {
98    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
99    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
100    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
101    file mkdir ${prefix}/var/gdm
102    file attributes ${prefix}/var/gdm -owner gdm -group gdm
103}
104
105livecheck.type  gnome
Note: See TracBrowser for help on using the repository browser.