summaryrefslogtreecommitdiff
blob: 54925dbac5388dfe79dee4d5e1211f3d2257df88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright 1999-2001 Gentoo Technologies, Inc. Distributed under the terms
# of the GNU General Public License, v2 or later 
# Author Daniel Robbins <drobbins@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/app-doc/gentoo-web/gentoo-web-2.0.ebuild,v 1.5 2001/10/06 17:22:51 azarah Exp $
 
S=${WORKDIR}/${P}
DESCRIPTION="www.gentoo.org website"
SRC_URI=""
HOMEPAGE="http://www.gentoo.org"
RDEPEND="sys-devel/python dev-libs/libxslt net-www/apache"

src_unpack() {
	if [ "$MAINTAINER" != "yes" ]
	then
		echo "This will zap stuff in /usr/local/httpd/htdocs."
		echo "Beware -- maintainers only."
	fi
}

src_install() {
	dodir /usr/local/httpd/htdocs/doc
	dodir /usr/local/httpd/htdocs/projects
	insinto /usr/local/httpd/htdocs/doc
	cd ${FILESDIR}
	local x
	for x in install xml-guide portage-user gentoo-howto faq nvidia_tsg
	do
		xsltproc xsl/guide.xsl xml/${x}.xml > ${D}/usr/local/httpd/htdocs/doc/${x}.html
		chmod 0644 ${D}/usr/local/httpd/htdocs/doc/${x}.html
	done
	doins css/gentoo-doc.css images/gentoo-doc.gif images/install*.gif
	
	#dynamic firewalls tools page
	xsltproc xsl/guide.xsl xml/dynfw.xml > ${D}/usr/local/httpd/htdocs/projects/dynfw.html	
	chmod 0644 ${D}/usr/local/httpd/htdocs/projects/dynfw.html
	
	insinto /usr/local/httpd/htdocs/projects
	doins dynfw-1.0/dynfw-1.0.tar.gz css/gentoo-doc.css images/gentoo-doc.gif

	insinto /usr/local/httpd/htdocs
	doins html/index*.html
	doins css/gentoo-new.css
	cd images
	doins zn* 1x1.gif gmid.gif gtop.jpg favicon.ico
	cd ..
	#exeinto /usr/sbin
	#doexe bin/update-web
	#exeinto /usr/bin
	#doexe bin/pytext
}
	
#pkg_postinst() {
	# This doesn't work, appears to be a path/env-update issue
	#/usr/sbin/update-web
#}