Ecopied, but a bit tricky... 2 patches coming. Portage 2.2.00.9133-prefix (default-prefix/darwin/macos/10.5/x86, gcc-4.0.1, unavailable, 9.1.0 i386) ================================================================= System uname: 9.1.0 i386 i386 Timestamp of tree: Wed, 02 Jan 2008 08:19:00 +0000 distcc 2.18.5-Apple.1 powerpc-apple-darwin9.0 (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 3.2_p17-r1 dev-lang/python: 2.5.1-r4 sys-devel/autoconf: 2.61-r01.1 sys-devel/automake: 1.10 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 ACCEPT_KEYWORDS="x86-macos ~x86 ~x86-macos" CBUILD="i686-apple-darwin9" CFLAGS="-O2 -pipe -fomit-frame-pointer -march=prescott" CHOST="i686-apple-darwin9" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=prescott" DISTDIR="/opt/gentoo/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--deep" EPREFIX="/opt/gentoo" FEATURES="collision-protect distlocks metadata-transfer nostrip preserve-libs sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" MAKEOPTS="-j3" PKGDIR="/opt/gentoo/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/opt/gentoo/var/tmp" PORTDIR="/opt/gentoo/usr/portage" SYNC="svn+http://overlays.gentoo.org/svn/proj/alt/trunk/prefix-overlay" USE="aqua bash-completion coreaudio cracklib midi mmx mmxext ncurses objc objc++ pcre perl prefix python readline sse sse2 ssl x86-macos zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 139855 [details, diff] Changes the default path for nikto.conf to be EPREFIX'd. Just a one liner, I think it should work fine for all cases.
Created attachment 139856 [details, diff] Workaround for not being able to figure out how to EPREFIX the paths in nikto.conf. I can write a script to find out what someone's EPREFIX is and have it modify the conf file properly at install time, but I'm not sure if there's a nice way to run that script with portage (I would imagine so, but I didn't want to assume). So what I did instead (making the paths relative) seems like it would work just as well.
two things: 1) please use `diff -u` 2) look inside the ebuild, you could have patched the EPREFIX in there, it is already sedded. (and the prefix needs to be added in two other places as well)
added required patches (did you try to run it at all?). Thanks
(In reply to comment #4) > added required patches (did you try to run it at all?). > > Thanks > Yep. It works. Hadn't thought of the ebuild thing. Will check (and use) next time. (Sorry, still learning all this.)