Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55707 - mod_chroot-0.2 for apache 1.x ebuild
Summary: mod_chroot-0.2 for apache 1.x ebuild
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Apache Team - Bugzilla Reports
URL: http://core.segfault.pl/~hobbit/mod_c...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-06-30 12:16 UTC by crontraconstantium
Modified: 2005-04-23 20:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
the ebuild (mod_chroot-0.2.ebuild,662 bytes, text/plain)
2004-06-30 14:28 UTC, crontraconstantium
Details
mod_chroot config file (mod_chroot.conf,87 bytes, text/plain)
2004-07-10 10:56 UTC, crontraconstantium
Details
updated ebuild (mod_chroot-0.2-r2.ebuild,652 bytes, text/plain)
2004-07-10 10:58 UTC, crontraconstantium
Details
Patch for mod_chroot-0.2.ebuild. (mod_chroot-0.2.ebuild.diff,1.82 KB, patch)
2004-07-20 06:29 UTC, Minati jean michel
Details | Diff
all above files. (mod_chroot.tar.bz2,1.70 KB, application/octet-stream)
2004-07-27 06:50 UTC, Minati jean michel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crontraconstantium 2004-06-30 12:16:47 UTC
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
}
Comment 1 Chuck Short (RETIRED) gentoo-dev 2004-06-30 13:29:01 UTC
Please attach ebuild.
Comment 2 crontraconstantium 2004-06-30 14:28:49 UTC
Created attachment 34517 [details]
the ebuild
Comment 3 crontraconstantium 2004-06-30 14:30:04 UTC
Comment on attachment 34517 [details]
the ebuild

Sorry about the CR/LF, I only have access to a windows computer now :<
Comment 4 Minati jean michel 2004-07-01 06:12:44 UTC
the configuration file is missing too.can you attach it please ?
Comment 5 crontraconstantium 2004-07-05 06:58:43 UTC
Which config file? make.conf?
Comment 6 Minati jean michel 2004-07-05 07:03:00 UTC
the one used in src_install().
Comment 7 crontraconstantium 2004-07-09 06:50:32 UTC
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.
Comment 8 Minati jean michel 2004-07-09 08:18:24 UTC
the ebuild seems to works fine.when I removed the conf installation ;)
Comment 9 crontraconstantium 2004-07-10 10:56:46 UTC
Created attachment 35123 [details]
mod_chroot config file

I decided to make a (very) short config file, so here it is.
Comment 10 crontraconstantium 2004-07-10 10:58:44 UTC
Created attachment 35124 [details]
updated ebuild

I added FEATURES="nomirror" so that it won't try mirrors before trying the
SRC_URI.
Comment 11 Chuck Short (RETIRED) gentoo-dev 2004-07-14 18:14:02 UTC
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
Comment 12 crontraconstantium 2004-07-18 13:45:04 UTC
Could paste the exact text I have to put in it please?
Comment 13 Chuck Short (RETIRED) gentoo-dev 2004-07-18 15:22:30 UTC
Please add a new version as an attachment
Comment 14 Minati jean michel 2004-07-19 01:12:30 UTC
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.
Comment 15 crontraconstantium 2004-07-19 17:36:15 UTC
thanks, I have almost no time right now, and I switched my desktop from gentoo to debian because of stability issues
Comment 16 Minati jean michel 2004-07-20 06:29:53 UTC
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.
Comment 17 Minati jean michel 2004-07-27 06:50:37 UTC
Created attachment 36258 [details]
all above files.
Comment 18 Stuart Herbert (RETIRED) gentoo-dev 2004-09-14 06:26:14 UTC
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
Comment 19 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-04-23 20:06:29 UTC
Been in the tree long time, closing. :)