# -*- 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 # $Id: Portfile 138276 2015-07-03 21:10:33Z devans@macports.org $ PortSystem 1.0 PortGroup gobject_introspection 1.0 name policykit version 0.112 revision 1 description PolicyKit is an application-level toolkit for defining and \ handling the policy that allows unprivileged processes to \ speak to privileged processes long_description ${description} maintainers devans openmaintainer categories security platforms darwin license LGPL-2+ homepage http://www.freedesktop.org/Software/polkit master_sites http://www.freedesktop.org/software/polkit/releases/ distname polkit-${version} checksums rmd160 0fecdcbfffe5f79dbb44f38dee9c4f060d60e7b1 \ sha256 d695f43cba4748a822fbe864dd32c4887c5da1c71694a47693ace5e88fcf6af6 depends_build-append \ port:pkgconfig \ port:intltool \ port:gtk-doc \ port:autoconf \ port:automake \ port:libtool depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \ port:mozjs17 patchfiles patch-configure.ac.diff \ patch-setnetgrent-returns-void.diff \ patch-no-sigpoll.diff \ patch-no-tests.diff gobject_introspection yes pre-patch { if {${os.platform} eq "darwin" && ${os.major} < 10} { patchfiles-append patch-fdatasync.diff reinplace "s|security/pam|pam/pam|" ${worksrcpath}/configure.ac \ ${worksrcpath}/src/polkitagent/polkitagenthelper-pam.c \ ${worksrcpath}/src/programs/pkexec.c } } # reconfigure using upstream autogen.sh for intltool 0.51 compatibility post-patch { xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} } configure.cmd ./autogen.sh configure.cflags-append -I/usr/include configure.ldflags-append -L/usr/lib configure.args --with-authfw=pam \ --with-pam-prefix=/etc/pam.d \ --with-pam-module-dir=/usr/lib/pam \ --with-mozjs=mozjs-17.0 \ --enable-systemd=no \ --disable-silent-rules \ --enable-man-pages \ --disable-gtk-doc destroot.keepdirs ${destroot}${prefix}/etc/polkit-1/localauthority \ ${destroot}${prefix}/var/lib/polkit-1 variant docs description {Build API docs using gtk-doc} { configure.args-delete --disable-gtk-doc depends_build-append port:gtk-doc } add_users polkituser group=polkituser realname=Policy\ Kit livecheck.type regex livecheck.url ${master_sites} livecheck.regex "polkit-(\\d+(?:\\.\\d+)*)${extract.suffix}"