summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-09-13 13:50:38 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-09-13 13:50:38 +0000
commit7cfca8067847723eb73031e13ae949df33647447 (patch)
tree63b6325fbc926a0d4d8156b1275a39bf42cc79a7 /app-admin
parentFix the ebuild to base of live where in cvs i accidentaly copied from 2.5.1. (diff)
downloadhistorical-7cfca8067847723eb73031e13ae949df33647447.tar.gz
historical-7cfca8067847723eb73031e13ae949df33647447.tar.bz2
historical-7cfca8067847723eb73031e13ae949df33647447.zip
Version bump.
Package-Manager: portage-2.2.0_alpha127/cvs/Linux x86_64
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/sudo/ChangeLog7
-rw-r--r--app-admin/sudo/Manifest18
-rw-r--r--app-admin/sudo/sudo-1.8.6_p1.ebuild190
3 files changed, 206 insertions, 9 deletions
diff --git a/app-admin/sudo/ChangeLog b/app-admin/sudo/ChangeLog
index 103a75e0ce44..5c81bf72dec0 100644
--- a/app-admin/sudo/ChangeLog
+++ b/app-admin/sudo/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-admin/sudo
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/ChangeLog,v 1.322 2012/08/17 14:22:50 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/ChangeLog,v 1.323 2012/09/13 13:50:38 flameeyes Exp $
+
+*sudo-1.8.6_p1 (13 Sep 2012)
+
+ 13 Sep 2012; Diego E. Pettenò <flameeyes@gentoo.org> +sudo-1.8.6_p1.ebuild:
+ Version bump.
*sudo-1.8.5_p3 (17 Aug 2012)
diff --git a/app-admin/sudo/Manifest b/app-admin/sudo/Manifest
index 81d9b8ee251c..ae1679a7a33e 100644
--- a/app-admin/sudo/Manifest
+++ b/app-admin/sudo/Manifest
@@ -3,18 +3,20 @@ Hash: SHA256
DIST sudo-1.8.5p2.tar.gz 1746344 SHA256 c32ae2bc3faf83444c82ca75ccb10ad3684d8222e3535f164c4a4db7cdddf8cf SHA512 616967eea79f91cda2b0cd1d13ed453d20142521ecfca289432bdf5708ac0549c7873fd80170cc0481390e82f1e60fb0bffcfc7c6b70d5d721aa98d23361c5cb WHIRLPOOL ac0d2c040935c54947571a0d4671be70aaaf7a6f69cb097acd321718656d4c569b0db4191eaf943c6b642a1d641263429287241a236a0f2a0c9edf973710bf8b
DIST sudo-1.8.5p3.tar.gz 1746553 SHA256 00bbf27d53e8a74ef3e76b531c2b8a8d6dccab58e0d040c2a3a08171543bb1a7 SHA512 d326be88f5631872039b0a8377753b3eea12cca63b3ab57aecbb35f9abbcebca8b7d73bb31da4a5b4a03bfef15c51f4f9212a349b3551202fdf0d26993e2bd46 WHIRLPOOL 0ac3f034785d1edddbbda34d8d51dc2cd967c0d4e94fbb44c88b69eecbbcb654d417e89f9f21850ba566feee333d2fad8218673983153b19b432885faaf33e87
+DIST sudo-1.8.6p1.tar.gz 1855230 SHA256 70d6a3ceb6168c879a80a5fa03cdd06178b95d0ecb6bf87aa0bc7c159da944cc SHA512 9a0c530af240f07417a6fc745248c08942826c2efb0ac271ec38535d5c741a01459ed514256d781912a599f507deb63561222bf3079f7d7f743248cb878e69ee WHIRLPOOL c39025f1813293b17cabaef934b6399ab5f9bc19917f0c37654346b300efc9022ed21683f07a115cc0ddc12d0006e28101268e3aec81413625831c6b91c385d5
EBUILD sudo-1.8.5_p2.ebuild 5444 SHA256 3ce54be7d820d7cf10200cba6bac4b7d92ee8cbe5d962c8757cf11959c76594d SHA512 684701048d3cb6b1a3c48f43e6d7dbe54847d5fdfef3aca95922f22e5cbda7394b6087c98050f4c1b815216dfd8ef2cf149a37f04618effd0c82b9c0060c1c58 WHIRLPOOL df080eb94ce7639ce9ade1dd40956e268a6c708f846a0df89b945644039529fa875e97cee851ed016696a4a5cb12ed9f18d78f0e7568db33ff0530f881ef619f
EBUILD sudo-1.8.5_p3.ebuild 5459 SHA256 d909d527d4e2fa62d60299e1a4024ee4200f93efe2a3a73626bbac483b6e6526 SHA512 ff9ea85ac62c98ad0e98a20718e63a347180beec70bf1428b429494882bb29aa95d342caac9449da57bc4f77b13da9301e3257a67c1614b876528b5ab207c796 WHIRLPOOL 13556bb92f242287bae0d0b0777c7ced716f76bf1a8345649d74583b87a652196f9cea008143d4bd7a3d66f1e9f8b93ef6004eed7613a9bc43702e5460ee0372
-MISC ChangeLog 47139 SHA256 811d802d74d6af748017ea90e5ee6df8787561e6e7203eec58f21b1f3e18568d SHA512 4a376f7c62eeab3bde60e36bd3c5198f07071e805de5b79e695888e01364c1280dfe04078e401f39bce40f95b5f268ff7bfedf296623a8547c17bf68a7a0b24c WHIRLPOOL 5992c5d3be1f7f9a620a53070d886ccadb90d361fd3a97ca19037861e9d428da61be21ec5a76ce3b7067a33d2460345353c88fb62807e5174783604be84959bd
+EBUILD sudo-1.8.6_p1.ebuild 5459 SHA256 e3edee9dc80a1aa912b01cc4ade74c1f22ac1cf2e6cade69cc4ba4a9ec87e990 SHA512 69673d0a217595d1545a4dca6fda0e2ac7d6e267fee75d3183a686bfd20f969bc6a9b252e34b680c8e8ab31d1b3c183e4a6e815c0a08cd88a358724539081ea7 WHIRLPOOL dee3097c137af6410f3e3dd29697100f8d7b67e6a3b9e50f757a00ea0effa6819711184e5f2077bf70fa5ae74c765460260debc7ba84e1f908f56295676a53ba
+MISC ChangeLog 47265 SHA256 07b3690529a6d07afc3c565a60749bead38a6895c36a2dc1f5fa41ff038ce5ec SHA512 994ae52b6a45fdcd4048bfb2d1850b1194d0c18537bf3c331cedcd510de987ab97a6f178956c5631e9b3d3c2c7a6cc38f60948bc0f87b8cc08ae22796c8e1922 WHIRLPOOL 4ee37877d5770aff353dcb2102d04abd48e44a63e7b568950330586a8cd5d00af3f2b1bc953d0429e29ece4d383246fa4d47060ba19deb6c32e6e3f491fc73a5
MISC metadata.xml 560 SHA256 465d0ea14b7db3ecd0bad7c175f9e17003794145f5f59c4941f848960c91048a SHA512 97bdce0d3972fd6f8ae58ddcb87c002a0384a6f6392347f5035f4f16581e665f3121d5ab5abdea1a9ec87122b10310f0ff99697de1749b418f61cc92217c58be WHIRLPOOL a7cddcabfcb73965df21adbe163117549eea126d424e065f14ab0cec76ad608a6b4506be013e2709e071e2e1d370c7c4188a8eb0aafba9f9b16266373fc29f80
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQEcBAEBCAAGBQJQLlPEAAoJEBzRPIrUMBNCfMQH/i7kC3Ok8GjAsa5D6dAu0gx+
-qohXSKbBHvN18e0iN0opXaiXvuTNMIw36oQLOktZNanoEY0raWqu7TOorEPouFKX
-N96DGxcuwAhnMOouJktqkDE6AdugBSMO51rDjMMatBhEZMflwvqeVOn/MEoiOJJx
-Hlyj2Xy2AkiauxH1gw06jDhavrW1yxiAFIAMCHnceGKcBgf4zbIpDiHLQkIAmOcU
-9BnOGeKKLH+kXuh+IDEh7AK4nqu3M+oVgLymugULTVj+0UG28FpAMrY2ZO1VfxpN
-1trqWsUv3GbeyEuWbAaplxpxhhVtPds9quNJWRRwXTDXMxy/qEQtSY0DkdTPP1o=
-=Htkw
+iQEcBAEBCAAGBQJQUeTfAAoJEBzRPIrUMBNCSqsIAJmH6VIG3HU7KAmP45fToNcp
+5ZeITjiezSDe890w2kmue5xAXCb53RuAuCN4i+jzj1p/VyWqKRL+mdcSV6ts0tsS
+U8eqBiducEoO/66oQxAO0qkndteBMIYdZD7Cx4OJlCP1zqMsz1Kt/NdU31WKgOKk
+DWRjPPptgaeCpmBLRLAvEWtSVZGWK0mqzJlPbzucvIOnjXIGj3XTG0VcwqOBrfgK
+jGZ+K0c4hXisfzJwvn1rjSZ9MVzm/Yyli/nZ7MSwmkz8UA79ryzMpUJy1SN6i4nk
+Kq8ybG0ImKB/HJPjVC/1EG7sb9G9vjjheDMY7CWy90B6aDHN5iQ3NnZJaonezXY=
+=ExPG
-----END PGP SIGNATURE-----
diff --git a/app-admin/sudo/sudo-1.8.6_p1.ebuild b/app-admin/sudo/sudo-1.8.6_p1.ebuild
new file mode 100644
index 000000000000..a4a39e445b00
--- /dev/null
+++ b/app-admin/sudo/sudo-1.8.6_p1.ebuild
@@ -0,0 +1,190 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/sudo-1.8.6_p1.ebuild,v 1.1 2012/09/13 13:50:38 flameeyes Exp $
+
+EAPI=4
+
+inherit eutils pam multilib libtool
+
+MY_P=${P/_/}
+MY_P=${MY_P/beta/b}
+
+uri_prefix=
+case ${P} in
+*_beta*|*_rc*) uri_prefix=beta/ ;;
+esac
+
+DESCRIPTION="Allows users or groups to run commands as other users"
+HOMEPAGE="http://www.sudo.ws/"
+SRC_URI="http://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz
+ ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz"
+
+# Basic license is ISC-style as-is, some files are released under
+# 3-clause BSD license
+LICENSE="as-is BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~sparc-solaris"
+IUSE="ldap nls pam offensive selinux skey"
+
+DEPEND="pam? ( virtual/pam )
+ skey? ( >=sys-auth/skey-1.1.5-r1 )
+ ldap? (
+ >=net-nds/openldap-2.1.30-r1
+ dev-libs/cyrus-sasl
+ )
+ sys-libs/zlib"
+RDEPEND="${DEPEND}
+ selinux? ( sec-policy/selinux-sudo )
+ ldap? ( dev-lang/perl )
+ pam? ( sys-auth/pambase )
+ >=app-misc/editor-wrapper-3
+ virtual/editor
+ virtual/mta"
+DEPEND="${DEPEND}
+ sys-devel/bison"
+
+S=${WORKDIR}/${MY_P}
+
+REQUIRED_USE="pam? ( !skey ) skey? ( !pam )"
+
+MAKEOPTS+=" SAMPLES="
+
+src_prepare() {
+ elibtoolize
+}
+
+set_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 ..."
+
+ # first extract the default ROOTPATH from build env
+ ROOTPATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env; echo "${ROOTPATH}")
+ if [[ -z ${ROOTPATH} ]] ; then
+ ewarn " Failed to find ROOTPATH, please report this"
+ fi
+
+ # then remove duplicate path entries
+ cleanpath() {
+ local newpath thisp IFS=:
+ for thisp in $1 ; do
+ if [[ :${newpath}: != *:${thisp}:* ]] ; then
+ newpath+=:$thisp
+ else
+ einfo " Duplicate entry ${thisp} removed..."
+ fi
+ done
+ ROOTPATH=${newpath#:}
+ }
+ cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${ROOTPATH:+:${ROOTPATH}}
+
+ # finally, strip gcc paths #136027
+ rmpath() {
+ local e newpath thisp IFS=:
+ for thisp in ${ROOTPATH} ; do
+ for e ; do [[ $thisp == $e ]] && continue 2 ; done
+ newpath+=:$thisp
+ done
+ ROOTPATH=${newpath#:}
+ }
+ rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*'
+
+ einfo "... done"
+}
+
+src_configure() {
+ local ROOTPATH
+ set_rootpath
+
+ # audit: somebody got to explain me how I can test this before I
+ # enable it.. - Diego
+ # plugindir: autoconf code is crappy and does not delay evaluation
+ # until `make` time, so we have to use a full path here rather than
+ # basing off other values.
+ econf \
+ --enable-zlib=system \
+ --with-secure-path="${ROOTPATH}" \
+ --with-editor="${EPREFIX}"/usr/libexec/editor \
+ --with-env-editor \
+ $(use_with offensive insults) \
+ $(use_with offensive all-insults) \
+ $(use_with ldap ldap_conf_file /etc/ldap.conf.sudo) \
+ $(use_with ldap) \
+ $(use_enable nls) \
+ $(use_with pam) \
+ $(use_with skey) \
+ $(use_with selinux) \
+ --without-opie \
+ --without-linux-audit \
+ --with-timedir="${EPREFIX}"/var/db/sudo \
+ --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ if use ldap ; then
+ dodoc README.LDAP doc/schema.OpenLDAP
+ dosbin plugins/sudoers/sudoers2ldif
+
+ cat <<-EOF > "${T}"/ldap.conf.sudo
+ # See ldap.conf(5) and README.LDAP for details
+ # This file should only be readable by root
+
+ # supported directives: host, port, ssl, ldap_version
+ # uri, binddn, bindpw, sudoers_base, sudoers_debug
+ # 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 session
+
+ keepdir /var/db/sudo
+ fperms 0700 /var/db/sudo
+}
+
+pkg_postinst() {
+ if use ldap ; then
+ ewarn
+ ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."
+ ewarn
+ if grep -qs '^[[: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
+ if use prefix ; then
+ ewarn
+ ewarn "To use sudo, you need to change file ownership and permissions"
+ ewarn "with root privileges, as follows:"
+ ewarn
+ ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo"
+ ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so"
+ ewarn " # chown root:root ${EPREFIX}/etc/sudoers"
+ ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d"
+ ewarn " # chown root:root ${EPREFIX}/var/db/sudo"
+ ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo"
+ ewarn
+ fi
+
+ elog "To use the -A (askpass) option, you need to install a compatible"
+ elog "password program from the following list. Starred packages will"
+ elog "automatically register for the use with sudo (but will not force"
+ elog "the -A option):"
+ elog ""
+ elog " [*] net-misc/ssh-askpass-fullscreen"
+ elog " net-misc/x11-ssh-askpass"
+ elog ""
+ elog "You can override the choice by setting the SUDO_ASKPASS environmnent"
+ elog "variable to the program you want to use."
+}