--- /usr/portage/net-misc/dropbear/dropbear-0.48.1.ebuild 2006-06-07 23:07:12.000000000 +1000 +++ portage_overlay/net-misc/dropbear/dropbear-0.48.1.ebuild 2006-12-15 13:56:45.000000000 +1100 @@ -12,7 +12,7 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -IUSE="minimal multicall pam static zlib" +IUSE="minimal multicall pam static zlib savedconfig" RDEPEND="zlib? ( sys-libs/zlib ) pam? ( sys-libs/pam )" @@ -38,6 +38,19 @@ cd "${S}" epatch "${FILESDIR}"/dropbear-0.45-urandom.patch epatch "${FILESDIR}"/dropbear-0.46-dbscp.patch + # Allow users some custom control over the config + if use savedconfig ; then + for conf in ${PN}-${PV}-${PR} ${PN}-${PV} ${PN}; do + configfile=/etc/portage/savedconfig/${conf}.h + einfo "Checking existence of ${configfile} ..." + if [[ -r ${configfile} ]] ; then + cp "${configfile}" "${S}"/options.h + einfo "Found your ${configfile} and using it." + einfo "Note that this feature is *totally unsupported*." + break + fi + done + fi } src_compile() {