source: trunk/dports/sysutils/sudo/Portfile @ 139386

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

sudo: update to 1.8.14p3; new maintainer (#48581)

  • 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:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 139386 2015-08-14 21:42:49Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                sudo
7epoch               1
8version             1.8.14p3
9categories          sysutils security
10license             ISC
11maintainers         gmail.com:youvegotmoxie
12
13description         Allow users to run programs as other users, eg, root
14long_description \
15    Sudo is a program designed to allow a sysadmin to give limited root \
16    privileges to users and log root activity.  The basic philosophy is to \
17    give as few privileges as possible but still allow people to get their \
18    work done.
19
20platforms           darwin
21
22homepage            http://www.sudo.ws/sudo/
23master_sites        ${homepage}dist/ \
24                    ${homepage}dist/OLD/
25
26checksums           rmd160  209554c44467da8ebeeecc2134edbf42fce2244e \
27                    sha256  a8a697cbb113859058944850d098464618254804cf97961dee926429f00a1237
28
29patchfiles          patch-sudoers.in.diff
30
31configure.args      --infodir=${prefix}/share/info \
32                    --mandir=${prefix}/share/man \
33                    --sysconfdir=${prefix}/etc \
34                    --with-env-editor \
35                    --with-tty-tickets \
36                    --with-ignore-dot \
37                    --with-rundir=${prefix}/var/run/sudo \
38                    --with-password-timeout=0 \
39                    --disable-setreuid \
40                    --with-pam
41
42pre-destroot {
43    if { [getuid] != 0 } {
44        ui_msg "------------------------------------------------------------"
45        ui_msg "Installing sudo as non-root doesn't really do anything"
46        ui_msg "useful, so be sure to install sudo as root"
47        ui_msg "------------------------------------------------------------"
48    }
49}
50
51post-destroot {
52    move ${destroot}${prefix}/etc/sudoers ${destroot}${prefix}/etc/sudoers.dist
53    xinstall -d -m 0755 ${destroot}${prefix}/var/run/sudo
54}
55destroot.keepdirs ${destroot}${prefix}/var/run/sudo
56
57post-activate {
58    if {![file exists ${prefix}/etc/sudoers]} {
59        copy ${prefix}/etc/sudoers.dist ${prefix}/etc/sudoers
60    }
61}
62
63notes "
64To complete the installation, run:
65
66\t${prefix}/bin/sudo ${prefix}/sbin/visudo
67
68Edit as necessary. (See the sudoers manpage for additional information.)
69"
70
71variant insults description {It can only be attributed to human error.} {
72    configure.args-append   --with-insults --with-all-insults
73}
74
75variant openldap description {Add ldap support via OpenLDAP.} {
76    depends_lib-append      port:openldap
77
78    configure.args-append   --with-ldap
79
80    post-destroot {
81        xinstall -d ${destroot}${prefix}/etc/openldap/schema
82        xinstall -m 0644 ${worksrcpath}/schema.OpenLDAP \
83            ${destroot}${prefix}/etc/openldap/schema/sudo.schema
84    }
85}
86
87livecheck.type  regex
88livecheck.url   [lindex ${master_sites} 0]
89livecheck.regex >${name}-(\[0-9.p\]+)${extract.suffix}<
Note: See TracBrowser for help on using the repository browser.