--- sudo-1.6.9_p14.ebuild 2008-03-17 16:35:26.000000000 +0100 +++ sudo-1.6.9_p14-r1.ebuild 2008-04-06 19:43:42.538174000 +0200 @@ -10,7 +10,7 @@ LICENSE="Sudo" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc64 ~sparc ~x86" -IUSE="pam skey offensive ldap selinux" +IUSE="pam skey offensive ldap selinux rootfs" DEPEND="pam? ( virtual/pam ) ldap? ( >=net-nds/openldap-2.1.30-r1 ) @@ -106,7 +106,14 @@ # XXX: --disable-path-info closes an info leak, but may be confusing. # XXX: /bin/vi may not be available, make nano visudo's default. - econf --with-secure-path="${ROOTPATH}" \ + + local myconf="" + if use rootfs ; then + myconf="${myconf} --bindir=/bin --sbindir=/sbin" + fi + + econf ${myconf} \ + --with-secure-path="${ROOTPATH}" \ --with-editor=/bin/nano \ --with-env-editor \ $(use_with offensive insults) \