diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2015-04-09 20:51:37 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-04-09 20:51:37 +0000 |
commit | 3f1f2a418ee4e8dd7228dd838ff240156bfc44c1 (patch) | |
tree | 2bd3153594895b4e7cbea431d4961e09f06a49e3 /app-admin/sudo | |
parent | arm stable, bug #537878 (diff) | |
download | historical-3f1f2a418ee4e8dd7228dd838ff240156bfc44c1.tar.gz historical-3f1f2a418ee4e8dd7228dd838ff240156bfc44c1.tar.bz2 historical-3f1f2a418ee4e8dd7228dd838ff240156bfc44c1.zip |
Add live ebuild for testing.
Package-Manager: portage-2.2.14/cvs/Linux x86_64
Manifest-Sign-Key: 0xF52D4BBA
Diffstat (limited to 'app-admin/sudo')
-rw-r--r-- | app-admin/sudo/ChangeLog | 7 | ||||
-rw-r--r-- | app-admin/sudo/Manifest | 19 | ||||
-rw-r--r-- | app-admin/sudo/sudo-9999.ebuild | 202 |
3 files changed, 223 insertions, 5 deletions
diff --git a/app-admin/sudo/ChangeLog b/app-admin/sudo/ChangeLog index a71233682758..86307023d18c 100644 --- a/app-admin/sudo/ChangeLog +++ b/app-admin/sudo/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-admin/sudo # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/ChangeLog,v 1.386 2015/04/02 19:55:03 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/ChangeLog,v 1.387 2015/04/09 20:51:23 blueness Exp $ + +*sudo-9999 (09 Apr 2015) + + 09 Apr 2015; Anthony G. Basile <blueness@gentoo.org> +sudo-9999.ebuild: + Add live ebuild for testing. 02 Apr 2015; Markus Meier <maekke@gentoo.org> sudo-1.8.12.ebuild: arm stable, bug #539532 diff --git a/app-admin/sudo/Manifest b/app-admin/sudo/Manifest index 293e75573b63..2c242b9ce5b7 100644 --- a/app-admin/sudo/Manifest +++ b/app-admin/sudo/Manifest @@ -9,12 +9,23 @@ EBUILD sudo-1.8.11_p1.ebuild 5619 SHA256 7fe3889f35f4d05dcfb225444a07ee3febecdb1 EBUILD sudo-1.8.11_p2.ebuild 5637 SHA256 323373903e9c1dfe7ca033bad8ea257f50d34fb8dd0e03e277ad1a91e3b5b685 SHA512 8baa6413d284acc8ebde0e3c695451fd55b853870192c394f6175a99274edb6840aca318b3741476f195f98680b84e5de7824cd1a5a9f246795591b283389dc1 WHIRLPOOL 593ae254cb03a27a2480bf084f6d82a3247cf0c1c69437e1d63aed2ace76ad554c435e9e647baf55b060978a75f7d71cb5eac4704439cfa001ccbb4d39c21e30 EBUILD sudo-1.8.12.ebuild 5624 SHA256 3f83c8384ac31445c60516caa5633e79408a7191bb3dd58b9f38702b5cc1947b SHA512 b12385227245319896cd4566204c4106e34f4a897c2480295ec3be794bdc60f3ac35ffe8b9e8dbe33ecd6d1d2c09d72c0aef29a87c3256a6a4f80ec93a02d97b WHIRLPOOL 480ee60f77bcd1fa14ea4b67347a973d8d3932062aea55a97a46445fad5db305d235bcbf1aa837e20de32343fe6b8857cf67d8cb62735add1369aa0f90fe199f EBUILD sudo-1.8.13.ebuild 5637 SHA256 e1451074e1055d96a8d3862a681a509e5085d7de809b12f7195f99fd2f3163ec SHA512 a80e61868555083f9453104bad3fbc6e2bfd1af641a07429c676c1e9c804cebe8cb080a0614aaf8ef13927644e59f8330f24b74b17d7b75e4700a247533d8330 WHIRLPOOL 6b0a641ccb091a03c673f0f4adfc4634d0877b862b6391b03bfb784e9cd722d0aa890ffc752175c3e7ec0556729332cfb4e2ef23f3a2701007086fc93f34a7e4 -MISC ChangeLog 55530 SHA256 ead3646a184d13462b7fec5ac4834fe72cc76a632b119582b54d04d95d6bc5c6 SHA512 8e570707f6f759801d763e32a4e70a48ce1a2cad9c2e539ae78087bba6b58f0e9bd2e636217c6aca73f78d9c31e0b5e6bcfec92b92e19d2fc98293d240cfccc6 WHIRLPOOL df26c1fac09de3fdace043e8380ebb9278a31c118b4fbe9af31032a7ceac144b477f1615f5bc84c1c5cfe362d16d02a989b85b679703334485ea8e68bde390d2 +EBUILD sudo-9999.ebuild 5769 SHA256 be272172f9631e9ad20879566907704ad71d3278b1309ac1bb88048737de98de SHA512 cb34bd3f056bb7e605fe2f357b52ef68ab63e0b98551aef0f34b06c78df8f045746aaf6956ac130c0966725ac25f5afcfe695098940a765d4993b15fb666b621 WHIRLPOOL 6d71be1cbfffb94939f36366d3386b809d0932edae0e2dbcc68e0cf1192a4fa247f44600d9d53e0eb0e6a1724ce6c2853ff6b6de041dead9b923d40e72573db2 +MISC ChangeLog 55664 SHA256 409387529369fce0eb1f4f708d709734884659bfa7c83b8d4c2e4696d6e624fb SHA512 8f839dacad643fabe1429484ee2775523cdb9f15c909f7367816e82815f3c359f55d66a79955b254542d1b772f1c1c32dce841062daa61778842892f76ff7391 WHIRLPOOL 5e4427e700f5808315b19a871ca081c50e1917082d0fc6b0d20cea4fa6c93bd8ecf76bafd5fe610d1ce17a159d0760bf38e95c3ebe2b3f3152ac3d20f6f633e0 MISC metadata.xml 726 SHA256 242e8a573d76b2163a928259e5226fff2c237b3e9c244860a1430fa79c5b390e SHA512 d0a7e5f53ec823d84e3c38c2bd64ba566d7cbd08c12ebf3e9b9fed10b77ce2e3e951e262f1a307aa8f0819a662559ca6f9bcf86cf05088480413e4534ce299d3 WHIRLPOOL b919b1825e68eb3285523f057fc42b5fde9e59a738ecdb1de0835af827db6284fc66848a10517a215389c4466f21b70e376f3fffc993aa338e47fca971d0af83 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iEYEAREIAAYFAlUdnpkACgkQkKaRLQcq0GKVwACglc/+VYafuHqaQv9gwzwY869K -TSsAoIBn/yeLuUpKRTk2IRbhzqBzPsOj -=/qV2 +iQIcBAEBCAAGBQJVJubOAAoJEJOE+m71LUu6lpoP/2W3UNojKnnGxJ91lmxKJGeh +HDAQslEE1w40qMKzhqD2arq7ts7NaQNvYqeklv4d+V0KkFvFkfnIGimcN0MfiC9R +uYdZbstz4FeYkfkrH3K4MBONo/6zPgvrcT9WAQVfJvYGJMhurmrF3HeTjXH7rhmQ +9Adk7MW3mwCnaXkhrt5+LKzuScTct/qXM2nZftK+YKI3r2SMa4fzxU/oK+u7Yu0R +p0sgzOebaPOEhdmgTVGoaHgj4u9fVz8dZH8pyxcfRaa6rmv5IiYkWWZNK9O9J38X +oBZ7sSJvdi3wTyeyfcifljKmFnes1HjzAp4G30pjN97dYCtbAKxglREWejB+WcgS +jrqgfTdjG19ivSoxtmn/gLK2xqMp9ZQM3QhECgh7E8aBJU2bDzAf4dEsbhbneYhR +yoNUTqSF4uJYjZKDvgExV5ItOnO5Gf61m8b5a3Gef6xT1C5Pos7FZbOTaNg2sUKK +QMrtyyEN3QIM0dh+gbJDXHCq6tqBY96sePZIiChuazVn+wECpT3jIuP/s1r+u+f0 +nxgu1h5tzeYXXjXMx4ruN+p3wmDw7zhG0gLGNmH0ADqeVRboB+EmDs2gbVw7sop7 +CGKIOBGHnrtayXI5S0alcRYKu42DKn8KUNxVpvs271wXJygszqJ/oxjh4rWrGyr4 +NG747vwyvGvGasO5GKxb +=P1pM -----END PGP SIGNATURE----- diff --git a/app-admin/sudo/sudo-9999.ebuild b/app-admin/sudo/sudo-9999.ebuild new file mode 100644 index 000000000000..73fa0c1afddd --- /dev/null +++ b/app-admin/sudo/sudo-9999.ebuild @@ -0,0 +1,202 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/sudo-9999.ebuild,v 1.1 2015/04/09 20:51:23 blueness Exp $ + +EAPI=5 + +inherit eutils pam multilib libtool +if [[ ${PV} == "9999" ]] ; then + EHG_REPO_URI="http://www.sudo.ws/repos/sudo" + inherit mercurial +fi + +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/" +if [[ ${PV} != "9999" ]] ; then + 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" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~sparc-solaris" +fi + +# Basic license is ISC-style as-is, some files are released under +# 3-clause BSD license +LICENSE="ISC BSD" +SLOT="0" +IUSE="ldap nls pam offensive selinux skey +sendmail" + +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 + sendmail? ( 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) \ + $(use_with sendmail) \ + --without-opie \ + --without-linux-audit \ + --with-rundir="${EPREFIX}"/var/run/sudo \ + --with-vardir="${EPREFIX}"/var/db/sudo \ + --with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} +} + +src_install() { + default + + 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 + + # Don't install into /var/run as that is a tmpfs most of the time + # (bug #504854) + rm -rf "${D}"/var/run +} + +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." +} |