From 51a8193735d6970cc94d2041cbcf54b8aa0650ea Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Mon, 15 Apr 2013 21:58:12 +0000 Subject: Version bump and remove old. Package-Manager: portage-2.2.0_alpha170/cvs/Linux x86_64 Manifest-Sign-Key: 0x1CD13C8AD4301342 --- app-admin/sudo/ChangeLog | 8 +- app-admin/sudo/Manifest | 28 +++--- app-admin/sudo/sudo-1.8.6_p3.ebuild | 190 ------------------------------------ app-admin/sudo/sudo-1.8.6_p8.ebuild | 190 ++++++++++++++++++++++++++++++++++++ 4 files changed, 208 insertions(+), 208 deletions(-) delete mode 100644 app-admin/sudo/sudo-1.8.6_p3.ebuild create mode 100644 app-admin/sudo/sudo-1.8.6_p8.ebuild (limited to 'app-admin/sudo') diff --git a/app-admin/sudo/ChangeLog b/app-admin/sudo/ChangeLog index f8b8272a2c5c..5618b172a44a 100644 --- a/app-admin/sudo/ChangeLog +++ b/app-admin/sudo/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-admin/sudo # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/ChangeLog,v 1.353 2013/04/14 11:49:56 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/ChangeLog,v 1.354 2013/04/15 21:57:23 flameeyes Exp $ + +*sudo-1.8.6_p8 (15 Apr 2013) + + 15 Apr 2013; Diego E. Pettenò +sudo-1.8.6_p8.ebuild, + -sudo-1.8.6_p3.ebuild: + Version bump and remove old. 14 Apr 2013; Agostino Sarubbo sudo-1.8.6_p7.ebuild: Stable for sh, wrt bug #459722 diff --git a/app-admin/sudo/Manifest b/app-admin/sudo/Manifest index 9ea82b14f586..8d7d607c155c 100644 --- a/app-admin/sudo/Manifest +++ b/app-admin/sudo/Manifest @@ -1,28 +1,22 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 +Hash: SHA256 DIST sudo-1.8.5p2.tar.gz 1746344 SHA256 c32ae2bc3faf83444c82ca75ccb10ad3684d8222e3535f164c4a4db7cdddf8cf SHA512 616967eea79f91cda2b0cd1d13ed453d20142521ecfca289432bdf5708ac0549c7873fd80170cc0481390e82f1e60fb0bffcfc7c6b70d5d721aa98d23361c5cb WHIRLPOOL ac0d2c040935c54947571a0d4671be70aaaf7a6f69cb097acd321718656d4c569b0db4191eaf943c6b642a1d641263429287241a236a0f2a0c9edf973710bf8b -DIST sudo-1.8.6p3.tar.gz 1854962 SHA256 8130df04268f678880c3f423337c56e7d437a0f508a46b1dfefae16b0b20c92e SHA512 239cd838afba3aa9c7123d19017e997a332e6434b744bdac1cfbdf911595b642c2b7b635761e15c4835dfa15058df7d0e003892a501288bd793c4d676f746051 WHIRLPOOL a109beab4f9709fc00fe8050468a30e73de971db0e8c2bc4d4cdf82fdbcd8e47ed939b34dc675dc700e59c12a412af203ed75b71649157d2df48af3b51c08f10 DIST sudo-1.8.6p7.tar.gz 1858348 SHA256 301089edb22356f59d097f6abbe1303f03927a38691b02959d618546c2125036 SHA512 732bcbd53b77d329bbc77d3cd3644a595e938433053122fe3098385c0ad3a6a9cf4f4ab8709c7a79cad51dba77ffaa1be9ffde8e8834d3798822a1bd5b518d42 WHIRLPOOL 875984b44b571dc3765aab5ad8bd8859d0cd680e7da453109b5bee45aac336e3d0c05e1133ce0101a6dd2b9f19a26454d3e0b11c0edf32034f9fae04d3dfbb4d +DIST sudo-1.8.6p8.tar.gz 1858612 SHA256 c0baaa87f59153967b650a0dde2f7d4147d358fa15f3fdabb47e84d0282fe625 SHA512 9c9d297e8cba4ae74a1358b23da15beea4649684afa09b3c3486bd25454008b4c7cd543266f8abc22aac48a56912d7174ccfc137a69670e737d6c9939708cb80 WHIRLPOOL f19c882a2b3de4f41ee97b1f26ebe284782c82500dfc2f86edd262b3ec9f10a2fb3c8b20f26cd1587910677b169ed0260a9672db4dc7b1ea8d5d817235f6197c EBUILD sudo-1.8.5_p2.ebuild 5416 SHA256 01dacac048c71e827a8c419496651f6dfe53822879babc9fa44e78724a4357a8 SHA512 645e06c1606134f14b318ba94493cf8727400e06e3ddfe7a448fc4929a3565c0626afbc812139d9431fd8e0ec85563c0f68150b3b1cbd27c6bf82085875dfde8 WHIRLPOOL 2b408b36003e3ccb8fd5984dd411fb1d86560b48ca88e41c49417ac4bd3a9c579ec71db7d4be0328828528b8b7d54ef8bcd8ed2dc777cd89c99e97c5da3b8032 -EBUILD sudo-1.8.6_p3.ebuild 5413 SHA256 10ff7f52a9cc399513c973a862ea73e11fbbc274367290bd1b4a0be5d952397a SHA512 a48b36199bedb9ed55d1d1ac072a74812b7c8a511bb87a43021c7d01055d434baec3575727c45290566e4cf7bb9a9e704ab05f41c9be90af2e8b04dd6011b745 WHIRLPOOL 5fce39a9a2f54f4fc190947f1552f19bb59429dfc49156ccc4860ef59f3f6de740124ace50b88cd57850fde65a3e396bb658c3b63a1298d9752dda5099372337 EBUILD sudo-1.8.6_p7.ebuild 5413 SHA256 6c2a8fd2007eecf18105e8391fc02b7e78da422e7fadd2423b3915a059f1ee12 SHA512 63f52a1e60cd055c5cd77ec91ad122dc18ebc8d5e2bb1ffa43484178b6d55506804dd23da2bc0fb4d986c50c1798d13ce58aac53dc42806ef5845b92c4bf6022 WHIRLPOOL 431e4f1688cd12ea6da89fad11197539f403722677ad98266f4a990c17670cf8d1fbb826b610dc916c5de9f0d33d06a5049a58a33752631c6ad7803dc6bd0683 -MISC ChangeLog 50847 SHA256 928365d59020b8623e86d0b3436c99ccc7d832fff76e175b4b97a167c9d62d6e SHA512 a0940c98b2ee96d64698fca051cda61fe49078383d2703e9ba7a5787fbad36f8512e16023f980191b79786922f175491584b59578a08eaeba9c66a814f4d279c WHIRLPOOL b924a7b1629cb5230de13ddf3686a8f33b24bfad85e80c340b3f60c7576916055b8f4987362427915d6cc261005fff8e9093c224ec3a306c9e5c57744aac8c47 +EBUILD sudo-1.8.6_p8.ebuild 5429 SHA256 88a90fc03b90e7c41228a772609f37ec726339e11c28cd1d98a4b030090ec4f3 SHA512 479e08f350fb4c45298293c75f841918a1d16c70972d985a7f7f1faa14b2337438f5c3fd8fc47d4df5691af70323674c1347d67fe9590ea74070879f267edbe6 WHIRLPOOL b2f0922d594f3f51f5432e4c750b06535ab43f5da6ca153cfd288bc5992a0a50cffceef44b012fd7a05eead5c039a82f462e4b72f4f8aaa122395641f0418f8f +MISC ChangeLog 51019 SHA256 66eae34208fa89a48c6afae69d4c081e3bfa51cf5a1e1135d00424c955f72ff8 SHA512 c1f50cea328f4d3851145c0ee243d0d5f8e75343739988878bc98ee22d706ef02237f8b5ccc136beafcb952195c3f61c7317542c3cc3c8f60c8c3be01a13cbac WHIRLPOOL cbedd88612afbe066b69e5e1bc36f847a30a0c72a9cb14e375b774f287630054906e1f300d48414d0cd7662d0755fa51f445051e5330742fe3320ee523c8ff1d MISC metadata.xml 560 SHA256 465d0ea14b7db3ecd0bad7c175f9e17003794145f5f59c4941f848960c91048a SHA512 97bdce0d3972fd6f8ae58ddcb87c002a0384a6f6392347f5035f4f16581e665f3121d5ab5abdea1a9ec87122b10310f0ff99697de1749b418f61cc92217c58be WHIRLPOOL a7cddcabfcb73965df21adbe163117549eea126d424e065f14ab0cec76ad608a6b4506be013e2709e071e2e1d370c7c4188a8eb0aafba9f9b16266373fc29f80 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQIcBAEBCgAGBQJRapdLAAoJELp701BxlEWfPFQQAJgpA/PlMs713Q9pIIiWCIV+ -CKA0anlLylocARgdzs7OFHOJ+NdJRm2rHkOiSaZmrq8OZGdoLuuWvV8BP47hdo1i -F9yvYmaWHRgWk4nYzwFw0l/m76hiwQKURClY0OUZFZEWwN0seTWp98/Hp617fKE4 -lyo6PFt5N0DD8pBPZlzM3SxP1oJ7i3QhO42HMv5GrCLzvgs88WnMZcuhHXj57TO4 -1NfOIXz34gwCYT3kIZ35fmFy15YPs4Bnz+wvVLIN1okMUDpqmvjnFl8tdsiZvJ3g -4CyCGxJ7I3OGfiRUsjc+pq55V4T5FidrrEQOSBkR/xt7pZ9nEyuCYKaYl2i5estm -zuO3t+DjVuwJ2OMpNS3p7xfYe+B1BPU5cU9thbLU2SBwodCkD/wU8f6LuQIehYi5 -N7ebFkRXY7/3aATzu5TDiDc2uYgWX+5OQmWtMwsELjXIJnZvM4YnKguwXZbNMFd+ -P5I2nEENU82hA4jTJ9lfMf0dVUCgiFMjcvZRnGFodGn1vaw8+C2vAVD2TuddeFol -1idTchQU1V3TI6enOT4DxarmQ34jEjVAqCTJ0E5vwZWJKKHfXQhfEqfsXyy8wAxR -YtCIj5/ahZvhqDeMWkcyHLq3gW98AozEmtlSkyTQe/Y94THEJk6oqOfEgRcdL02F -ac4Mp3LoXEA37g39hE9R -=skSy +iQEcBAEBCAAGBQJRbHf0AAoJEBzRPIrUMBNC3LsIAJQH1yisLM2sj+PmDyXq9KQp +HbzJ5AQyPZvR35GI0XHBxUq9JZdNBpGjQpJaNZSBQ6ZOY5uW5ic6UNxA3xBoUqdE +Ao+nGe/rw53wfnasz/8NQ3EendZDjyOGZ2QRy2ftfjzwAcHY/JLlOfOGnO+xmxYu +y0gRiMivDzBkPAWh4mjHyXbCUVYo8bkH7ICvpyZ9+4ftxVwTx5JHqC70OVcln4mV +hXv9Fku+Q+PdhJMsLlsy8y+/8E5uodE+l/4GwSIokxLxHsnSRAO9ivl+G90G7YO1 +/bOafG9EiTcVJXq2xQwOT8x/RNfitersyEqz1QQiomCRvBKPJQ6v1xgRYroaIxw= +=b8rC -----END PGP SIGNATURE----- diff --git a/app-admin/sudo/sudo-1.8.6_p3.ebuild b/app-admin/sudo/sudo-1.8.6_p3.ebuild deleted file mode 100644 index 00ab999b6961..000000000000 --- a/app-admin/sudo/sudo-1.8.6_p3.ebuild +++ /dev/null @@ -1,190 +0,0 @@ -# Copyright 1999-2013 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_p3.ebuild,v 1.14 2013/02/24 18:11:43 ago 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="ISC 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() { - 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 -} - -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." -} diff --git a/app-admin/sudo/sudo-1.8.6_p8.ebuild b/app-admin/sudo/sudo-1.8.6_p8.ebuild new file mode 100644 index 000000000000..53d4fb752804 --- /dev/null +++ b/app-admin/sudo/sudo-1.8.6_p8.ebuild @@ -0,0 +1,190 @@ +# Copyright 1999-2013 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_p8.ebuild,v 1.1 2013/04/15 21:57:23 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="ISC 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() { + 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 +} + +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." +} -- cgit v1.2.3-65-gdbad