summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTavis Ormandy <taviso@gentoo.org>2004-11-13 09:44:29 +0000
committerTavis Ormandy <taviso@gentoo.org>2004-11-13 09:44:29 +0000
commitaa0dade1a4186d30e5f1e72a0809dd222bf2e988 (patch)
tree6a91a530ca8e0a0b02260692e0a3832b24c62715 /app-admin/sudo/sudo-1.6.8_p2.ebuild
parentcommit patch (diff)
downloadhistorical-aa0dade1a4186d30e5f1e72a0809dd222bf2e988.tar.gz
historical-aa0dade1a4186d30e5f1e72a0809dd222bf2e988.tar.bz2
historical-aa0dade1a4186d30e5f1e72a0809dd222bf2e988.zip
new version
Diffstat (limited to 'app-admin/sudo/sudo-1.6.8_p2.ebuild')
-rw-r--r--app-admin/sudo/sudo-1.6.8_p2.ebuild63
1 files changed, 63 insertions, 0 deletions
diff --git a/app-admin/sudo/sudo-1.6.8_p2.ebuild b/app-admin/sudo/sudo-1.6.8_p2.ebuild
new file mode 100644
index 000000000000..f389dbae74bb
--- /dev/null
+++ b/app-admin/sudo/sudo-1.6.8_p2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/sudo/sudo-1.6.8_p2.ebuild,v 1.1 2004/11/13 09:44:29 taviso Exp $
+
+inherit gnuconfig eutils
+
+#
+# TODO: Fix support for krb4 and krb5
+#
+
+DESCRIPTION="Allows certain users/groups to run commands as root"
+HOMEPAGE="http://www.sudo.ws/"
+SRC_URI="ftp://ftp.sudo.ws/pub/sudo/${P/_/}.tar.gz"
+
+LICENSE="Sudo"
+SLOT="0"
+KEYWORDS="-*"
+#KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64 ~s390 ~ppc64"
+IUSE="pam skey"
+
+DEPEND="pam? ( >=sys-libs/pam-0.73-r1 )
+ skey? ( >=app-admin/skey-1.1.5-r1 )"
+
+S=${WORKDIR}/${P/_/}
+
+src_unpack() {
+ unpack ${A} ; cd ${S}
+ gnuconfig_update
+
+ epatch ${FILESDIR}/${PN}-1.6.8_p1-suid_fix.patch
+ use skey && epatch ${FILESDIR}/${PN}-skeychallengeargs.diff
+}
+
+src_compile() {
+ econf \
+ --with-all-insults \
+ --disable-path-info \
+ --with-env-editor \
+ `use_with pam` \
+ `use_with skey` \
+ || die "econf failed"
+ emake || die
+}
+
+src_install() {
+ einstall || die
+ dodoc BUGS CHANGES HISTORY PORTING README RUNSON TODO \
+ TROUBLESHOOTING UPGRADE sample.*
+ insinto /etc/pam.d
+ doins ${FILESDIR}/sudo
+
+ insinto /etc
+ doins ${FILESDIR}/sudoers
+ fperms 0440 /etc/sudoers
+}
+
+pkg_postinst() {
+ use skey && use pam && {
+ ewarn "sudo will not use skey authentication when compiled with"
+ ewarn "pam support. to allow users to authenticate with one time"
+ ewarn "passwords, you should unset the pam USE flag for sudo."
+ }
+}