You've already forked macports-user-ged
mirror of
https://github.com/macports/macports-user-ged.git
synced 2026-07-12 18:18:35 -07:00
Updating the sudo port and adding an LDAP variant
git-svn-id: https://svn.macports.org/repository/macports/users/ged@63563 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
# -*- 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
|
||||
# $Id$
|
||||
|
||||
PortSystem 1.0
|
||||
|
||||
name sudo
|
||||
version 1.6.9p14
|
||||
epoch 1
|
||||
categories sysutils security
|
||||
maintainers nomaintainer
|
||||
description Allow users to run programs as other users, eg, root
|
||||
long_description \
|
||||
Sudo is a program designed to allow a sysadmin to give limited root \
|
||||
privileges to users and log root activity. The basic philosophy is to \
|
||||
give as few privileges as possible but still allow people to get their \
|
||||
work done.
|
||||
|
||||
platforms darwin
|
||||
|
||||
homepage http://www.sudo.ws/sudo/
|
||||
master_sites ${homepage}dist/ \
|
||||
${homepage}dist/OLD/
|
||||
|
||||
checksums md5 a274767d74e99bdd86ebef4e9899a246 \
|
||||
sha1 71ac10f51c1b3d6338ac936fe39be3009ea4dbb4 \
|
||||
rmd160 8516c9f0a6468e07174ffda310f55013841e3fba
|
||||
|
||||
patchfiles patch-sudoers.diff
|
||||
|
||||
configure.args --infodir=${prefix}/share/info \
|
||||
--mandir=${prefix}/share/man \
|
||||
--sysconfdir=${prefix}/etc \
|
||||
--with-env-editor \
|
||||
--with-tty-tickets \
|
||||
--with-ignore-dot \
|
||||
--with-timedir=${prefix}/var/run/sudo \
|
||||
--disable-log-wrap \
|
||||
--with-password-timeout=0 \
|
||||
--disable-setreuid \
|
||||
--with-pam
|
||||
|
||||
pre-destroot {
|
||||
if { $env(USER) != "root" } {
|
||||
ui_msg "------------------------------------------------------------"
|
||||
ui_msg "Installing sudo as non-root doesn't really do anything"
|
||||
ui_msg "useful, so be sure to install sudo as root"
|
||||
ui_msg "------------------------------------------------------------"
|
||||
}
|
||||
}
|
||||
|
||||
post-destroot {
|
||||
if {[file exists ${prefix}/etc/sudoers]} {
|
||||
file rename ${destroot}${prefix}/etc/sudoers ${destroot}${prefix}/etc/sudoers.dist
|
||||
}
|
||||
xinstall -d ${destroot}${prefix}/var/run/sudo
|
||||
}
|
||||
destroot.keepdirs ${destroot}${prefix}/var/run/sudo
|
||||
|
||||
post-install {
|
||||
ui_msg "------------------------------------------------------------"
|
||||
ui_msg "To complete installation run:"
|
||||
ui_msg " ${prefix}/bin/sudo ${prefix}/sbin/visudo"
|
||||
ui_msg "Edit as necessary (see the"
|
||||
ui_msg "sudoers manpage for additional information)."
|
||||
ui_msg "------------------------------------------------------------"
|
||||
}
|
||||
|
||||
variant insults description { It can only be attributed to human error. } {
|
||||
configure.args-append --with-insults --with-all-insults
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
--- sudoers.orig 2009-09-02 14:23:28.000000000 -0400
|
||||
+++ sudoers 2009-09-02 14:24:16.000000000 -0400
|
||||
@@ -14,11 +14,24 @@
|
||||
# Cmnd alias specification
|
||||
|
||||
# Defaults specification
|
||||
+Defaults env_reset
|
||||
+Defaults env_keep += "BLOCKSIZE"
|
||||
+Defaults env_keep += "COLORFGBG COLORTERM"
|
||||
+Defaults env_keep += "__CF_USER_TEXT_ENCODING"
|
||||
+Defaults env_keep += "CHARSET LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE"
|
||||
+Defaults env_keep += "LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME"
|
||||
+Defaults env_keep += "LINES COLUMNS"
|
||||
+Defaults env_keep += "LSCOLORS"
|
||||
+Defaults env_keep += "SSH_AUTH_SOCK"
|
||||
+Defaults env_keep += "TZ"
|
||||
+Defaults env_keep += "DISPLAY XAUTHORIZATION XAUTHORITY"
|
||||
+Defaults env_keep += "EDITOR VISUAL"
|
||||
|
||||
# Runas alias specification
|
||||
|
||||
# User privilege specification
|
||||
root ALL=(ALL) ALL
|
||||
+%admin ALL=(ALL) ALL
|
||||
|
||||
# Uncomment to allow people in group wheel to run all commands
|
||||
# %wheel ALL=(ALL) ALL
|
||||
Reference in New Issue
Block a user