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

Last change on this file since 53766 was 53766, checked in by snc@…, 10 years ago

whitespace changes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 53766 2009-07-13 13:37:29Z snc@macports.org $
3
4PortSystem          1.0
5name                sudo
6version             1.6.9p14
7set base_version    ${version}
8categories          sysutils security
9maintainers         snc openmaintainer
10description         Allow users to run programs as other users, eg, root
11long_description \
12    Sudo is a program designed to allow a sysadmin to give limited root \
13    privileges to users and log root activity.  The basic philosophy is to \
14    give as few privileges as possible but still allow people to get their \
15    work done.
16
17platforms           darwin sunos freebsd
18
19homepage            http://www.sudo.ws/sudo/
20master_sites        ${homepage}dist/ \
21                    ${homepage}dist/OLD/
22patch_sites         ${master_sites}
23
24distfiles           ${name}-${base_version}.tar.gz
25
26checksums \
27    ${name}-${base_version}.tar.gz \
28        md5    a274767d74e99bdd86ebef4e9899a246 \
29        sha1   71ac10f51c1b3d6338ac936fe39be3009ea4dbb4 \
30        rmd160 8516c9f0a6468e07174ffda310f55013841e3fba
31
32worksrcdir      ${name}-${base_version}
33patch.dir       ${workpath}
34configure.args  --infodir=${prefix}/share/info \
35                --mandir=${prefix}/share/man \
36                --sysconfdir=${prefix}/etc \
37                --with-env-editor \
38                --with-tty-tickets \
39                --with-ignore-dot \
40                --with-timedir=${prefix}/var/run/sudo \
41                --disable-log-wrap
42
43pre-destroot {
44    if { $env(USER) != "root" } {
45        ui_msg "------------------------------------------------------------"
46        ui_msg "Installing sudo as non-root doesn't really do anything"
47        ui_msg "useful, so be sure to install sudo as root"
48        ui_msg "------------------------------------------------------------"
49    }
50}
51
52post-destroot {
53    file rename ${destroot}${prefix}/etc/sudoers ${destroot}${prefix}/etc/sudoers.dist
54}
55
56post-install {
57    ui_msg "------------------------------------------------------------"
58    ui_msg "To complete installation, copy, as root, "
59    ui_msg "${prefix}/etc/sudoers.dist to ${prefix}/etc/sudoers (keeping "
60    ui_msg "the same permissions), and edit it as necessary (see the"
61    ui_msg "sudoers manpage for information)."
62    ui_msg "------------------------------------------------------------"
63}
64
65platform darwin {
66    configure.args-append   --with-password-timeout=0 \
67                            --with-pam
68}
69
70platform sunos {
71    configure.args-append   --with-pam
72}
73
74platform freebsd {
75    configure.args-append   --with-pam \
76                            --with-logincap \
77                            --with-long-otp-prompt
78}
79
80variant insults {
81    configure.args-append   --with-insults --with-all-insults
82}
83
Note: See TracBrowser for help on using the repository browser.