blob: 43a637086b53f6a10e36a69af6180566da200f95 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# 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.1.ebuild,v 1.7 2001/10/06 17:22:51 azarah Exp $
S=${WORKDIR}/${P}
DESCRIPTION="www.gentoo.org website"
SRC_URI="http://www.red-bean.com/cvs2cl/cvs2cl.pl"
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-main.xsl xml/${x}.xml > ${D}/usr/local/httpd/htdocs/doc/${x}.html
done
dodir /usr/local/httpd/htdocs/images
insinto /usr/local/httpd/htdocs/images
cd ${FILESDIR}/images
doins gtop-new.jpg gbot-new.gif gridtest.gif gentoo-new.gif install*.gif
insinto /usr/local/httpd/htdocs
doins favicon.ico
#dynamic firewalls tools page
cd ${FILESDIR}
xsltproc xsl/guide-main.xsl xml/dynfw.xml > ${D}/usr/local/httpd/htdocs/projects/dynfw.html
xsltproc xsl/guide-main.xsl xml/project-xml.xml > ${D}/usr/local/httpd/htdocs/projects/xml.html
insinto /usr/local/httpd/htdocs/projects
doins dynfw-1.0/dynfw-1.0.tar.gz
cd ..
tar czvf ${D}/usr/local/httpd/htdocs/projects/guide-xml-latest.tar.gz files
cd ${FILESDIR}
insinto /usr/local/httpd/htdocs
xsltproc xsl/guide-main.xsl xml/main-about.xml > ${D}/usr/local/httpd/htdocs/index.html
xsltproc xsl/guide-main.xsl xml/main-download.xml > ${D}/usr/local/httpd/htdocs/index-download.html
xsltproc xsl/guide-main.xsl xml/main-projects.xml > ${D}/usr/local/httpd/htdocs/index-projects.html
doins css/main-new.css
#install XSL for later use
dodir /usr/local/httpd/htdocs/xsl
insinto /usr/local/httpd/htdocs/xsl
cd ${FILESDIR}/xsl
doins cvs.xsl guide-main.xsl
#install snddevices script
dodir /usr/local/httpd/htdocs/scripts
insinto /usr/local/httpd/htdocs/scripts
cd ${FILESDIR}/scripts
doins snddevices
cd ${D}
chmod -R g+rw,o+r *
chown -R root.root *
dobin ${DISTDIR}/cvs2cl.pl
dosbin ${FILESDIR}/bin/cvslog.sh
}
#pkg_postinst() {
# This doesn't work, appears to be a path/env-update issue
#/usr/sbin/update-web
#}
|