source: XSL/blfs-tool.xsl@ e2dfa2c

experimental
Last change on this file since e2dfa2c was 3470bea, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Updated blfs-tool-deps download code.

  • Property mode set to 100644
File size: 12.8 KB
Line 
1<?xml version="1.0"?>
2
3<!-- $Id$ -->
4
5<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6 xmlns:exsl="http://exslt.org/common"
7 extension-element-prefixes="exsl"
8 version="1.0">
9
10
11 <!-- Create blfs-tool dependencies scripts -->
12 <xsl:template name="blfs-tool">
13 <!-- Fixed directory and ch_order values -->
14 <xsl:variable name="basedir">blfs-tool-deps/30_</xsl:variable>
15
16 <!-- libxml2 -->
17 <exsl:document href="{$basedir}01-libxml2" method="text">
18 <xsl:call-template name="header"/>
19 <xsl:text>
20PKG_PHASE=libxml2
21PACKAGE=libxml2
22VERSION=2.6.29
23TARBALL=libxml2-2.6.29.tar.gz
24DOWNLOAD=ftp://xmlsoft.org/libxml2/libxml2-2.6.29.tar.gz
25MD5SUM=8b99b6e8b08e838438d9e6b639d79ebd
26 </xsl:text>
27 <xsl:call-template name="disk_usage"/>
28 <xsl:call-template name="unpack"/>
29 <xsl:text>
30cd $PKGDIR
31./configure --prefix=/usr
32make
33make install
34 </xsl:text>
35 <xsl:call-template name="disk_usage"/>
36 <xsl:call-template name="clean_sources"/>
37 <xsl:call-template name="footer"/>
38 </exsl:document>
39
40 <!-- libxslt -->
41 <exsl:document href="{$basedir}02-libxslt" method="text">
42 <xsl:call-template name="header"/>
43 <xsl:text>
44PKG_PHASE=libxslt
45PACKAGE=libxslt
46VERSION=1.1.21
47TARBALL=libxslt-1.1.21.tar.gz
48DOWNLOAD=ftp://xmlsoft.org/libxslt/libxslt-1.1.21.tar.gz
49MD5SUM=59fe34e85692f71df2a38c2ee291b3ca
50 </xsl:text>
51 <xsl:call-template name="disk_usage"/>
52 <xsl:call-template name="unpack"/>
53 <xsl:text>
54cd $PKGDIR
55./configure --prefix=/usr
56make
57make install
58 </xsl:text>
59 <xsl:call-template name="disk_usage"/>
60 <xsl:call-template name="clean_sources"/>
61 <xsl:call-template name="footer"/>
62 </exsl:document>
63
64 <!-- tidy -->
65 <exsl:document href="{$basedir}03-tidy" method="text">
66 <xsl:call-template name="header"/>
67 <xsl:text>
68PKG_PHASE=html-tidy
69PACKAGE=tidy
70VERSION=cvs_20070326
71TARBALL=tidy-cvs_20070326.tar.bz2
72DOWNLOAD=http://anduin.linuxfromscratch.org/files/BLFS/sources/tidy-cvs_20070326
73MD5SUM=468bfaa5cf917a8ecbe7834c13a61376
74 </xsl:text>
75 <xsl:call-template name="disk_usage"/>
76 <xsl:call-template name="unpack"/>
77 <xsl:text>
78cd $PKGDIR
79./configure --prefix=/usr
80make
81make install
82make -C htmldoc install_apidocs
83 </xsl:text>
84 <xsl:call-template name="disk_usage"/>
85 <xsl:call-template name="clean_sources"/>
86 <xsl:call-template name="footer"/>
87 </exsl:document>
88
89 <!-- unzip -->
90 <exsl:document href="{$basedir}04-unzip" method="text">
91 <xsl:call-template name="header"/>
92 <xsl:text>
93PKG_PHASE=unzip
94PACKAGE=unzip
95VERSION=552
96TARBALL=unzip552.tar.gz
97DOWNLOAD=http://downloads.sourceforge.net/infozip/unzip552.tar.gz
98MD5SUM=9d23919999d6eac9217d1f41472034a9
99
100PATCH="http://www.linuxfromscratch.org/patches/blfs/svn/unzip-5.52-security_fix-1.patch 00ebf64fdda2ad54ddfc619f85f328bb"
101 </xsl:text>
102 <xsl:call-template name="disk_usage"/>
103 <xsl:call-template name="unpack"/>
104 <xsl:text>
105cd $PKGDIR
106patch -Np1 -i ../unzip-5.52-security_fix-1.patch
107make -f unix/Makefile LOCAL_UNZIP=-D_FILE_OFFSET_BITS=64 linux
108make prefix=/usr install
109 </xsl:text>
110 <xsl:call-template name="disk_usage"/>
111 <xsl:call-template name="clean_sources"/>
112 <xsl:call-template name="footer"/>
113 </exsl:document>
114
115 <!-- DocBook XML DTD -->
116 <exsl:document href="{$basedir}05-docbook-xml" method="text">
117 <xsl:call-template name="header"/>
118 <xsl:text>
119PKG_PHASE=DocBook
120PACKAGE=docbook-xml
121VERSION=4.5
122TARBALL=docbook-xml-4.5.zip
123DOWNLOAD=http://www.docbook.org/xml/4.5/docbook-xml-4.5.zip
124MD5SUM=03083e288e87a7e829e437358da7ef9e
125 </xsl:text>
126 <xsl:call-template name="disk_usage"/>
127 <xsl:text>
128cd /sources
129mkdir docbook-xml
130cd docbook-xml
131unzip ../docbook-xml-4.5.zip
132SECONDS=0
133install -v -d -m755 /usr/share/xml/docbook/xml-dtd-4.5
134install -v -d -m755 /etc/xml
135chown -R root:root .
136cp -v -af docbook.cat *.dtd ent/ *.mod \
137 /usr/share/xml/docbook/xml-dtd-4.5
138if [ ! -e /etc/xml/docbook ]; then
139 xmlcatalog --noout --create /etc/xml/docbook
140fi
141xmlcatalog --noout --add "public" \
142 "-//OASIS//DTD DocBook XML V4.5//EN" \
143 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
144 /etc/xml/docbook
145xmlcatalog --noout --add "public" \
146 "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
147 "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
148 /etc/xml/docbook
149xmlcatalog --noout --add "public" \
150 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
151 "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
152 /etc/xml/docbook
153xmlcatalog --noout --add "public" \
154 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
155 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
156 /etc/xml/docbook
157xmlcatalog --noout --add "public" \
158 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
159 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
160 /etc/xml/docbook
161xmlcatalog --noout --add "public" \
162 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
163 "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
164 /etc/xml/docbook
165xmlcatalog --noout --add "public" \
166 "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
167 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
168 /etc/xml/docbook
169xmlcatalog --noout --add "public" \
170 "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \
171 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
172 /etc/xml/docbook
173xmlcatalog --noout --add "public" \
174 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
175 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
176 /etc/xml/docbook
177xmlcatalog --noout --add "rewriteSystem" \
178 "http://www.oasis-open.org/docbook/xml/4.5" \
179 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
180 /etc/xml/docbook
181xmlcatalog --noout --add "rewriteURI" \
182 "http://www.oasis-open.org/docbook/xml/4.5" \
183 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
184 /etc/xml/docbook
185if [ ! -e /etc/xml/catalog ]; then
186 xmlcatalog --noout --create /etc/xml/catalog
187fi
188xmlcatalog --noout --add "delegatePublic" \
189 "-//OASIS//ENTITIES DocBook XML" \
190 "file:///etc/xml/docbook" \
191 /etc/xml/catalog
192xmlcatalog --noout --add "delegatePublic" \
193 "-//OASIS//DTD DocBook XML" \
194 "file:///etc/xml/docbook" \
195 /etc/xml/catalog
196xmlcatalog --noout --add "delegateSystem" \
197 "http://www.oasis-open.org/docbook/" \
198 "file:///etc/xml/docbook" \
199 /etc/xml/catalog
200xmlcatalog --noout --add "delegateURI" \
201 "http://www.oasis-open.org/docbook/" \
202 "file:///etc/xml/docbook" \
203 /etc/xml/catalog
204for DTDVERSION in 4.1.2 4.2 4.3 4.4
205do
206 xmlcatalog --noout --add "public" \
207 "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \
208 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \
209 /etc/xml/docbook
210 xmlcatalog --noout --add "rewriteSystem" \
211 "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
212 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
213 /etc/xml/docbook
214 xmlcatalog --noout --add "rewriteURI" \
215 "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
216 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
217 /etc/xml/docbook
218 xmlcatalog --noout --add "delegateSystem" \
219 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
220 "file:///etc/xml/docbook" \
221 /etc/xml/catalog
222 xmlcatalog --noout --add "delegateURI" \
223 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
224 "file:///etc/xml/docbook" \
225 /etc/xml/catalog
226done
227 </xsl:text>
228 <xsl:call-template name="disk_usage"/>
229 <xsl:text>
230SECS=$SECONDS
231cd /sources
232rm -rf docbook-xml
233SECONDS=$SECS
234 </xsl:text>
235 <xsl:call-template name="footer"/>
236 </exsl:document>
237
238 <!-- DocBook XSL (empty and commented-out, it's not required for now) -->
239 <!--<exsl:document href="{$basedir}06-docbook-xsl" method="text">
240 <xsl:call-template name="header"/>
241 <xsl:text>
242PKG_PHASE=docbook-xsl
243PACKAGE=docbook-xsl
244VERSION=
245TARBALL=
246DOWNLOAD=
247MD5SUM=
248 </xsl:text>
249 <xsl:call-template name="disk_usage"/>
250 <xsl:call-template name="unpack"/>
251 <xsl:text>
252cd $PKGDIR
253 </xsl:text>
254 <xsl:call-template name="disk_usage"/>
255 <xsl:call-template name="clean_sources"/>
256 <xsl:call-template name="footer"/>
257 </exsl:document>-->
258
259 <!-- gpm -->
260 <exsl:document href="{$basedir}07-gpm" method="text">
261 <xsl:call-template name="header"/>
262 <xsl:text>
263PKG_PHASE=gpm
264PACKAGE=gpm
265VERSION=1.20.1
266TARBALL=gpm-1.20.1.tar.bz2
267DOWNLOAD=ftp://ftp.linux.ee/pub/gentoo/distfiles/distfiles/gpm-1.20.1.tar.bz2
268MD5SUM=2c63e827d755527950d9d13fe3d87692
269
270PATCH="http://www.linuxfromscratch.org/patches/blfs/svn/gpm-1.20.1-segfault-1.patch 8c88f92990ba7613014fcd1db14ca7ac"
271PATCH="http://www.linuxfromscratch.org/patches/blfs/svn/gpm-1.20.1-silent-1.patch bf6cbefe20c6f15b587f19ebc1c8a37a"
272 </xsl:text>
273 <xsl:call-template name="disk_usage"/>
274 <xsl:call-template name="unpack"/>
275 <xsl:text>
276cd $PKGDIR
277patch -Np1 -i ../gpm-1.20.1-segfault-1.patch
278patch -Np1 -i ../gpm-1.20.1-silent-1.patch
279./configure --prefix=/usr --sysconfdir=/etc
280LDFLAGS="$LDFLAGS -lm" make
281make install
282cp -v conf/gpm-root.conf /etc
283ldconfig
284 </xsl:text>
285 <xsl:call-template name="disk_usage"/>
286 <xsl:call-template name="clean_sources"/>
287 <xsl:call-template name="footer"/>
288 </exsl:document>
289
290 <!-- lynx -->
291 <exsl:document href="{$basedir}08-lynx" method="text">
292 <xsl:call-template name="header"/>
293 <xsl:text>
294PKG_PHASE=lynx
295PACKAGE=lynx
296VERSION=2.8.6
297TARBALL=lynx2.8.6.tar.bz2
298DOWNLOAD=http://lynx.isc.org/release/lynx2.8.6.tar.bz2
299MD5SUM=dc80497b7dda6a28fd80404684d27548
300 </xsl:text>
301 <xsl:call-template name="disk_usage"/>
302 <xsl:call-template name="unpack"/>
303 <xsl:text>
304cd $PKGDIR
305./configure --prefix=/usr \
306 --sysconfdir=/etc/lynx \
307 --datadir=/usr/share/doc/lynx-2.8.6 \
308 --with-zlib \
309 --with-bzlib \
310 --with-screen=ncursesw \
311 --enable-locale-charset
312make
313make install-full
314chgrp -v -R root /usr/share/doc/lynx-2.8.6/lynx_doc
315 </xsl:text>
316 <xsl:call-template name="disk_usage"/>
317 <xsl:call-template name="clean_sources"/>
318 <xsl:call-template name="footer"/>
319 </exsl:document>
320
321 <!-- sudo -->
322 <exsl:document href="{$basedir}09-sudo" method="text">
323 <xsl:call-template name="header"/>
324 <xsl:text>
325PKG_PHASE=sudo
326PACKAGE=sudo
327VERSION=1.6.8p12
328TARBALL=sudo-1.6.8p12.tar.gz
329DOWNLOAD=http://anduin.linuxfromscratch.org/sources/BLFS/svn/s/sudo-1.6.8p12.tar.gz
330MD5SUM=b29893c06192df6230dd5f340f3badf5
331
332PATCH="http://www.linuxfromscratch.org/patches/blfs/svn/sudo-1.6.8p12-envvar_fix-1.patch 454925aedfe054dff8fe0d03b209f986"
333 </xsl:text>
334 <xsl:call-template name="disk_usage"/>
335 <xsl:call-template name="unpack"/>
336 <xsl:text>
337cd $PKGDIR
338patch -Np1 -i ../sudo-1.6.8p12-envvar_fix-1.patch
339./configure --prefix=/usr --libexecdir=/usr/lib \
340 --enable-noargs-shell --with-ignore-dot --with-all-insults \
341 --enable-shell-sets-home
342make
343make install
344 </xsl:text>
345 <xsl:call-template name="disk_usage"/>
346 <xsl:call-template name="clean_sources"/>
347 <xsl:call-template name="footer"/>
348 </exsl:document>
349
350 <!-- wget -->
351 <exsl:document href="{$basedir}10-wget" method="text">
352 <xsl:call-template name="header"/>
353 <xsl:text>
354PKG_PHASE=wget
355PACKAGE=wget
356VERSION=1.10.2
357TARBALL=wget-1.10.2.tar.gz
358DOWNLOAD=ftp://ftp.gnu.org/gnu/wget/wget-1.10.2.tar.gz
359MD5SUM=795fefbb7099f93e2d346b026785c4b8
360 </xsl:text>
361 <xsl:call-template name="disk_usage"/>
362 <xsl:call-template name="unpack"/>
363 <xsl:text>
364cd $PKGDIR
365./configure --prefix=/usr --sysconfdir=/etc
366make
367make install
368 </xsl:text>
369 <xsl:call-template name="disk_usage"/>
370 <xsl:call-template name="clean_sources"/>
371 <xsl:call-template name="footer"/>
372 </exsl:document>
373
374 <!-- subversion -->
375 <exsl:document href="{$basedir}11-subversion" method="text">
376 <xsl:call-template name="header"/>
377 <xsl:text>
378PKG_PHASE=subversion
379PACKAGE=subversion
380VERSION=1.3.1
381TARBALL=subversion-1.3.1.tar.bz2
382DOWNLOAD=http://subversion.tigris.org/tarballs/subversion-1.3.1.tar.bz2
383MD5SUM=07b95963968ae345541ca99d0e7bf082
384 </xsl:text>
385 <xsl:call-template name="disk_usage"/>
386 <xsl:call-template name="unpack"/>
387 <xsl:text>
388cd $PKGDIR
389./configure --prefix=/usr \
390 --without-berkeley-db \
391 --with-installbuilddir=/usr/lib/apr-0
392make
393make install
394rm doc/{Makefile,doxygen.conf}
395find doc -type d -exec chmod 755 {} \;
396find doc -type f -exec chmod 644 {} \;
397install -v -m755 -d /usr/share/doc/subversion-1.3.1
398cp -v -R doc/* /usr/share/doc/subversion-1.3.1
399 </xsl:text>
400 <xsl:call-template name="disk_usage"/>
401 <xsl:call-template name="clean_sources"/>
402 <xsl:call-template name="footer"/>
403 </exsl:document>
404 </xsl:template>
405
406</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.