/[gentoo-x86]/app-doc/gentoo-web/gentoo-web-2.1.ebuild
Gentoo

Contents of /app-doc/gentoo-web/gentoo-web-2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri Dec 7 21:02:22 2001 UTC (13 years ago) by drobbins
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
cleanup, updates

1 # Copyright 1999-2001 Gentoo Technologies, Inc. Distributed under the terms
2 # of the GNU General Public License, v2 or later
3 # Author Daniel Robbins <drobbins@gentoo.org>
4 # $Header: /home/cvsroot/gentoo-x86/app-doc/gentoo-web/gentoo-web-2.1.ebuild,v 1.7 2001/10/06 17:22:51 azarah Exp $
5
6 S=${WORKDIR}/${P}
7 DESCRIPTION="www.gentoo.org website"
8 SRC_URI="http://www.red-bean.com/cvs2cl/cvs2cl.pl"
9 HOMEPAGE="http://www.gentoo.org"
10 RDEPEND="sys-devel/python dev-libs/libxslt net-www/apache"
11
12 src_unpack() {
13 if [ "$MAINTAINER" != "yes" ]
14 then
15 echo "This will zap stuff in /usr/local/httpd/htdocs."
16 echo "Beware -- maintainers only."
17 fi
18 }
19
20 src_install() {
21 dodir /usr/local/httpd/htdocs/doc
22 dodir /usr/local/httpd/htdocs/projects
23 insinto /usr/local/httpd/htdocs/doc
24 cd ${FILESDIR}
25 local x
26 for x in install xml-guide portage-user gentoo-howto faq nvidia_tsg
27 do
28 xsltproc xsl/guide-main.xsl xml/${x}.xml > ${D}/usr/local/httpd/htdocs/doc/${x}.html
29 done
30 dodir /usr/local/httpd/htdocs/images
31 insinto /usr/local/httpd/htdocs/images
32 cd ${FILESDIR}/images
33 doins gtop-new.jpg gbot-new.gif gridtest.gif gentoo-new.gif install*.gif
34 insinto /usr/local/httpd/htdocs
35 doins favicon.ico
36 #dynamic firewalls tools page
37 cd ${FILESDIR}
38 xsltproc xsl/guide-main.xsl xml/dynfw.xml > ${D}/usr/local/httpd/htdocs/projects/dynfw.html
39 xsltproc xsl/guide-main.xsl xml/project-xml.xml > ${D}/usr/local/httpd/htdocs/projects/xml.html
40
41 insinto /usr/local/httpd/htdocs/projects
42 doins dynfw-1.0/dynfw-1.0.tar.gz
43
44 cd ..
45 tar czvf ${D}/usr/local/httpd/htdocs/projects/guide-xml-latest.tar.gz files
46 cd ${FILESDIR}
47
48 insinto /usr/local/httpd/htdocs
49
50 xsltproc xsl/guide-main.xsl xml/main-about.xml > ${D}/usr/local/httpd/htdocs/index.html
51 xsltproc xsl/guide-main.xsl xml/main-download.xml > ${D}/usr/local/httpd/htdocs/index-download.html
52 xsltproc xsl/guide-main.xsl xml/main-projects.xml > ${D}/usr/local/httpd/htdocs/index-projects.html
53
54 doins css/main-new.css
55
56 #install XSL for later use
57 dodir /usr/local/httpd/htdocs/xsl
58 insinto /usr/local/httpd/htdocs/xsl
59 cd ${FILESDIR}/xsl
60 doins cvs.xsl guide-main.xsl
61
62 #install snddevices script
63 dodir /usr/local/httpd/htdocs/scripts
64 insinto /usr/local/httpd/htdocs/scripts
65 cd ${FILESDIR}/scripts
66 doins snddevices
67
68 cd ${D}
69 chmod -R g+rw,o+r *
70 chown -R root.root *
71
72 dobin ${DISTDIR}/cvs2cl.pl
73 dosbin ${FILESDIR}/bin/cvslog.sh
74 }
75
76 #pkg_postinst() {
77 # This doesn't work, appears to be a path/env-update issue
78 #/usr/sbin/update-web
79 #}

  ViewVC Help
Powered by ViewVC 1.1.20