summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-06-12 10:52:16 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-06-12 10:52:16 +0000
commit2b7ac3c3229979be6baa44ca2afe94f27d61075a (patch)
tree37aee13277984b5c91625a085de38178314ef132 /app-admin
parentVersion bump. (diff)
downloadhistorical-2b7ac3c3229979be6baa44ca2afe94f27d61075a.tar.gz
historical-2b7ac3c3229979be6baa44ca2afe94f27d61075a.tar.bz2
historical-2b7ac3c3229979be6baa44ca2afe94f27d61075a.zip
Version bump to new rc.
Package-Manager: portage-2.1.5.5
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/sudo/ChangeLog7
-rw-r--r--app-admin/sudo/Manifest14
-rw-r--r--app-admin/sudo/sudo-1.7.0_rc2.ebuild208
3 files changed, 227 insertions, 2 deletions
diff --git a/app-admin/sudo/ChangeLog b/app-admin/sudo/ChangeLog
index 9b1a6a7d7595..4aa106fe5b6a 100644
--- a/app-admin/sudo/ChangeLog
+++ b/app-admin/sudo/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-admin/sudo
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/ChangeLog,v 1.134 2008/06/12 00:41:23 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/ChangeLog,v 1.135 2008/06/12 10:52:16 flameeyes Exp $
+
+*sudo-1.7.0_rc2 (12 Jun 2008)
+
+ 12 Jun 2008; Diego Pettenò <flameeyes@gentoo.org> +sudo-1.7.0_rc2.ebuild:
+ Version bump to new rc.
12 Jun 2008; Brent Baude <ranger@gentoo.org> sudo-1.6.9_p16.ebuild:
stable ppc64, bug 225905
diff --git a/app-admin/sudo/Manifest b/app-admin/sudo/Manifest
index 6750a946af61..5ac2e0728d66 100644
--- a/app-admin/sudo/Manifest
+++ b/app-admin/sudo/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX sudo 223 RMD160 4bc9a3e5d2dfd73bb1f14e5bad3b644ba80758d3 SHA1 fa6377c699ff2061c77cb87737fa2b4aaa8e8b9f SHA256 3f8dae2c663ed62bbe19e9b3e24f0e206fd1a4929bbafdff2e577e1aed9f2b58
AUX sudo-1.6.8_p8-ldap-tls_cacert.diff 542 RMD160 cff54e31749796f732ce176b568797999325715e SHA1 3e7e493055998034d2b5a91160041e93d2246556 SHA256 2bc04b2b3ccd20f0ca545b74ca7ac68b708a1852af2fe2c620e78a92a45c2b23
AUX sudo-ldap_timelimit.diff 2550 RMD160 b34a41e3fc4016ff182ed1800e0f1b0f82d3bfdf SHA1 c3c15eea9cf2e552010e27d0282246fa770d2fae SHA256 fc6eedb3435edbf5ccfcd5f62d8f31a78bf01afbb519c6b40bbe1329d82d6cea
@@ -7,9 +10,18 @@ DIST sudo-1.6.8p12.tar.gz 585643 RMD160 d7ff9f18ca0973615258c2e975300b94567451d5
DIST sudo-1.6.9p13.tar.gz 589079 RMD160 eb2a4d835553061f9a15d71abee83a5574215c28 SHA1 0e84a265bb18772bc99d0f37c65dd6564962a6c4 SHA256 c54b8f10eca330cb3181e4a16bd743b145d4fcf9d1d85df6127d7e9979d4a805
DIST sudo-1.6.9p16.tar.gz 593175 RMD160 b36b1ecc4383a6e411a8f0c2e90f9bfb6df4a220 SHA1 6c9248441eb6f5d56a9ba3545b83fceb875bd4ee SHA256 634e2b596bc6fc6a9143e00387ae79941980f548c9a20ea651ce755cc4e35f6a
DIST sudo-1.7.0rc1.tar.gz 736445 RMD160 1d226161876a3e290f30eba067ee8fbecef6cd66 SHA1 4a83cadd37aab864cbf21efd9e39996a73cbb210 SHA256 b1cb268376f9c8ce0e69567b3e53bfa09618d825df8e4ad1273ff196eba36952
+DIST sudo-1.7.0rc2.tar.gz 734500 RMD160 08f7f302a2a880c6ac46e65552bbbb85e9c4a547 SHA1 b487e9ae1b73708ad0cc7fdfc6000654fb5ddaba SHA256 266df71b94c534ffb9c7526aae282c7e0f50ced825f61adb17d7e27f8c4e5e6b
EBUILD sudo-1.6.8_p12-r1.ebuild 6592 RMD160 70d093d445760f96b437136a23870a3a14e4a4c6 SHA1 4ccc75130bf26e7a27733723253888a08a8b9477 SHA256 169ff4e7b1f2370f87e70cba6e6a9ced645e8254231a1db9b34680acdc369d2e
EBUILD sudo-1.6.9_p13.ebuild 5875 RMD160 6f0a95f0886dfd55912476758688aaa91c9d8ef1 SHA1 d4a4229f741a1595513e7f41bd57e885dfc4a882 SHA256 a993a0b5b407784ba1fa7efbefa2144604cab45428fe674b4eafa91eb474f4b2
EBUILD sudo-1.6.9_p16.ebuild 5904 RMD160 608f58e31522728c9d6ed1c72b6334d5f28eaa13 SHA1 5081c4e577cd422ac2c4f94bb273311b2fe96810 SHA256 36e8cda83b2e04c4026e9db03cb9d1a31479e70d59250286b9d182a6467b9f52
EBUILD sudo-1.7.0_rc1.ebuild 6363 RMD160 ce9abb1f40a94b84c8cc9e50f0edac9a946c967f SHA1 18ee8277b0fb455c9b7e2f0d81859737d7ff39d8 SHA256 378bf674cc67cfee4832bc1f5b8c915dffeb05e1f031103c31e2d74175824833
-MISC ChangeLog 18848 RMD160 bb0ef2baa0982f5d6c75308d01ee5f2d438cc82d SHA1 f4464775872135cd8238092799516ea78310a55f SHA256 8d5093f1587460a6d8314a8ac3102f5799486f6d8809f4ae0917239f53ac9cdf
+EBUILD sudo-1.7.0_rc2.ebuild 6363 RMD160 50e20e3beb5eeb5bb78d06522acf65d5eb994655 SHA1 c9eea1f3c81bfbfd1955fa6c57ca64f1d627062f SHA256 9eefee41b6d3fa79498ab409cb3bad95be9227dee6b508fbb3c4caf6fd777788
+MISC ChangeLog 18986 RMD160 fb62716a6bf0f95ff3b62b982cfeed879c3d0607 SHA1 9e966f01846a9f9bfc02d256fcf7e56715dbef26 SHA256 f31bf43c6710c341c8c71b98ca269c7047f2ef77ec3e780518080f4376d7db4f
MISC metadata.xml 501 RMD160 74dd36daa51d7ad5ce1659f0279e1245cd1ef4bc SHA1 e447d21dc61ee4a6de8cc0f66aa28aa422d9990a SHA256 5f399b83a90977486ff92847caa884d16f8b71705fd0d2203acb35f56c9a6db6
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAkhQ/+kACgkQAiZjviIA2XhzMgCfVmPW3tjS9rq8QkakfjsiSkH0
+L5EAoIfl7ADCla/x6xfYBJp7HxnkNOHL
+=0F5o
+-----END PGP SIGNATURE-----
diff --git a/app-admin/sudo/sudo-1.7.0_rc2.ebuild b/app-admin/sudo/sudo-1.7.0_rc2.ebuild
new file mode 100644
index 000000000000..9221c33fc39a
--- /dev/null
+++ b/app-admin/sudo/sudo-1.7.0_rc2.ebuild
@@ -0,0 +1,208 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/sudo-1.7.0_rc2.ebuild,v 1.1 2008/06/12 10:52:16 flameeyes Exp $
+
+inherit eutils pam confutils
+
+MY_P=${P/_/}
+MY_P=${MY_P/beta/b}
+
+case "${P}" in
+ *_beta* | *_rc*)
+ uri_prefix=beta/
+ ;;
+ *)
+ uri_prefix=""
+ ;;
+esac
+
+DESCRIPTION="Allows users or groups to run commands as other users"
+HOMEPAGE="http://www.sudo.ws/"
+SRC_URI="ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz"
+LICENSE="Sudo"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
+IUSE="pam skey offensive ldap selinux"
+
+DEPEND="pam? ( virtual/pam )
+ ldap? ( >=net-nds/openldap-2.1.30-r1 )
+ skey? ( >=sys-auth/skey-1.1.5-r1 )
+ virtual/editor
+ virtual/mta"
+RDEPEND="selinux? ( sec-policy/selinux-sudo )
+ ldap? ( dev-lang/perl )
+ pam? ( sys-auth/pambase )
+ ${DEPEND}"
+DEPEND="${RDEPEND} sys-devel/bison"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ confutils_use_conflict skey pam
+}
+
+src_unpack() {
+ unpack ${A}; cd "${S}"
+
+ # compatability fix.
+ epatch "${FILESDIR}"/${PN}-skeychallengeargs.diff
+
+ # additional variables to disallow, should user disable env_reset.
+
+ # NOTE: this is not a supported mode of operation, these variables
+ # are added to the blacklist as a convenience to administrators
+ # who fail to heed the warnings of allowing untrusted users
+ # to access sudo.
+ #
+ # there is *no possible way* to foresee all attack vectors in
+ # all possible applications that could potentially be used via
+ # sudo, these settings will just delay the inevitable.
+ #
+ # that said, I will accept suggestions for variables that can
+ # be misused in _common_ interpreters or libraries, such as
+ # perl, bash, python, ruby, etc., in the hope of dissuading
+ # a casual attacker.
+
+ # XXX: perl should be using suid_perl.
+ # XXX: users can remove/add more via env_delete and env_check.
+ # XXX: <?> = probably safe enough for most circumstances.
+
+ einfo "Blacklisting common variables (env_delete)..."
+ sudo_bad_var() {
+ local target='env.c' marker='\*initial_badenv_table\[\]'
+
+ ebegin " $1"
+ sed -i 's#\(^.*'${marker}'.*$\)#\1\n\t"'${1}'",#' "${S}"/${target}
+ eend $?
+ }
+
+ sudo_bad_var 'PERLIO_DEBUG' # perl, write debug to file.
+ sudo_bad_var 'FPATH' # ksh, search path for functions.
+ sudo_bad_var 'NULLCMD' # zsh, command on null-redir. <?>
+ sudo_bad_var 'READNULLCMD' # zsh, command on null-redir. <?>
+ sudo_bad_var 'GLOBIGNORE' # bash, glob paterns to ignore. <?>
+ sudo_bad_var 'PYTHONHOME' # python, module search path.
+ sudo_bad_var 'PYTHONPATH' # python, search path.
+ sudo_bad_var 'PYTHONINSPECT' # python, allow inspection.
+ sudo_bad_var 'RUBYLIB' # ruby, lib load path.
+ sudo_bad_var 'RUBYOPT' # ruby, cl options.
+ sudo_bad_var 'ZDOTDIR' # zsh, path to search for dotfiles.
+ einfo "...done."
+
+ # prevent binaries from being stripped.
+ sed -i 's/\($(INSTALL).*\) -s \(.*[(sudo|visudo)]\)/\1 \2/g' Makefile.in
+
+ # remove useless c++ checks
+ epunt_cxx
+}
+
+src_compile() {
+ local line ROOTPATH
+
+ # FIXME: secure_path is a compile time setting. using ROOTPATH
+ # is not perfect, env-update may invalidate this, but until it
+ # is available as a sudoers setting this will have to do.
+ einfo "Setting secure_path..."
+
+ # why not use grep? variable might be expanded from other variables
+ # declared in that file. cannot just source the file, would override
+ # any variables already set.
+ eval `PS4= bash -x /etc/profile.env 2>&1 | \
+ while read line; do
+ case $line in
+ ROOTPATH=*) echo $line; break;;
+ *) continue;;
+ esac
+ done` && einfo " Found ROOTPATH..." || \
+ ewarn " Failed to find ROOTPATH, please report this."
+
+ # remove duplicate path entries from $1
+ cleanpath() {
+ local i=1 x n IFS=:
+ local -a paths; paths=($1)
+
+ for ((n=${#paths[*]}-1;i<=n;i++)); do
+ for ((x=0;x<i;x++)); do
+ test "${paths[i]}" == "${paths[x]}" && {
+ einfo " Duplicate entry ${paths[i]} removed..." 1>&2
+ unset paths[i]; continue 2; }
+ done; # einfo " Adding ${paths[i]}..." 1>&2
+ done; echo "${paths[*]}"
+ }
+
+ ROOTPATH=$(cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${ROOTPATH:+:${ROOTPATH}})
+
+ # strip gcc path (bug #136027)
+ rmpath() {
+ declare e newpath oldpath=${!1} PATHvar=$1 thisp IFS=:
+ shift
+ for thisp in $oldpath; do
+ for e; do [[ $thisp == $e ]] && continue 2; done
+ newpath=$newpath:$thisp
+ done
+ eval $PATHvar='${newpath#:}'
+ }
+
+ rmpath ROOTPATH '*/gcc-bin/*'
+
+ einfo "...done."
+
+ # XXX: --disable-path-info closes an info leak, but may be confusing.
+ # XXX: /bin/vi may not be available, make nano visudo's default.
+ econf --with-secure-path="${ROOTPATH}" \
+ --with-editor=/bin/nano \
+ --with-env-editor \
+ $(use_with offensive insults) \
+ $(use_with offensive all-insults) \
+ $(use_with pam) \
+ $(use_with skey) \
+ $(use_with ldap ldap_conf_file /etc/ldap.conf.sudo) \
+ $(use_with ldap) || die
+
+ emake || die
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install || die
+ dodoc ChangeLog HISTORY PORTING README TROUBLESHOOTING \
+ UPGRADE sample.sudoers sample.syslog.conf
+
+ if use ldap; then
+ dodoc README.LDAP schema.OpenLDAP
+ dosbin sudoers2ldif
+
+ cat - > "${T}"/ldap.conf.sudo <<EOF
+# See ldap.conf(5) and README.LDAP for details\n"
+# This file should only be readable by root\n\n"
+# supported directives: host, port, ssl, ldap_version\n"
+# uri, binddn, bindpw, sudoers_base, sudoers_debug\n"
+# tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key
+EOF
+
+ insinto /etc
+ doins "${T}"/ldap.conf.sudo
+ fperms 0440 /etc/ldap.conf.sudo
+ fi
+
+ pamd_mimic system-auth sudo auth account password session
+
+ insinto /etc
+ doins "${FILESDIR}"/sudoers
+ fperms 0440 /etc/sudoers
+}
+
+pkg_postinst() {
+ if use ldap; then
+ ewarn
+ ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."
+ ewarn
+ if egrep -q '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf; then
+ ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly"
+ ewarn "configured in /etc/nsswitch.conf."
+ ewarn
+ ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:"
+ ewarn " sudoers: ldap files"
+ ewarn
+ fi
+ fi
+}