source: trunk/dports/security/yubico-pam/Portfile

Last change on this file was 151085, checked in by cal@…, 12 months ago

yubico-pam: 2.23

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 $
3
4PortSystem      1.0
5PortGroup       github 1.0
6
7github.setup    Yubico yubico-pam 2.23
8checksums       rmd160  68fd1c9fe6baedf1a31c8670ebea3d5dcde3fbc3 \
9                sha256  dc1f61104153b6f8a190fff3b758e181ed859d2a5e38c18e66c57912f4e5a30f
10
11
12# I'm explicitly not marking this openmaintainer
13maintainers     cal
14
15categories      security
16description     PAM module to authenticate against a YubiKey validation server or \
17                via challenge-response against a local YubiKey
18long_description \
19                The Yubico PAM module provides an easy way to integrate the YubiKey \
20                into your existing user authentication infrastructure. The module can \
21                be configured to validate YubiKeys against Yubico's YubiCloud \
22                infrastructure, a custom YubiKey validation server or it can be used \
23                for offline authentication with newer YubiKeys supporting a \
24                challenge-response protocol.
25
26platforms       darwin
27license         BSD
28
29depends_build   port:pkgconfig \
30                port:asciidoc \
31                port:libxslt \
32                port:docbook-xsl
33
34depends_lib     port:ykpers \
35                port:yubico-c-client
36
37use_autoreconf  yes
38
39if {${os.platform} eq "darwin" && ${os.major} >= 15} {
40    configure.args  --with-pam-dir=${prefix}/lib/pam
41
42    notes "
43On systems earlier than El Capitan, this port used to install pam_yubico.so in\
44/usr/lib/pam directly for your convenience. With El Capitan's System Integrity\
45Protection (\"rootless\"), this is no longer possible. The library is now\
46installed in ${prefix}/lib/pam instead. You have to modify your PAM\
47configuration to reference the library using it's absolute path\
48${prefix}/lib/pam/pam_yubico.so"
49
50} else {
51    configure.args          --with-pam-dir=/usr/lib/pam
52    destroot.violate_mtree  yes
53}
54
55configure.args-append       --without-ldap
56
57post-destroot {
58    # remove header which is unneeded, because there's no software linking
59    # against yubico-pam and which clashes with a system header
60    file delete ${destroot}${prefix}/include/util.h
61}
Note: See TracBrowser for help on using the repository browser.