diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2012-03-13 16:22:55 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2012-03-13 16:22:55 +0000 |
commit | a59d902aedb489914f38a88d5b89bba9099f87e7 (patch) | |
tree | 4dec856ad6ad2e5b507ca5e453edf58e4eeabc68 /app-admin | |
parent | Version bump (diff) | |
download | historical-a59d902aedb489914f38a88d5b89bba9099f87e7.tar.gz historical-a59d902aedb489914f38a88d5b89bba9099f87e7.tar.bz2 historical-a59d902aedb489914f38a88d5b89bba9099f87e7.zip |
Version bump and clear old.
Package-Manager: portage-2.2.0_alpha90/cvs/Linux x86_64
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/sudo/ChangeLog | 9 | ||||
-rw-r--r-- | app-admin/sudo/Manifest | 25 | ||||
-rw-r--r-- | app-admin/sudo/sudo-1.7.4_p5.ebuild | 240 | ||||
-rw-r--r-- | app-admin/sudo/sudo-1.8.1_p2.ebuild | 182 | ||||
-rw-r--r-- | app-admin/sudo/sudo-1.8.2-r1.ebuild | 187 | ||||
-rw-r--r-- | app-admin/sudo/sudo-1.8.3_p1-r2.ebuild | 177 | ||||
-rw-r--r-- | app-admin/sudo/sudo-1.8.3_p1.ebuild | 185 | ||||
-rw-r--r-- | app-admin/sudo/sudo-1.8.4_p4.ebuild (renamed from app-admin/sudo/sudo-1.8.4_p1.ebuild) | 2 |
8 files changed, 22 insertions, 985 deletions
diff --git a/app-admin/sudo/ChangeLog b/app-admin/sudo/ChangeLog index 3ff4aa756da9..6b01fa80b8a6 100644 --- a/app-admin/sudo/ChangeLog +++ b/app-admin/sudo/ChangeLog @@ -1,6 +1,13 @@ # 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.304 2012/03/03 14:37:03 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/ChangeLog,v 1.305 2012/03/13 16:22:55 flameeyes Exp $ + +*sudo-1.8.4_p4 (13 Mar 2012) + + 13 Mar 2012; Diego E. Pettenò <flameeyes@gentoo.org> +sudo-1.8.4_p4.ebuild, + -sudo-1.7.4_p5.ebuild, -sudo-1.8.1_p2.ebuild, -sudo-1.8.2-r1.ebuild, + -sudo-1.8.3_p1-r2.ebuild, -sudo-1.8.3_p1.ebuild, -sudo-1.8.4_p1.ebuild: + Version bump and clear old. 03 Mar 2012; Brent Baude <ranger@gentoo.org> sudo-1.8.3_p2.ebuild: Marking sudo-1.8.3_p2 ppc64 for bug 401533 diff --git a/app-admin/sudo/Manifest b/app-admin/sudo/Manifest index f94fe7f3bc65..9d461958916d 100644 --- a/app-admin/sudo/Manifest +++ b/app-admin/sudo/Manifest @@ -1,21 +1,22 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX sudo-1.8.2-fix-pwutil-alignment.patch 1641 RMD160 d136752a7180bf46dfa24c522ad6ade3979e689c SHA1 36c518048ffc601d04b3edc4007528fd425328e7 SHA256 7922f150462214312ca00048b93aa99aac454e5a61cc92fbe6d57354694ca2ef AUX sudo-1.8.2-parallel-build.patch 517 RMD160 1fa308ce579f9c3e8d32b6155ee6e89044c2997e SHA1 8237b096164527704e865f95cd563b5d5aa01d22 SHA256 f21f4c60c8d9bbbf8ff372393e5d753a123021573dc4ace9665ff451dda9326c AUX sudo-1.8.3_p1-linguas.patch 1004 RMD160 ba9f5d2ac57ed53de0388da02d29ef3e84a7b4fd SHA1 0d6d629e11eda546e1a9486bc93ede54b8019fe1 SHA256 68687a3817c8ca38802c93cbbdf24ad7fde8ef4515da691929362e85a14336ec AUX sudo-skeychallengeargs.diff 567 RMD160 906ee43a7c2f21d1cf5130eac5c98ef0833154fd SHA1 b0efbedc72a1ed85c74ba10e343a68368e76c3e9 SHA256 dd2f4fdba26be6c3b4af15f3b6e18efa19375e1f9c579cdc2c76ee1adcce5e1d -DIST sudo-1.7.4p5.tar.gz 966176 RMD160 24fcaa065f9efc229abcf2b70ec4faca03efa32d SHA1 bb9c9ff6ce6d4c70bdc546316442e7021ca754c2 SHA256 72e8e3545f314d342f178b0fee4b483e26d70ef132b081699be035da0f0acbba -DIST sudo-1.8.1p2.tar.gz 1238804 RMD160 165029d462e737c885b1d32accb9b2b19411a0fb SHA1 b743b3d7bdb06de68ea24eedfe13530e8fbcae09 SHA256 281f90c80547cf22132e351e7f61c25ba4ba9cf393438468f318f9a7884026fb -DIST sudo-1.8.2.tar.gz 1465051 RMD160 daebd7f67fff6429c3cb85260e9b11f0c3e28e3c SHA1 6a9400ba3e40394fd9c913219e3b6bb102bb3906 SHA256 37fe6ee670329bc45937fbe402e847f80b3a0a1c8fc9a66487e92b4b810152b0 -DIST sudo-1.8.3p1.tar.gz 1536465 RMD160 7809cbde339220d7dc10ae8da504d5c4e219b55c SHA1 2a7ad912aa8a31706796e5bff8813e4fc7505333 SHA256 1a22635bc5a0a84df273a893c624d45f628c78668317c5bc442dac11db55bb82 DIST sudo-1.8.3p2.tar.gz 1536943 RMD160 5a6b8574d2245cc89d2ac982eae9cb6ca2414033 SHA1 37d70b133f809116ce631229fa0e727d9f5125ad SHA256 7edcf02ef4dc4f26f524726e8faaa90d7939772c186409ab150d2934e3a9ba31 -DIST sudo-1.8.4p1.tar.gz 1607355 RMD160 3f83dd07e9a563f8249ee08a37f3ca09d2718983 SHA1 5d5fe07cc44ea648c2ea6dc3129a5c13604c83ed SHA256 48214b55b40fd1fa9501e69f82fc8754911943ca2652d955e66e2b992d39d027 DIST sudo-1.8.4p2.tar.gz 1608580 RMD160 62c52bf05ac4a236e7cdf56c15cc271928635d85 SHA1 949c39a0191584ded1044a0f729d54a8dc7b3e72 SHA256 b1310b8548db5ea92f3063011c0fe6e843a1f95f548a4aeae54bcc2fdfea88a9 -EBUILD sudo-1.7.4_p5.ebuild 7199 RMD160 c3d60aa16569fd4538d1d9da14d3360ab7efa071 SHA1 4d6538f1fd59bc4a0dc1a2cb8c9d376817ad3a01 SHA256 1b367137a5c65081749db1abd23b1ab32555f12935c6185f22fda90cf956d7b8 -EBUILD sudo-1.8.1_p2.ebuild 5052 RMD160 e48597e49b3ac5f8e0f1f220f4274cc7e18569bc SHA1 c431a81c23beded264fb0591860135d6c4635316 SHA256 55a73de80034c85a4f20392e45dd28e23fd5f22ec032333997fe5138aa3fa599 -EBUILD sudo-1.8.2-r1.ebuild 5199 RMD160 4640b960d26a1a62fc2423bdaf8c96f518bf739e SHA1 29a3463b6c5b094d14f82518d1fb497655ec16a1 SHA256 16e4eb9cfff5d5dc55c0aac343fba80000ac87c9d6ddad725340a4f3b6efe38e -EBUILD sudo-1.8.3_p1-r2.ebuild 4879 RMD160 983f9f7099de9a6dc720988841460c4f09710710 SHA1 88358dc05a5def5c1a6359287e09a9720b4a3f62 SHA256 058f3b567d125ff5712fcd33b060482e5c3f1b7cc7041d1b450eaa0e0e53554f -EBUILD sudo-1.8.3_p1.ebuild 5109 RMD160 b958efc43a95bf1a5a1cb4f196df22317d0d1b4b SHA1 c069b14b38274cf53a711de3e422d4f58f31a917 SHA256 b79fb3d8a91f29d5a1472be1892e4510cd658c5cd0c5b31364bb9658244176fc +DIST sudo-1.8.4p4.tar.gz 1608969 RMD160 02875946f3bb9a40637efde20c1a9a3f0b0cfca8 SHA1 49373706709bd4c30d9b3c513eff7be04aecd812 SHA256 bf965b09bde9b0cf7fd2355c53a81884d02d522af2d539cf40218436e9a5051e EBUILD sudo-1.8.3_p2.ebuild 4901 RMD160 19759297aeb2f1d0b0ec849032d52a56b0fbe86f SHA1 af073c081fcc8cf8099ea45275226be9e4c732da SHA256 eaed00db933deac05e2554f72208842741a57864f22d8ed975205ad63bc7aa08 -EBUILD sudo-1.8.4_p1.ebuild 4865 RMD160 b344a4fd80caa9986efe52c6f4ba7229e5363f33 SHA1 499ee1941442d97f51c39ce5a3762b456b33fd78 SHA256 5a0ec71de79f0a4a1fa6fe984691e46b5a2e55f1a021a02dd9096dd8bb6ef56b EBUILD sudo-1.8.4_p2.ebuild 4865 RMD160 1eac12234da0914cf4e04f448f3cae8f92263443 SHA1 ec3d7243739ba592579abc64a983248943169a24 SHA256 baa2673fd738a4966c6dff486b2fdbcf767cadb1a48cd3d9d4d859f7222b03ee -MISC ChangeLog 44262 RMD160 a691a6e7c3dfa8fd564381e6e9e453b1d4e38513 SHA1 d970ab75b45376051282e932ed423086b6a7c113 SHA256 6a9b968c890be6d265ff559aa8fdb4fe125cd77c3aa44d6781a4e7f2cb3df2bc +EBUILD sudo-1.8.4_p4.ebuild 4865 RMD160 a0801f59c6df68cf6188cc140c64b6c017ed4dac SHA1 d1f3e975cb5e772d539780320bb727d4bdb427fe SHA256 82fe5663ccd8d5cacf047636ab7794e1bf7d93161b4368e84ddab9bd619ce4bf +MISC ChangeLog 44550 RMD160 8d05c0319ab636385b0adeff2acc936f98d7f9e5 SHA1 ef43a4b04827f3c1be17700d7b41a796d46b9da1 SHA256 33bc6a16f7ab274c07a2668cc8908d683cc361d7e43197411f00c756be88335f MISC metadata.xml 560 RMD160 4e8bb9df73a4095b15b23d4ca31dea29b3f376d2 SHA1 a29e70672a1c039c4a97ee65e3e077ba0a01f26b SHA256 465d0ea14b7db3ecd0bad7c175f9e17003794145f5f59c4941f848960c91048a +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.18 (GNU/Linux) + +iEYEARECAAYFAk9fdEcACgkQAiZjviIA2Xg/GQCgjaFzkfcZRVK69Boe2OcZUmzT +d6UAoMf3hH+wY8U1VeZCthrqk7RmJPCu +=ylTd +-----END PGP SIGNATURE----- diff --git a/app-admin/sudo/sudo-1.7.4_p5.ebuild b/app-admin/sudo/sudo-1.7.4_p5.ebuild deleted file mode 100644 index 2182da04202d..000000000000 --- a/app-admin/sudo/sudo-1.7.4_p5.ebuild +++ /dev/null @@ -1,240 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/sudo-1.7.4_p5.ebuild,v 1.9 2011/12/29 21:33:54 ulm Exp $ - -inherit eutils pam - -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="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 ~sparc-fbsd ~x86-fbsd" -IUSE="pam skey offensive ldap selinux" - -DEPEND="pam? ( virtual/pam ) - ldap? ( - >=net-nds/openldap-2.1.30-r1 - dev-libs/cyrus-sasl - ) - !pam? ( skey? ( >=sys-auth/skey-1.1.5-r1 ) ) - >=app-misc/editor-wrapper-3 - virtual/editor - virtual/mta" -RDEPEND="selinux? ( sec-policy/selinux-sudo ) - ldap? ( dev-lang/perl ) - pam? ( sys-auth/pambase ) - ${DEPEND}" -DEPEND="${DEPEND} - sys-devel/bison" - -S=${WORKDIR}/${MY_P} - -pkg_setup() { - if use pam && use skey; then - ewarn "You cannot enable both S/KEY and PAM at the same time, PAM will" - ewarn "be used then." - fi -} - -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 -} - -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." - - if use pam; then - myconf="--with-pam --without-skey" - elif use skey; then - myconf="--without-pam --with-skey" - else - myconf="--without-pam --without-skey" - fi - - # audit: somebody got to explain me how I can test this before I - # enable it.. — Diego - econf --with-secure-path="${ROOTPATH}" \ - --with-editor=/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) \ - --without-linux-audit \ - --with-timedir=/var/db/sudo \ - --docdir=/usr/share/doc/${PF} \ - ${myconf} - - emake || die -} - -src_install() { - emake DESTDIR="${D}" install || die - - 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 session - - insinto /etc - doins "${S}"/sudoers - fperms 0440 /etc/sudoers - - 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 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 - - 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." -} diff --git a/app-admin/sudo/sudo-1.8.1_p2.ebuild b/app-admin/sudo/sudo-1.8.1_p2.ebuild deleted file mode 100644 index 466068d9121d..000000000000 --- a/app-admin/sudo/sudo-1.8.1_p2.ebuild +++ /dev/null @@ -1,182 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/sudo-1.8.1_p2.ebuild,v 1.10 2011/12/29 20:55:14 halcy0n Exp $ - -EAPI=4 - -inherit eutils pam multilib libtool - -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="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 ~sparc-fbsd ~x86-fbsd" -IUSE="pam offensive ldap 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 - ) - >=app-misc/editor-wrapper-3 - virtual/editor - virtual/mta" -RDEPEND="selinux? ( sec-policy/selinux-sudo ) - ldap? ( dev-lang/perl ) - pam? ( sys-auth/pambase ) - ${DEPEND}" -DEPEND="${DEPEND} - sys-devel/bison" - -S=${WORKDIR}/${MY_P} - -REQUIRED_USE="pam? ( !skey ) skey? ( !pam )" - -MAKEOPTS="${MAKEOPTS} SAMPLES=" - -src_prepare() { - elibtoolize -} - -src_configure() { - 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/*' - rmpath ROOTPATH '*/gnat-gcc-bin/*' - rmpath ROOTPATH '*/gnat-gcc/*' - - einfo "...done." - - # audit: somebody got to explain me how I can test this before I - # enable it.. — Diego - econf --with-secure-path="${ROOTPATH}" \ - --with-editor=/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_with pam) \ - $(use_with skey) \ - --without-opie \ - --without-linux-audit \ - --with-timedir=/var/db/sudo \ - --with-plugindir=/usr/$(get_libdir)/sudo \ - --docdir=/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 - > "${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 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 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 - - 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." -} diff --git a/app-admin/sudo/sudo-1.8.2-r1.ebuild b/app-admin/sudo/sudo-1.8.2-r1.ebuild deleted file mode 100644 index d630b21eb4f8..000000000000 --- a/app-admin/sudo/sudo-1.8.2-r1.ebuild +++ /dev/null @@ -1,187 +0,0 @@ -# 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.2-r1.ebuild,v 1.5 2012/01/22 15:35:39 armin76 Exp $ - -EAPI=4 - -inherit eutils pam multilib libtool - -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="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 ~sparc-fbsd ~x86-fbsd" -IUSE="pam offensive ldap 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 - ) - >=app-misc/editor-wrapper-3 - sys-libs/zlib - virtual/editor - virtual/mta" -RDEPEND="selinux? ( sec-policy/selinux-sudo ) - ldap? ( dev-lang/perl ) - pam? ( sys-auth/pambase ) - ${DEPEND}" -DEPEND="${DEPEND} - sys-devel/bison" - -S=${WORKDIR}/${MY_P} - -REQUIRED_USE="pam? ( !skey ) skey? ( !pam )" - -MAKEOPTS="${MAKEOPTS} SAMPLES=" - -src_prepare() { - epatch "${FILESDIR}"/${P}-parallel-build.patch - epatch "${FILESDIR}"/${P}-fix-pwutil-alignment.patch - elibtoolize -} - -src_configure() { - 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/*' - rmpath ROOTPATH '*/gnat-gcc-bin/*' - rmpath ROOTPATH '*/gnat-gcc/*' - - einfo "...done." - - # audit: somebody got to explain me how I can test this before I - # enable it.. — Diego - econf \ - --enable-zlib=system \ - --with-secure-path="${ROOTPATH}" \ - --with-editor=/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_with pam) \ - $(use_with skey) \ - --without-opie \ - --without-linux-audit \ - --with-timedir=/var/db/sudo \ - --with-plugindir=/usr/$(get_libdir)/sudo \ - --docdir=/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 - > "${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 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 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 - - 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." -} diff --git a/app-admin/sudo/sudo-1.8.3_p1-r2.ebuild b/app-admin/sudo/sudo-1.8.3_p1-r2.ebuild deleted file mode 100644 index 74e16990befe..000000000000 --- a/app-admin/sudo/sudo-1.8.3_p1-r2.ebuild +++ /dev/null @@ -1,177 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/sudo-1.8.3_p1-r2.ebuild,v 1.2 2011/12/13 20:38:16 swift 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 ~sparc-fbsd ~x86-fbsd" -IUSE="pam offensive ldap 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 - ) - >=app-misc/editor-wrapper-3 - sys-libs/zlib - virtual/editor - virtual/mta" -RDEPEND="selinux? ( sec-policy/selinux-sudo ) - ldap? ( dev-lang/perl ) - pam? ( sys-auth/pambase ) - ${DEPEND}" -DEPEND="${DEPEND} - sys-devel/bison" - -S=${WORKDIR}/${MY_P} - -REQUIRED_USE="pam? ( !skey ) skey? ( !pam )" - -MAKEOPTS+=" SAMPLES=" - -src_prepare() { - epatch "${FILESDIR}"/${P}-linguas.patch - 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; . /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=/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_with pam) \ - $(use_with skey) \ - $(use_with selinux) \ - --without-opie \ - --without-linux-audit \ - --with-timedir=/var/db/sudo \ - --with-plugindir=/usr/$(get_libdir)/sudo \ - --docdir=/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 - - 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." -} diff --git a/app-admin/sudo/sudo-1.8.3_p1.ebuild b/app-admin/sudo/sudo-1.8.3_p1.ebuild deleted file mode 100644 index 3ded9b23e7d6..000000000000 --- a/app-admin/sudo/sudo-1.8.3_p1.ebuild +++ /dev/null @@ -1,185 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/sudo-1.8.3_p1.ebuild,v 1.1 2011/10/28 14:36:52 flameeyes Exp $ - -EAPI=4 - -inherit eutils pam multilib libtool - -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="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 ~sparc-fbsd ~x86-fbsd" -IUSE="pam offensive ldap 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 - ) - >=app-misc/editor-wrapper-3 - sys-libs/zlib - virtual/editor - virtual/mta" -RDEPEND="selinux? ( sec-policy/selinux-sudo ) - ldap? ( dev-lang/perl ) - pam? ( sys-auth/pambase ) - ${DEPEND}" -DEPEND="${DEPEND} - sys-devel/bison" - -S=${WORKDIR}/${MY_P} - -REQUIRED_USE="pam? ( !skey ) skey? ( !pam )" - -MAKEOPTS="${MAKEOPTS} SAMPLES=" - -src_prepare() { - elibtoolize -} - -src_configure() { - 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/*' - rmpath ROOTPATH '*/gnat-gcc-bin/*' - rmpath ROOTPATH '*/gnat-gcc/*' - - einfo "...done." - - # audit: somebody got to explain me how I can test this before I - # enable it.. — Diego - econf \ - --enable-zlib=system \ - --with-secure-path="${ROOTPATH}" \ - --with-editor=/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_with pam) \ - $(use_with skey) \ - --without-opie \ - --without-linux-audit \ - --with-timedir=/var/db/sudo \ - --with-plugindir=/usr/$(get_libdir)/sudo \ - --docdir=/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 - > "${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 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 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 - - 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." -} diff --git a/app-admin/sudo/sudo-1.8.4_p1.ebuild b/app-admin/sudo/sudo-1.8.4_p4.ebuild index c6355f06a54e..6f59dc7844da 100644 --- a/app-admin/sudo/sudo-1.8.4_p1.ebuild +++ b/app-admin/sudo/sudo-1.8.4_p4.ebuild @@ -1,6 +1,6 @@ # 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.4_p1.ebuild,v 1.1 2012/02/21 20:23:33 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/sudo-1.8.4_p4.ebuild,v 1.1 2012/03/13 16:22:55 flameeyes Exp $ EAPI="4" |