This is an ebuild I wrote for mod_chroot. Reproducible: Always Steps to Reproduce: 1. put ebuild in /usr/local/portage/net-www/mod_chroot/ 2. echo 'PORTDIR_OVERLAY="/usr/local/portage"' >> /etc/make.conf 3. ebuild /usr/local/portage/net-www/mod_chroot/mod_chroot-0.2.ebuild digest 4. emerge mod_chroot Actual Results: I had mod_chroot. Expected Results: see above inherit eutils DESCRIPTION="chroot apache, the easy way" HOMEPAGE="http://core.segfault.pl/~hobbit/mod_chroot/" SRC_URI="http://core.segfault.pl/~hobbit/mod_chroot/dist/mod_chroot-0.2.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="" DEPEND="=net-www/apache-1*" RDEPEND="=net-www/apache-1*" S=$WORKDIR/$P src_unpack() { unpack ${A} || die; cd ${S} || die } src_compile() { apxs -c ${S}/mod_chroot.c -o ${S}/mod_chroot.so } src_install() { exeinto /usr/lib/apache-extramodules doexe ${PN}.so insinto /etc/apache/conf/addon-modules doins ${FILESDIR}/${PN}.conf dodoc CAVEATS ChangeLog EAPI INSTALL LICENSE README }
Please attach ebuild.
Created attachment 34517 [details] the ebuild
Comment on attachment 34517 [details] the ebuild Sorry about the CR/LF, I only have access to a windows computer now :<
the configuration file is missing too.can you attach it please ?
Which config file? make.conf?
the one used in src_install().
Oops, I forgot that mod_chroot doesn't come with a conf file, and I don't know how to change an attachement, so just remove insinto /etc/apache/conf/addon-modules doins ${FILESDIR}/${PN}.conf from the ebuild.
the ebuild seems to works fine.when I removed the conf installation ;)
Created attachment 35123 [details] mod_chroot config file I decided to make a (very) short config file, so here it is.
Created attachment 35124 [details] updated ebuild I added FEATURES="nomirror" so that it won't try mirrors before trying the SRC_URI.
Before I can add this, you have to add the copyright to gentoo foundation. If you add that then I would have a problem adding it cvs. Thanks chuck
Could paste the exact text I have to put in it please?
Please add a new version as an attachment
the missing part going on top : # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ keywords should be ~x86 not x86. you may use apacheaddmod, it's a very usefull tool to install apache modules. I can patch your ebuild, if you want.
thanks, I have almost no time right now, and I switched my desktop from gentoo to debian because of stability issues
Created attachment 35810 [details, diff] Patch for mod_chroot-0.2.ebuild. This patch add the headers line. it also use apacheaddmod to install the module. there are also some minors changes like for KEYWORDS , ~x86 instead of x86. note the config file provided try to chroot apache in /var/www,this may need to be changed.
Created attachment 36258 [details] all above files.
Okay, I've added this Apache 1 module to the Portage tree as 'www-apache/mod_chroot'. It should appear on your local rsync mirror in about an hour. Please test it, and let me know how you get on. Many thanks, Stu
Been in the tree long time, closing. :)