source: trunk/dports/security/policykit/Portfile @ 138276

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

policykit: reformat, white space only.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 138276 2015-07-03 21:10:33Z devans@macports.org $
3
4PortSystem          1.0
5PortGroup           gobject_introspection 1.0
6
7name                policykit
8version             0.112
9revision            1
10description         PolicyKit is an application-level toolkit for defining and \
11                    handling the policy that allows unprivileged processes to \
12                    speak to privileged processes
13long_description    ${description}
14maintainers         devans openmaintainer
15categories          security
16platforms           darwin
17license             LGPL-2+
18homepage            http://www.freedesktop.org/Software/polkit
19master_sites        http://www.freedesktop.org/software/polkit/releases/
20
21distname            polkit-${version}
22
23checksums           rmd160  0fecdcbfffe5f79dbb44f38dee9c4f060d60e7b1 \
24                    sha256  d695f43cba4748a822fbe864dd32c4887c5da1c71694a47693ace5e88fcf6af6
25
26depends_build-append \
27                    port:pkgconfig \
28                    port:intltool \
29                    port:gtk-doc \
30                    port:autoconf \
31                    port:automake \
32                    port:libtool
33
34depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
35                    port:mozjs17
36
37patchfiles          patch-configure.ac.diff \
38                    patch-setnetgrent-returns-void.diff \
39                    patch-no-sigpoll.diff \
40                    patch-no-tests.diff
41
42gobject_introspection yes
43
44pre-patch {
45    if {${os.platform} eq "darwin" && ${os.major} < 10} {
46        patchfiles-append patch-fdatasync.diff
47        reinplace "s|security/pam|pam/pam|" ${worksrcpath}/configure.ac \
48            ${worksrcpath}/src/polkitagent/polkitagenthelper-pam.c \
49            ${worksrcpath}/src/programs/pkexec.c
50    }
51}
52
53# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
54
55post-patch {
56    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
57}
58
59configure.cmd       ./autogen.sh
60
61configure.cflags-append -I/usr/include
62configure.ldflags-append -L/usr/lib
63
64configure.args      --with-authfw=pam \
65                    --with-pam-prefix=/etc/pam.d \
66                    --with-pam-module-dir=/usr/lib/pam \
67                    --with-mozjs=mozjs-17.0 \
68                    --enable-systemd=no \
69                    --disable-silent-rules \
70                    --enable-man-pages \
71                    --disable-gtk-doc
72
73destroot.keepdirs   ${destroot}${prefix}/etc/polkit-1/localauthority \
74                    ${destroot}${prefix}/var/lib/polkit-1
75
76variant docs description {Build API docs using gtk-doc} {
77        configure.args-delete --disable-gtk-doc
78        depends_build-append  port:gtk-doc
79}
80
81add_users           polkituser group=polkituser realname=Policy\ Kit
82
83livecheck.type      regex
84livecheck.url       ${master_sites}
85livecheck.regex     "polkit-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.