· 11 years ago · Aug 22, 2015, 01:36 AM
1__A K10 Linux 32 Bit Compile-me (= (Good Luck) =)
2
3Hello,
4When it comes to linux this has got to be the most hardcore way to do
5it. There are no wizards and no rules but guides aplenty and endless
6possibilities. But lets cut the crap, this will take over your life and
7leave you trolled and exploited for years to come but in return you
8might learn a little bit about what makes linux great.
9
10Now this is a set of build instructions built using knoppix 7 live cd
11for the initial toolset and donation of a shell. This will need a
12internet connection and a couple of packages will need updating. I will
13try to resolve bugs and fixes as I go along and leave only a working
14script with any issues resolved to the best of my abilities. This is the
15least I can do for you guys patient enough to try this at home.
16
17You can build this in a VM but I suggest Iron with many cores is better.
18Specs wise you can do 512mb ram with 16gb HD as minimum. Anything else
19is up to you.
20There's no explanations in the script as I expect you to know how to
21cope and know how to identify hardware and compile a kernel correctly.
22If you want a story then read a book, it will help.
23
24tip: to save lots of headaches try copy/paste between this compile-me
25and the terminal you're working in. Note the groupings of the commands
26that go together, ALWAYS double check each step along the way to avoid
27costly mistakes, and watch out for cats EOF
28^. .^
29
30Good Luck with the build if you're mad enough to try it.
31__a
32
33##### INDEX
34
35>>>>> STAGE 1 BAREBONE
36>>>>> STAGE 2 XORG
37>>>>> STAGE 3 GNOME3 BASE
38>>>>> STAGE 4 GNOME APPLICATIONS
39>>>>> STAGE 5 SECURITY/PRIVACY
40
41##### STAGE 1 BAREBONE
42
43Boot Modern Live 32Bit Distro
44Old CDs wont be able to build =(
45Upgrade binutils to at least 2.22 and gcc to 4.7 otherwise you wont be
46able to build =(
47Also install latest bison to ensure yacc is available otherwise things
48wont build.
49
50Setup HD:
51
52/dev/xxx1 14gb minimum formatted to ext3, partition type primary with
53boot flag set
54/dev/xxx2 2-4gb Linux swap
55(/dev/xxx3 Home partition if so wish.)
56
57Partition tools are fdisk, cfdisk,parted and gparted.
58
59Once partitions are made they need to be formatted.
60
61For the purposes of this build the HD is /dev/sda however on some
62systems this could be /dev/hda
63
64Commands in terminal as root:
65(build time approx 75hrs)
66
67mkfs -Vt ext3 /dev/sda1
68mkswap /dev/sda2
69**for home directory (mkfs -Vt ext3 /dev/sda3)
70
71export __a=/mnt/__a
72mkdir -v $__a
73mount -vt ext3 /dev/sda1 $__a
74
75(optional if home partition has been created)
76mkdir -v $__a/home
77mount -vt ext3 /dev/sda3 $__a/home
78
79/sbin/swapon -v /dev/sda2
80
81mkdir -v $__a/sources
82chmod -v a+wt $__a/sources
83cd $__a/sources
84
85mkdir -v $__a/tools
86ln -sv $__a/tools /
87ln -sv $__a/sources /
88
89groupadd __a
90
91useradd -s /bin/bash -g __a -m -k /dev/null __a
92passwd __a
93
94chown -v __a $__a/tools
95chown -v __a $__a/sources
96su - __a
97
98cat > ~/.bash_profile << "EOF"
99exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
100EOF
101
102cat > ~/.bashrc << "EOF"
103set +h
104umask 022
105__a=/mnt/__a
106LC_ALL=POSIX
107__a_TGT=$(uname -m)-__a-linux-gnu
108PATH=/tools/bin:/bin:/usr/bin
109export __a LC_ALL __a_TGT PATH
110EOF
111
112source ~/.bash_profile
113
114(adjust to how many cores you have . reduces compile time)
115export MAKEFLAGS='-j 4'
116
117cd $__a/sources
118
119<Binutils-2.22>
120wget http://ftp.gnu.org/gnu/binutils/binutils-2.22.tar.bz2
121wget http://www.linuxfromscratch.org/patches/lfs/7.2/binutils-2.22-build_fix-1.patch
122tar vxf binutils-2.22.tar.bz2
123cd binutils-2.22
124
125patch -Np1 -i ../binutils-2.22-build_fix-1.patch
126
127mkdir -v ../binutils-build
128cd ../binutils-build
129
130../binutils-2.22/configure \
131 --prefix=/tools \
132 --with-sysroot=$__a \
133 --with-lib-path=/tools/lib \
134 --target=$__a_TGT \
135 --disable-nls \
136 --disable-werror
137
138make
139
140case $(uname -m) in
141 x86_64) mkdir -v /tools/lib && ln -sv lib /tools/lib64 ;;
142esac
143
144make install
145
146cd ..
147rm -vfr binutils-build
148rm -vfr binutils-2.22
149
150<GCC-4.7.1>
151wget http://ftp.gnu.org/gnu/gcc/gcc-4.7.1/gcc-4.7.1.tar.bz2
152wget http://www.mpfr.org/mpfr-3.1.1/mpfr-3.1.1.tar.xz
153wget http://ftp.gnu.org/gnu/gmp/gmp-5.0.5.tar.xz
154wget http://www.multiprecision.org/mpc/download/mpc-1.0.tar.gz
155tar vxf gcc-4.7.1.tar.bz2
156cd gcc-4.7.1
157
158tar -Jxf ../mpfr-3.1.1.tar.xz
159mv -v mpfr-3.1.1 mpfr
160tar -Jxf ../gmp-5.0.5.tar.xz
161mv -v gmp-5.0.5 gmp
162tar -zxf ../mpc-1.0.tar.gz
163mv -v mpc-1.0 mpc
164
165for file in \
166 $(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h)
167do
168 cp -uv $file{,.orig}
169 sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' \
170 -e 's@/usr@/tools@g' $file.orig > $file
171 echo '
172#undef STANDARD_STARTFILE_PREFIX_1
173#undef STANDARD_STARTFILE_PREFIX_2
174#define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"
175#define STANDARD_STARTFILE_PREFIX_2 ""' >> $file
176 touch $file.orig
177done
178sed -i '/k prot/agcc_cv_libc_provides_ssp=yes' gcc/configure
179
180mkdir -v ../gcc-build
181cd ../gcc-build
182
183../gcc-4.7.1/configure \
184 --target=$__a_TGT \
185 --prefix=/tools \
186 --with-sysroot=$__a \
187 --with-newlib \
188 --without-headers \
189 --with-local-prefix=/tools \
190 --with-native-system-header-dir=/tools/include \
191 --disable-nls \
192 --disable-shared \
193 --disable-multilib \
194 --disable-decimal-float \
195 --disable-threads \
196 --disable-libmudflap \
197 --disable-libssp \
198 --disable-libgomp \
199 --disable-libquadmath \
200 --enable-languages=c \
201 --with-mpfr-include=$(pwd)/../gcc-4.7.1/mpfr/src \
202 --with-mpfr-lib=$(pwd)/mpfr/src/.libs
203
204make
205
206make install
207
208ln -vs libgcc.a `$__a_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'`
209
210cd ..
211rm -vfr gcc-build
212rm -vfr gcc-4.7.1
213
214<Linux Headers>
215wget http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.5.2.tar.xz
216tar vxf linux-3.5.2.tar.xz
217cd linux-3.5.2
218
219make mrproper
220
221make headers_check
222make INSTALL_HDR_PATH=dest headers_install
223cp -rv dest/include/* /tools/include
224
225cd ..
226
227<Glibc-2.16.0>
228wget http://ftp.gnu.org/gnu/glibc/glibc-2.16.0.tar.xz
229wget http://www.linuxfromscratch.org/patches/lfs/7.2/glibc-2.16.0-res_query_fix-1.patch
230tar vxf glibc-2.16.0.tar.xz
231cd glibc-2.16.0
232
233if [ ! -r /usr/include/rpc/types.h ]; then
234 su -c 'mkdir -p /usr/include/rpc'
235 su -c 'cp -v sunrpc/rpc/*.h /usr/include/rpc'
236fi
237
238sed -i 's/ -lgcc_s//' Makeconfig
239
240mkdir -v ../glibc-build
241cd ../glibc-build
242
243../glibc-2.16.0/configure \
244 --prefix=/tools \
245 --host=$__a_TGT \
246 --build=$(../glibc-2.16.0/scripts/config.guess) \
247 --disable-profile \
248 --enable-add-ons \
249 --enable-kernel=2.6.25 \
250 --with-headers=/tools/include \
251 libc_cv_forced_unwind=yes \
252 libc_cv_ctors_header=yes \
253 libc_cv_c_cleanup=yes
254
255make
256
257make install
258
259***(test everything is ok)***
260
261echo 'main(){}' > dummy.c
262$__a_TGT-gcc dummy.c
263readelf -l a.out | grep ': /tools'
264
265***(output should be:
266 [Requesting program interpreter: /tools/lib/ld-linux.so.2])***
267
268rm -vf dummy.c a.out
269cd ..
270rm -vfr glibc-build
271rm -vfr glibc-2.16.0
272
273<Binutils-2.22 . pass 2>
274tar vxf binutils-2.22.tar.bz2
275cd binutils-2.22
276
277patch -Np1 -i ../binutils-2.22-build_fix-1.patch
278
279mkdir -v ../binutils-build
280cd ../binutils-build
281
282CC=$__a_TGT-gcc \
283AR=$__a_TGT-ar \
284RANLIB=$__a_TGT-ranlib \
285../binutils-2.22/configure \
286--prefix=/tools \
287--disable-nls \
288--with-lib-path=/tools/lib
289
290make
291
292make install
293
294make -C ld clean
295make -C ld LIB_PATH=/usr/lib:/lib
296cp -v ld/ld-new /tools/bin
297
298cd ..
299rm -vfr binutils-build
300rm -vfr binutils-2.22
301
302<GCC-4.7.1 . Pass 2>
303tar vxf gcc-4.7.1.tar.bz2
304cd gcc-4.7.1
305
306cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \
307 `dirname $($__a_TGT-gcc -print-libgcc-file-name)`/include-fixed/limits.h
308
309cp -v gcc/Makefile.in{,.tmp}
310
311sed 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in.tmp \
312 > gcc/Makefile.in
313
314for file in \
315 $(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h)
316do
317 cp -uv $file{,.orig}
318 sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' \
319 -e 's@/usr@/tools@g' $file.orig > $file
320 echo '
321#undef STANDARD_STARTFILE_PREFIX_1
322#undef STANDARD_STARTFILE_PREFIX_2
323#define STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"
324#define STANDARD_STARTFILE_PREFIX_2 ""' >> $file
325 touch $file.orig
326done
327
328tar -Jxf ../mpfr-3.1.1.tar.xz
329mv -v mpfr-3.1.1 mpfr
330tar -Jxf ../gmp-5.0.5.tar.xz
331mv -v gmp-5.0.5 gmp
332tar -zxf ../mpc-1.0.tar.gz
333mv -v mpc-1.0 mpc
334
335mkdir -v ../gcc-build
336cd ../gcc-build
337
338CC=$__a_TGT-gcc \
339AR=$__a_TGT-ar \
340RANLIB=$__a_TGT-ranlib \
341../gcc-4.7.1/configure \
342 --prefix=/tools \
343 --with-local-prefix=/tools \
344 --with-native-system-header-dir=/tools/include \
345 --enable-clocale=gnu \
346 --enable-shared \
347 --enable-threads=posix \
348 --enable-__cxa_atexit \
349 --enable-languages=c,c++ \
350 --disable-libstdcxx-pch \
351 --disable-multilib \
352 --disable-bootstrap \
353 --disable-libgomp \
354 --with-mpfr-include=$(pwd)/../gcc-4.7.1/mpfr/src \
355 --with-mpfr-lib=$(pwd)/mpfr/src/.libs
356
357make
358
359make install
360
361ln -vs gcc /tools/bin/cc
362
363***(test everything is ok)***
364echo 'main(){}' > dummy.c
365cc dummy.c
366readelf -l a.out | grep ': /tools'
367
368***(output should be:
369 [Requesting program interpreter: /tools/lib/ld-linux.so.2])***
370
371rm -vf dummy.c a.out
372cd ..
373rm -vfr gcc-build
374rm -vfr gcc-4.7.1
375
376<Tcl-8.5.12>
377wget http://prdownloads.sourceforge.net/tcl/tcl8.5.12-src.tar.gz
378tar vxf tcl8.5.12-src.tar.gz
379cd tcl8.5.12
380
381cd unix
382./configure --prefix=/tools
383
384make
385
386make install
387
388chmod -v u+w /tools/lib/libtcl8.5.so
389
390make install-private-headers
391
392ln -sv tclsh8.5 /tools/bin/tclsh
393
394cd ../..
395rm -vfr tcl8.5.12
396
397<Expect-5.45>
398wget http://prdownloads.sourceforge.net/expect/expect5.45.tar.gz
399tar vxf expect5.45.tar.gz
400cd expect5.45
401
402cp -v configure{,.orig}
403sed 's:/usr/local/bin:/bin:' configure.orig > configure
404
405./configure --prefix=/tools --with-tcl=/tools/lib \
406 --with-tclinclude=/tools/include
407
408make
409
410make SCRIPTS="" install
411
412cd ..
413rm -vfr expect5.45
414
415<DejaGNU-1.5>
416wget http://ftp.gnu.org/gnu/dejagnu/dejagnu-1.5.tar.gz
417tar vxf dejagnu-1.5.tar.gz
418cd dejagnu-1.5
419
420./configure --prefix=/tools
421
422make install
423
424make check
425
426cd ..
427rm -vfr dejagnu-1.5
428
429<Check-0.9.8>
430wget http://sourceforge.net/projects/check/files/check/0.9.8/check-0.9.8.tar.gz
431tar vxf check-0.9.8.tar.gz
432cd check-0.9.8
433
434./configure --prefix=/tools
435
436make
437
438make check
439
440make install
441
442cd ..
443rm -vfr check-0.9.8
444
445<Ncurses-5.9>
446wget ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz
447tar vxf ncurses-5.9.tar.gz
448cd ncurses-5.9
449
450./configure --prefix=/tools --with-shared \
451 --without-debug --without-ada --enable-overwrite
452
453make
454
455make install
456
457cd ..
458rm -vfr ncurses-5.9
459
460<Bash-4.2>
461wget http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz
462wget http://www.linuxfromscratch.org/patches/lfs/7.2/bash-4.2-fixes-8.patch
463tar vxf bash-4.2.tar.gz
464cd bash-4.2
465
466patch -Np1 -i ../bash-4.2-fixes-8.patch
467
468./configure --prefix=/tools --without-bash-malloc
469
470make
471
472make install
473
474ln -vs bash /tools/bin/sh
475
476cd ..
477rm -vfr bash-4.2
478
479<Bzip2-1.0.8>
480wget http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz
481wget http://www.linuxfromscratch.org/patches/lfs/7.2/bzip2-1.0.6-install_docs-1.patch
482tar vxf bzip2-1.0.6.tar.gz
483cd bzip2-1.0.6
484
485make
486
487make PREFIX=/tools install
488
489cd ..
490rm -vfr bzip2-1.0.6
491
492<Coreutils-8.19>
493wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.19.tar.xz
494wget http://www.linuxfromscratch.org/patches/lfs/7.2/coreutils-8.19-i18n-1.patch
495tar vxf coreutils-8.19.tar.xz
496cd coreutils-8.19
497
498./configure --prefix=/tools --enable-install-program=hostname
499
500make
501
502make RUN_EXPENSIVE_TESTS=yes check
503
504make install
505
506cd ..
507rm -vfr coreutils-8.19
508
509<Diffutils-3.2>
510wget http://ftp.gnu.org/gnu/diffutils/diffutils-3.2.tar.gz
511tar vxf diffutils-3.2.tar.gz
512cd diffutils-3.2
513
514sed -i -e '/gets is a/d' lib/stdio.in.h
515
516./configure --prefix=/tools
517
518make
519
520make check
521
522make install
523
524cd ..
525rm -vfr diffutils-3.2
526
527<File-5.11>
528wget ftp://ftp.astron.com/pub/file/file-5.11.tar.gz
529tar vxf file-5.11.tar.gz
530cd file-5.11
531
532./configure --prefix=/tools
533
534make
535
536make install
537
538cd ..
539rm -vfr file-5.11
540
541<Findutils-4.4.2>
542wget http://ftp.gnu.org/gnu/findutils/findutils-4.4.2.tar.gz
543tar vxf findutils-4.4.2.tar.gz
544cd findutils-4.4.2
545
546./configure --prefix=/tools
547
548make
549
550make check
551
552make install
553
554cd ..
555rm -vfr findutils-4.4.2
556
557<Gawk-4.0.1>
558wget http://ftp.gnu.org/gnu/gawk/gawk-4.0.1.tar.xz
559tar vxf gawk-4.0.1.tar.xz
560cd gawk-4.0.1
561
562./configure --prefix=/tools
563
564make
565
566make install
567
568cd ..
569rm -vfr gawk-4.0.1
570
571<Gettext-0.18.1.1>
572wget http://ftp.gnu.org/gnu/gettext/gettext-0.18.1.1.tar.gz
573tar vxf gettext-0.18.1.1.tar.gz
574cd gettext-0.18.1.1
575
576sed -i -e '/gets is a/d' gettext-*/*/stdio.in.h
577
578cd gettext-tools
579EMACS="no" ./configure --prefix=/tools --disable-shared
580
581make -C gnulib-lib
582make -C src msgfmt
583
584cp -v src/msgfmt /tools/bin
585
586cd ../..
587rm -vfr gettext-0.18.1.1
588
589<Grep-2.14>
590wget http://ftp.gnu.org/gnu/grep/grep-2.14.tar.xz
591tar vxf grep-2.14.tar.xz
592cd grep-2.14
593
594./configure --prefix=/tools
595
596make
597
598make check
599
600make install
601
602cd ..
603rm -vfr grep-2.14
604
605<Gzip-1.5>
606wget http://ftp.gnu.org/gnu/gzip/gzip-1.5.tar.xz
607tar vxf gzip-1.5.tar.xz
608cd gzip-1.5
609
610./configure --prefix=/tools
611
612make
613
614make check
615
616make install
617
618cd ..
619rm -vfr gzip-1.5
620
621<M4-1.4.16>
622wget http://ftp.gnu.org/gnu/m4/m4-1.4.16.tar.bz2
623tar vxf m4-1.4.16.tar.bz2
624cd m4-1.4.16
625
626sed -i -e '/gets is a/d' lib/stdio.in.h
627
628./configure --prefix=/tools
629
630make
631
632make check
633
634make install
635
636cd ..
637rm -vfr m4-1.4.16
638
639<Make-3.82>
640wget http://ftp.gnu.org/gnu/make/make-3.82.tar.bz2
641wget http://www.linuxfromscratch.org/patches/lfs/7.2/make-3.82-upstream_fixes-2.patch
642wget http://www.linuxfromscratch.org/patches/downloads/make/make-3.82-upstream_fixes-3.patch
643tar vxf make-3.82.tar.bz2
644cd make-3.82
645
646patch -Np1 -i ../make-3.82-upstream_fixes-3.patch
647
648./configure --prefix=/tools
649
650make
651
652make check
653
654make install
655
656cd ..
657rm -vfr make-3.82
658
659<Patch-2.6.1>
660wget http://ftp.gnu.org/gnu/patch/patch-2.6.1.tar.bz2
661wget http://www.linuxfromscratch.org/patches/lfs/7.2/patch-2.6.1-test_fix-1.patch
662tar vxf patch-2.6.1.tar.bz2
663cd patch-2.6.1
664
665./configure --prefix=/tools
666
667make
668
669make check
670
671make install
672
673cd ..
674rm -vfr patch-2.6.1
675
676<Perl-5.16.1>
677wget http://www.cpan.org/src/5.0/perl-5.16.1.tar.bz2
678wget http://www.linuxfromscratch.org/patches/lfs/7.2/perl-5.16.1-libc-2.patch
679tar vxf perl-5.16.1.tar.bz2
680cd perl-5.16.1
681
682patch -Np1 -i ../perl-5.16.1-libc-2.patch
683
684sh Configure -des -Dprefix=/tools
685
686make
687
688cp -v perl cpan/podlators/pod2man /tools/bin
689mkdir -pv /tools/lib/perl5/5.16.1
690cp -Rv lib/* /tools/lib/perl5/5.16.1
691
692cd ..
693rm -vfr perl-5.16.1
694
695<Sed-4.2.1>
696wget http://ftp.gnu.org/gnu/sed/sed-4.2.1.tar.bz2
697wget http://www.linuxfromscratch.org/patches/lfs/7.2/sed-4.2.1-testsuite_fixes-1.patch
698tar vxf sed-4.2.1.tar.bz2
699cd sed-4.2.1
700
701./configure --prefix=/tools
702
703make
704
705make check
706
707make install
708
709cd ..
710rm -vfr sed-4.2.1
711
712<Tar-1.26>
713wget http://ftp.gnu.org/gnu/tar/tar-1.26.tar.bz2
714tar vxf tar-1.26.tar.bz2
715cd tar-1.26
716
717sed -i -e '/gets is a security/d' gnu/stdio.in.h
718
719./configure --prefix=/tools
720
721make
722
723make check
724
725make install
726
727cd ..
728rm -vfr tar-1.26
729
730<Texinfo-4.13a>
731wget http://ftp.gnu.org/gnu/texinfo/texinfo-4.13a.tar.gz
732tar vxf texinfo-4.13a.tar.gz
733cd texinfo-4.13
734
735./configure --prefix=/tools
736
737make
738
739make check
740
741make install
742
743cd ..
744rm -vfr texinfo-4.13
745
746<Xz-5.0.4>
747wget http://tukaani.org/xz/xz-5.0.4.tar.xz
748tar vxf xz-5.0.4.tar.xz
749cd xz-5.0.4
750
751./configure --prefix=/tools
752
753make
754
755make check
756
757make install
758
759cd ..
760rm -vfr xz-5.0.4
761
762exit
763
764chown -R root:root $__a/tools
765
766mkdir -v $__a/{dev,proc,sys}
767
768mknod -m 600 $__a/dev/console c 5 1
769mknod -m 666 $__a/dev/null c 1 3
770
771mount -v --bind /dev $__a/dev
772
773mount -vt devpts devpts $__a/dev/pts
774mount -vt proc proc $__a/proc
775mount -vt sysfs sysfs $__a/sys
776
777if [ -h /dev/shm ]; then
778 rm -f $__a/dev/shm
779 mkdir $__a/dev/shm
780fi
781
782mount -vt tmpfs shm $__a/dev/shm
783
784chroot "$__a" /tools/bin/env -i \
785 HOME=/root \
786 TERM="$TERM" \
787 PS1='\u:\w\$ ' \
788 PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
789 /tools/bin/bash --login +h
790
791mkdir -pv /{bin,boot,etc/{opt,sysconfig},home,lib,mnt,opt,run}
792mkdir -pv /{media/{floppy,cdrom},sbin,srv,var}
793
794install -dv -m 0750 /root
795install -dv -m 1777 /tmp /var/tmp
796
797mkdir -pv /usr/{,local/}{bin,include,lib,sbin,src}
798mkdir -pv /usr/{ local/}share/{doc,info,locale,man}
799mkdir -v /usr/{,local/}share/{misc,terminfo,zoneinfo}
800mkdir -pv /usr/{,local/}share/man/man{1..8}
801
802for dir in /usr /usr/local; do
803 ln -sv share/{man,doc,info} $dir
804done
805
806case $(uname -m) in
807 x86_64) ln -sv lib /lib64 && ln -sv lib /usr/lib64 ;;
808esac
809
810mkdir -v /var/{log,mail,spool}
811
812ln -sv /run /var/run
813ln -sv /run/lock /var/lock
814
815mkdir -pv /var/{opt,cache,lib/{misc,locate},local}
816
817ln -sv /tools/bin/{bash,cat,echo,pwd,stty} /bin
818ln -sv /tools/bin/perl /usr/bin
819ln -sv /tools/lib/libgcc_s.so{,.1} /usr/lib
820ln -sv /tools/lib/libstdc++.so{,.6} /usr/lib
821sed 's/tools/usr/' /tools/lib/libstdc++.la > /usr/lib/libstdc++.la
822ln -sv bash /bin/sh
823
824touch /etc/mtab
825
826cat > /etc/passwd << "EOF"
827root:x:0:0:root:/root:/bin/bash
828bin:x:1:1:bin:/dev/null:/bin/false
829nobody:x:99:99:Unprivileged User:/dev/null:/bin/false
830EOF
831
832cat > /etc/group << "EOF"
833root:x:0:
834bin:x:1:
835sys:x:2:
836kmem:x:3:
837tape:x:4:
838tty:x:5:
839daemon:x:6:
840floppy:x:7:
841disk:x:8:
842lp:x:9:
843dialout:x:10:
844audio:x:11:
845video:x:12:
846utmp:x:13:
847usb:x:14:
848cdrom:x:15:
849mail:x:34:
850nogroup:x:99:
851EOF
852
853exec /tools/bin/bash --login +h
854
855(adjust to how many cores you have . reduces compile time)
856export MAKEFLAGS='-j 4'
857
858touch /var/log/{btmp,lastlog,wtmp}
859chgrp -v utmp /var/log/lastlog
860chmod -v 664 /var/log/lastlog
861chmod -v 600 /var/log/btmp
862
863<Linux-3.5.2 Api Headers>
864cd /sources/linux-3.5.2
865
866make mrproper
867
868make headers_check
869make INSTALL_HDR_PATH=dest headers_install
870
871find dest/include \( -name .install -o -name ..install.cmd \) -delete
872cp -rv dest/include/* /usr/include
873
874cd ..
875
876<Man-pages-3.42>
877wget http://www.kernel.org/pub/linux/docs/man-pages/man-pages-3.42.tar.xz
878tar vxf man-pages-3.42.tar.xz
879cd man-pages-3.42
880
881make install
882
883cd ..
884rm -vfr man-pages-3.42
885
886<Glibc-2.16.0>
887tar vxf glibc-2.16.0.tar.xz
888cd glibc-2.16.0
889
890sed -i 's#<rpc/types.h>#"rpc/types.h"#' sunrpc/rpc_clntout.c
891sed -i '/test-installation.pl/d' Makefile
892sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in
893
894patch -Np1 -i ../glibc-2.16.0-res_query_fix-1.patch
895
896mkdir -v ../glibc-build
897cd ../glibc-build
898
899../glibc-2.16.0/configure \
900 --prefix=/usr \
901 --disable-profile \
902 --enable-add-ons \
903 --enable-kernel=2.6.25 \
904 --libexecdir=/usr/lib/glibc
905
906make
907
908make -k check 2>&1 | tee glibc-check-log
909grep Error glibc-check-log
910
911touch /etc/ld.so.conf
912
913make install
914
915cp -v ../glibc-2.16.0/sunrpc/rpc/*.h /usr/include/rpc
916cp -v ../glibc-2.16.0/sunrpc/rpcsvc/*.h /usr/include/rpcsvc
917cp -v ../glibc-2.16.0/nis/rpcsvc/*.h /usr/include/rpcsvc
918
919mkdir -pv /usr/lib/locale
920localedef -i cs_CZ -f UTF-8 cs_CZ.UTF-8
921localedef -i de_DE -f ISO-8859-1 de_DE
922localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
923localedef -i de_DE -f UTF-8 de_DE.UTF-8
924localedef -i en_GB -f UTF-8 en_GB.UTF-8
925localedef -i en_HK -f ISO-8859-1 en_HK
926localedef -i en_PH -f ISO-8859-1 en_PH
927localedef -i en_US -f ISO-8859-1 en_US
928localedef -i en_US -f UTF-8 en_US.UTF-8
929localedef -i es_MX -f ISO-8859-1 es_MX
930localedef -i fa_IR -f UTF-8 fa_IR
931localedef -i fr_FR -f ISO-8859-1 fr_FR
932localedef -i fr_FR@euro -f ISO-8859-15 fr_FR@euro
933localedef -i fr_FR -f UTF-8 fr_FR.UTF-8
934localedef -i it_IT -f ISO-8859-1 it_IT
935localedef -i it_IT -f UTF-8 it_IT.UTF-8
936localedef -i ja_JP -f EUC-JP ja_JP
937localedef -i ru_RU -f KOI8-R ru_RU.KOI8-R
938localedef -i ru_RU -f UTF-8 ru_RU.UTF-8
939localedef -i tr_TR -f UTF-8 tr_TR.UTF-8
940localedef -i zh_CN -f GB18030 zh_CN.GB18030
941
942cat > /etc/nsswitch.conf << "EOF"
943# Begin /etc/nsswitch.conf
944passwd: files
945group: files
946shadow: files
947
948hosts: files dns
949networks: files
950
951protocols: files
952services: files
953ethers: files
954rpc: files
955
956# End /etc/nsswitch.conf
957EOF
958
959wget http://www.iana.org//time-zones/repository/releases/tzdata2012e.tar.gz
960tar -xf ../tzdata2012e.tar.gz
961
962ZONEINFO=/usr/share/zoneinfo
963mkdir -pv $ZONEINFO/{posix,right}
964
965for tz in etcetera southamerica northamerica europe africa antarctica \
966 asia australasia backward pacificnew solar87 solar88 solar89 \
967 systemv; do
968zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz}
969zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz}
970zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz}
971done
972
973cp -v zone.tab iso3166.tab $ZONEINFO
974zic -d $ZONEINFO -p America/New_York
975unset ZONEINFO
976
977cp -v --remove-destination /usr/share/zoneinfo/Europe/London \
978 /etc/localtime
979
980cat > /etc/ld.so.conf << "EOF"
981# Begin /etc/ld.so.conf
982/usr/local/lib
983/opt/lib
984
985EOF
986
987cat >> /etc/ld.so.conf << "EOF"
988# Add an include directory
989include /etc/ld.so.conf.d/*.conf
990
991EOF
992
993mkdir /etc/ld.so.conf.d
994
995cd ..
996rm -vfr glibc-build
997rm -vfr glibc-2.16.0
998
999mv -v /tools/bin/{ld,ld-old}
1000mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}
1001mv -v /tools/bin/{ld-new,ld}
1002ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld
1003
1004gcc -dumpspecs | sed -e 's@/tools@@g' \
1005 -e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' \
1006 -e '/\*cpp:/{n;s@$@ -isystem /usr/include@}' > \
1007 `dirname $(gcc --print-libgcc-file-name)`/specs
1008
1009echo 'main(){}' > dummy.c
1010cc dummy.c -v -Wl,--verbose &> dummy.log
1011readelf -l a.out | grep ': /lib'
1012 output>> ***[Requesting program interpreter: /lib/ld-linux.so.2]***
1013
1014grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log
1015 output>> ***/usr/lib/crt1.o succeeded***
1016 output>> ***/usr/lib/crti.o succeeded***
1017 output>> ***/usr/lib/crtn.o succeeded***
1018
1019grep -B1 '^ /usr/include' dummy.log
1020 output>> ***#include <...> search starts here:***
1021 output>> ***/usr/include***
1022
1023grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'
1024 output>> SEARCH_DIR("/tools/i686-pc-linux-gnu/lib")
1025 output>> SEARCH_DIR("/usr/lib")
1026 output>> SEARCH_DIR("/lib");
1027
1028grep "/lib.*/libc.so.6 " dummy.log
1029 output>> attempt to open /lib/libc.so.6 succeeded
1030
1031grep found dummy.log
1032 output>> found ld-linux.so.2 at /lib/ld-linux.so.2
1033
1034rm -vf dummy.c a.out dummy.log
1035
1036<Zlib-1.2.7>
1037wget http://www.zlib.net/zlib-1.2.7.tar.bz2
1038tar vxf zlib-1.2.7.tar.bz2
1039cd zlib-1.2.7
1040
1041./configure --prefix=/usr
1042
1043make
1044
1045make check
1046
1047make install
1048
1049mv -v /usr/lib/libz.so.* /lib
1050ln -sfv ../../lib/libz.so.1.2.7 /usr/lib/libz.so
1051
1052cd ..
1053rm -vfr zlib-1.2.7
1054
1055<File-5.11>
1056tar vxf file-5.11.tar.gz
1057cd file-5.11
1058
1059./configure --prefix=/usr
1060
1061make
1062
1063make check
1064
1065make install
1066
1067cd ..
1068rm -vfr file-5.11
1069
1070<Binutils-2.22>
1071tar vxf binutils-2.22.tar.bz2
1072cd binutils-2.22
1073
1074expect -c "spawn ls"
1075 output>>> spawn ls
1076
1077rm -fv etc/standards.info
1078sed -i.bak '/^INFO/s/standards.info //' etc/Makefile.in
1079
1080patch -Np1 -i ../binutils-2.22-build_fix-1.patch
1081
1082mkdir -v ../binutils-build
1083cd ../binutils-build
1084
1085../binutils-2.22/configure --prefix=/usr --enable-shared
1086
1087make tooldir=/usr
1088
1089make -k check
1090
1091make tooldir=/usr install
1092
1093cp -v ../binutils-2.22/include/libiberty.h /usr/include
1094
1095cd ..
1096rm -vfr binutils-build
1097rm -vfr binutils-2.22
1098
1099<GMP-5.0.5>
1100wget http://ftp.gnu.org/gnu/gmp/gmp-5.0.5.tar.xz
1101tar vxf gmp-5.0.5.tar.xz
1102cd gmp-5.0.5
1103
1104***IF CONFIGURE FAILS USE THIS COMMAND AND TRY AGAIN OTHERWISE SKIP
1105 ABI=32 ./configure .
1106
1107./configure --prefix=/usr --enable-cxx --enable-mpbsd
1108
1109make
1110
1111make check 2>&1 | tee gmp-check-log
1112awk '/tests passed/{total+=$2} ; END{print total}' gmp-check-log
1113 ***Make sure all 166 tests passed***
1114
1115make install
1116
1117mkdir -v /usr/share/doc/gmp-5.0.5
1118cp -v doc/{isa_abi_headache,configuration} doc/*.html \
1119 /usr/share/doc/gmp-5.0.5
1120
1121cd ..
1122rm -vfr gmp-5.0.5
1123
1124<MPFR-3.1.1>
1125wget http://www.mpfr.org/mpfr-3.1.1/mpfr-3.1.1.tar.xz
1126tar vxf mpfr-3.1.1.tar.xz
1127cd mpfr-3.1.1
1128
1129./configure --prefix=/usr \
1130 --enable-thread-safe \
1131 --docdir=/usr/share/doc/mpfr-3.1.1
1132
1133make
1134
1135make check
1136
1137make install
1138
1139make html
1140make install-html
1141
1142cd ..
1143rm -vfr mpfr-3.1.1
1144
1145<MPC-1.0>
1146wget http://www.multiprecision.org/mpc/download/mpc-1.0.tar.gz
1147tar vxf mpc-1.0.tar.gz
1148cd mpc-1.0
1149
1150./configure --prefix=/usr
1151
1152make
1153
1154make check
1155
1156make install
1157
1158cd ..
1159rm -vfr mpc-1.0
1160
1161<Gettext-0.18.1.1 . Required to fix build problem with gcc>
1162tar vxf gettext-0.18.1.1.tar.gz
1163cd gettext-0.18.1.1
1164
1165sed -i -e '/gets is a/d' gettext-*/*/stdio.in.h
1166
1167***WE NEED TO INSTALL IN /tools WHERE LINKER LOOKS - WILL INSTALL TO /USR LATER
1168./configure --prefix=/tools
1169
1170make
1171
1172*** ONE CHECK WILL FAIL SO IGNORE AND CONTINUE WITH INSTALL
1173make check
1174
1175make install
1176
1177cd ..
1178rm -vfr gettext-0.18.1.1
1179
1180<GCC-4.7.1>
1181tar vxf gcc-4.7.1.tar.bz2
1182cd gcc-4.7.1
1183
1184sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
1185
1186case `uname -m` in
1187 i?86) sed -i 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in ;;
1188esac
1189
1190sed -i -e /autogen/d -e /check.sh/d fixincludes/Makefile.in
1191
1192mkdir -v ../gcc-build
1193cd ../gcc-build
1194
1195../gcc-4.7.1/configure --prefix=/usr \
1196 --libexecdir=/usr/lib \
1197 --enable-shared \
1198 --enable-threads=posix \
1199 --enable-__cxa_atexit \
1200 --enable-clocale=gnu \
1201 --enable-languages=c,c++ \
1202 --disable-multilib \
1203 --disable-bootstrap \
1204 --with-system-zlib
1205
1206make
1207
1208ulimit -s 32768
1209
1210make -k check
1211
1212../gcc-4.7.1/contrib/test_summary | grep -A7 Summ
1213
1214make install
1215
1216ln -sv ../usr/bin/cpp /lib
1217ln -sv gcc /usr/bin/cc
1218
1219echo 'main(){}' > dummy.c
1220cc dummy.c -v -Wl,--verbose &> dummy.log
1221readelf -l a.out | grep ': /lib'
1222 output>>> [Requesting program interpreter: /lib/ld-linux.so.2]
1223
1224grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log
1225 output>>> /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/../../../crt1.o
1226succeeded
1227 output>>> /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/../../../crti.o
1228succeeded
1229 output>>> /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/../../../crtn.o
1230succeeded
1231
1232grep -B4 '^ /usr/include' dummy.log
1233 output>>> #include <...> search starts here:
1234 output>>> /usr/local/include
1235 output>>> /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/include
1236 output>>> /usr/lib/gcc/i686-pc-linux-gnu/4.7.1/include-fixed
1237 output>>> /usr/include
1238
1239grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'
1240 output>>> SEARCH_DIR("/usr/i686-pc-linux-gnu/lib")
1241 output>>> SEARCH_DIR("/usr/local/lib")
1242 output>>> SEARCH_DIR("/lib")
1243 output>>> SEARCH_DIR("/usr/lib");
1244
1245grep "/lib.*/libc.so.6 " dummy.log
1246 output>>> attempt to open /lib/libc.so.6 succeeded
1247
1248grep found dummy.log
1249 output>>> found ld-linux.so.2 at /lib/ld-linux.so.2
1250
1251rm -v dummy.c a.out dummy.log
1252
1253mkdir -pv /usr/share/gdb/auto-load/usr/lib
1254mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib
1255
1256cd ..
1257rm -vfr gcc-build
1258rm -vfr gcc-4.7.1
1259
1260<Sed-4.2.1>
1261tar vxf sed-4.2.1.tar.bz2
1262cd sed-4.2.1
1263
1264patch -Np1 -i ../sed-4.2.1-testsuite_fixes-1.patch
1265
1266./configure --prefix=/usr --bindir=/bin --htmldir=/usr/share/doc/sed-4.2.1
1267
1268make
1269make html
1270
1271make check
1272
1273make install
1274
1275make -C doc install-html
1276
1277cd ..
1278rm -vfr sed-4.2.1
1279
1280<Bzip2-1.0.6>
1281tar vxf bzip2-1.0.6.tar.gz
1282cd bzip2-1.0.6
1283
1284patch -Np1 -i ../bzip2-1.0.6-install_docs-1.patch
1285
1286sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile
1287sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile
1288
1289make -f Makefile-libbz2_so
1290make clean
1291
1292make
1293
1294make PREFIX=/usr install
1295
1296cp -v bzip2-shared /bin/bzip2
1297cp -av libbz2.so* /lib
1298
1299ln -sv ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so
1300rm -v /usr/bin/{bunzip2,bzcat,bzip2}
1301ln -sv bzip2 /bin/bunzip2
1302ln -sv bzip2 /bin/bzcat
1303
1304cd ..
1305rm -vfr bzip2-1.0.6
1306
1307<Pkg-config-0.27>
1308wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.27.tar.gz
1309tar vxf pkg-config-0.27.tar.gz
1310cd pkg-config-0.27
1311
1312./configure --prefix=/usr \
1313 --with-internal-glib \
1314 --docdir=/usr/share/doc/pkg-config-0.27
1315
1316make
1317
1318make check
1319
1320make install
1321
1322cd ..
1323rm -vfr pkg-config-0.27
1324
1325<Ncurses-5.9>
1326tar vxf ncurses-5.9.tar.gz
1327cd ncurses-5.9
1328
1329./configure --prefix=/usr --mandir=/usr/share/man --with-shared \
1330 --without-debug --enable-widec
1331
1332make
1333
1334make install
1335
1336mv -v /usr/lib/libncursesw.so.5* /lib
1337
1338ln -sfv ../../lib/libncursesw.so.5 /usr/lib/libncursesw.so
1339
1340for lib in ncurses form panel menu ; do \
1341 rm -vf /usr/lib/lib${lib}.so ; \
1342 echo "INPUT(-l${lib}w)" >/usr/lib/lib${lib}.so ; \
1343 ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a ; \
1344done
1345ln -sfv libncurses++w.a /usr/lib/libncurses++.a
1346
1347rm -vf /usr/lib/libcursesw.so
1348echo "INPUT(-lncursesw)" >/usr/lib/libcursesw.so
1349ln -sfv libncurses.so /usr/lib/libcurses.so
1350ln -sfv libncursesw.a /usr/lib/li cursesw.a
1351ln -sfv libncurses.a /usr/lib/libcurses.a
1352
1353mkdir -v /usr/share/doc/ncurses-5.9
1354cp -v -R doc/* /usr/share/doc/ncurses-5.9
1355
1356make distclean
1357
1358./configure --prefix=/usr --with-shared --without-normal \
1359 --without-debug --without-cxx-binding
1360
1361make sources libs
1362
1363cp -av lib/lib*.so.5* /usr/lib
1364
1365cd ..
1366rm -vfr ncurses-5.9
1367
1368<Util-linux-2.21.2>
1369wget http://www.kernel.org/pub/linux/utils/util-linux/v2.21/util-linux-2.21.2.tar.xz
1370tar vxf util-linux-2.21.2.tar.xz
1371cd util-linux-2.21.2
1372
1373sed -i -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
1374 $(grep -rl '/etc/adjtime' .)
1375mkdir -pv /var/lib/hwclock
1376
1377./configure
1378
1379make
1380
1381make install
1382
1383cd ..
1384rm -vfr util-linux-2.21.2
1385
1386<Psmisc-22.19>
1387wget http://prdownloads.sourceforge.net/psmisc/psmisc-22.19.tar.gz
1388tar vxf psmisc-22.19.tar.gz
1389cd psmisc-22.19
1390
1391./configure --prefix=/usr
1392
1393make
1394
1395make install
1396
1397mv -v /usr/bin/fuser /bin
1398mv -v /usr/bin/killall /bin
1399
1400cd ..
1401rm -vfr psmisc-22.19
1402
1403<E2fsprogs-1.42.5>
1404wget http://prdownloads.sourceforge.net/e2fsprogs/e2fsprogs-1.42.5.tar.gz
1405tar vxf e2fsprogs-1.42.5.tar.gz
1406cd e2fsprogs-1.42.5
1407
1408mkdir -v build
1409cd build
1410
1411../configure --prefix=/usr \
1412 --with-root-prefix="" \
1413 --enable-elf-shlibs \
1414 --disable-libblkid \
1415 --disable-libuuid \
1416 --disable-uuidd \
1417 --disable-fsck
1418
1419make
1420
1421make -k check
1422
1423make install
1424make install-libs
1425
1426chmod -v u+w /usr/lib/{libcom_err,libe2p,libext2fs,libss}.a
1427
1428gunzip -v /usr/share/info/libext2fs.info.gz
1429install-info --dir-file=/usr/share/info/dir /usr/share/info/libext2fs.info
1430
1431makeinfo -o doc/com_err.info ../lib/et/com_err.texinfo
1432install -v -m644 doc/com_err.info /usr/share/info
1433install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info
1434
1435cd ../..
1436rm -vfr e2fsprogs-1.42.5
1437
1438<Cracklib-2.8.19>
1439wget http://downloads.sourceforge.net/cracklib/cracklib-2.8.19.tar.gz
1440wget http://downloads.sourceforge.net/cracklib/cracklib-words-20080507.gz
1441tar vxf cracklib-2.8.19.tar.gz
1442cd cracklib-2.8.19
1443
1444./configure --prefix=/usr \
1445 --with-default-dict=/lib/cracklib/pw_dict \
1446 --disable-static
1447
1448make
1449
1450make install
1451
1452mv -v /usr/lib/libcrack.so.2* /lib
1453ln -v -sf ../../lib/libcrack.so.2.8.1 /usr/lib/libcrack.so
1454
1455install -v -m644 -D ../cracklib-words-20080507.gz \
1456 /usr/share/dict/cracklib-words.gz
1457gunzip -v /usr/share/dict/cracklib-words.gz
1458ln -v -s cracklib-words /usr/share/dict/words
1459echo $(hostname) >>/usr/share/dict/cracklib-extra-words
1460install -v -m755 -d /lib/cracklib
1461create-cracklib-dict /usr/share/dict/cracklib-words \
1462 /usr/share/dict/cracklib-extra-words
1463
1464make test
1465
1466cd ..
1467rm -vfr cracklib-2.8.19
1468
1469<Shadow-4.1.5.1>
1470wget http://pkg-shadow.alioth.debian.org/releases/shadow-4.1.5.1.tar.bz2
1471tar vxf shadow-4.1.5.1.tar.bz2
1472cd shadow-4.1.5.1
1473
1474sed -i 's/groups$(EXEEXT) //' src/Makefile.in
1475find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;
1476sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \
1477 -e 's@/var/spool/mail@/var/mail@' etc/login.defs
1478sed -i 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' \
1479 etc/login.defs
1480
1481./configure --sysconfdir=/etc --with-libcrack
1482
1483make
1484
1485make install
1486
1487mv -v /usr/bin/passwd /bin
1488
1489pwconv
1490
1491grpconv
1492
1493sed -i 's/yes/no/' /etc/default/useradd
1494
1495passwd root
1496
1497cd ..
1498rm -vfr shadow-4.1.5.1
1499
1500<Coreutils-8.19>
1501tar vxf coreutils-8.19.tar.xz
1502cd coreutils-8.19
1503
1504sed -i -e 's/! isatty/isatty/' \
1505 -e '45i\ || errno == ENOENT' gnulib-tests/test-getlogin.c
1506
1507patch -Np1 -i ../coreutils-8.19-i18n-1.patch
1508
1509FORCE_UNSAFE_CONFIGURE=1 ./configure \
1510 --prefix=/usr \
1511 --libexecdir=/usr/lib \
1512 --enable-no-install-program=kill,uptime
1513
1514make
1515
1516make NON_ROOT_USERNAME=nobody check-root
1517
1518echo "dummy:x:1000:nobody" >> /etc/group
1519
1520chown -Rv nobody .
1521
1522su nobody -s /bin/bash \
1523 -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes -k check || true"
1524
1525make install
1526
1527mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin
1528mv -v /usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} /bin
1529mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin
1530mv -v /usr/bin/chroot /usr/sbin
1531mv - /usr/share/man/man1/chroot.1 /usr/share/man/man8/chroot.8
1532sed -i s/\"1\"/\"8\"/1 /usr/share/man/man8/chroot.8
1533
1534mv -v /usr/bin/{head,sleep,nice} /bin
1535
1536cd ..
1537rm -vfr coreutils-8.19
1538
1539<Iana-etc-2.30>
1540wget http://anduin.linuxfromscratch.org/sources/LFS/lfs-packages/conglomeration//iana-etc/iana-etc-2.30.tar.bz2
1541tar vxf iana-etc-2.30.tar.bz2
1542cd iana-etc-2.30
1543
1544make
1545
1546make install
1547
1548cd ..
1549rm -vfr iana-etc-2.30
1550
1551<M4-1.4.16>
1552tar vxf m4-1.4.16.tar.bz2
1553cd m4-1.4.16
1554
1555sed -i -e '/gets is a/d' lib/stdio.in.h
1556
1557./configure --prefix=/usr
1558
1559make
1560
1561sed -i -e '41s/ENOENT/& || errno == EINVAL/' tests/test-readlink.h
1562make check
1563
1564make install
1565
1566cd ..
1567rm -vfr m4-1.4.16
1568
1569<Bison-2.6.2>
1570wget http://ftp.gnu.org/gnu/bison/bison-2.6.2.tar.xz
1571tar vxf bison-2.6.2.tar.xz
1572cd bison-2.6.2
1573
1574./configure --prefix=/usr
1575
1576echo '#define YYENABLE_NLS 1' >> lib/config.h
1577
1578make
1579
1580make check
1581
1582make install
1583
1584cd ..
1585rm -vfr bison-2.6.2
1586
1587<Procps-3.2.8>
1588wget http://procps.sourceforge.net/procps-3.2.8.tar.gz
1589wget http://www.linuxfromscratch.org/patches/lfs/7.2/procps-3.2.8-fix_HZ_errors-1.patch
1590wget http://www.linuxfromscratch.org/patches/lfs/7.2/procps-3.2.8-watch_unicode-1.patch
1591tar vxf procps-3.2.8.tar.gz
1592cd procps-3.2.8
1593
1594patch -Np1 -i ../procps-3.2.8-fix_HZ_errors-1.patch
1595patch -Np1 -i ../procps-3.2.8-watch_unicode-1.patch
1596
1597sed -i -e 's@\*/module.mk@proc/module.mk ps/module.mk@' Makefile
1598
1599make
1600
1601make install
1602
1603cd ..
1604rm -vfr procps-3.2.8
1605
1606<Grep-2.14>
1607tar vxf grep-2.14.tar.xz
1608cd grep-2.14
1609
1610./configure --prefix=/usr --bindir=/bin
1611
1612make
1613
1614make check
1615
1616make install
1617
1618cd ..
1619rm -vfr grep-2.14
1620
1621<Readline-6.2>
1622wget http://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz
1623wget http://www.linuxfromscratch.org/patches/lfs/7.2/readline-6.2-fixes-1.patch
1624tar vxf readline-6.2.tar.gz
1625cd readline-6.2
1626
1627sed -i '/MV.*old/d' Makefile.in
1628sed -i '/{OLDSUFF}/c:' support/shlib-install
1629
1630patch -Np1 -i ../readline-6.2-fixes-1.patch
1631
1632./configure --prefix=/usr --libdir=/lib
1633
1634make SHLIB_LIBS=-lncurses
1635
1636make install
1637
1638mv -v /lib/lib{readline,history}.a /usr/lib
1639
1640rm -v /lib/lib{readline,history}.so
1641ln -sfv ../../lib/libreadline.so.6 /usr/lib/libreadline.so
1642ln -sfv ../../lib/libhistory.so.6 /usr/lib/libhistory.so
1643
1644mkdir -v /usr/share/doc/readline-6.2
1645install -v -m644 doc/*.{ps,pdf,html,dvi} \
1646 /usr/share/doc/readline-6.2
1647
1648cd ..
1649rm -vfr readline-6.2
1650
1651<bash-4.2>
1652tar vxf bash-4.2.tar.gz
1653cd bash-4.2
1654
1655patch -Np1 -i ../bash-4.2-fixes-8.patch
1656
1657./configure --prefix=/usr \
1658 --bindir=/bin \
1659 --htmldir=/usr/share/doc/bash-4.2 \
1660 --without-bash-malloc \
1661 --with-installed-readline
1662
1663make
1664
1665chown -Rv nobody .
1666
1667su nobody -s /bin/bash -c "PATH=$PATH make tests"
1668
1669make install
1670
1671exec /bin/bash --login +h
1672
1673cd ..
1674rm -vfr bash-4.2
1675
1676<Libtool-2.4.2>
1677wget http://ftp.gnu.org/gnu/libtool/libtool-2.4.2.tar.gz
1678tar vxf libtool-2.4.2.tar.gz
1679cd libtool-2.4.2
1680
1681./configure --prefix=/usr
1682
1683make
1684
1685make check
1686
1687make install
1688
1689cd ..
1690rm -vfr libtool-2.4.2
1691
1692<GDBM-1.10>
1693wget http://ftp.gnu.org/gnu/gdbm/gdbm-1.10.tar.gz
1694tar vxf gdbm-1.10.tar.gz
1695cd gdbm-1.10
1696
1697./configure --prefix=/usr --enable-libgdbm-compat
1698
1699make
1700
1701make check
1702
1703make install
1704
1705cd ..
1706rm -vfr gdbm-1.10
1707
1708<Inetutils-1.9.1>
1709wget http://ftp.gnu.org/gnu/inetutils/inetutils-1.9.1.tar.gz
1710tar vxf inetutils-1.9.1.tar.gz
1711cd inetutils-1.9.1
1712
1713sed -i -e '/gets is a/d' lib/stdio.in.h
1714
1715./configure --prefix=/usr \
1716 --libexecdir=/usr/sbin \
1717 --localstatedir=/var \
1718 --disable-ifconfig \
1719 --disable-logger \
1720 --disable-syslogd \
1721 --disable-whois \
1722 --disable-servers
1723
1724make
1725
1726make check
1727
1728make install
1729make -C doc html
1730make -C doc install-html docdir=/usr/share/doc/inetutils-1.9.1
1731
1732mv -v /usr/bin/{hostname,ping,ping6} /bin
1733mv -v /usr/bin/traceroute /sbin
1734
1735cd ..
1736rm -vfr inetutils-1.9.1
1737
1738<Perl-5.16.1>
1739tar vxf perl-5.16.1.tar.bz2
1740cd perl-5.16.1
1741
1742hostname __a
1743
1744echo "127.0.0.1 localhost $(hostname)" > /etc/hosts
1745
1746sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = False|" \
1747 -e "s|INCLUDE\s*= ./zlib-src|INCLUDE = /usr/include|" \
1748 -e "s|LIB\s*= ./zlib-src|LIB = /usr/lib|" \
1749 cpan/Compress-Raw-Zlib/config.in
1750
1751sh Configure -des -Dprefix=/usr \
1752 -Dvendorprefix=/usr \
1753 -Dman1dir=/usr/share/man/man1 \
1754 -Dman3dir=/usr/share/man/man3 \
1755 -Dpager="/usr/bin/less -isR" \
1756 -Duseshrplib
1757
1758make
1759
1760make -k test
1761
1762make install
1763
1764cd ..
1765rm -vfr perl-5.16.1
1766
1767<Autoconf-2.69>
1768wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz
1769tar vxf autoconf-2.69.tar.xz
1770cd autoconf-2.69
1771
1772./configure --prefix=/usr
1773
1774make
1775
1776make install
1777
1778cd ..
1779rm -vfr autoconf-2.69
1780
1781<Automake-1.12.3>
1782wget http://ftp.gnu.org/gnu/automake/automake-1.12.3.tar.xz
1783tar vxf automake-1.12.3.tar.xz
1784cd automake-1.12.3
1785
1786./configure --prefix=/usr --docdir=/usr/share/doc/automake-1.12.3
1787
1788make
1789
1790make install
1791
1792cd ..
1793rm -vfr automake-1.12.3
1794
1795<Diffutils-3.2>
1796tar vxf diffutils-3.2.tar.gz
1797cd diffutils-3.2
1798
1799sed -i -e '/gets is a/d' lib/stdio.in.h
1800
1801./configure --prefix=/usr
1802
1803make
1804
1805make install
1806
1807cd ..
1808rm -vfr diffutils-3.2
1809
1810<Gawk-4.0.1>
1811tar vxf gawk-4.0.1.tar.xz
1812cd gawk-4.0.1
1813
1814./configure --prefix=/usr --libexecdir=/usr/lib
1815
1816make
1817
1818make install
1819
1820mkdir -v /usr/share/doc/gawk-4.0.1
1821cp -v doc/{awkforai.txt,*.{eps,pdf,jpg}} /usr/share/doc/gawk-4.0.1
1822
1823cd ..
1824rm -vfr gawk-4.0.1
1825
1826<Findutils-4.4.2>
1827tar vxf findutils-4.4.2.tar.gz
1828cd findutils-4.4.2
1829
1830./configure --prefix=/usr \
1831 --libexecdir=/usr/lib/findutils \
1832 --localstatedir=/var/lib/locate
1833
1834make
1835
1836make install
1837
1838mv -v /usr/bin/find /bin
1839sed -i 's/find:=${BINDIR}/find:=\/bin/' /usr/bin/updatedb
1840
1841cd ..
1842rm -vfr findutils-4.4.2
1843
1844<Flex-2.5.37>
1845wget http://prdownloads.sourceforge.net/flex/flex-2.5.37.tar.bz2
1846wget http://www.linuxfromscratch.org/patches/lfs/7.2/flex-2.5.37-bison-2.6.1-1.patch
1847tar vxf flex-2.5.37.tar.bz2
1848cd flex-2.5.37
1849
1850patch -Np1 -i ../flex-2.5.37-bison-2.6.1-1.patch
1851
1852./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
1853
1854make
1855
1856make install
1857
1858ln -sv libfl.a /usr/lib/libl.a
1859
1860cat > /usr/bin/lex << "EOF"
1861#!/bin/sh
1862# Begin /usr/bin/lex
1863
1864exec /usr/bin/flex -l "$@"
1865
1866# End /usr/bin/lex
1867EOF
1868chmod -v 755 /usr/bin/lex
1869
1870mkdir -v /usr/share/doc/flex-2.5.37
1871cp -v doc/flex.pdf /usr/share/doc/flex-2.5.37
1872
1873cd ..
1874rm -vfr flex-2.5.37
1875
1876<Gettext-0.18.1.1>
1877tar vxf gettext-0.18.1.1.tar.gz
1878cd gettext-0.18.1.1
1879
1880sed -i -e '/gets is a/d' gettext-*/*/stdio.in.h
1881
1882./configure --prefix=/usr \
1883 --docdir=/usr/share/doc/gettext-0.18.1.1
1884
1885make
1886
1887make install
1888
1889cd ..
1890rm -vfr gettext-0.18.1.1
1891
1892<Groff-1.21>
1893wget http://ftp.gnu.org/gnu/groff/groff-1.21.tar.gz
1894tar vxf groff-1.21.tar.gz
1895cd groff-1.21
1896
1897PAGE=A4 ./configure --prefix=/usr
1898
1899make
1900
1901make install
1902
1903ln -sv eqn /usr/bin/geqn
1904ln -sv tbl /usr/bin/gtbl
1905
1906cd ..
1907rm -vfr groff-1.21
1908
1909<Xz-5.0.4>
1910tar vxf xz-5.0.4.tar.xz
1911cd xz-5.0.4
1912
1913./configure --prefix=/usr --libdir=/lib --docdir=/usr/share/doc/xz-5.0.4
1914
1915make
1916
1917make pkgconfigdir=/usr/lib/pkgconfig install
1918
1919cd ..
1920rm -vfr xz-5.0.4
1921
1922<Grub-2.00>
1923wget http://ftp.gnu.org/gnu/grub/grub-2.00.tar.xz
1924tar vxf grub-2.00.tar.xz
1925cd grub-2.00
1926
1927sed -i -e '/gets is a/d' grub-core/gnulib/stdio.in.h
1928
1929./configure --prefix=/usr \
1930 --sysconfdir=/etc \
1931 --disable-grub-emu-usb \
1932 --disable-efiemu \
1933 --disable-werror
1934
1935make
1936
1937make install
1938
1939cd ..
1940rm -vfr grub-2.00
1941
1942<Less-444>
1943wget http://www.greenwoodsoftware.com/less/less-444.tar.gz
1944tar vxf less-444.tar.gz
1945cd less-444
1946
1947./configure --prefix=/usr --sysconfdir=/etc
1948
1949make
1950
1951make install
1952
1953cd ..
1954rm -vfr less-444
1955
1956<Gzip-1.5>
1957tar vxf gzip-1.5.tar.xz
1958cd gzip-1.5
1959
1960./configure --prefix=/usr --bindir=/bin
1961
1962make
1963
1964make install
1965
1966mv -v /bin/{gzexe,uncompress,zcmp,zdiff,zegrep} /usr/bin
1967mv -v /bin/{zfgrep,zforce,zgrep,zless,zmore,znew} /usr/bin
1968
1969cd ..
1970rm -vfr gzip-1.5
1971
1972<IPRoute2-3.5.1>
1973wget http://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-3.5.1.tar.xz
1974tar vxf iproute2-3.5.1.tar.xz
1975cd iproute2-3.5.1
1976
1977sed -i '/^TARGETS/s@arpd@@g' misc/Makefile
1978sed -i /ARPD/d Makefile
1979sed -i 's/arpd.8//' man/man8/Makefile
1980
1981make DESTDIR=
1982
1983make DESTDIR= \
1984 MANDIR=/usr/share/man \
1985 DOCDIR=/usr/share/doc/iproute2-3.5.1 install
1986
1987cd ..
1988rm -vfr iproute2-3.5.1
1989
1990<Kbd-1.15.3>
1991wget http://ftp.altlinux.org/pub/people/legion/kbd/kbd-1.15.3.tar.gz
1992wget http://www.linuxfromscratch.org/patches/lfs/7.2/kbd-1.15.3-upstream_fixes-1.patch
1993wget http://www.linuxfromscratch.org/patches/lfs/7.2/kbd-1.15.3-backspace-1.patch
1994tar vxf kbd-1.15.3.tar.gz
1995cd kbd-1.15.3
1996
1997patch -Np1 -i ../kbd-1.15.3-upstream_fixes-1.patch
1998patch -Np1 -i ../kbd-1.15.3-backspace-1.patch
1999
2000sed -i '/guardado\ el/s/\(^.*en\ %\)\(.*\)/\14\$\2/' po/es.po
2001sed -i 's/\(RESIZECONS_PROGS=\)yes/\1no/' configure
2002sed -i 's/resizecons.8 //' man/man8/Makefile.in
2003touch -d '2011-05-07 08:30' configure.ac
2004
2005./configure --prefix=/usr --datadir=/lib/kbd
2006
2007make
2008
2009make install
2010
2011mv -v /usr/bin/{kbd_mode,loadkeys,openvt,setfont} /bin
2012
2013mkdir -v /usr/share/doc/kbd-1.15.3
2014cp -R -v doc/* \
2015 /usr/share/doc/kbd-1.15.3
2016
2017cd ..
2018rm -vfr kbd-1.15.3
2019
2020<Kmod-9>
2021wget http://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-9.tar.xz
2022wget http://www.linuxfromscratch.org/patches/lfs/7.2/kmod-9-testsuite-1.patch
2023tar vxf kmod-9.tar.xz
2024cd kmod-9
2025
2026patch -Np1 -i ../kmod-9-testsuite-1.patch
2027
2028./configure --prefix=/usr \
2029 --bindir=/bin \
2030 --libdir=/lib \
2031 --sysconfdir=/etc \
2032 --with-xz \
2033 --with-zlib
2034
2035make
2036
2037make pkgconfigdir=/usr/lib/pkgconfig install
2038
2039for target in depmod insmod modinfo modprobe rmmod; do
2040 ln -sv ../bin/kmod /sbin/$target
2041done
2042
2043ln -sv kmod /bin/lsmod
2044
2045cd ..
2046rm -vfr kmod-9
2047
2048<Libpipeline-1.2.1>
2049wget http://download.savannah.gnu.org/releases/libpipeline/libpipeline-1.2.1.tar.gz
2050tar vxf libpipeline-1.2.1.tar.gz
2051cd libpipeline-1.2.1
2052
2053sed -i -e '/gets is a/d' gnulib/lib/stdio.in.h
2054
2055PKG_CONFIG_PATH=/tools/lib/pkgconfig ./configure --prefix=/usr
2056
2057make
2058
2059make install
2060
2061cd ..
2062rm -vfr libpipeline-1.2.1
2063
2064<Make-3.82>
2065tar vxf make-3.82.tar.bz2
2066cd make-3.82
2067
2068patch -Np1 -i ../make-3.82-upstream_fixes-3.patch
2069
2070./configure --prefix=/usr
2071
2072make
2073
2074make install
2075
2076cd ..
2077rm -vfr make-3.82
2078
2079<Man-DB-2.6.2>
2080wget http://download.savannah.gnu.org/releases/man-db/man-db-2.6.2.tar.xz
2081tar vxf man-db-2.6.2.tar.xz
2082cd man-db-2.6.2
2083
2084sed -i -e '/gets is a/d' gnulib/lib/stdio.in.h
2085
2086./configure --prefix=/usr \
2087 --libexecdir=/usr/lib \
2088 --docdir=/usr/share/doc/man-db-2.6.2 \
2089 --sysconfdir=/etc \
2090 --disable-setuid \
2091 --with-browser=/usr/bin/lynx \
2092 --with-vgrind=/usr/bin/vgrind \
2093 --with-grap=/usr/bin/grap
2094
2095make
2096
2097make install
2098
2099cd ..
2100rm -vfr man-db-2.6.2
2101
2102<Patch-2.6.1>
2103tar vxf patch-2.6.1.tar.bz2
2104cd patch-2.6.1
2105
2106patch -Np1 -i ../patch-2.6.1-test_fix-1.patch
2107
2108./configure --prefix=/usr
2109
2110make
2111
2112make install
2113
2114cd ..
2115rm -vfr patch-2.6.1
2116
2117<Sysklogd-1.5>
2118wget http://www.infodrom.org/projects/sysklogd/download/sysklogd-1.5.tar.gz
2119tar vxf sysklogd-1.5.tar.gz
2120cd sysklogd-1.5
2121
2122make
2123
2124make BINDIR=/sbin install
2125
2126cat > /etc/syslog.conf << "EOF"
2127# Begin /etc/syslog.conf
2128
2129auth,authpriv.* -/var/log/auth.log
2130*.*;auth,authpriv.none -/var/log/sys.log
2131daemon.* -/var/log/daemon.log
2132kern.* -/var/log/kern.log
2133mail.* -/var/log/mail.log
2134user.* -/var/log/user.log
2135*.emerg *
2136
2137# End /etc/syslog.conf
2138EOF
2139
2140cd ..
2141rm -vfr sysklogd-1.5
2142
2143<Sysvinit-2.88dsf>
2144wget http://download.savannah.gnu.org/releases/sysvinit/sysvinit-2.88dsf.tar.bz2
2145tar vxf sysvinit-2.88dsf.tar.bz2
2146cd sysvinit-2.88dsf
2147
2148sed -i 's@Sending processes@& configured via /etc/inittab@g' src/init.c
2149sed -i -e 's/utmpdump wall/utmpdump/' \
2150 -e '/= mountpoint/d' \
2151 -e 's/mountpoint.1 wall.1//' src/Makefile
2152
2153make -C src
2154
2155make -C src install
2156
2157cd ..
2158rm -vfr sysvinit-2.88dsf
2159
2160<Tar-1.26>
2161tar vxf tar-1.26.tar.bz2
2162cd tar-1.26
2163
2164sed -i -e '/gets is a/d' gnu/stdio.in.h
2165
2166FORCE_UNSAFE_CONFIGURE=1 \
2167./configure --prefix=/usr \
2168 --bindir=/bin \
2169 --libexecdir=/usr/sbin
2170
2171make
2172
2173make install
2174make -C doc install-html docdir=/usr/share/doc/tar-1.26
2175
2176cd ..
2177rm -vfr tar-1.26
2178
2179<Texinfo-4.13a>
2180tar vxf texinfo-4.13a.tar.gz
2181cd texinfo-4.13
2182
2183./configure --prefix=/usr
2184
2185make
2186
2187make install
2188make TEXMF=/usr/share/texmf insta l-tex
2189
2190cd /usr/share/info
2191rm -v dir
2192for f in *
2193do install-info $f dir 2>/dev/null
2194done
2195
2196cd $__a/sources
2197rm -vfr texinfo-4.13
2198
2199<Udev-188>
2200*** SOMETIMES THIS PACKAGE ERRORS OUT ON LDCOLLECT USING MULTICORE SYSTEMS.
2201*** IF SO DELETE THE SOURCE TREE AND START AGAIN. RACE CONDITIONS ARE COOL =\
2202wget http://www.freedesktop.org/software/systemd/systemd-188.tar.xz
2203wget http://anduin.linuxfromscratch.org/sources/other/udev-lfs-188-3.tar.bz2
2204tar vxf systemd-188.tar.xz
2205cd systemd-188
2206
2207tar -xvf ../udev-lfs-188-3.tar.bz2
2208
2209make -f udev-lfs-188/Makefile.lfs
2210
2211make -f udev-lfs-188/Makefile.lfs install
2212
2213cd ..
2214rm -vfr systemd-188
2215
2216<Vim-7.3>
2217wget ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2
2218tar vxf vim-7.3.tar.bz2
2219cd vim73
2220
2221echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
2222
2223./configure --prefix=/usr --enable-multibyte
2224
2225make
2226
2227make install
2228
2229ln -sv vim /usr/bin/vi
2230for L in /usr/share/man/{,*/}man1/vim.1; do
2231 ln -sv vim.1 $(dirname $L)/vi.1
2232done
2233
2234ln -sv ../vim/vim73/doc /usr/share/doc/vim-7.3
2235
2236cat > /etc/vimrc << "EOF"
2237" Begin /etc/vimrc
2238
2239set nocompatible
2240set backspace=2
2241syntax on
2242if (&term == "iterm") || (&term == "putty")
2243 set background=dark
2244endif
2245
2246" End /etc/vimrc
2247EOF
2248
2249cd ..
2250rm -vfr vim73
2251
2252logout
2253
2254chroot $__a /usr/bin/env -i \
2255 HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
2256 PATH=/bin:/usr/bin:/sbin:/usr/sbin \
2257 /bin/bash -login
2258
2259rm -vfr /tools
2260
2261grep -H . /sys/class/net/*/address
2262 *** Record the mac for eth0
2263 *** Example: 00:11:22:33:44:55
2264/sys/class/net/eth0/address:00:16:d3:99:e1:dd
2265/sys/class/net/lo/address:00:00:00:00:00:00
2266/sys/class/net/wlan0/address:00:1f:3b:76:50:f1
2267
2268 *** Remember to change the MAC address to match your system
2269cat > /etc/udev/rules.d/70-persistent-net.rules << "EOF"
2270SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:16:d3:99:e1:dd", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
2271EOF
2272
2273 *** Change the IP details to match your network
2274cd /etc/sysconfig/
2275cat > ifconfig.eth0 << "EOF"
2276ONBOOT=yes
2277IFACE=eth0
2278SERVICE=ipv4-static
2279IP=192.168.0.100
2280GATEWAY=192.168.0.1
2281PREFIX=24
2282BROADCAST=192.168.0.255
2283EOF
2284
2285 *** Change the DNS Server details to match your network
2286cat > /etc/resolv.conf << "EOF"
2287# Begin /etc/resolv.conf
2288
2289domain __a
2290nameserver 192.168.0.1
2291
2292# End /etc/resolv.conf
2293EOF
2294
2295 *** Change the Hostname details to match your network
2296cat > /etc/hosts << "EOF"
2297# Begin /etc/hosts (network card version)
2298
2299127.0.0.1 localhost
2300192.168.0.100 __a
2301
2302# End /etc/hosts (network card version)
2303EOF
2304
2305<lfs-bootscripts>
2306
2307cd $__a/sources
2308
2309wget http://www.linuxfromscratch.org/lfs/downloads/7.2/lfs-bootscripts-20120901.tar.bz2
2310
2311tar vxf lfs-bootscripts-20120901.tar.bz2
2312cd lfs-bootscripts-20120901
2313
2314make install
2315
2316cd ..
2317rm -vfr lfs-bootscripts-20120901
2318
2319cat > /etc/inittab << "EOF"
2320# Begin /etc/inittab
2321
2322id:3:initdefault:
2323
2324si::sysinit:/etc/rc.d/init.d/rc S
2325
2326l0:0:wait:/etc/rc.d/init.d/rc 0
2327l1:S1:wait:/etc/rc.d/init.d/rc 1
2328l2:2:wait:/etc/rc.d/init.d/rc 2
2329l3:3:wait:/etc/rc.d/init.d/rc 3
2330l4:4:wait:/etc/rc.d/init.d/rc 4
2331l5:5:wait:/etc/rc.d/init.d/rc 5
2332l6:6:wait:/etc/rc.d/init.d/rc 6
2333
2334ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
2335
2336su:S016:once:/sbin/sulogin
2337
23381:2345:respawn:/sbin/agetty --noclear tty1 9600
23392:2345:respawn:/sbin/agetty tty2 9600
23403:2345:respawn:/sbin/agetty tty3 9600
23414:2345:respawn:/sbin/agetty tty4 9600
23425:2345:respawn:/sbin/agetty tty5 9600
23436:2345:respawn:/sbin/agetty tty6 9600
2344
2345# End /etc/inittab
2346EOF
2347
2348echo "HOSTNAME=__a" > /etc/sysconfig/network
2349
2350cat > /etc/sysconfig/clock << "EOF"
2351# Begin /etc/sysconfig/clock
2352
2353UTC=1
2354
2355# Set this to any options you might need to give to hwclock,
2356# such as machine hardware clock type for Alphas.
2357CLOCKPARAMS=
2358
2359# End /etc/sysconfig/clock
2360EOF
2361
2362*** CHANGE KEYMAP TO SUIT YOUR REGION
2363cat > /etc/sysconfig/console << "EOF"
2364# Begin /etc/sysconfig/console
2365
2366LOGLEVEL="1"
2367UNICODE="1"
2368KEYMAP="uk"
2369
2370# End /etc/sysconfig/console
2371EOF
2372
2373cat > /etc/profile << "EOF"
2374# Begin /etc/profile
2375
2376export LANG=en_GB.UTF-8
2377
2378# End /etc/profile
2379EOF
2380
2381cat > /etc/inputrc << "EOF"
2382# Begin /etc/inputrc
2383# Modified by Chris Lynn <roryo@roryo.dynup.net>
2384
2385# Allow the command prompt to wrap to the next line
2386set horizontal-scroll-mode Off
2387
2388# Enable 8bit input
2389set meta-flag On
2390set input-meta On
2391
2392# Turns off 8th bit stripping
2393set convert-meta Off
2394
2395# Keep the 8th bit for display
2396set output-meta On
2397
2398# none, visible or audible
2399set bell-style none
2400
2401# All of the following map the escape sequence of the value
2402# contained in the 1st argument to the readline specific functions
2403"\eOd": backward-word
2404"\eOc": forward-word
2405
2406# for linux console
2407"\e[1~": beginning-of-line
2408"\e[4~": end-of-line
2409"\e[5~": beginning-of-history
2410"\e[6~": end-of-history
2411"\e[3~": delete-char
2412"\e[2~": quoted-insert
2413
2414# for xterm
2415"\eOH": beginning-of-line
2416"\eOF": end-of-line
2417
2418# for Konsole
2419"\e[H": beginning-of-line
2420"\e[F": end-of-line
2421
2422# End /etc/inputrc
2423EOF
2424
2425 *** Change the mount points to suit your system (hda or sda)
2426cat > /etc/fstab << "EOF"
2427# Begin /etc/fstab
2428
2429/dev/sda1 / ext3 defaults 1 1
2430/dev/sda2 swap swap pri=1 0 0
2431/dev/sda3 /home ext3 defaults 1 2
2432proc /proc proc nosuid,noexec,nodev 0 0
2433sysfs /sys sysfs nosuid,noexec,nodev 0 0
2434devpts /dev/pts devpts gid=5,mode=620 0 0
2435tmpfs /run tmpfs defaults 0 0
2436devtmpfs /dev devtmpfs mode=0755,nosuid 0 0
2437
2438# End /etc/fstab
2439EOF
2440
2441<Linux-3.5.2>
2442cd linux-3.5.2
2443
2444make mrproper
2445
2446***Due to recent changes in udev, be sure to select:
2447 Device Drivers --->
2448 Generic Driver Options --->
2449 Maintain a devtmpfs filesystem to mount at /dev
2450
2451make LANG=en_GB.UTF-8 LC_ALL= menuconfig
2452
2453*** this is where, at least, you select the drivers you need for your
2454kernel.
2455*** The most important bit is getting the hard-drive interfaces correct
2456so at least you can boot =)
2457*** Are your drives IDE? SATA? whats the chipset? and so on.....
2458*** If you're booted on a live CD then use the system profiler (if it
2459has one) to check hardware etx...
2460
2461make
2462
2463make modules_install
2464
2465cp -v arch/x86/boot/bzImage /boot/__aCore-3.6.11
2466cp -v System.map /boot/System.map-3.6.11
2467cp -v .config /boot/Config-3.6.11
2468
2469install -d /usr/share/doc/linux-3.6.11
2470cp -r Documentation/* /usr/share/doc/linux-3.6.11
2471
2472cd ..
2473
2474grub-install /dev/sda
2475
2476cat > /boot/grub/grub.cfg << "EOF"
2477# Begin /boot/grub/grub.cfg
2478set default=0
2479set timeout=3
2480
2481insmod ext2
2482set root=(hd0,1)
2483menuentry "__A K10" { linux /boot/__aCore-3.6.11
2484root=/dev/sda1 ro }
2485EOF
2486
2487echo 7.2 > /etc/__a-release
2488
2489cat > /etc/lsb-release << "EOF"
2490DISTRIB_ID="__A K10 Linux"
2491DISTRIB_RELEASE="10.2"
2492DISTRIB_CODENAME="__A K10"
2493DISTRIB_DESCRIPTION="__A K10 Linux"
2494EOF
2495
2496echo "export MAKEFLAGS='-j 2'" >> /etc/bashrc
2497export MAKEFLAGS='-j 2'
2498
2499<OpenSSL-1.0.1c>
2500wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
2501tar vxf openssl-1.0.1c.tar.gz
2502cd openssl-1.0.1c
2503
2504patch -Np1 -i ../openssl-1.0.1c-fix_manpages-1.patch
2505
2506./config --prefix=/usr zlib-dynamic --openssldir=/etc/ssl shared
2507
2508make
2509
2510sed -i 's# libcrypto.a##;s# libssl.a##' Makefile
2511
2512make MANDIR=/usr/share/man install
2513
2514install -v -d -m755 /usr/share/doc/openssl-1.0.1c
2515cp -v -r doc/* /usr/share/doc/openssl-1.0.1c
2516
2517cd ..
2518rm -vfr openssl-1.0.1c
2519
2520<OpenSSH-6.1p1>
2521wget http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-6.1p1.tar.gz
2522tar vxf openssh-6.1p1.tar.gz
2523cd openssh-6.1p1
2524
2525install -v -m700 -d /var/lib/sshd
2526chown -v root:sys /var/lib/sshd
2527
2528groupadd -g 50 sshd
2529
2530useradd -c 'sshd PrivSep' -d /var/lib/sshd -g sshd -s /bin/false -u 50 sshd
2531
2532./configure --prefix=/usr \
2533 --sysconfdir=/etc/ssh \
2534 --datadir=/usr/share/sshd
2535 --with-md5-passwords \
2536 --with-privsep-path=/var/lib/sshd
2537
2538make
2539
2540make install
2541
2542install -v -m755 -d /usr/share/doc/openssh-6.1p1
2543install -v -m644 INSTALL LICENCE OVERVIEW README* \
2544 /usr/share/doc/openssh-6.1p1
2545
2546cd ..
2547rm -vfr openssh-6.1p1
2548
2549wget http://www.linuxfromscratch.org/blfs/downloads/svn/blfs-bootscripts-20120828.tar.bz2
2550tar vxf blfs-bootscripts-20120828.tar.bz2
2551cd blfs-bootscripts-20120828
2552make install-sshd
2553cd ..
2554
2555/etc/rc.d/init.d/sshd start
2556
2557<Wget-1.14>
2558wget http://ftp.gnu.org/gnu/wget/wget-1.14.tar.xz
2559tar vxf wget-1.14.tar.xz
2560cd wget-1.14
2561
2562./configure --prefix=/usr \
2563 --sysconfdir=/etc \
2564 --without-ssl
2565
2566make
2567
2568make install
2569
2570cd ..
2571rm -vfr wget-1.14
2572
2573<Sudo-1.8.6p3>
2574wget http://www.sudo.ws/sudo/dist/sudo-1.8.6p3.tar.gz
2575tar vxf sudo-1.8.6p3.tar.gz
2576cd sudo-1.8.6p3
2577
2578./configure --prefix=/usr \
2579 --libexecdir=/usr/lib/sudo \
2580 --docdir=/usr/share/doc/sudo-1.8.6p3 \
2581 --with-all-insults \
2582 --with-env-editor \
2583 --without-pam \
2584 --without-sendmail
2585
2586make
2587
2588make install
2589
2590cd ..
2591rm -vfr sudo-1.8.6p3
2592
2593cat > /etc/sudoers << "EOF"
2594# User alias specification
2595User_Alias ADMIN = __a
2596
2597# Allow people in group ADMIN to run all commands without a password
2598ADMIN ALL = NOPASSWD: ALL
2599EOF
2600
2601logout
2602cd /
2603
2604umount -v $__a/dev/pts
2605umount -v $__a/dev/shm
2606umount -v $__a/dev
2607umount -v $__a/proc
2608umount -v $__a/sys
2609umount -v $__a/home
2610umount -v $__a
2611
2612shutdown -r now
2613
2614##### STAGE 1 BAREBONE COMPLETE #####
2615
2616If you've made it this far and everything is cool then congratulations
2617indeed. Fair play for a great effort. If however your system is in ruins
2618then maybe you should start again or pay particular attention to what is
2619happening each step of the way =) I'm not here to help you if you should
2620struggle...
2621
2622By now you should have a bootable platform =)
2623Remember this setup is a tool chain than can be used as a platform for
2624building any type of system you like =)
2625You have built:
2626a fully functional gcc 4.7.1 gnu compiler with backend tool chain.
2627a working network stack and basic connectivity. Means you can download
2628and communicate =)
2629a secure shell interface so you can copy and paste between the web and
2630putty/ssh etc...
2631a good idea on how to localise keyboard maps and regionlise time zones
2632etc.
2633a working knowledge of how a basic functional linux system is put
2634together =)
2635a strong familiarity of how to work a compiler which opens doors to what
2636you can install.
2637freedom to build the platform you want =)
2638
2639Hope you enjoy it all and if the build went good your boot time should
2640be lighting quick and if you have multiple cores these packages will fly
2641together in no time at all =)
2642
2643Next mission is to compile the xorg server needed to render gnome3. Not
2644for the faint of heart i can tell you. My first build took over 25hrs
2645just to build xorg, and a futher 10 for gnome. just goes to show that
2646you really have to put the hours in to get great results. SO let me help
2647cut down that time to build by giving some step-by-steps to hopefully
2648aid in a painless compiling experience.
2649Good luck, you're gonna need it.
2650__a
2651
2652##### STAGE 2 XORG #####
2653
2654I think you know the drill by now so without further ado, lets get
2655cracking =)
2656
2657<Shell Scripts>
2658cat > /etc/profile << "EOF"
2659# Begin /etc/profile
2660# Written for Beyond Linux From Scratch
2661# by James Robertson <jameswrobertson@earthlink.net>
2662# modifications by Dagmar d'Surreal <rivyqntzne@pbzpnfg.arg>
2663
2664# System wide environment variables and startup programs.
2665
2666# System wide aliases and functions should go in /etc/bashrc. Personal
2667# environment variables and startup programs should go into
2668# ~/.bash_profile. Personal aliases and functions should go into
2669# ~/.bashrc.
2670
2671# Functions to help us manage paths. Second argument is the name of the
2672# path variable to be modified (default: PATH)
2673pathremove () {
2674 local IFS=':'
2675 local NEWPATH
2676 local DIR
2677 local PATHVARIABLE=${2:-PATH}
2678 for DIR in ${!PATHVARIABLE} ; do
2679 if [ "$DIR" != "$1" ] ; then
2680 NEWPATH=${NEWPATH:+$NEWPATH:}$DIR
2681 fi
2682 done
2683 export $PATHVARIABLE="$NEWPATH"
2684}
2685
2686pathprepend () {
2687 pathremove $1 $2
2688 local PATHVARIABLE=${2:-PATH}
2689 export $PATHVARIABLE="$1${!PATHVARIABLE:+:${!PATHVARIABLE}}"
2690}
2691
2692pathappend () {
2693 pathremove $1 $2
2694 local PATHVARIABLE=${2:-PATH}
2695 export $PATHVARIABLE="${!PATHVARIABLE:+${!PATHVARIABLE}:}$1"
2696}
2697
2698
2699# Set the initial path
2700export PATH=/bin:/usr/bin
2701
2702if [ $EUID -eq 0 ] ; then
2703 pathappend /sbin:/usr/sbin
2704 unset HISTFILE
2705fi
2706
2707# Setup some environment variables.
2708export HISTSIZE=1000
2709export HISTIGNORE="&:[bf]g:exit"
2710
2711# Setup a red prompt for root and a green one for users.
2712NORMAL="\[\e[0m\]"
2713RED="\[\e[1;31m\]"
2714GREEN="\[\e[1;32m\]"
2715if [[ $EUID == 0 ]] ; then
2716 PS1="$RED\u [ $NORMAL\w$RED ]# $NORMAL"
2717else
2718 PS1="$GREEN\u [ $NORMAL\w$GREEN ]\$ $NORMAL"
2719fi
2720
2721for script in /etc/profile.d/*.sh ; do
2722 if [ -r $script ] ; then
2723 . $script
2724 fi
2725done
2726
2727# Now to clean up
2728unset pathremove pathprepend pathappend
2729
2730# End /etc/profile
2731EOF
2732
2733install --directory --mode=0755 --owner=root --group=root /etc/profile.d
2734
2735cat > /etc/profile.d/dircolors.sh << "EOF"
2736# Setup for /bin/ls to support color, the alias is in /etc/bashrc.
2737if [ -f "/etc/dircolors" ] ; then
2738 eval $(dircolors -b /etc/dircolors)
2739
2740 if [ -f "$HOME/.dircolors" ] ; then
2741 eval $(dircolors -b $HOME/.dircolors)
2742 fi
2743fi
2744alias ls='ls --color=auto'
2745EOF
2746
2747cat > /etc/profile.d/extrapaths.sh << "EOF"
2748if [ -d /usr/local/lib/pkgconfig ] ; then
2749 pathappend /usr/local/lib/pkgconfig PKG_CONFIG_PATH
2750fi
2751if [ -d /usr/local/bin ]; then
2752 pathprepend /usr/local/bin
2753fi
2754if [ -d /usr/local/sbin -a $EUID -eq 0 ]; then
2755 pathprepend /usr/local/sbin
2756fi
2757
2758if [ -d ~/bin ]; then
2759 pathprepend ~/bin
2760fi
2761#if [ $EUID -gt 99 ]; then
2762# pathappend .
2763#fi
2764EOF
2765
2766cat > /etc/profile.d/readline.sh << "EOF"
2767# Setup the INPUTRC environment variable.
2768if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ] ; then
2769 INPUTRC=/etc/inputrc
2770fi
2771export INPUTRC
2772EOF
2773
2774cat > /etc/profile.d/umask.sh << "EOF"
2775# By default, the umask should be set.
2776if [ "$(id -gn)" = "$(id -un)" -a $EUID -gt 99 ] ; then
2777 umask 002
2778else
2779 umask 022
2780fi
2781EOF
2782
2783cat > /etc/profile.d/i18n.sh << "EOF"
2784# Set up i18n variables
2785export LANG=en_GB.UTF-8
2786EOF
2787
2788cat > /etc/bashrc << "EOF"
2789# Begin /etc/bashrc
2790# Written for Beyond Linux From Scratch
2791# by James Robertson <jameswrobertson@earthlink.net>
2792# updated by Bruce Dubbs <bdubbs@linuxfromscratch.org>
2793
2794# System wide aliases and functions.
2795
2796# System wide environment variables and startup programs should go into
2797# /etc/profile. Personal environment variables and startup programs
2798# should go into ~/.bash_profile. Personal aliases and functions should
2799# go into ~/.bashrc
2800
2801# Provides a colored /bin/ls command. Used in conjunction with code in
2802# /etc/profile.
2803
2804alias ls='ls --color=auto'
2805
2806# Provides prompt for non-login shells, specifically shells started
2807# in the X environment. [Review the LFS archive thread titled
2808# PS1 Environment Variable for a great case study behind this script
2809# addendum.]
2810
2811NORMAL="\[\e[0m\]"
2812RED="\[\e[1;31m\]"
2813GREEN="\[\e[1;32m\]"
2814if [[ $EUID == 0 ]] ; then
2815 PS1="$RED\u [ $NORMAL\w$RED ]# $NORMAL"
2816else
2817 PS1="$GREEN\u [ $NORMAL\w$GREEN ]\$ $NORMAL"
2818fi
2819
2820# Set this to the number of cpu cores you have.
2821export MAKEFLAGS='-j 4'
2822
2823# End /etc/bashrc
2824EOF
2825
2826cat > ~/.bash_profile << "EOF"
2827# Begin ~/.bash_profile
2828# Written for Beyond Linux From Scratch
2829# by James Robertson <jameswrobertson@earthlink.net>
2830# updated by Bruce Dubbs <bdubbs@linuxfromscratch.org>
2831
2832# Personal environment variables and startup programs.
2833
2834# Personal aliases and functions should go in ~/.bashrc. System wide
2835# environmen variables and startup programs are in /etc/profile.
2836# System wide aliases and functions are in /etc/bashrc.
2837
2838append () {
2839 # First remove the directory
2840 local IFS=':'
2841 local NEWPATH
2842 for DIR in $PATH; do
2843 if [ "$DIR" != "$1" ]; then
2844 NEWPATH=${NEWPATH:+$NEWPATH:}$DIR
2845 fi
2846 done
2847
2848 # Then append the directory
2849 export PATH=$NEWPATH:$1
2850}
2851
2852if [ -f "$HOME/.bashrc" ] ; then
2853 source $HOME/.bashrc
2854fi
2855
2856if [ -d "$HOME/bin" ] ; then
2857 append $HOME/bin
2858fi
2859
2860unset append
2861
2862# End ~/.bash_profile
2863EOF
2864
2865cat > ~/.bashrc << "EOF"
2866# Begin ~/.bashrc
2867# Written for Beyond Linux From Scratch
2868# by James Robertson <jameswrobertson@earthlink.net>
2869
2870# Personal aliases and functions.
2871
2872# Personal environment variables and startup programs should go in
2873# ~/.bash_profile. System wide environment variables and startup
2874# programs are in /etc/profile. System wide aliases and functions are
2875# in /etc/bashrc.
2876
2877if [ -f "/etc/bashrc" ] ; then
2878 source /etc/bashrc
2879fi
2880
2881# End ~/.bashrc
2882EOF
2883
2884cat > ~/.bash_logout << "EOF"
2885# Begin ~/.bash_logout
2886# Written for Beyond Linux From Scratch
2887# by James Robertson <jameswrobertson@earthlink.net>
2888
2889# Personal items to perform on logout.
2890
2891# End ~/.bash_logout
2892EOF
2893
2894mkdir -v /etc/skel
2895cp -v ~/.bash* /etc/skel
2896
2897dircolors -p > /etc/dircolors
2898dircolors -p > /etc/skel/.dircolors
2899dircolors -p > /root/.dircolors
2900
2901cat > /etc/skel/.vimrc << "EOF"
2902" Begin .vimrc
2903
2904set columns=80
2905set wrapmargin=8
2906set ruler
2907
2908" End .vimrc
2909EOF
2910
2911cp -v /etc/skel/.vimrc /root/
2912
2913cat > /etc/shells << "EOF"
2914# Begin /etc/shells
2915
2916/bin/sh
2917/bin/bash
2918
2919# End /etc/shells
2920EOF
2921
2922cd /sources
2923tar vxf blfs-bootscripts-20130127
2924cd blfs-bootscripts-20130127
2925make install-random
2926cd ..
2927
2928cat > /usr/sbin/compressdoc << "EOF"
2929#!/bin/bash
2930# VERSION: 20080421.1623
2931#
2932# Compress (with bzip2 or gzip) all man pages in a hierarchy and
2933# update symlinks - By Marc Heerdink <marc @ koelkast.net>
2934#
2935# Modified to be able to gzip or bzip2 files as an option and to deal
2936# with all symlinks properly by Mark Hymers <markh @
2937# linuxfromscratch.org>
2938#
2939# Modified 20030930 by Yann E. Morin <yann.morin.1998 @ anciens.enib.fr>
2940# to accept compression/decompression, to correctly handle hard-links,
2941# to allow for changing hard-links into soft- ones, to specify the
2942# compression level, to parse the man.conf for all occurrences of
2943# MANPATH,
2944# to allow for a backup, to allow to keep the newest version of a page.
2945#
2946# Modified 20040330 by Tushar Teredesai to replace $0 by the name of the
2947# script.
2948# (Note: It is assumed that the script is in the user's PATH)
2949#
2950# Modified 20050112 by Randy McMurchy to shorten line lengths and
2951# correct grammar errors.
2952#
2953# Modified 20060128 by Alexander E. Patrakov for compatibility with
2954# Man-DB.
2955#
2956# Modified 20060311 by Archaic to use Man-DB manpath utility which is a
2957# replacement for man --path from Man.
2958#
2959# Modified 20080421 by Dan Nicholson to properly execute the correct
2960# compressdoc when working recursively. This means the same compressdoc
2961# will be used whether a full path was given or it was resolved from
2962# PATH.
2963#
2964# Modified 20080421 by Dan Nicholson to be more robust with directories
2965# that don't exist or don't have sufficient permissions.
2966#
2967# Modified 20080421 by Lars Bamberger to (sort of) automatically choose
2968# a compression method based on the size of the manpage. A couple bug
2969# fixes were added by Dan Nicholson.
2970#
2971# Modified 20080421 by Dan Nicholson to suppress warnings from manpath
2972# since these are emitted when $MANPATH is set. Removed the TODO for
2973# using the $MANPATH variable since manpath(1) handles this already.
2974#
2975# TODO:
2976# - choose a default compress method to be based on the available
2977# tool : gzip or bzip2;
2978# - offer an option to restore a previous backup;
2979# - add other compression engines (compress, zip, etc?). Needed?
2980
2981# Funny enough, this function prints some help.
2982function help ()
2983{
2984 if [ -n "$1" ]; then
2985 echo "Unknown option : $1"
2986 fi
2987 ( echo "Usage: $MY_NAME <comp_ ethod> [options] [dirs]" && \
2988 cat << EOT
2989Where comp_method is one of :
2990 --gzip, --gz, -g
2991 --bzip2, --bz2, -b
2992 Compress using gzip or bzip2.
2993 --automatic
2994 Compress using either gzip or bzip2, depending on the
2995 size of the file to be compressed. Files larger than 5
2996 kB are bzipped, files larger than 1 kB are gzipped and
2997 files smaller than 1 kB are not compressed.
2998
2999 --decompress, -d
3000 Decompress the man pages.
3001
3002 --backup Specify a .tar backup shall be done for all directories.
3003 In case a backup already exists, it is saved as .tar.old
3004 prior to making the new backup. If a .tar.old backup
3005 exists, it is removed prior to saving the backup.
3006 In backup mode, no other action is performed.
3007
3008And where options are :
3009 -1 to -9, --fast, --best
3010 The compression level, as accepted by gzip and bzip2.
3011 When not specified, uses the default compression level
3012 for the given method (-6 for gzip, and -9 for bzip2).
3013 Not used when in backup or decompress modes.
3014
3015 --force, -F Force (re-)compression, even if the previous one was
3016 the same method. Useful when changing the compression
3017 ratio. By default, a page will not be re-compressed if
3018 it ends with the same suffix as the method adds
3019 (.bz2 for bzip2, .gz for gzip).
3020
3021 --soft, -S Change hard-links into soft-links. Use with _caution_
3022 as the first encountered file will be used as a
3023 reference. Not used when in backup mode.
3024
3025 --hard, -H Change soft-links into hard-links. Not used when in
3026 backup mode.
3027
3028 --conf=dir, --conf dir
3029 Specify the location of man_db.conf. Defaults to /etc.
3030
3031 --verbose, -v Verbose mode, print the name of the directory being
3032 processed. Double the flag to turn it even more verbose,
3033 and to print the name of the file being processed.
3034
3035 --fake, -f Fakes it. Print the actual parameters compressdoc will use.
3036
3037 dirs A list of space-separated _absolute_ pathnames to the
3038 man directories. When empty, and only then, use manpath
3039 to parse ${MAN_CONF}/man_db.conf for all valid occurrences
3040 of MANDATORY_MANPATH.
3041
3042Note about compression:
3043 There has been a discussion on blfs-support about compression ratios of
3044 both gzip and bzip2 on man pages, taking into account the hosting fs,
3045 the architecture, etc... On the overall, the conclusion was that gzip
3046 was much more efficient on 'small' files, and bzip2 on 'big' files,
3047 small and big being very dependent on the content of the files.
3048
3049 See the original post from Mickael A. Peters, titled
3050 "Bootable Utility CD", dated 20030409.1816(+0200), and subsequent posts:
3051 http://linuxfromscratch.org/pipermail/blfs-support/2003-April/038817.html
3052
3053 On my system (x86, ext3), man pages were 35564KB before compression.
3054 gzip -9 compressed them down to 20372KB (57.28%), bzip2 -9 got down to
3055 19812KB (55.71%). That is a 1.57% gain in space. YMMV.
3056
3057 What was not taken into consideration was the decompression speed. But
3058 does it make sense to? You gain fast access with uncompressed man
3059 pages, or you gain space at the expense of a slight overhead in time.
3060 Well, my P4-2.5GHz does not even let me notice this... :-)
3061
3062EOT
3063) | less
3064}
3065
3066# This function checks that the man page is unique amongst bzip2'd,
3067# gzip'd and uncompressed versions.
3068# $1 the directory in which the file resides
3069# $2 the file name for the man page
3070# Returns 0 (true) if the file is the latest and must be taken care of,
3071# and 1 (false) if the file is not the latest (and has therefore been
3072# deleted).
3073function check_unique ()
3074{
3075 # NB. When there are hard-links to this file, these are
3076 # _not_ deleted. In fact, if there are hard-links, they
3077 # all have the same date/time, thus making them ready
3078 # for deletion later on.
3079
3080 # Build the list of all man pages with the same name
3081 DIR=$1
3082 BASENAME=`basename "${2}" .bz2`
3083 BASENAME=`basename "${BASENAME}" .gz`
3084 GZ_FILE="$BASENAME".gz
3085 BZ_FILE="$BASENAME".bz2
3086
3087 # Look for, and keep, the most recent one
3088 LATEST=`(cd "$DIR"; ls -1rt "${BASENAME}" "${GZ_FILE}" "${BZ_FILE}" \
3089 2>/dev/null | tail -n 1)`
3090 for i in "${BASENAME}" "${GZ_FILE}" "${BZ_FILE}"; do
3091 [ "$LATEST" != "$i" ] && rm -f "$DIR"/"$i"
3092 done
3093
3094 # In case the specified file was the latest, return 0
3095 [ "$LATEST" = "$2" ] && return 0
3096 # If the file was not the latest, return 1
3097 return 1
3098}
3099
3100# Name of the script
3101MY_NAME=`basename $0`
3102
3103# OK, parse the command-line for arguments, and initialize to some
3104# sensible state, that is: don't change links state, parse
3105# /etc/man_db.conf, be most silent, search man_db.conf in /etc, and
3106# don't
3107# force (re-)compression.
3108COMP_METHOD=
3109COMP_SUF=
3110COMP_LVL=
3111FORCE_OPT=
3112LN_OPT=
3113MAN_DIR=
3114VERBOSE_LVL=0
3115BACKUP=no
3116FAKE=no
3117MAN_CONF=/etc
3118while [ -n "$1" ]; do
3119 case $1 in
3120 --gzip|--gz|-g)
3121 COMP_SUF=.gz
3122 COMP_METHOD=$1
3123 shift
3124 ;;
3125 --bzip2|--bz2|-b)
3126 COMP_SUF=.bz2
3127 COMP_METHOD=$1
3128 shift
3129 ;;
3130 --automatic)
3131 COMP_SUF=TBD
3132 COMP_METHOD=$1
3133 shift
3134 ;;
3135 --decompress|-d)
3136 COMP_SUF=
3137 COMP_LVL=
3138 COMP_METHOD=$1
3139 shift
3140 ;;
3141 -[1-9]|--fast|--best)
3142 COMP_LVL=$1
3143 shift
3144 ;;
3145 --force|-F)
3146 FORCE_OPT=-F
3147 shift
3148 ;;
3149 --soft|-S)
3150 LN_OPT=-S
3151 shift
3152 ;;
3153 --hard|-H)
3154 LN_OPT=-H
3155 shift
3156 ;;
3157 --conf=*)
3158 MAN_CONF=`echo $1 | cut -d '=' -f2-`
3159 shift
3160 ;;
3161 --conf)
3162 MAN_CONF="$2"
3163 shift 2
3164 ;;
3165 --verbose|-v)
3166 let VERBOSE_LVL++
3167 shift
3168 ;;
3169 --backup)
3170 BACKUP=yes
3171 shift
3172 ;;
3173 --fake|-f)
3174 FAKE=yes
3175 shift
3176 ;;
3177 --help|-h)
3178 help
3179 exit 0
3180 ;;
3181 /*)
3182 MAN_DIR="${MAN_DIR} ${1}"
3183 shift
3184 ;;
3185 -*)
3186 help $1
3187 exit 1
3188 ;;
3189 *)
3190 echo "\"$1\" is not an absolute path name"
3191 exit 1
3192 ;;
3193 esac
3194done
3195
3196# Redirections
3197case $VERBOSE_LVL in
3198 0)
3199 # O, be silent
3200 DEST_FD0=/dev/null
3201 DEST_FD1=/dev/null
3202 VERBOSE_OPT=
3203 ;;
3204 1)
3205 # 1, be a bit verbose
3206 DEST_FD0=/dev/stdout
3207 DEST_FD1=/dev/null
3208 VERBOSE_OPT=-v
3209 ;;
3210 *)
3211 # 2 and above, be most verbose
3212 DEST_FD0=/dev/stdout
3213 DEST_FD1=/dev/stdout
3214 VERBOSE_OPT="-v -v"
3215 ;;
3216esac
3217
3218# Note: on my machine, 'man --path' gives /usr/share/man twice, once
3219# with a trailing '/', once without.
3220if [ -z "$MAN_DIR" ]; then
3221 MAN_DIR=`manpath -q -C "$MAN_CONF"/man_db.conf \
3222 | sed 's/:/\\n/g' \
3223 | while read foo; do dirname "$foo"/.; done \
3224 | sort -u \
3225 | while read bar; do echo -n "$bar "; done`
3226fi
3227
3228# If no MANDATORY_MANPATH in ${MAN_CONF}/man_db.conf, abort as well
3229if [ -z "$MAN_DIR" ]; then
3230 echo "No directory specified, and no directory found with \`manpath'"
3231 exit 1
3232fi
3233
3234# Check that the specified directories actually exist and are readable
3235for DIR in $MAN_DIR; do
3236 if [ ! -d "$DIR" -o ! -r "$DIR" ]; then
3237 echo "Directory '$DIR' does not exist or is not readable"
3238 exit 1
3239 fi
3240done
3241
3242# Fake?
3243if [ "$FAKE" != "no" ]; then
3244 echo "Actual parameters used:"
3245 echo -n "Compression.......: "
3246 case $COMP_METHOD in
3247 --bzip2|--bz2|-b) echo -n "bzip2";;
3248 --gzip|--gz|-g) echo -n "gzip";;
3249 --automatic) echo -n "compressing";;
3250 --decompress|-d) echo -n "decompressing";;
3251 *) echo -n "unknown";;
3252 esac
3253 echo " ($COMP_METHOD)"
3254 echo "Compression level.: $COMP_LVL"
3255 echo "Compression suffix: $COMP_SUF"
3256 echo -n "Force compression.: "
3257 [ "foo$FORCE_OPT" = "foo-F" ] && echo "yes" || echo "no"
3258 echo "man_db.conf is....: ${MAN_CONF}/man_db.conf"
3259 echo -n "Ha d-links........: "
3260 [ "foo$LN_OPT" = "foo-S" ] &&
3261 echo "convert to soft-links" || echo "leave as is"
3262 echo -n "Soft-links........: "
3263 [ "foo$LN_OPT" = "foo-H" ] &&
3264 echo "convert to hard-links" || echo "leave as is"
3265 echo "Backup............: $BACKUP"
3266 echo "Faking (yes!).....: $FAKE"
3267 echo "Directories.......: $MAN_DIR"
3268 echo "Verbosity level...: $VERBOSE_LVL"
3269 exit 0
3270fi
3271
3272# If no method was specified, print help
3273if [ -z "${COMP_METHOD}" -a "${BACKUP}" = "no" ]; then
3274 help
3275 exit 1
3276fi
3277
3278# In backup mode, do the backup solely
3279if [ "$BACKUP" = "yes" ]; then
3280 for DIR in $MAN_DIR; do
3281 cd "${DIR}/.."
3282 if [ ! -w "`pwd`" ]; then
3283 echo "Directory '`pwd`' is not writable"
3284 exit 1
3285 fi
3286 DIR_NAME=`basename "${DIR}"`
3287 echo "Backing up $DIR..." > $DEST_FD0
3288 [ -f "${DIR_NAME}.tar.old" ] && rm -f "${DIR_NAME}.tar.old"
3289 [ -f "${DIR_NAME}.tar" ] &&
3290 mv "${DIR_NAME}.tar" "${DIR_NAME}.tar.old"
3291 tar -cvf "${DIR_NAME}.tar" "${DIR_NAME}" > $DEST_FD1
3292 done
3293 exit 0
3294fi
3295
3296# I know MAN_DIR has only absolute path names
3297# I need to take into account the localized man, so I'm going recursive
3298for DIR in $MAN_DIR; do
3299 MEM_DIR=`pwd`
3300 if [ ! -w "$DIR" ]; then
3301 echo "Directory '$DIR' is not writable"
3302 exit 1
3303 fi
3304 cd "$DIR"
3305 for FILE in *; do
3306 # Fixes the case were the directory is empty
3307 if [ "foo$FILE" = "foo*" ]; then continue; fi
3308
3309 # Fixes the case when hard-links see their compression scheme change
3310 # (from not compressed to compressed, or from bz2 to gz, or from gz
3311 # to bz2)
3312 # Also fixes the case when multiple version of the page are present,
3313 # which are either compressed or not.
3314 if [ ! -L "$FILE" -a ! -e "$FILE" ]; then continue; fi
3315
3316 # Do not compress whatis files
3317 if [ "$FILE" = "whatis" ]; then continue; fi
3318
3319 if [ -d "$FILE" ]; then
3320 # We are going recursive to that directory
3321 echo "-> Entering ${DIR}/${FILE}..." > $DEST_FD0
3322 # I need not pass --conf, as I specify the directory to work on
3323 # But I need exit in case of error. We must change back to the
3324 # original directory so $0 is resolved correctly.
3325 (cd "$MEM_DIR" && eval "$0" ${COMP_METHOD} ${COMP_LVL} ${LN_OPT} \
3326 ${VERBOSE_OPT} ${FORCE_OPT} "${DIR}/${FILE}") || exit $?
3327 echo "<- Leaving ${DIR}/${FILE}." > $DEST_FD1
3328
3329 else # !dir
3330 if ! check_unique "$DIR" "$FILE"; then continue; fi
3331
3332 # With automatic compression, get the uncompressed file size of
3333 # the file (dereferencing symlinks), and choose an appropriate
3334 # compression method.
3335 if [ "$COMP_METHOD" = "--automatic" ]; then
3336 declare -i SIZE
3337 case "$FILE" in
3338 *.bz2)
3339 SIZE=$(bzcat "$FILE" | wc -c) ;;
3340 *.gz)
3341 SIZE=$(zcat "$FILE" | wc -c) ;;
3342 *)
3343 SIZE=$(wc -c < "$FILE") ;;
3344 esac
3345 if (( $SIZE >= (5 * 2**10) )); then
3346 COMP_SUF=.bz2
3347 elif (( $SIZE >= (1 * 2**10) )); then
3348 COMP_SUF=.gz
3349 else
3350 COMP_SUF=
3351 fi
3352 fi
3353
3354 # Check if the file is already compressed with the specified
3355 # method
3356 BASE_FILE=`basename "$FILE" .gz`
3357 BASE_FILE=`basename "$BASE_FILE" .bz2`
3358 if [ "${FILE}" = "${BASE_FILE}${COMP_SUF}" \
3359 -a "foo${FORCE_OPT}" = "foo" ]; then continue; fi
3360
3361 # If we have a symlink
3362 if [ -h "$FILE" ]; then
3363 case "$FILE" in
3364 *.bz2)
3365 EXT=bz2 ;;
3366 *.gz)
3367 EXT=gz ;;
3368 *)
3369 EXT=none ;;
3370 esac
3371
3372 if [ ! "$EXT" = "none" ]; then
3373 LINK=`ls -l "$FILE" | cut -d ">" -f2 \
3374 | tr -d " " | sed s/\.$EXT$//`
3375 NEWNAME=`echo "$FILE" | sed s/\.$EXT$//`
3376 mv "$FILE" "$NEWNAME"
3377 FILE="$NEWNAME"
3378 else
3379 LINK=`ls -l "$FILE" | cut -d ">" -f2 | tr -d " "`
3380 fi
3381
3382 if [ "$LN_OPT" = "-H" ]; then
3383 # Change this soft-link into a hard- one
3384 rm -f "$FILE" && ln "${LINK}$COMP_SUF" "${FILE}$COMP_SUF"
3385 chmod --reference "${LINK}$COMP_SUF" "${FILE}$COMP_SUF"
3386 else
3387 # Keep this soft-link a soft- one.
3388 rm -f "$FILE" && ln -s "${LINK}$COMP_SUF" "${FILE}$COMP_SUF"
3389 fi
3390 echo "Relinked $FILE" > $DEST_FD1
3391
3392 # else if we have a plain file
3393 elif [ -f "$FILE" ]; then
3394 # Take care of hard-links: build the list of files hard-linked
3395 # to the one we are {de,}compressing.
3396 # NB. This is not optimum has the file will eventually be
3397 # compressed as many times it has hard-links. But for now,
3398 # that's the safe way.
3399 inode=`ls -li "$FILE" | awk '{print $1}'`
3400 HLINKS=`find . \! -name "$FILE" -inum $inode`
3401
3402 if [ -n "$HLINKS" ]; then
3403 # We have hard-links! Remove them now.
3404 for i in $HLINKS; do rm -f "$i"; done
3405 fi
3406
3407 # Now take care of the file that has no hard-link
3408 # We do decompress first to re-compress with the selected
3409 # compression ratio later on...
3410 case "$FILE" in
3411 *.bz2)
3412 bunzip2 $FILE
3413 FILE=`basename "$FILE" .bz2`
3414 ;;
3415 *.gz)
3416 gunzip $FILE
3417 FILE=`basename "$FILE" .gz`
3418 ;;
3419 esac
3420
3421 # Compress the file with the given compression ratio, if needed
3422 case $COMP_SUF in
3423 *bz2)
3424 bzip2 ${COMP_LVL} "$FILE" && chmod 644 "${FILE}${COMP_SUF}"
3425 echo "Compressed $FILE" > $DEST_FD1
3426 ;;
3427 *gz)
3428 gzip ${COMP_LVL} "$FILE" && chmod 644 "${FILE}${COMP_SUF}"
3429 echo "Compressed $FILE" > $DEST_FD1
3430 ;;
3431 *)
3432 echo "Uncompressed $FILE" > $DEST_FD1
3433 ;;
3434 esac
3435
3436 # If the file had hard-links, recreate those (either hard or
3437 # soft)
3438 if [ -n "$HLINKS" ]; then
3439 for i in $HLINKS; do
3440 NEWFILE=`echo "$i" | sed s/\.gz$// | sed s/\.bz2$//`
3441 if [ "$LN_OPT" = "-S" ]; then
3442 # Make this hard-link a soft- one
3443 ln -s "${FILE}$COMP_SUF" "${NEWFILE}$COMP_SUF"
3444 else
3445 # Keep the hard-link a hard- one
3446 ln "${FILE}$COMP_SUF" "${NEWFILE}$COMP_SUF"
3447 fi
3448 # Really work only for hard-links. Harmless for soft-links
3449 chmod 644 "${NEWFILE}$COMP_SUF"
3450 done
3451 fi
3452
3453 else
3454 # There is a problem when we get neither a symlink nor a plain
3455 # file. Obviously, we shall never ever come here... :-(
3456 echo -n "Whaooo... \"${DIR}/${FILE}\" is neither a symlink "
3457 echo "nor a plain file. Please check:"
3458 ls -l "${DIR}/${FILE}"
3459 exit 1
3460 fi
3461 fi
3462 done # for FILE
3463done # for DIR
3464
3465EOF
3466
3467chmod -v 755 /usr/sbin/compressdoc
3468
3469compressdoc --bz2
3470
3471<Setting up __a user>
3472groupadd __a
3473
3474useradd -s /bin/bash -g __a -m -k /etc/skel __a
3475
3476passwd __a
3477
3478chown -vR __a /sources
3479
3480cat > /etc/profile.d/xorg.sh << "EOF"
3481XORG_PREFIX="/usr"
3482XORG_CONFIG="--prefix=$XORG_PREFIX \
3483 --sysconfdir=/etc \
3484 --localstatedir=/var \
3485 --disable-static"
3486export XORG_PREFIX XORG_CONFIG
3487EOF
3488
3489chmod 644 /etc/profile.d/xorg.sh
3490
3491<reboot>
3492init 6
3493
3494<Login as __a>
3495Username: __a
3496Password: whatever you set it to a moment ago =)
3497
3498cd /sources
3499
3500<Util-Macros-1.17>
3501wget http://xorg.freedesktop.org/releases/individual/util/util-macros-1.17.tar.bz2
3502tar vxf util-macros-1.17.tar.bz2
3503cd util-macros-1.17
3504
3505*** Ignore any warnings about --disable-static
3506./configure $XORG_CONFIG
3507
3508sudo su
3509make install
3510ldconfig
3511exit
3512
3513cd ..
3514rm -vfr util-macros-1.17
3515
3516<Xorg Protocol Headers>
3517mkdir proto
3518cd proto
3519wget http://ftp.x.org/pub/individual/proto/bigreqsproto-1.1.2.tar.bz2
3520wget http://ftp.x.org/pub/individual/proto/compositeproto-0.4.2.tar.bz2
3521wget http://ftp.x.org/pub/individual/proto/damageproto-1.2.1.tar.bz2
3522wget http://ftp.x.org/pub/individual/proto/dmxproto-2.3.1.tar.bz2
3523wget http://ftp.x.org/pub/individual/proto/dri2proto-2.8.tar.bz2
3524wget http://ftp.x.org/pub/individual/proto/fixesproto-5.0.tar.bz2
3525wget http://ftp.x.org/pub/individual/proto/fontsproto-2.1.2.tar.bz2
3526wget http://ftp.x.org/pub/individual/proto/glproto-1.4.16.tar.bz2
3527wget http://ftp.x.org/pub/individual/proto/inputproto-2.2.tar.bz2
3528wget http://ftp.x.org/pub/individual/proto/kbproto-1.0.6.tar.bz2
3529wget http://ftp.x.org/pub/individual/proto/randrproto-1.4.0.tar.bz2
3530wget http://ftp.x.org/pub/individual/proto/recordproto-1.14.2.tar.bz2
3531wget http://ftp.x.org/pub/individual/proto/renderproto-0.11.1.tar.bz2
3532wget http://ftp.x.org/pub/individual/proto/resourceproto-1.2.0.tar.bz2
3533wget http://ftp.x.org/pub/individual/proto/scrnsaverproto-1.2.2.tar.bz2
3534wget http://ftp.x.org/pub/individual/proto/videoproto-2.3.1.tar.bz2
3535wget http://ftp.x.org/pub/individual/proto/xcmiscproto-1.2.2.tar.bz2
3536wget http://ftp.x.org/pub/individual/proto/xextproto-7.2.1.tar.bz2
3537wget http://ftp.x.org/pub/individual/proto/xf86bigfontproto-1.2.0.tar.bz2
3538wget http://ftp.x.org/pub/individual/proto/xf86dgaproto-2.1.tar.bz2
3539wget http://ftp.x.org/pub/individual/proto/xf86driproto-2.1.1.tar.bz2
3540wget http://ftp.x.org/pub/individual/proto/xf86vidmodeproto-2.3.1.tar.bz2
3541wget http://ftp.x.org/pub/individual/proto/xineramaproto-1.2.1.tar.bz2
3542wget http://ftp.x.org/pub/individual/proto/xproto-7.0.23.tar.bz2
3543
3544bash -e
3545
3546for package in -d *
3547do
3548 packagedir=${package%.tar.bz2}
3549 tar -xf $package
3550 pushd $packagedir
3551 ./configure $XORG_CONFIG
3552 sudo make install
3553 popd
3554 rm -r $packagedir
3555done
3556
3557exit
3558
3559cd ..
3560
3561<makedepend-1.0.4>
3562wget http://xorg.freedesktop.org/releases/individual/util/makedepend-1.0.4.tar.bz2
3563tar vxf makedepend-1.0.4.tar.bz2
3564cd makedepend-1.0.4
3565
3566./configure $XORG_CONFIG
3567
3568make
3569
3570make check
3571
3572sudo su
3573make install
3574ldconfig
3575exit
3576
3577cd ..
3578rm -vfr makedepend-1.0.4
3579
3580<libXau-1.0.7>
3581wget http://xorg.freedesktop.org/releases/individual/lib/libXau-1.0.7.tar.bz2
3582tar vxf libXau-1.0.7.tar.bz2
3583cd libXau-1.0.7
3584
3585./configure $XORG_CONFIG
3586
3587make
3588
3589make check
3590
3591sudo su
3592make install
3593ldconfig
3594exit
3595
3596cd ..
3597rm -vfr libXau-1.0.7
3598
3599<libXdmcp-1.1.1>
3600wget http://xorg.freedesktop.org/releases/individual/lib/libXdmcp-1.1.1.tar.bz2
3601tar vxf libXdmcp-1.1.1.tar.bz2
3602cd libXdmcp-1.1.1
3603
3604./configure $XORG_CONFIG
3605
3606make
3607
3608sudo su
3609make install
3610ldconfig
3611exit
3612
3613cd ..
3614rm -vfr libXdmcp-1.1.1
3615
3616<libpthread-stubs-0.3>
3617wget http://xcb.freedesktop.org/dist/libpthread-stubs-0.3.tar.bz2
3618tar vxf libpthread-stubs-0.3.tar.bz2
3619cd libpthread-stubs-0.3
3620
3621./configure --prefix=/usr
3622
3623make
3624
3625sudo su
3626make install
3627ldconfig
3628exit
3629
3630cd ..
3631rm -vfr libpthread-stubs-0.3
3632
3633<expat-2.1.0>
3634wget http://downloads.sourceforge.net/expat/expat-2.1.0.tar.gz
3635tar vxf expat-2.1.0.tar.gz
3636cd expat-2.1.0
3637
3638./configure --prefix=/usr
3639
3640make
3641
3642sudo su
3643make install
3644
3645install -v -m755 -d /usr/share/doc/expat-2.1.0
3646install -v -m644 doc/*.{html,png,css} /usr/share/doc/expat-2.1.0
3647ldconfig
3648exit
3649
3650make check
3651
3652cd ..
3653rm -vfr expat-2.1.0
3654
3655<libffi-3.0.11>
3656wget ftp://sourceware.org/pub/libffi/libffi-3.0.11.tar.gz
3657wget http://www.linuxfromscratch.org/patches/blfs/svn/libffi-3.0.11-includedir-1.patch
3658tar vxf libffi-3.0.11.tar.gz
3659cd libffi-3.0.11
3660
3661patch -Np1 -i ../libffi-3.0.11-includedir-1.patch
3662
3663./configure --prefix=/usr
3664
3665make
3666
3667sudo su
3668make install
3669ldconfig
3670exit
3671
3672cd ..
3673rm -vfr libffi-3.0.11
3674
3675<libxml2-2.9.0> - for python bindings
3676wget http://xmlsoft.org/sources/libxml2-2.9.0.tar.gz
3677wget http://www.w3.org/XML/Test/xmlts20080827.tar.gz
3678tar vxf libxml2-2.9.0.tar.gz
3679cd libxml2-2.9.0
3680
3681./configure --prefix=/usr --disable-static
3682
3683make
3684
3685sudo su
3686make install
3687ldconfig
3688exit
3689
3690cd ..
3691rm -vfr libxml2-2.9.0
3692
3693<freetype-2.4.11>
3694wget http://downloads.sourceforge.net/freetype/freetype-2.4.11.tar.bz2
3695wget http://downloads.sourceforge.net/freetype/freetype-doc-2.4.11.tar.bz2
3696tar vxf freetype-2.4.11.tar.bz2
3697cd freetype-2.4.11
3698
3699tar -xf ../freetype-doc-2.4.11.tar.bz2 \
3700 --strip-components=2 -C docs
3701
3702sed -i -r 's:.*(#.*SUBPIXEL.*) .*:\1:' \
3703 include/freetype/config/ftoption.h
3704
3705./configure --prefix=/usr --disable-static
3706
3707make
3708
3709sudo su
3710make install
3711
3712install -v -m755 -d /usr/share/doc/freetype-2.4.11
3713cp -v -R docs/* /usr/share/doc/freetype-2.4.11
3714ldconfig
3715exit
3716
3717cd ..
3718rm -vfr freetype-2.4.11
3719
3720<fontconfig-2.10.2>
3721wget http://fontconfig.org/release/fontconfig-2.10.2.tar.bz2
3722tar vxf fontconfig-2.10.2.tar.bz2
3723cd fontconfig-2.10.2
3724
3725./configure --prefix=/usr \
3726 --sysconfdir=/etc \
3727 --localstatedir=/var \
3728 --docdir=/usr/share/doc/fontconfig-2.10.2 \
3729 --disable-docs \
3730 --disable-static
3731
3732make
3733
3734make check
3735
3736sudo su
3737make install
3738
3739install -v -dm755 \
3740 /usr/share/{man/man{3,5},doc/fontconfig-2.10.2/fontconfig-devel}
3741install -v -m644 fc-*/*.1 /usr/share/man/man1
3742install -v -m644 doc/*.3 /usr/share/man/man3
3743install -v -m644 doc/fonts-conf.5 /usr/share/man/man5
3744install -v -m644 doc/fontconfig-devel/* \
3745 /usr/share/doc/fontconfig-2.10.2/fontconfig-devel
3746install -v -m644 doc/*.{pdf,sgml,txt,html} \
3747 /usr/share/doc/fontconfig-2.10.2
3748ldconfig
3749exit
3750
3751cd ..
3752rm -vfr fontconfig-2.10.2
3753
3754<libgpg-error-1.10>
3755wget http://mirrors.dotsrc.org/gcrypt/libgpg-error/libgpg-error-1.10.tar.bz2
3756tar vxf libgpg-error-1.10.tar.bz2
3757cd libgpg-error-1.10
3758
3759./configure --prefix=/usr
3760
3761make
3762
3763make check
3764
3765sudo su
3766make install
3767
3768install -v -m644 -D README /usr/share/doc/libgpg-error-1.10/README
3769ldconfig
3770exit
3771
3772cd ..
3773rm -vfr libgpg-error-1.10
3774
3775<pth-2.0.7>
3776wget http://ftp.gnu.org/gnu/pth/pth-2.0.7.tar.gz
3777tar vxf pth-2.0.7.tar.gz
3778cd pth-2.0.7
3779
3780sed -i 's#$(LOBJS): Makefile#$(LOBJS): pth_p.h Makefile#' Makefile.in
3781
3782./configure --prefix=/usr \
3783 --disable-static \
3784 --mandir=/usr/share/man
3785
3786make
3787
3788make test
3789
3790sudo su
3791make install
3792
3793install -v -m755 -d /usr/share/doc/pth-2.0.7
3794install -v -m644 README PORTING SUPPORT TESTS \
3795 /usr/share/doc/pth-2.0.7
3796ldconfig
3797exit
3798
3799cd ..
3800rm -vfr pth-2.0.7
3801
3802<attr-2.4.46.src>
3803wget http://download.savannah.gnu.org/releases/attr/attr-2.4.46.src.tar.gz
3804tar vxf attr-2.4.46.src.tar.gz
3805cd attr-2.4.46
3806
3807sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in
3808
3809INSTALL_USER=root \
3810INSTALL_GROUP=root \
3811./configure --prefix=/usr --libdir=/lib --libexecdir=/usr/lib
3812
3813make
3814
3815sudo su
3816make install
3817make install-dev
3818make install-lib
3819
3820chmod -v 0755 /lib/libattr.so.1.1.0
3821rm -v /lib/libattr.{a,la,so}
3822sed -i 's@/lib@/usr/lib@' /usr/lib/libattr.la
3823ln -sfv ../../lib/libattr.so.1 /usr/lib/libattr.so
3824
3825ldconfig
3826exit
3827
3828cd ..
3829rm -vfr attr-2.4.46
3830
3831<acl-2.2.51>
3832wget http://download.savannah.gnu.org/releases/acl/acl-2.2.51.src.tar.gz
3833tar vxf acl-2.2.51.src.tar.gz
3834cd acl-2.2.51
3835
3836sed -i -e 's|/@pkg_name@|&-@pkg_version@|' \
3837 include/builddefs.in
3838
3839INSTALL_USER=root \
3840INSTALL_GROUP=root \
3841./configure --prefix=/usr --libdir=/lib --libexecdir=/usr/lib
3842
3843make
3844
3845sudo su
3846make install install-dev install-lib
3847
3848chmod -v 0755 /lib/libacl.so.1.1.0
3849rm -v /lib/libacl.{a,la,so}
3850ln -sfv ../../lib/libacl.so.1 /usr/lib/libacl.so
3851sed -i "s|libdir='/lib'|libdir='/usr/lib'|" /usr/lib/libacl.la
3852install -v -m644 doc/*.txt /usr/share/doc/acl-2.2.51
3853
3854***Add extended attributes to file system by editing /etc/fstab as shown
3855 # file system mount-point type options dump fsck
3856 # order
3857 /dev/sda1 / ext3 defaults,acl,user_xattr 0 2
3858***Add extended attributes to file system by editing /etc/fstab as shown
3859
3860vi /etc/fstab
3861
3862ldconfig
3863exit
3864
3865cd ..
3866rm -vfr acl-2.2.51
3867
3868<reboot>
3869sudo su
3870init 6
3871***login as __a
3872
3873<libcap2_2.22>
3874cd /sources
3875wget http://ftp.de.debian.org/debian/pool/main/libc/libcap2/libcap2_2.22.orig.tar.gz
3876tar vxf libcap2_2.22.orig.tar.gz
3877cd libcap-2.22
3878
3879make
3880
3881sudo su
3882make RAISE_SETFCAP=no install
3883ldconfig
3884exit
3885
3886cd ..
3887rm -vfr libcap-2.22
3888
3889<libgcrypt-1.5.0>
3890wget http://mirrors.dotsrc.org/gcrypt/libgcrypt/libgcrypt-1.5.0.tar.bz2
3891tar vxf libgcrypt-1.5.0.tar.bz2
3892cd libgcrypt-1.5.0
3893
3894./configure --prefix=/usr
3895
3896make
3897
3898make check
3899
3900sudo su
3901make install
3902
3903install -v -m755 -d /usr/share/doc/libgcrypt-1.5.0
3904install -v -m644 README doc/{README.apichanges,fips*,libgcrypt*} \
3905 /usr/share/doc/libgcrypt-1.5.0
3906ldconfig
3907exit
3908
3909cd ..
3910rm -vfr libgcrypt-1.5.0
3911
3912<dbus-1.6.8>
3913wget http://dbus.freedesktop.org/releases/dbus/dbus-1.6.8.tar.gz
3914tar vxf dbus-1.6.8.tar.gz
3915cd dbus-1.6.8
3916
3917sudo su
3918groupadd -g 18 messagebus
3919
3920useradd -c "D-Bus Message Daemon User" -d /var/run/dbus \
3921 -u 18 -g messagebus -s /bin/false messagebus
3922exit
3923
3924./configure --prefix=/usr \
3925 --sysconfdir=/etc \
3926 --localstatedir=/var \
3927 --libexecdir=/usr/lib/dbus-1.0 \
3928 --with-console-auth-dir=/run/console/ \
3929 --without-systemdsystemunitdir \
3930 --disable-systemd \
3931 --disable-static
3932
3933make
3934
3935sudo su
3936make install
3937
3938mv -v /usr/share/doc/dbus /usr/share/doc/dbus-1.6.8
3939
3940dbus-uuidgen --ensure
3941
3942cat > /etc/dbus-1/session-local.conf << "EOF"
3943<!DOCTYPE busconfig PUBLIC
3944 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
3945 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
3946<busconfig>
3947
3948 <!-- Search for .service files in /usr/local -->
3949 <servicedir>/usr/local/share/dbus-1/services</servicedir>
3950
3951</busconfig>
3952EOF
3953
3954cd ../blfs-bootscripts-20130127
3955make install-dbus
3956cd ../dbus-1.6.8
3957exit
3958
3959cd ..
3960rm -vfr dbus-1.6.8
3961
3962<Python-2.7.3>
3963wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.xz
3964wget http://www.linuxfromscratch.org/patches/blfs/svn/Python-2.7.3-bsddb_fix-1.patch
3965wget http://docs.python.org/ftp/python/doc/2.7.3/python-2.7.3-docs-html.tar.bz2
3966tar vxf Python-2.7.3.tar.xz
3967cd Python-2.7.3
3968
3969sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py
3970
3971patch -Np1 -i ../Python-2.7.3-bsddb_fix-1.patch
3972
3973./configure --prefix=/usr \
3974 --enable-shared \
3975 --with-system-expat \
3976 --with-system-ffi \
3977 --enable-unicode=ucs4
3978
3979make
3980
3981sudo su
3982make install
3983chmod -v 755 /usr/lib/libpython2.7.so.1.0
3984
3985install -v -m755 -d /usr/share/doc/Python-2.7.3
3986tar --strip-components=1 -C /usr/share/doc/Python-2.7.3 \
3987 -xvf ../python-2.7.3-docs-html.tar.bz2
3988find /usr/share/doc/Python-2.7.3 -type d -exec chmod 0755 {} \;
3989find /usr/share/doc/Python-2.7.3 -type f -exec chmod 0644 {} \;
3990echo "export PYTHONDOCS=/usr/share/doc/Python-2.7.3" >> /etc/bashrc
3991ldconfig
3992exit
3993
3994export PYTHONDOCS=/usr/share/doc/Python-2.7.3
3995
3996cd ..
3997rm -vfr Python-2.7.3
3998
3999<libxml2-2.9.0> - for python bindings
4000tar vxf libxml2-2.9.0.tar.gz
4001cd libxml2-2.9.0
4002
4003tar xf ../xmlts20080827.tar.gz
4004
4005./configure --prefix=/usr --disable-static
4006
4007make
4008
4009make check
4010
4011sudo su
4012make install
4013ldconfig
4014exit
4015
4016cd ..
4017rm -vfr libxml2-2.9.0
4018
4019<libxslt-1.1.28>
4020wget http://xmlsoft.org/sources/libxslt-1.1.28.tar.gz
4021tar vxf libxslt-1.1.28.tar.gz
4022cd libxslt-1.1.28
4023
4024./configure --prefix=/usr --disable-static
4025
4026make
4027
4028make check
4029
4030sudo su
4031make install
4032ldconfig
4033exit
4034
4035cd ..
4036rm -vfr libxslt-1.1.28
4037
4038<xcb-proto-1.8>
4039wget http://xcb.freedesktop.org/dist/xcb-proto-1.8.tar.bz2
4040tar vxf xcb-proto-1.8.tar.bz2
4041cd xcb-proto-1.8
4042
4043./configure $XORG_CONFIG
4044
4045make check
4046
4047sudo su
4048make install
4049ldconfig
4050exit
4051
4052cd ..
4053rm -vfr xcb-proto-1.8
4054
4055<doxygen-1.8.3.1>
4056wget http://ftp.stack.nl/pub/doxygen/doxygen-1.8.3.1.src.tar.gz
4057tar vxf doxygen-1.8.3.1.src.tar.gz
4058cd doxygen-1.8.3.1
4059
4060./configure --prefix /usr \
4061 --docdir /usr/share/doc/doxygen-1.8.3.1
4062
4063make
4064
4065sudo su
4066make install
4067ldconfig
4068exit
4069
4070cd ..
4071rm -vfr doxygen-1.8.3.1
4072
4073<libxcb-1.9>
4074wget http://xcb.freedesktop.org/dist/libxcb-1.9.tar.bz2
4075tar vxf libxcb-1.9.tar.bz2
4076cd libxcb-1.9
4077
4078./configure $XORG_CONFIG --enable-xinput --docdir='${datadir}'/doc/libxcb-1.9
4079
4080make
4081
4082make check
4083
4084sudo su
4085make install
4086ldconfig
4087exit
4088
4089cd ..
4090rm -vfr libxcb-1.9
4091
4092<unzip60>
4093wget http://downloads.sourceforge.net/infozip/unzip60.tar.gz
4094tar vxf unzip60.tar.gz
4095cd unzip60
4096
4097case `uname -m` in
4098 i?86)
4099 sed -i -e 's/DASM"/DASM -DNO_LCHMOD"/' unix/Makefile
4100 make -f unix/Makefile linux
4101 ;;
4102 *)
4103 sed -i -e 's/CFLAGS="-O -Wall/& -DNO_LCHMOD/' unix/Makefile
4104 make -f unix/Makefile linux_noasm
4105 ;;
4106esac
4107
4108make check
4109
4110sudo su
4111make prefix=/usr install
4112ldconfig
4113exit
4114
4115cd ..
4116rm -vfr unzip60
4117
4118<docbook-xml-4.5>
4119wget http://www.docbook.org/xml/4.5/docbook-xml-4.5.zip
4120mkdir -v docbook-xml-4.5
4121cd docbook-xml-4.5
4122unzip ../docbook-xml-4.5.zip
4123
4124sudo su
4125install -v -d -m755 /usr/share/xml/docbook/xml-dtd-4.5
4126install -v -d -m755 /etc/xml
4127
4128chown -R root:root .
4129cp -v -af docbook.cat *.dtd ent/ *.mod \
4130 /usr/share/xml/docbook/xml-dtd-4.5
4131
4132if [ ! -e /etc/xml/docbook ]; then
4133 xmlcatalog --noout --create /etc/xml/docbook
4134fi
4135
4136xmlcatalog --noout --add "public" \
4137 "-//OASIS//DTD DocBook XML V4.5//EN" \
4138 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \
4139 /etc/xml/docbook
4140xmlcatalog --noout --add "public" \
4141 "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \
4142 "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \
4143 /etc/xml/docbook
4144xmlcatalog --noout --add "public" \
4145 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
4146 "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \
4147 /etc/xml/docbook
4148xmlcatalog --noout --add "public" \
4149 "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \
4150 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \
4151 /etc/xml/docbook
4152xmlcatalog --noout --add "public" \
4153 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \
4154 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \
4155 /etc/xml/docbook
4156xmlcatalog --noout --add "public" \
4157 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \
4158 "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \
4159 /etc/xml/docbook
4160xmlcatalog --noout --add "public" \
4161 "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \
4162 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \
4163 /etc/xml/docbook
4164xmlcatalog --noout --add "public" \
4165 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \
4166 /etc/xml/docbook
4167xmlcatalog --noout --add "public" \
4168 "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \
4169 "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \
4170 /etc/xml/docbook
4171xmlcatalog --noout --add "rewriteSystem" \
4172 "http://www.oasis-open.org/docbook/xml/4.5" \
4173 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
4174 /etc/xml/docbook
4175xmlcatalog --noout --add "rewriteURI" \
4176 "http://www.oasis-open.org/docbook/xml/4.5" \
4177 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
4178 /etc/xml/docbook
4179
4180if [ ! -e /etc/xml/catalog ]; then
4181 xmlcatalog --noout --create /etc/xml/catalog
4182fi
4183
4184xmlcatalog --noout --add "delegatePublic" \
4185 "-//OASIS//ENTITIES DocBook XML" \
4186 "file:///etc/xml/docbook" \
4187 /etc/xml/catalog
4188xmlcatalog --noout --add "delegatePublic" \
4189 "-//OASIS//DTD DocBook XML" \
4190 "file:///etc/xml/docbook" \
4191 /etc/xml/catalog
4192xmlcatalog --noout --add "delegateSystem" \
4193 "http://www.oasis-open.org/docbook/" \
4194 "file:///etc/xml/docbook" \
4195 /etc/xml/catalog
4196xmlcatalog --noout --add "delegateURI" \
4197 "http://www.oasis-open.org/docbook/" \
4198 "file:///etc/xml/docbook" \
4199 /etc/xml/catalog
4200
4201for DTDVERSION in 4.1.2 4.2 4.3 4.4
4202do
4203 xmlcatalog --noout --add "public" \
4204 "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \
4205 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \
4206 /etc/xml/docbook
4207 xmlcatalog --noout --add "rewriteSystem" \
4208 "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
4209 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
4210 /etc/xml/docbook
4211 xmlcatalog --noout --add "rewriteURI" \
4212 "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
4213 "file:///usr/share/xml/docbook/xml-dtd-4.5" \
4214 /etc/xml/docbook
4215 xmlcatalog --noout --add "delegateSystem" \
4216 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
4217 "file:///etc/xml/docbook" \
4218 /etc/xml/catalog
4219 xmlcatalog --noout --add "delegateURI" \
4220 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
4221 "file:///etc/xml/docbook" \
4222 /etc/xml/catalog
4223done
4224
4225exit
4226
4227cd ..
4228sudo rm -vfr docbook-xml-4.5
4229
4230<tcl8.6.0>
4231wget http://downloads.sourceforge.net/tcl/tcl8.6.0-src.tar.gz
4232wget http://downloads.sourceforge.net/tcl/tcl8.6.0-html.tar.gz
4233tar vxf tcl8.6.0-src.tar.gz
4234cd tcl8.6.0
4235tar -xf ../tcl8.6.0-html.tar.gz --strip-components=1
4236cd unix
4237
4238./configure --prefix=/usr \
4239 --mandir=/usr/share/man \
4240 $([ $(uname -m) = x86_64 ] && echo --enable-64bit)
4241
4242make
4243
4244sed -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \
4245 -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
4246 -i tclConfig.sh
4247
4248make test
4249
4250sudo su
4251make install
4252make install-private-headers
4253
4254ln -v -sf tclsh8.6 /usr/bin/tclsh
4255chmod -v 755 /usr/lib/libtcl8.6.so
4256
4257mkdir -v -p /usr/share/doc/tcl-8.6.0
4258cp -v -r ../html/* /usr/share/doc/tcl-8.6.0
4259ldconfig
4260exit
4261
4262cd ../..
4263rm -vfr tcl8.6.0
4264
4265<sharutils-4.11.1>
4266wget http://ftp.gnu.org/gnu/sharutils/sharutils-4.11.1.tar.bz2
4267tar xvf sharutils-4.11.1.tar.bz2
4268cd sharutils-4.11.1
4269
4270sed -i -e '/gets is a/d' lib/stdio.in.h
4271
4272./configure --prefix=/usr
4273
4274make
4275
4276make check
4277
4278sudo su
4279make install
4280ldconfig
4281exit
4282
4283cd ..
4284rm -vfr sharutils-4.11.1
4285
4286<db-5.3.21>
4287wget http://download.oracle.com/berkeley-db/db-5.3.21.tar.gz
4288tar vxf db-5.3.21.tar.gz
4289cd db-5.3.21/build_unix
4290
4291../dist/configure --prefix=/usr \
4292 --enable-compat185 \
4293 --enable-dbm \
4294 --disable-static \
4295 --enable-cxx \
4296 --enable-tcl --with-tcl=/usr/lib
4297
4298make
4299
4300sudo su
4301make docdir=/usr/share/doc/db-5.3.21 install
4302
4303chown -v -R root:root \
4304 /usr/bin/db_* \
4305 /usr/include/db{,_185,_cxx}.h \
4306 /usr/lib/libdb*.{so,la} \
4307 /usr/share/doc/db-5.3.21
4308ldconfig
4309exit
4310
4311cd ../..
4312rm -vfr db-5.3.21
4313
4314<ruby-1.9.3-p374>
4315wget http://mirrors.ibiblio.org/ruby/1.9/ruby-1.9.3-p374.tar.bz2
4316tar vxf ruby-1.9.3-p374.tar.bz2
4317cd ruby-1.9.3-p374
4318
4319./configure --prefix=/usr --enable-shared
4320
4321make
4322
4323make test
4324
4325sudo su
4326make install
4327ldconfig
4328exit
4329
4330cd ..
4331rm -vfr ruby-1.9.3-p374
4332
4333<docbook-xsl-1.77.1>
4334wget http://downloads.sourceforge.net/docbook/docbook-xsl-1.77.1.tar.bz2
4335wget http://downloads.sourceforge.net/docbook/docbook-xsl-doc-1.77.1.tar.bz2
4336tar vxf docbook-xsl-1.77.1.tar.bz2
4337cd docbook-xsl-1.77.1
4338
4339tar -xf ../docbook-xsl-doc-1.77.1.tar.bz2 --strip-components=1
4340
4341sudo su
4342install -v -m755 -d /usr/share/xml/docbook/xsl-stylesheets-1.77.1
4343
4344cp -v -R VERSION common eclipse epub extensions fo highlighting html \
4345 htmlhelp images javahelp lib manpages params profiling \
4346 roundtrip slides template tests tools webhelp website \
4347 xhtml xhtml-1_1 \
4348 /usr/share/xml/docbook/xsl-stylesheets-1.77.1
4349
4350ln -s VERSION /usr/share/xml/docbook/xsl-stylesheets-1.77.1/VERSION.xsl
4351
4352install -v -m644 -D README \
4353 /usr/share/doc/docbook-xsl-1.77.1/README.txt
4354install -v -m644 RELEASE-NOTES* NEWS* \
4355 /usr/share/doc/docbook-xsl-1.77.1
4356
4357cp -v -R doc/* /usr/share/doc/docbook-xsl-1.77.1
4358
4359if [ ! -d /etc/xml ]; then install -v -m755 -d /etc/xml; fi
4360if [ ! -f /etc/xml/catalog ]; then
4361 xmlcatalog --noout --create /etc/xml/catalog
4362fi
4363
4364xmlcatalog --noout --add "rewriteSystem" \
4365 "http://docbook.sourceforge.net/release/xsl/1.77.1" \
4366 "/usr/share/xml/docbook/xsl-stylesheets-1.77.1" \
4367 /etc/xml/catalog
4368xmlcatalog --noout --add "rewriteURI" \
4369 "http://docbook.sourceforge.net/release/xsl/1.77.1" \
4370 "/usr/share/xml/docbook/xsl-stylesheets-1.77.1" \
4371 /etc/xml/catalog
4372xmlcatalog --noout --add "rewriteSystem" \
4373 "http://docbook.sourceforge.net/release/xsl/current" \
4374 "/usr/share/xml/docbook/xsl-stylesheets-1.77.1" \
4375 /etc/xml/catalog
4376xmlcatalog --noout --add "rewriteURI" \
4377 "http://docbook.sourceforge.net/release/xsl/current" \
4378 "/usr/share/xml/docbook/xsl-stylesheets-1.77.1" \
4379 /etc/xml/catalog
4380
4381exit
4382
4383cd ..
4384rm -vfr docbook-xsl-1.77.1
4385
4386<zip30>
4387wget http://downloads.sourceforge.net/infozip/zip30.tar.gz
4388tar vxf zip30.tar.gz
4389cd zip30
4390
4391make -f unix/Makefile generic_gcc
4392
4393sudo su
4394make prefix=/usr -f unix/Makefile install
4395ldconfig
4396exit
4397
4398cd ..
4399rm -vfr zip30
4400
4401<lynx2.8.8>
4402wget http://lynx.isc.org/current/lynx2.8.8dev.14.tar.bz2
4403tar vxf lynx2.8.8dev.14.tar.bz2
4404cd lynx2-8-8
4405
4406./configure --prefix=/usr \
4407 --sysconfdir=/etc/lynx \
4408 --datadir=/usr/share/doc/lynx-2.8.8dev.14 \
4409 --with-zlib \
4410 --with-bzlib \
4411 --with-screen=ncursesw \
4412 --enable-locale-charset \
4413 --with-ssl
4414
4415make
4416
4417sudo su
4418make install-full
4419chgrp -v -R root /usr/share/doc/lynx-2.8.8dev.14/lynx_doc
4420ldconfig
4421exit
4422
4423cd ..
4424rm -vfr lynx2-8-8
4425
4426<xmlto-0.0.25>
4427lynx https://fedorahosted.org/releases/x/m/xmlto/xmlto-0.0.25.tar.bz2
4428tar vxf xmlto-0.0.25.tar.bz2
4429cd xmlto-0.0.25
4430
4431./configure --prefix=/usr
4432
4433make
4434
4435make check
4436
4437sudo su
4438make install
4439ldconfig
4440exit
4441
4442cd ..
4443rm -vfr xmlto-0.0.25
4444
4445<Xorg Libraries>
4446cat > lib-7.7.md5 << "EOF"
444784c66908cf003ad8c272b0eecbdbaee3 xtrans-1.2.7.tar.bz2
444878b4b3bab4acbdf0abcfca30a8c70cc6 libX11-1.5.0.tar.bz2
444971251a22bc47068d60a95f50ed2ec3cf libXext-1.3.1.tar.bz2
4450645f83160cf7b562734e2038045106d1 libFS-1.0.4.tar.bz2
4451471b5ca9f5562ac0d6eac7a0bf650738 libICE-1.0.8.tar.bz2
4452766de9d1e1ecf8bf74cebe2111d8e2bd libSM-1.2.1.tar.bz2
44537a773b16165e39e938650bcc9027c1d5 libXScrnSaver-1.2.2.tar.bz2
4454a6f137ae100e74ebe3b71eb4a38c40b3 libXt-1.1.3.tar.bz2
4455a4efff8de85bd45dd3da124285d10c00 libXmu-1.1.1.tar.bz2
44567ae7eff7a14d411e84a67bd166bcec1a libXpm-3.5.10.tar.bz2
4457f39942f2cab379fc9b4c3731bf191b84 libXaw-1.0.11.tar.bz2
4458678071bd7f9f7467e2fc712d81022318 libXfixes-5.0.tar.bz2
4459a60e0b5c276d0aa9e2d3b982c98f61c8 libXcomposite-0.4.3.tar.bz2
4460ee62f4c7f0f16ced4da63308963ccad2 libXrender-0.9.7.tar.bz2
446152efa81b7f26c8eda13510a2fba98eea libXcursor-1.1.13.tar.bz2
446244774e1a065158b52f1a0da5100cebec libXdamage-1.1.3.tar.bz2
4463a2a861f142c3b4367f14fc14239fc1f7 libfontenc-1.1.1.tar.bz2
44646851da5dae0a6cf5f7c9b9e2b05dd3b4 libXfont-1.4.5.tar.bz2
446578d64dece560c9e8699199f3faa521c0 libXft-2.3.1.tar.bz2
44662a689ae1089786a6712ce9e2c2c7c7ca libXi-1.6.2.tar.bz2
4467cb45d6672c93a608f003b6404f1dd462 libXinerama-1.1.2.tar.bz2
44680c843636124cc1494e3d87df16957672 libXrandr-1.4.0.tar.bz2
446980d0c6d8522fa7a645e4f522e9a9cd20 libXres-1.0.6.tar.bz2
4470e8abc5c00c666f551cf26aa53819d592 libXtst-1.2.1.tar.bz2
44715e1ac203ccd3ce3e89755ed1fbe75b0b libXv-1.0.7.tar.bz2
44723340c99ff556ea2457b4be47f5cb96fa libXvMC-1.0.7.tar.bz2
4473b7f38465c46e7145782d37dbb9da8c09 libXxf86dga-1.1.3.tar.bz2
4474ffd93bcedd8b2b5aeabf184e7b91f326 libXxf86vm-1.1.2.tar.bz2
4475782ced3a9e754dfeb53a8a006a75eb1a libdmx-1.1.2.tar.bz2
4476399a419ac6a54f0fc07c69c9bdf452dc libpciaccess-0.13.1.tar.bz2
447719e6533ae64abba0773816a23f2b9507 libxkbfile-1.0.8.tar.bz2
4478EOF
4479
4480mkdir lib
4481cd lib
4482grep -v '^#' ../lib-7.7.md5 | awk '{print $2}' | wget -i- -c \
4483 -B http://xorg.freedesktop.org/releases/individual/lib/
4484md5sum -c ../lib-7.7.md5
4485
4486bash -e
4487
4488*** watch out for error and if so dont type exit. The 1st run of this errored out and never completed,
4489*** so I ran it again and this time it did....
4490for package in $(grep -v '^#' ../lib-7.7.md5 | awk '{print $2}')
4491do
4492 packagedir=${package%.tar.bz2}
4493 tar -xf $package
4494 pushd $packagedir
4495 case $packagedir in
4496 libXfont-[0-9]* )
4497 ./configure $XORG_CONFIG --disable-devel-docs
4498 ;;
4499 libXt-[0-9]* )
4500 ./configure $XORG_CONFIG \
4501 --with-appdefaultdir=/etc/X11/app-defaults
4502 ;;
4503 * )
4504 ./configure $XORG_CONFIG
4505 ;;
4506 esac
4507 make
4508 sudo make install
4509 popd
4510 rm -fr $packagedir
4511 sudo /sbin/ldconfig
4512done
4513
4514exit
4515
4516cd ..
4517
4518<pcre-8.32>
4519wget http://downloads.sourceforge.net/pcre/pcre-8.32.tar.bz2
4520tar vxf pcre-8.32.tar.bz2
4521cd pcre-8.32
4522
4523./configure --prefix=/usr \
4524 --docdir=/usr/share/doc/pcre-8.32 \
4525 --enable-utf \
4526 --enable-unicode-properties \
4527 --enable-pcregrep-libz \
4528 --enable-pcregrep-libbz2 \
4529 --disable-static
4530
4531make
4532
4533make check
4534
4535sudo su
4536make install
4537
4538mv -v /usr/lib/libpcre.so.* /lib
4539ln -sfv ../../lib/libpcre.so.1.2.0 /usr/lib/libpcre.so
4540ldconfig
4541exit
4542
4543cd ..
4544rm -vfr pcre-8.32
4545
4546<gtk-doc-1.18>
4547wget http://ftp.gnome.org/pub/gnome/sources/gtk-doc/1.18/gtk-doc-1.18.tar.xz
4548tar vxf gtk-doc-1.18.tar.xz
4549cd gtk-doc-1.18
4550
4551./configure --prefix=/usr
4552
4553make
4554
4555sudo su
4556make install
4557ldconfig
4558exit
4559
4560cd ..
4561rm -vfr gtk-doc-1.18
4562
4563<XML::Parser>
4564cpan
4565
4566***answer yes to auto config
4567y
4568
4569***use sudo for approach
4570sudo
4571
4572***Use yes for mirror sites
4573y
4574
4575***wait for mirror synch to complete
4576***you should get cpan[1]> prompt
4577install XML::Parser
4578
4579exit
4580
4581<intltool-0.50.2>
4582lynx http://launchpad.net/intltool/trunk/0.50.2/+download/intltool-0.50.2.tar.gz
4583tar vxf intltool-0.50.2.tar.gz
4584cd intltool-0.50.2
4585
4586./configure --prefix=/usr
4587
4588make
4589
4590make check
4591
4592sudo su
4593make install
4594
4595install -v -m644 -D doc/I18N-HOWTO \
4596 /usr/share/doc/intltool-0.50.2/I18N-HOWTO
4597ldconfig
4598exit
4599
4600cd ..
4601rm -vfr intltool-0.50.2
4602
4603<glib-2.34.3>
4604wget http://ftp.gnome.org/pub/gnome/sources/glib/2.34/glib-2.34.3.tar.xz
4605tar vxf glib-2.34.3.tar.xz
4606cd glib-2.34.3
4607
4608./configure --prefix=/usr --with-pcre=system
4609
4610make
4611
4612sudo su
4613make install
4614ldconfig
4615exit
4616
4617cd ..
4618rm -vfr glib-2.34.3
4619
4620<shared-mime-info-1.0>
4621wget http://freedesktop.org/~hadess/shared-mime-info-1.0.tar.xz
4622tar vxf shared-mime-info-1.0.tar.xz
4623cd shared-mime-info-1.0
4624
4625./configure --prefix=/usr
4626
4627unset MAKEFLAGS
4628make
4629
4630make check
4631export MAKEFLAGS='-j 2'
4632
4633sudo su
4634make install
4635ldconfig
4636exit
4637
4638cd ..
4639rm -vfr shared-mime-info-1.0
4640
4641<desktop-file-utils-0.21>
4642wget http://freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-0.21.tar.xz
4643tar vxf desktop-file-utils-0.21.tar.xz
4644cd desktop-file-utils-0.21
4645
4646./configure --prefix=/usr
4647
4648make
4649
4650sudo su
4651make install
4652ldconfig
4653exit
4654
4655cd ..
4656rm -vfr desktop-file-utils-0.21
4657
4658<glib-2.34.3> - circular install
4659tar vxf glib-2.34.3.tar.xz
4660cd glib-2.34.3
4661
4662./configure --prefix=/usr --with-pcre=system
4663
4664make
4665
4666sudo su
4667make install
4668ldconfig
4669exit
4670
4671cd ..
4672rm -vfr glib-2.34.3
4673
4674<dbus-glib-0.100>
4675wget http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-0.100.tar.gz
4676tar vxf dbus-glib-0.100.tar.gz
4677cd dbus-glib-0.100
4678
4679./configure --prefix=/usr \
4680 --sysconfdir=/etc \
4681 --libexecdir=/usr/lib/dbus-1.0 \
4682 --disable-static
4683
4684make
4685
4686make check
4687
4688sudo su
4689make install
4690ldconfig
4691exit
4692
4693cd ..
4694rm -vfr dbus-glib-0.100
4695
4696<libpng-1.5.13>
4697wget http://downloads.sourceforge.net/libpng/libpng-1.5.13.tar.xz
4698wget http://downloads.sourceforge.net/libpng-apng/libpng-1.5.13-apng.patch.gz
4699tar vxf libpng-1.5.13.tar.xz
4700cd libpng-1.5.13
4701
4702gzip -cd ../libpng-1.5.13-apng.patch.gz | patch -p1
4703START=$(awk '/@/' scripts/symbols.def | sort -k2.3n | tail -1 | cut -d "@" -f2)
4704awk -v v="$START" '/^PNG(_.+)?_EXPORTA?\(/ {gsub(/PNG(_.+)?_EXPORTA?\(/, ""); gsub(/,/, ""); \
4705if($1 > v) print $3 " @"$1}' png.h | sort -k2.3n >> scripts/symbols.def
4706
4707./configure --prefix=/usr --disable-static
4708
4709make
4710
4711make check
4712
4713sudo su
4714make install
4715
4716mkdir /usr/share/doc/libpng-1.5.13
4717cp README libpng-manual.txt /usr/share/doc/libpng-1.5.13
4718ldconfig
4719exit
4720
4721cd ..
4722rm -vfr libpng-1.5.13
4723
4724<pixman-0.28.2>
4725wget http://cairographics.org/releases/pixman-0.28.2.tar.gz
4726tar vxf pixman-0.28.2.tar.gz
4727cd pixman-0.28.2
4728
4729./configure --prefix=/usr --disable-static
4730
4731make
4732
4733make check
4734
4735sudo su
4736make install
4737ldconfig
4738exit
4739
4740cd ..
4741rm -vfr pixman-0.28.2
4742
4743<cairo-1.12.10>
4744wget http://cairographics.org/releases/cairo-1.12.10.tar.xz
4745wget http://www.linuxfromscratch.org/patches/blfs/svn/cairo-1.12.10-upstream_fix-1.patch
4746tar vxf cairo-1.12.10.tar.xz
4747cd cairo-1.12.10
4748
4749patch -Np1 -i ../cairo-1.12.10-upstream_fix-1.patch
4750
4751./configure --prefix=/usr \
4752 --enable-tee \
4753 --enable-xcb \
4754 --disable-static
4755
4756make
4757
4758sudo su
4759make install
4760ldconfig
4761exit
4762
4763cd ..
4764rm -vfr cairo-1.12.10
4765
4766<gobject-introspection-1.34.2>
4767wget http://ftp.gnome.org/pub/gnome/sources/gobject-introspection/1.34/gobject-introspection-1.34.2.tar.xz
4768tar vxf gobject-introspection-1.34.2.tar.xz
4769cd gobject-introspection-1.34.2
4770
4771./configure --prefix=/usr --disable-static
4772
4773make
4774
4775sudo su
4776make install
4777ldconfig
4778exit
4779
4780cd ..
4781rm -vfr gobject-introspection-1.34.2
4782
4783<atk-2.6.0>
4784wget http://ftp.gnome.org/pub/gnome/sources/atk/2.6/atk-2.6.0.tar.xz
4785tar vxf atk-2.6.0.tar.xz
4786cd atk-2.6.0
4787
4788./configure --prefix=/usr
4789
4790make
4791
4792sudo su
4793make install
4794ldconfig
4795exit
4796
4797cd ..
4798rm -vfr atk-2.6.0
4799
4800<nasm-2.10.07>
4801wget http://www.nasm.us/pub/nasm/releasebuilds/2.10.07/nasm-2.10.07.tar.xz
4802wget http://www.nasm.us/pub/nasm/releasebuilds/2.10.07/nasm-2.10.07-xdoc.tar.xz
4803tar vxf nasm-2.10.07.tar.xz
4804cd nasm-2.10.07
4805
4806tar -xf ../nasm-2.10.07-xdoc.tar.xz --strip-components=1
4807
4808./configure --prefix=/usr
4809
4810make
4811
4812sudo su
4813make install
4814
4815install -m755 -d /usr/share/doc/nasm-2.10.07/html
4816cp -v doc/html/*.html /usr/share/doc/nasm-2.10.07/html
4817cp -v doc/*.{txt,ps,pdf} /usr/share/doc/nasm-2.10.07
4818cp -v doc/info/* /usr/share/info
4819install-info /usr/share/info/nasm.info /usr/share/info/dir
4820ldconfig
4821exit
4822
4823cd ..
4824rm -vfr nasm-2.10.07
4825
4826<libjpeg-turbo-1.2.1>
4827wget http://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-1.2.1.tar.gz
4828tar vxf libjpeg-turbo-1.2.1.tar.gz
4829cd libjpeg-turbo-1.2.1
4830
4831./configure --prefix=/usr \
4832 --mandir=/usr/share/man \
4833 --with-jpeg8 \
4834 --disable-static
4835
4836make
4837
4838make test
4839
4840sudo su
4841docsdir=/usr/share/doc/libjpeg-turbo-1.2.1
4842make docdir=$docsdir exampledir=$docsdir install
4843unset docsdir
4844ldconfig
4845exit
4846
4847cd ..
4848rm -vfr libjpeg-turbo-1.2.1
4849
4850<tiff-4.0.3>
4851wget http://download.osgeo.org/libtiff/tiff-4.0.3.tar.gz
4852tar vxf tiff-4.0.3.tar.gz
4853cd tiff-4.0.3
4854
4855./configure --prefix=/usr --disable-static
4856
4857make
4858
4859sudo su
4860make install
4861ldconfig
4862exit
4863
4864cd ..
4865rm -vfr tiff-4.0.3
4866
4867<jasper-1.900.1>
4868wget http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-1.900.1.zip
4869wget http://www.linuxfromscratch.org/patches/blfs/svn/jasper-1.900.1-security_fixes-1.patch
4870unzip jasper-1.900.1.zip
4871cd jasper-1.900.1
4872
4873patch -Np1 -i ../jasper-1.900.1-security_fixes-1.patch
4874
4875./configure --prefix=/usr --enable-shared
4876
4877make
4878
4879sudo su
4880make install
4881
4882install -v -m755 -d /usr/share/doc/jasper-1.900.1
4883install -v -m644 doc/*.pdf /usr/share/doc/jasper-1.900.1
4884ldconfig
4885exit
4886
4887cd ..
4888rm -vfr jasper-1.900.1
4889
4890<gdk-pixbuf-2.26.5>
4891wget http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.26/gdk-pixbuf-2.26.5.tar.xz
4892tar vxf gdk-pixbuf-2.26.5.tar.xz
4893cd gdk-pixbuf-2.26.5
4894
4895./configure --prefix=/usr --with-x11
4896
4897make
4898
4899make check
4900
4901sudo su
4902make install
4903
4904gdk-pixbuf-query-loaders --update-cache
4905ldconfig
4906exit
4907
4908cd ..
4909rm -vfr gdk-pixbuf-2.26.5
4910
4911<icu4c-50_1_2-src>
4912wget http://download.icu-project.org/files/icu4c/50.1.2/icu4c-50_1_2-src.tgz
4913tar vxf icu4c-50_1_2-src.tgz
4914cd icu/source
4915
4916./configure --prefix=/usr
4917
4918make
4919
4920make check
4921
4922sudo su
4923make install
4924ldconfig
4925exit
4926
4927cd ../..
4928rm -vfr icu
4929
4930<harfbuzz-0.9.9>
4931wget http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-0.9.9.tar.bz2
4932tar vxf harfbuzz-0.9.9.tar.bz2
4933cd harfbuzz-0.9.9
4934
4935./configure --prefix=/usr
4936
4937make
4938
4939make check
4940
4941sudo su
4942make install
4943ldconfig
4944exit
4945
4946cd ..
4947rm -vfr harfbuzz-0.9.9
4948
4949<pango-1.32.5 && pango-compat-0.0.2>
4950wget http://anduin.linuxfromscratch.org/sources/BLFS/svn/p/pango-1.32.5.tar.xz
4951wget http://ftp.gnome.org/pub/gnome/sources/pangox-compat/0.0/pangox-compat-0.0.2.tar.xz
4952tar vxf pango-1.32.5.tar.xz
4953cd pango-1.32.5
4954
4955./configure --prefix=/usr --sysconfdir=/etc
4956
4957make
4958
4959make check
4960
4961sudo su
4962make install
4963
4964pango-querymodules --update-cache
4965ldconfig
4966exit
4967
4968cd ..
4969rm -vfr pango-1.32.5
4970
4971tar vxf pangox-compat-0.0.2.tar.xz
4972cd pangox-compat-0.0.2
4973
4974./configure --prefix=/usr \
4975 --sysconfdir=/etc \
4976 --disable-static
4977
4978make
4979
4980sudo su
4981make install
4982ldconfig
4983exit
4984
4985cd ..
4986rm -vfr pangox-compat-0.0.2
4987
4988<hicolor-icon-theme-0.12>
4989wget http://icon-theme.freedesktop.org/releases/hicolor-icon-theme-0.12.tar.gz
4990tar vxf hicolor-icon-theme-0.12.tar.gz
4991cd hicolor-icon-theme-0.12
4992
4993./configure --prefix=/usr
4994
4995sudo su
4996make install
4997ldconfig
4998exit
4999
5000cd ..
5001rm -vfr hicolor-icon-theme-0.12
5002
5003<gtk+-2.24.14>
5004wget http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.14.tar.xz
5005tar vxf gtk+-2.24.14.tar.xz
5006cd gtk+-2.24.14
5007
5008sed -i 's#l \(gtk-.*\).sgml#& -o \1#' docs/{faq,tutorial}/Makefile.in
5009sed -i 's#.*@man_#man_#' docs/reference/gtk/Makefile.in
5010
5011./configure --prefix=/usr --sysconfdir=/etc
5012
5013make
5014
5015sudo su
5016make install
5017
5018gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
5019ldconfig
5020exit
5021
5022cat > ~/.gtkrc-2.0 << "EOF"
5023include "/usr/share/themes/Glider/gtk-2.0/gtkrc"
5024gtk-icon-theme-name = "hicolor"
5025EOF
5026
5027sudo su
5028cat > /etc/gtk-2.0/gtkrc << "EOF"
5029include "/usr/share/themes/Glider/gtk-2.0/gtkrc"
5030gtk-icon-theme-name = "hicolor"
5031EOF
5032exit
5033
5034cd ..
5035rm -vfr gtk+-2.24.14
5036
5037<pixman-0.28.2> - Circular install (GTK+)
5038tar vxf pixman-0.28.2.tar.gz
5039cd pixman-0.28.2
5040
5041./configure --prefix=/usr --disable-static
5042
5043make
5044
5045make check
5046
5047sudo su
5048make install
5049ldconfig
5050exit
5051
5052cd ..
5053rm -vfr pixman-0.28.2
5054
5055<py2cairo-1.10.0>
5056wget http://cairographics.org/releases/py2cairo-1.10.0.tar.bz2
5057tar vxf py2cairo-1.10.0.tar.bz2
5058cd py2cairo-1.10.0
5059
5060./waf configure --prefix=/usr
5061
5062./waf build
5063
5064sudo su
5065./waf install
5066ldconfig
5067exit
5068
5069cd ..
5070rm -vfr py2cairo-1.10.0
5071
5072<pygobject-2.28.6>
5073wget http://ftp.gnome.org/pub/gnome/sources/pygobject/2.28/pygobject-2.28.6.tar.xz
5074wget http://www.linuxfromscratch.org/patches/blfs/svn/pygobject-2.28.6-introspection-1.patch
5075tar vxf pygobject-2.28.6.tar.xz
5076cd pygobject-2.28.6
5077
5078patch -p1 < ../pygobject-2.28.6-introspection-1.patch
5079
5080./configure --prefix=/usr
5081
5082make
5083
5084sudo su
5085make install
5086ldconfig
5087exit
5088
5089cd ..
5090rm -vfr pygobject-2.28.6
5091
5092<dbus-python-1.1.1>
5093wget http://dbus.freedesktop.org/releases/dbus-python/dbus-python-1.1.1.tar.gz
5094tar vxf dbus-python-1.1.1.tar.gz
5095cd dbus-python-1.1.1
5096
5097./configure --prefix=/usr \
5098 --docdir=/usr/share/doc/dbus-python-1.1.1
5099
5100make
5101
5102make check
5103
5104sudo su
5105make install
5106ldconfig
5107exit
5108
5109cd ..
5110rm -vfr dbus-python-1.1.1
5111
5112<dbus-1.6.8> - circular install
5113tar vxf dbus-1.6.8.tar.gz
5114cd dbus-1.6.8
5115
5116./configure --prefix=/usr \
5117 --sysconfdir=/etc \
5118 --localstatedir=/var \
5119 --libexecdir=/usr/lib/dbus-1.0 \
5120 --with-console-auth-dir=/run/console/ \
5121 --without-systemdsystemunitdir \
5122 --disable-systemd \
5123 --disable-static
5124
5125make
5126
5127sudo su
5128make install
5129ldconfig
5130exit
5131
5132cd ..
5133rm -vfr dbus-1.6.8
5134
5135sudo /etc/rc.d/init.d/dbus start
5136
5137<alsa-lib-1.0.26> - kernel config required for sound card support
5138wget http://anduin.linuxfromscratch.org/sources/BLFS/svn/a/alsa-lib-1.0.29.tar.bz2
5139tar vxf alsa-lib-1.0.29.tar.bz2
5140cd alsa-lib-1.0.29
5141
5142./configure
5143
5144make
5145
5146sudo su
5147make install
5148ldconfig
5149exit
5150
5151cd ..
5152rm -vfr alsa-lib-1.0.29
5153
5154<gsl-1.15>
5155wget http://ftp.gnu.org/pub/gnu/gsl/gsl-1.15.tar.gz
5156tar vxf gsl-1.15.tar.gz
5157cd gsl-1.15
5158
5159./configure --prefix=/usr --disable-static
5160
5161make
5162make html
5163
5164sudo su
5165make install
5166
5167mkdir /usr/share/doc/gsl-1.15
5168cp doc/gsl-ref.html/* /usr/share/doc/gsl-1.15
5169ldconfig
5170exit
5171
5172cd ..
5173rm -vfr gsl-1.15
5174
5175<gstreamer-1.0.5>
5176wget http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.0.5.tar.xz
5177tar vxf gstreamer-1.0.5.tar.xz
5178cd gstreamer-1.0.5
5179
5180./configure --prefix=/usr \
5181 --libexecdir=/usr/lib \
5182 --with-package-name="GStreamer 1.0.5" \
5183 --with-package-origin="__a"
5184
5185make
5186
5187make check
5188
5189sudo su
5190make install
5191
5192install -v -m755 -d /usr/share/doc/gstreamer-0.10/design
5193install -v -m644 docs/design/*.txt \
5194 /usr/share/doc/gstreamer-0.10/design
5195
5196if [ -d /usr/share/doc/gstreamer-0.10/faq/html ]; then
5197 chown -v -R root:root \
5198 /usr/share/doc/gstreamer-0.10/*/html
5199fi
5200ldconfig
5201exit
5202
5203cd ..
5204rm -vfr gstreamer-1.0.5
5205
5206<libogg-1.3.0>
5207wget http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.xz
5208tar vxf libogg-1.3.0.tar.xz
5209cd libogg-1.3.0
5210
5211./configure --prefix=/usr
5212
5213make
5214
5215make check
5216
5217sudo su
5218make install
5219ldconfig
5220exit
5221
5222cd ..
5223rm -vfr libogg-1.3.0
5224
5225<libvorbis-1.3.3>
5226wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.xz
5227tar vxf libvorbis-1.3.3.tar.xz
5228cd libvorbis-1.3.3
5229
5230./configure --prefix=/usr --disable-static
5231
5232make
5233
5234unset MAKEFLAGS
5235make LIBS=-lm check
5236export MAKEFLAGS='-j 4'
5237
5238sudo su
5239make install
5240
5241install -v -m644 doc/Vorbis* /usr/share/doc/libvorbis-1.3.3
5242ldconfig
5243exit
5244
5245cd ..
5246rm -vfr libvorbis-1.3.3
5247
5248<alsa-plugins-1.0.26>
5249wget http://ftp.lfs-matrix.net/pub/blfs/conglomeration/alsa-plugins/alsa-plugins-1.0.26.tar.bz2
5250wget http://ftp.lfs-matrix.net/pub/blfs/conglomeration/alsa-plugins/alsa-plugins-1.0.26-ffmpeg-1.patch
5251tar vxf alsa-plugins-1.0.26.tar.bz2
5252cd alsa-plugins-1.0.26
5253
5254patch -Np1 -i ../alsa-plugins-1.0.26-ffmpeg-1.patch
5255
5256./configure
5257
5258make
5259
5260sudo su
5261make install
5262ldconfig
5263exit
5264
5265cd ..
5266rm -vfr alsa-plugins-1.0.26
5267
5268<alsa-utils-1.0.26>
5269wget http://ftp.lfs-matrix.net/pub/blfs/conglomeration/alsa-utils/alsa-utils-1.0.26.tar.bz2
5270tar vxf alsa-utils-1.0.26.tar.bz2
5271cd alsa-utils-1.0.26
5272
5273./configure --without-systemdsystemunitdir
5274
5275make
5276
5277sudo su
5278make install
5279
5280cd ../blfs-bootscripts-20130127
5281make install-alsa
5282cd ../alsa-utils-1.0.26
5283
5284touch /var/lib/alsa/asound.state
5285alsactl store
5286
5287usermod -a -G audio __a
5288ldconfig
5289exit
5290
5291cd ..
5292rm -vfr alsa-utils-1.0.26
5293
5294<audiofile-0.3.4>
5295wget http://ftp.gnome.org/pub/gnome/sources/audiofile/0.3/audiofile-0.3.4.tar.xz
5296tar vxf audiofile-0.3.4.tar.xz
5297cd audiofile-0.3.4
5298
5299./configure --prefix=/usr
5300
5301make
5302
5303make check
5304
5305sudo su
5306make install
5307ldconfig
5308exit
5309
5310cd ..
5311rm -vfr audiofile-0.3.4
5312
5313<esound-0.2.41>
5314wget http://ftp.gnome.org/pub/gnome/sources/esound/0.2/esound-0.2.41.tar.bz2
5315tar vxf esound-0.2.41.tar.bz2
5316cd esound-0.2.41
5317
5318LIBS=-lm ./configure --prefix=/usr --sysconfdir=/etc
5319
5320make
5321
5322sudo su
5323make install docdir=/usr/share/doc/esound-0.2.41
5324ldconfig
5325exit
5326
5327cd ..
5328rm -vfr esound-0.2.41
5329
5330<libusb-1.0.9>
5331wget http://downloads.sourceforge.net/libusb/libusb-1.0.9.tar.bz2
5332tar vxf libusb-1.0.9.tar.bz2
5333cd libusb-1.0.9
5334
5335./configure --prefix=/usr --disable-static
5336
5337make
5338
5339sudo su
5340make install
5341ldconfig
5342exit
5343
5344cd ..
5345rm -vfr libusb-1.0.9
5346
5347<onig-5.9.3>
5348wget http://www.geocities.jp/kosako3/oniguruma/archive/onig-5.9.3.tar.gz
5349tar vxf onig-5.9.3.tar.gz
5350cd onig-5.9.3
5351
5352./configure --prefix=/usr
5353
5354make
5355
5356make check
5357
5358sudo su
5359make install
5360ldconfig
5361exit
5362
5363cd ..
5364rm -vfr onig-5.9.3
5365
5366<slang-2.2.4>
5367wget http://anduin.linuxfromscratch.org/sources/BLFS/svn/s/slang-2.2.4.tar.bz2
5368tar vxf slang-2.2.4.tar.bz2
5369cd slang-2.2.4
5370
5371./configure --prefix=/usr --sysconfdir=/etc --with-readline=gnu
5372
5373unset MAKEFLAGS
5374make
5375
5376make check
5377
5378sudo su
5379make install_doc_dir=/usr/share/doc/slang-2.2.4 \
5380 SLSH_DOC_DIR=/usr/share/doc/slang-2.2.4/slsh \
5381 install-all
5382
5383chmod -v 755 /usr/lib/libslang.so.2.2.4 \
5384 /usr/lib/slang/v2/modules/*.so
5385ldconfig
5386exit
5387export MAKEFLAGS='-j 4'
5388
5389cd ..
5390sudo rm -vfr slang-2.2.4
5391
5392<gpm-1.20.7>
5393wget http://www.nico.schottelius.org/software/gpm/archives/gpm-1.20.7.tar.bz2
5394tar vxf gpm-1.20.7.tar.bz2
5395cd gpm-1.20.7
5396
5397./autogen.sh
5398
5399./configure --prefix=/usr --sysconfdir=/etc
5400
5401make
5402
5403sudo su
5404make install
5405
5406install-info --dir-file=/usr/share/info/dir \
5407 /usr/share/info/gpm.info
5408
5409ln -v -sfn libgpm.so.2.1.0 /usr/lib/libgpm.so
5410install -v -m644 conf/gpm-root.conf /etc
5411
5412install -v -m755 -d /usr/share/doc/gpm-1.20.7/support
5413install -v -m644 doc/support/* \
5414 /usr/share/doc/gpm-1.20.7/support
5415install -v -m644 doc/{FAQ,HACK_GPM,README*} \
5416 /usr/share/doc/gpm-1.20.7
5417
5418cd ../blfs-bootscripts-20130127
5419make install-gpm
5420cd ../gpm-1.20.7
5421
5422cat > /etc/sysconfig/mouse << "EOF"
5423# Begin /etc/sysconfig/mouse
5424
5425MDEVICE="/dev/input/mice"
5426PROTOCOL="imps2"
5427GPMOPTS=""
5428
5429# End /etc/sysconfig/mouse
5430EOF
5431
5432/etc/rc.d/init.d/gpm start
5433ldconfig
5434exit
5435
5436cd ..
5437rm -vfr gpm-1.20.7
5438
5439<aalib-1.4rc5>
5440wget http://downloads.sourceforge.net/aa-project/aalib-1.4rc5.tar.gz
5441tar vxf aalib-1.4rc5.tar.gz
5442cd aalib-1.4.0
5443
5444sed -i -e '/AM_PATH_AALIB,/s/AM_PATH_AALIB/[&]/' aalib.m4
5445
5446./configure --prefix=/usr \
5447 --infodir=/usr/share/info \
5448 --mandir=/usr/share/man \
5449 --disable-static
5450
5451make
5452
5453sudo su
5454make install
5455ldconfig
5456exit
5457
5458cd ..
5459rm -vfr aalib-1.4.0
5460
5461<SDL-1.2.15>
5462wget http://www.libsdl.org/release/SDL-1.2.15.tar.gz
5463tar vxf SDL-1.2.15.tar.gz
5464cd SDL-1.2.15
5465
5466./configure --prefix=/usr
5467
5468make
5469
5470sudo su
5471make install
5472
5473install -v -m755 -d /usr/share/doc/SDL-1.2.15/html
5474install -v -m644 docs/html/*.html \
5475 /usr/share/doc/SDL-1.2.15/html
5476ldconfig
5477exit
5478
5479cd ..
5480rm -vfr SDL-1.2.15
5481
5482<libtheora-1.1.1>
5483wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2
5484tar vxf libtheora-1.1.1.tar.bz2
5485cd libtheora-1.1.1
5486
5487./configure --prefix=/usr
5488
5489make
5490
5491make check
5492
5493sudo su
5494make install
5495
5496cd examples/.libs
5497for E in *; do
5498install -v -m755 $E /usr/bin/theora_${E}; done
5499ldconfig
5500exit
5501
5502cd ..
5503rm -vfr libtheora-1.1.1
5504
5505<which-2.20>
5506wget http://ftp.lfs-matrix.net/pub/blfs/conglomeration/which/which-2.20.tar.gz
5507tar vxf which-2.20.tar.gz
5508cd which-2.20
5509
5510./configure --prefix=/usr
5511
5512make
5513
5514sudo su
5515make install
5516ldconfig
5517exit
5518
5519cd ..
5520rm -vfr which-2.20
5521
5522<pciutils-3.1.10>
5523wget http://ftp.kernel.org/pub/software/utils/pciutils/pciutils-3.1.10.tar.xz
5524tar vxf pciutils-3.1.10.tar.xz
5525cd pciutils-3.1.10
5526
5527make PREFIX=/usr \
5528 SHAREDIR=/usr/share/misc \
5529 MANDIR=/usr/share/man \
5530 SHARED=yes ZLIB=no all
5531
5532sudo make PREFIX=/usr \
5533 SHAREDIR=/usr/share/misc \
5534 MANDIR=/usr/share/man \
5535 SHARED=yes ZLIB=no \
5536 install install-lib
5537
5538cd ..
5539rm -vfr pciutils-3.1.10
5540
5541<libusb-compat-0.1.4>
5542wget http://downloads.sourceforge.net/libusb/libusb-compat-0.1.4.tar.bz2
5543tar vxf libusb-compat-0.1.4.tar.bz2
5544cd libusb-compat-0.1.4
5545
5546./configure --prefix=/usr --disable-static
5547
5548make
5549
5550sudo su
5551make install
5552ldconfig
5553exit
5554
5555cd ..
5556rm -vfr libusb-compat-0.1.4
5557
5558<usbutils-006>
5559wget http://ftp.kernel.org/pub/linux/utils/usb/usbutils/usbutils-006.tar.xz
5560tar vxf usbutils-006.tar.xz
5561cd usbutils-006
5562
5563./configure --prefix=/usr \
5564 --datadir=/usr/share/misc \
5565 --disable-zlib
5566
5567make
5568
5569sudo su
5570make install
5571
5572mv -v /usr/sbin/update-usbids.sh /usr/sbin/update-usbids
5573ldconfig
5574exit
5575
5576cd ..
5577rm -vfr usbutils-006
5578
5579<gperf-3.0.4>
5580wget http://ftp.gnu.org/gnu/gperf/gperf-3.0.4.tar.gz
5581tar vxf gperf-3.0.4.tar.gz
5582cd gperf-3.0.4
5583
5584./configure --prefix=/usr --docdir=/usr/share/doc/gperf-3.0.4
5585
5586make
5587
5588makeinfo -o doc/gperf.txt --plaintext doc/gperf.texi
5589
5590unset MAKEFLAGS
5591make check
5592export MAKEFLAGS='-j 4'
5593
5594sudo su
5595make install
5596
5597install -m644 -v doc/gperf.{dvi,ps,pdf,txt} \
5598 /usr/share/doc/gperf-3.0.4
5599
5600pushd /usr/share/info
5601rm -v dir
5602for FILENAME in *; do
5603 install-info $FILENAME dir 2>/dev/null
5604done
5605popd
5606ldconfig
5607exit
5608
5609cd ..
5610rm -vfr gperf-3.0.4
5611
5612<udev-extras-188>
5613tar vxf systemd-188.tar.xz
5614cd systemd-188
5615
5616tar vxf ../udev-lfs-188-3.tar.bz2
5617
5618make -f udev-lfs-188/Makefile.lfs gudev
5619
5620sudo make -f udev-lfs-188/Makefile.lfs install-gudev
5621
5622make -f udev-lfs-188/Makefile.lfs gir-data
5623
5624sudo make -f udev-lfs-188/Makefile.lfs install-gir-data
5625
5626cd ..
5627rm -vfr systemd-188
5628
5629<cdparanoia-III-10.2>
5630wget http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-10.2.src.tgz
5631wget http://www.linuxfromscratch.org/patches/blfs/svn/cdparanoia-III-10.2-gcc_fixes-1.patch
5632tar vxf cdparanoia-III-10.2.src.tgz
5633cd cdparanoia-III-10.2
5634
5635patch -Np1 -i ../cdparanoia-III-10.2-gcc_fixes-1.patch
5636
5637./configure --prefix=/usr
5638
5639unset MAKEFLAGS
5640make
5641export MAKEFLAGS='-j 4'
5642
5643sudo su
5644make install
5645
5646chmod -v 755 /usr/lib/libcdda_*.so.0.10.2
5647ldconfig
5648exit
5649
5650cd ..
5651rm -vfr cdparanoia-III-10.2
5652
5653<orc-0.4.16>
5654wget http://code.entropywave.com/download/orc/orc-0.4.16.tar.gz
5655tar vxf orc-0.4.16.tar.gz
5656cd orc-0.4.16
5657
5658./configure --prefix=/usr
5659
5660make
5661
5662make check
5663
5664sudo su
5665make install
5666ldconfig
5667exit
5668
5669cd ..
5670rm -vfr orc-0.4.16
5671
5672<gst-plugins-base-1.0.5>
5673wget http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.0.5.tar.xz
5674tar vxf gst-plugins-base-1.0.5.tar.xz
5675cd gst-plugins-base-1.0.5
5676
5677./configure --prefix=/usr \
5678 --with-package-name="GStreamer Base Plugins 1.0.5" \
5679 --with-package-origin="__a"
5680
5681make
5682
5683make check
5684
5685sudo su
5686make install
5687ldconfig
5688exit
5689
5690cd ..
5691rm -vfr gst-plugins-base-1.0.5
5692
5693<flac-1.2.1>
5694wget http://downloads.sourceforge.net/flac/flac-1.2.1.tar.gz
5695tar vxf flac-1.2.1.tar.gz
5696cd flac-1.2.1
5697
5698sed -i 's/#include <stdio.h>/&\n#include <string.h>/' \
5699 examples/cpp/encode/file/main.cpp
5700
5701./configure --prefix=/usr \
5702 --mandir=/usr/share/man \
5703 --disable-thorough-tests
5704
5705make
5706
5707make check
5708
5709sudo su
5710make install
5711ldconfig
5712exit
5713
5714cd ..
5715rm -vfr flac-1.2.1
5716
5717<sqlite-autoconf-3071502>
5718wget http://sqlite.org/sqlite-autoconf-3071502.tar.gz
5719wget http://sqlite.org/sqlite-doc-3071502.zip
5720tar vxf sqlite-autoconf-3071502.tar.gz
5721cd sqlite-autoconf-3071502
5722
5723unzip -q ../sqlite-doc-3071502.zip
5724
5725./configure --prefix=/usr --disable-static \
5726 CFLAGS="-g -O2 -DSQLITE_ENABLE_FTS3=1 \
5727 -DSQLITE_ENABLE_COLUMN_METADATA=1 \
5728 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
5729 -DSQLITE_SECURE_DELETE=1"
5730
5731make
5732
5733sudo su
5734make install
5735
5736install -v -m755 -d /usr/share/doc/sqlite-3.7.15.2
5737cp -v -R sqlite-doc-3071502/* /usr/share/doc/sqlite-3.7.15.2
5738ldconfig
5739exit
5740
5741cd ..
5742rm -vfr sqlite-autoconf-3071502
5743
5744<libsndfile-1.0.25>
5745wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
5746tar vxf libsndfile-1.0.25.tar.gz
5747cd libsndfile-1.0.25
5748
5749./configure --prefix=/usr
5750
5751make
5752
5753make check
5754
5755sudo su
5756make htmldocdir=/usr/share/doc/libsndfile-1.0.25 install
5757ldconfig
5758exit
5759
5760cd ..
5761rm -vfr libsndfile-1.0.25
5762
5763<bluez-4.101> - kernel config required to enable bluetooth
5764wget http://ftp.lfs-matrix.net/pub/blfs/conglomeration/bluez/bluez-4.101.tar.xz
5765tar vxf bluez-4.101.tar.xz
5766cd bluez-4.101
5767
5768./configure --prefix=/usr \
5769 --sysconfdir=/etc \
5770 --localstatedir=/var \
5771 --libexecdir=/lib \
5772 --enable-bccmd \
5773 --enable-dfutool \
5774 --enable-dund \
5775 --enable-hid2hci \
5776 --enable-hidd \
5777 --enable-pand \
5778 --enable-tools \
5779 --disable-test \
5780 --without-systemdunitdir \
5781 --enable-datafiles \
5782 --enable-usb \
5783 --enable-alsa
5784
5785make
5786
5787sudo su
5788make install
5789
5790for CONFFILE in audio input network serial ; do
5791 install -v -m644 ${CONFFILE}/${CONFFILE}.conf /etc/bluetooth/${CONFFILE}.conf
5792done
5793unset CONFILE
5794
5795install -v -m755 -d /usr/share/doc/bluez-4.101
5796install -v -m644 doc/*.txt /usr/share/doc/bluez-4.101
5797
5798cd ../blfs-bootscripts-20130127
5799make install-bluetooth
5800ldconfig
5801exit
5802
5803cd ..
5804sudo rm -vfr bluez-4.101
5805
5806<tk8.6.0>
5807wget http://downloads.sourceforge.net/tcl/tk8.6.0-src.tar.gz
5808tar vxf tk8.6.0-src.tar.gz
5809cd tk8.6.0/unix
5810
5811./configure --prefix=/usr \
5812 --mandir=/usr/share/man \
5813 $([ $(uname -m) = x86_64 ] && echo --enable-64bit)
5814
5815make
5816
5817sed -e "s@^\(TK_SRC_DIR='\).*@\1/usr/include'@" \
5818 -e "/TK_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
5819 -i tkConfig.sh
5820
5821sudo su
5822make install
5823make install-private-headers
5824
5825ln -v -sf wish8.6 /usr/bin/wish
5826chmod -v 755 /usr/lib/libtk8.6.so
5827ldconfig
5828exit
5829
5830cd ../..
5831rm -vfr tk8.6.0
5832
5833<Python-2.7.3> - Circular install
5834tar vxf Python-2.7.3.tar.xz
5835cd Python-2.7.3
5836
5837sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py
5838
5839patch -Np1 -i ../Python-2.7.3-bsddb_fix-1.patch
5840
5841./configure --prefix=/usr \
5842 --enable-shared \
5843 --with-system-expat \
5844 --with-system-ffi \
5845 --enable-unicode=ucs4
5846
5847make
5848
5849make test
5850
5851sudo su
5852make install
5853chmod -v 755 /usr/lib/libpython2.7.so.1.0
5854ldconfig
5855exit
5856
5857cd ..
5858rm -vfr Python-2.7.3
5859
5860<xcb-util-0.3.9>
5861wget http://ftp.lfs-matrix.net/pub/blfs/conglomeration/xcb-util/xcb-util-0.3.9.tar.bz2
5862tar vxf xcb-util-0.3.9.tar.bz2
5863cd xcb-util-0.3.9
5864
5865./configure $XORG_CONFIG
5866
5867make
5868
5869sudo su
5870make install
5871ldconfig
5872exit
5873
5874cd ..
5875rm -vfr xcb-util-0.3.9
5876
5877<libdrm-2.4.43>
5878wget http://dri.freedesktop.org/libdrm/libdrm-2.4.43.tar.bz2
5879tar vxf libdrm-2.4.43.tar.bz2
5880cd libdrm-2.4.43
5881
5882sed -e "/pthread-stubs/d" -i configure.ac
5883sed -e "/man\/Makefile/d" -i configure.ac
5884autoreconf -fi
5885
5886./configure --prefix=/usr --enable-udev --disable-manpages
5887
5888make
5889
5890make check
5891
5892sudo su
5893make install
5894ldconfig
5895exit
5896
5897cd ..
5898rm -vfr libdrm-2.4.43
5899
5900<llvm-3.2.src>
5901wget http://llvm.org/releases/3.2/llvm-3.2.src.tar.gz
5902wget http://www.linuxfromscratch.org/patches/downloads/llvm/llvm-3.2-blfs_paths-1.patch
5903wget http://llvm.org/releases/3.2/clang-3.2.src.tar.gz
5904wget http://llvm.org/releases/3.2/compiler-rt-3.2.src.tar.gz
5905tar vxf llvm-3.2.src.tar.gz
5906cd llvm-3.2.src
5907
5908tar -xf ../clang-3.2.src.tar.gz -C tools
5909tar -xf ../compiler-rt-3.2.src.tar.gz -C projects
5910
5911mv tools/clang-3.2.src tools/clang
5912mv projects/compiler-rt-3.2.src projects/compiler-rt
5913
5914sed -e "s@../lib/libprofile_rt.a@../lib/llvm/libprofile_rt.a@g" \
5915 -i tools/clang/lib/Driver/Tools.cpp
5916
5917patch -Np1 -i ../llvm-3.2-blfs_paths-1.patch
5918
5919CC=gcc CXX=g++ \
5920./configure --prefix=/usr \
5921 --sysconfdir=/etc \
5922 --libdir=/usr/lib/llvm \
5923 --enable-libffi \
5924 --enable-optimized \
5925 --enable-shared \
5926 --enable-targets=all \
5927 --disable-assertions \
5928 --disable-debug-runtime \
5929 --disable-expensive-checks
5930
5931make
5932
5933make check
5934
5935sudo su
5936make install
5937
5938chmod -v 644 /usr/lib/llvm/*.a
5939echo /usr/lib/llvm >> /etc/ld.so.conf
5940ldconfig
5941exit
5942
5943cd ..
5944rm -vfr llvm-3.2.src
5945
5946<MesaLib-9.1.1>
5947wget http://ftp.lfs-matrix.net/pub/blfs/conglomeration/MesaLib/MesaLib-9.0.2.tar.bz2
5948lynx https://gsdview.appspot.com/chromeos-localmirror/distfiles/glu-9.0.0.tar.bz2
5949wget http://www.linuxfromscratch.org/patches/downloads/MesaLib/MesaLib-9.0.1-add_xdemos-5.patch
5950tar vxf MesaLib-9.0.2.tar.bz2
5951cd Mesa-9.0.2
5952
5953patch -Np1 -i ../MesaLib-9.0.1-add_xdemos-5.patch
5954
5955autoreconf -fi
5956
5957./configure --prefix=/usr \
5958 --sysconfdir=/etc \
5959 --enable-texture-float \
5960 --enable-gles1 \
5961 --enable-gles2 \
5962 --enable-openvg \
5963 --enable-osmesa \
5964 --enable-xa \
5965 --enable-gbm \
5966 --enable-gallium-egl \
5967 --enable-gallium-gbm \
5968 --enable-glx-tls \
5969 --with-egl-platforms="drm,x11" \
5970 --with-gallium-drivers="i915,svga,swrast"
5971
5972make
5973
5974make -C xdemos DEMOS_PREFIX=/usr
5975
5976sudo su
5977make install
5978
5979make -C xdemos DEMOS_PREFIX=/usr install
5980
5981install -v -dm755 /usr/share/doc/MesaLib-9.0.2
5982cp -rfv docs/* /usr/share/doc/MesaLib-9.0.2
5983ldconfig
5984exit
5985
5986cd ..
5987rm -vfr Mesa-9.0.2
5988
5989<glu-9.0.0>
5990tar vxf glu-9.0.0.tar.bz2
5991cd glu-9.0.0
5992
5993./configure --prefix=/usr --disable-static
5994
5995make
5996
5997sudo su
5998make install
5999ldconfig
6000exit
6001
6002cd ..
6003rm -vfr glu-9.0.0
6004
6005<xbitmaps-1.1.1>
6006wget http://xorg.freedesktop.org/releases/individual/data/xbitmaps-1.1.1.tar.bz2
6007tar vxf xbitmaps-1.1.1.tar.bz2
6008cd xbitmaps-1.1.1
6009
6010./configure $XORG_CONFIG
6011
6012sudo su
6013make install
6014ldconfig
6015exit
6016
6017cd ..
6018rm -vfr xbitmaps-1.1.1
6019
6020<libtirpc-0.2.2>
6021wget http://downloads.sourceforge.net/project/libtirpc/libtirpc/0.2.2/libtirpc-0.2.2.tar.bz2
6022wget http://anduin.linuxfromscratch.org/sources/BLFS/svn/r/rpcnis-headers.tar.bz2
6023wget http://www.linuxfromscratch.org/patches/downloads/libtirpc/libtirpc-0.2.2-remove-nis-2.patch
6024tar vxf libtirpc-0.2.2.tar.bz2
6025cd libtirpc-0.2.2
6026
6027sudo su
6028if [ ! -r /usr/include/rpc/rpc.h ]; then
6029 tar -xvf ../rpcnis-headers.tar.bz2 -C /usr/include
6030fi
6031exit
6032
6033patch -Np1 -i ../libtirpc-0.2.2-remove-nis-2.patch
6034
6035sed "s@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@g" -i configure.ac
6036
6037autoreconf -fi
6038
6039./configure --prefix=/usr CFLAGS="-fPIC"
6040
6041make
6042
6043sudo su
6044make install
6045mv -v /usr/lib/libtirpc.so.* /lib
6046ln -sfv ../../lib/libtirpc.so.1.0.10 /usr/lib/libtirpc.so
6047ldconfig
6048exit
6049
6050cd ..
6051rm -vfr libtirpc-0.2.2
6052
6053<Linux-PAM-1.1.6>
6054wget http://linux-pam.org/library/Linux-PAM-1.1.6.tar.bz2
6055wget http://linux-pam.org/documentation/Linux-PAM-1.1.6-docs.tar.bz2
6056tar vxf Linux-PAM-1.1.6.tar.bz2
6057cd Linux-PAM-1.1.6
6058
6059tar -xf ../Linux-PAM-1.1.6-docs.tar.bz2 --strip-components=1
6060
6061./configure --prefix=/usr \
6062 --sysconfdir=/etc \
6063 --docdir=/usr/share/doc/Linux-PAM-1.1.6 \
6064 --disable-nis
6065
6066make
6067
6068sudo su
6069install -v -m755 -d /etc/pam.d
6070
6071cat > /etc/pam.d/other << "EOF"
6072auth required pam_deny.so
6073account required pam_deny.so
6074password required pam_deny.so
6075session required pam_deny.so
6076EOF
6077exit
6078
6079make check
6080
6081sudo su
6082rm -rfv /etc/pam.d
6083
6084make install
6085chmod -v 4755 /sbin/unix_chkpwd
6086
6087install -v -m755 -d /etc/pam.d
6088cat > /etc/pam.d/other << "EOF"
6089# Begin /etc/pam.d/other
6090
6091auth required pam_unix.so nullok
6092account required pam_unix.so
6093session required pam_unix.so
6094password required pam_unix.so nullok
6095
6096# End /etc/pam.d/other
6097EOF
6098
6099ldconfig
6100exit
6101
6102cd ..
6103rm -vfr Linux-PAM-1.1.6
6104
6105<shadow-4.1.5.1>
6106tar vxf shadow-4.1.5.1.tar.bz2
6107cd shadow-4.1.5.1
6108
6109sed -i 's/groups$(EXEEXT) //' src/Makefile.in
6110find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;
6111sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in
6112
6113sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \
6114 -e 's@/var/spool/mail@/var/mail@' etc/login.defs
6115
6116sed -i -e 's@PATH=/sbin:/bin:/usr/sbin:/usr/bin@&:/usr/local/sbin:/usr/local/bin@' \
6117 -e 's@PATH=/bin:/usr/bin@&:/usr/local/bin@' etc/login.defs
6118
6119./configure --prefix=/usr --sysconfdir=/etc --with-libcrack
6120
6121make
6122
6123sudo su
6124make install
6125
6126mv -v /usr/bin/passwd /bin
6127sed -i 's/yes/no/' /etc/default/useradd
6128
6129install -v -m644 /etc/login.defs /etc/login.defs.orig
6130for FUNCTION in FAIL_DELAY FAILLOG_ENAB \
6131 LASTLOG_ENAB \
6132 MAIL_CHECK_ENAB \
6133 OBSCURE_CHECKS_ENAB \
6134 PORTTIME_CHECKS_ENAB \
6135 QUOTAS_ENAB \
6136 CONSOLE MOTD_FILE \
6137 FTMP_FILE NOLOGINS_FILE \
6138 ENV_HZ PASS_MIN_LEN \
6139 SU_WHEEL_ONLY \
6140 CRACKLIB_DICTPATH \
6141 PASS_CHANGE_TRIES \
6142 PASS_ALWAYS_WARN \
6143 CHFN_AUTH ENCRYPT_METHOD \
6144 ENVIRON_FILE
6145do
6146 sed -i "s/^${FUNCTION}/# &/" /etc/login.defs
6147done
6148
6149cat > /etc/pam.d/system-account << "EOF"
6150# Begin /etc/pam.d/system-account
6151
6152account required pam_unix.so
6153
6154# End /etc/pam.d/system-account
6155EOF
6156
6157cat > /etc/pam.d/system-auth << "EOF"
6158# Begin /etc/pam.d/system-auth
6159
6160auth required pam_unix.so
6161
6162# End /etc/pam.d/system-auth
6163EOF
6164
6165cat > /etc/pam.d/system-password << "EOF"
6166# Begin /etc/pam.d/system-password
6167
6168# check new passwords for strength (man pam_cracklib)
6169password required pam_cracklib.so type=Linux retry=3 difok=5 \
6170 difignore=23 minlen=9 dcredit=1 \
6171 ucredit=1 lcredit=1 ocredit=1 \
6172 dictpath=/lib/cracklib/pw_dict
6173# use sha512 hash for encryption, use shadow, and use the
6174# authentication token (chosen password) set by pam_cracklib
6175# above (or any previous modules)
6176password required pam_unix.so sha512 shadow use_authtok
6177
6178# End /etc/pam.d/system-password
6179EOF
6180
6181cat > /etc/pam.d/system-session << "EOF"
6182# Begin /etc/pam.d/system-session
6183
6184session required pam_unix.so
6185
6186# End /etc/pam.d/system-session
6187EOF
6188
6189cat > /etc/pam.d/login << "EOF"
6190# Begin /etc/pam.d/login
6191
6192# Set failure delay before next prompt to 3 seconds
6193auth optional pam_faildelay.so delay=3000000
6194
6195# Check to make sure that the user is allowed to login
6196auth requisite pam_nologin.so
6197
6198# Check to make sure that root is allowed to login
6199# Disabled by default. You will need to create /etc/securetty
6200# file for this module to function. See man 5 securetty.
6201#auth required pam_securetty.so
6202
6203# Additional group memberships - disabled by default
6204#auth optional pam_group.so
6205
6206# include the default auth settings
6207auth include system-auth
6208
6209# check access for the user
6210account required pam_access.so
6211
6212# include the default account settings
6213account include system-account
6214
6215# Set default environment variables for the user
6216session required pam_env.so
6217
6218# Set resource limits for the user
6219session required pam_limits.so
6220
6221# Display date of last login - Disabled by default
6222#session optional pam_lastlog.so
6223
6224# Display the message of the day - Disabled by default
6225#session optional pam_motd.so
6226
6227# Check user's mail - Disabled by default
6228#session optional pam_mail.so standard quiet
6229
6230# include the default session and password settings
6231session include system-session
6232password include system-password
6233
6234# End /etc/pam.d/login
6235EOF
6236
6237cat > /etc/pam.d/passwd << "EOF"
6238# Begin /etc/pam.d/passwd
6239
6240password include system-password
6241
6242# End /etc/pam.d/passwd
6243EOF
6244
6245cat > /etc/pam.d/su << "EOF"
6246# Begin /etc/pam.d/su
6247
6248# always allow root
6249auth sufficient pam_rootok.so
6250auth include system-auth
6251
6252# include the default account settings
6253account include system-account
6254
6255# Set default environment variables for the service user
6256session required pam_env.so
6257
6258# include system session defaults
6259session include system-session
6260
6261# End /etc/pam.d/su
6262EOF
6263
6264cat > /etc/pam.d/chage << "EOF"
6265#Begin /etc/pam.d/chage
6266
6267# always allow root
6268auth sufficient pam_rootok.so
6269
6270# include system defaults for auth account and session
6271auth include system-auth
6272account include system-account
6273session include system-session
6274
6275# Always permit for authentication updates
6276password required pam_permit.so
6277
6278# End /etc/pam.d/chage
6279EOF
6280
6281for PROGRAM in chfn chgpasswd chpasswd chsh groupadd groupdel \
6282 groupmems groupmod newusers useradd userdel usermod
6283do
6284 install -v -m644 /etc/pam.d/chage /etc/pam.d/${PROGRAM}
6285 sed -i "s/chage/$PROGRAM/" /etc/pam.d/${PROGRAM}
6286done
6287
6288cat > /etc/pam.d/other << "EOF"
6289# Begin /etc/pam.d/other
6290
6291auth required pam_warn.so
6292auth required pam_deny.so
6293account required pam_warn.so
6294account required pam_deny.so
6295password required pam_warn.so
6296password required pam_deny.so
6297session required pam_warn.so
6298session required pam_deny.so
6299
6300# End /etc/pam.d/other
6301EOF
6302
6303[ -f /etc/login.access ] && mv -v /etc/login.access{,.NOUSE}
6304
6305[ -f /etc/limits ] && mv -v /etc/limits{,.NOUSE}
6306
6307ldconfig
6308exit
6309
6310cd ..
6311rm -vfr shadow-4.1.5.1
6312
6313<reboot>
6314sudo su
6315init 6
6316
6317<Xorg Applications>
6318cd /sources
6319vim app-7.7.md5
6320
63214a7a4a848c43c42f7d499b60666434a4 bdftopcf-1.0.3.tar.bz2
632208e3f6b523da8b0af179f22f339508b2 iceauth-1.0.5.tar.bz2
6323c4a3664e08e5a47c120ff9263ee2f20c luit-1.1.1.tar.bz2
632418c429148c96c2079edda922a2b67632 mkfontdir-1.0.7.tar.bz2
6325414fcb053418fb1418e3a39f4a37e0f7 mkfontscale-1.1.0.tar.bz2
6326e99172cbd72700eeeae99f64632b5dc2 sessreg-1.0.7.tar.bz2
63271001771344608e120e943a396317c33a setxkbmap-1.3.0.tar.bz2
6328edce41bd7562dcdfb813e05dbeede8ac smproxy-1.0.5.tar.bz2
63295c3c7431a38775caaea6051312a49bc9 x11perf-1.5.4.tar.bz2
6330cbcbd8f2156a53b609800bec4c6b6c0e xauth-1.0.7.tar.bz2
6331c9891d6a3f3129d56cede72daa0ba26c xbacklight-1.1.2.tar.bz2
63325812be48cbbec1068e7b718eec801766 xcmsdb-1.0.4.tar.bz2
633309f56978a62854534deacc8aa8ff3031 xcursorgen-1.0.5.tar.bz2
63341ef08f4c8d0e669c2edd49e4a1bf650d xdpyinfo-1.3.0.tar.bz2
63353d3cad4d754e10e325438193433d59fd xdriinfo-1.0.4.tar.bz2
63362727c72f3eba0c23f8f6b2e618d195a2 xev-1.2.0.tar.bz2
6337c06067f572bc4a5298f324f27340da95 xgamma-1.0.5.tar.bz2
6338a0fcd2cb6ddd9f378944cc6f4f83cd7c xhost-1.0.5.tar.bz2
6339d2459d35b4e0b41ded26a1d1159b7ac6 xinput-1.6.0.tar.bz2
6340a0fc1ac3fc4fe479ade09674347c5aa0 xkbcomp-1.2.4.tar.bz2
634137ed71525c63a9acd42e7cde211dcc5b xkbevd-1.1.3.tar.bz2
634252ad6d8d87577a8ac736ab5488bec210 xkbutils-1.0.3.tar.bz2
6343e7f0d57b6ba49c384e9cf8c9ff3243c1 xkill-1.0.3.tar.bz2
63449d0e16d116d1c89e6b668c1b2672eb57 xlsatoms-1.1.1.tar.bz2
6345760099f0af112401735801e3b9aa8595 xlsclients-1.1.2.tar.bz2
6346d9b65f6881afe0d6d9863b30e1081bde xmodmap-1.0.7.tar.bz2
63476101f04731ffd40803df80eca274ec4b xpr-1.0.4.tar.bz2
6348d5529dc8d811efabd136ca2d8e857deb xprop-1.2.1.tar.bz2
63499735173a84dca9b05e06fd4686196b07 xrandr-1.3.5.tar.bz2
6350ed2e48cf33584455d74615ad4bbe4246 xrdb-1.0.9.tar.bz2
63512f63f88ad0dcecd33c8cf000f38e9250 xrefresh-1.0.4.tar.bz2
6352d44e0057d6722b25d5a314e82e0b7e7c xset-1.2.2.tar.bz2
6353b78a2da4cf128775031a5a3422fc0b78 xsetroot-1.1.0.tar.bz2
6354c88feb501083951a8f47a21aaeb1529d xvinfo-1.1.1.tar.bz2
63552113126f9ac9c02bb8547c112c5d037e xwd-1.0.5.tar.bz2
63569e8b58c8aa6172e87ab4f9cf3612fedd xwininfo-1.1.2.tar.bz2
63573025b152b4f13fdffd0c46d0be587be6 xwud-1.0.4.tar.bz2
6358
6359mkdir app
6360cd app
6361grep -v '^#' ../app-7.7.md5 | awk '{print $2}' | wget -i- -c \
6362 -B http://xorg.freedesktop.org/releases/individual/app/md5sum -c ../app-7.7.md5
6363
6364bash -e
6365
6366for package in $(grep -v '^#' ../app-7.7.md5 | awk '{print $2}')
6367do
6368 packagedir=${package%.tar.bz2}
6369 tar -xf $package
6370 pushd $packagedir
6371 ./configure $XORG_CONFIG
6372 make
6373 sudo make install
6374 popd
6375 rm -fr $packagedir
6376done
6377
6378exit
6379
6380cd ..
6381
6382<xcursor-themes-1.0.3>
6383wget http://xorg.freedesktop.org/releases/individual/data/xcursor-themes-1.0.3.tar.bz2
6384tar vxf xcursor-themes-1.0.3.tar.bz2
6385cd xcursor-themes-1.0.3
6386
6387./configure $XORG_CONFIG
6388
6389make
6390
6391sudo su
6392make install
6393ldconfig
6394exit
6395
6396cd ..
6397rm -vfr xcursor-themes-1.0.3
6398
6399<Xorg Fonts>
6400vi font-7.7.md5
6401
6402ddfc8a89d597651408369d940d03d06b font-util-1.3.0.tar.bz2
64030f2d6546d514c5cc4ecf78a60657a5c1 encodings-1.0.4.tar.bz2
64041347c3031b74c9e91dc4dfa53b12f143 font-adobe-100dpi-1.0.3.tar.bz2
64056c9f26c92393c0756f3e8d614713495b font-adobe-75dpi-1.0.3.tar.bz2
640666fb6de561648a6dce2755621d6aea17 font-adobe-utopia-100dpi-1.0.4.tar.bz2
6407e99276db3e7cef6dccc8a57bc68aeba7 font-adobe-utopia-75dpi-1.0.4.tar.bz2
6408fcf24554c348df3c689b91596d7f9971 font-adobe-utopia-type1-1.0.4.tar.bz2
64096d25f64796fef34b53b439c2e9efa562 font-alias-1.0.3.tar.bz2
6410cc0726e4a277d6ed93b8e09c1f195470 font-arabic-misc-1.0.3.tar.bz2
64119f11ade089d689b9d59e0f47d26f39cd font-bh-100dpi-1.0.3.tar.bz2
6412565494fc3b6ac08010201d79c677a7a7 font-bh-75dpi-1.0.3.tar.bz2
6413c8b73a53dcefe3e8d3907d3500e484a9 font-bh-lucidatypewriter-100dpi-1.0.3.tar.bz2
6414f6d65758ac9eb576ae49ab24c5e9019a font-bh-lucidatypewriter-75dpi-1.0.3.tar.bz2
6415e8ca58ea0d3726b94fe9f2c17344be60 font-bh-ttf-1.0.3.tar.bz2
641653ed9a42388b7ebb689bdfc374f96a22 font-bh-type1-1.0.3.tar.bz2
64176b223a54b15ecbd5a1bc52312ad790d8 font-bitstream-100dpi-1.0.3.tar.bz2
6418d7c0588c26fac055c0dd683fdd65ac34 font-bitstream-75dpi-1.0.3.tar.bz2
64195e0c9895d69d2632e2170114f8283c11 font-bitstream-type1-1.0.3.tar.bz2
6420e452b94b59b9cfd49110bb49b6267fba font-cronyx-cyrillic-1.0.3.tar.bz2
64213e0069d4f178a399cffe56daa95c2b63 font-cursor-misc-1.0.3.tar.bz2
64220571bf77f8fab465a5454569d9989506 font-daewoo-misc-1.0.3.tar.bz2
64236e7c5108f1b16d7a1c7b2c9760edd6e5 font-dec-misc-1.0.3.tar.bz2
6424bfb2593d2102585f45daa960f43cb3c4 font-ibm-type1-1.0.3.tar.bz2
6425a2401caccbdcf5698e001784dbd43f1a font-isas-misc-1.0.3.tar.bz2
6426cb7b57d7800fd9e28ec35d85761ed278 font-jis-misc-1.0.3.tar.bz2
6427143c228286fe9c920ab60e47c1b60b67 font-micro-misc-1.0.3.tar.bz2
642896109d0890ad2b6b0e948525ebb0aba8 font-misc-cyrillic-1.0.3.tar.bz2
64296306c808f7d7e7d660dfb3859f9091d2 font-misc-ethiopic-1.0.3.tar.bz2
6430e3e7b0fda650adc7eb6964ff3c486b1c font-misc-meltho-1.0.3.tar.bz2
6431c88eb44b3b903d79fb44b860a213e623 font-misc-misc-1.1.2.tar.bz2
643256b0296e8862fc1df5cdbb4efe604e86 font-mutt-misc-1.0.3.tar.bz2
6433e805feb7c4f20e6bfb1118d19d972219 font-schumacher-misc-1.1.2.tar.bz2
64346f3fdcf2454bf08128a651914b7948ca font-screen-cyrillic-1.0.4.tar.bz2
6435beef61a9b0762aba8af7b736bb961f86 font-sony-misc-1.0.3.tar.bz2
6436948f2e07810b4f31195185921470f68d font-sun-misc-1.0.3.tar.bz2
6437829a3159389b7f96f629e5388bfee67b font-winitzki-cyrillic-1.0.3.tar.bz2
64383eeb3fb44690b477d510bbd8f86cf5aa font-xfree86-type1-1.0.4.tar.bz2
6439
6440mkdir font
6441cd font
6442grep -v '^#' ../font-7.7.md5 | awk '{print $2}' | wget -i- -c \
6443 -B http://xorg.freedesktop.org/releases/individual/font/md5sum -c ../font-7.7.md5
6444
6445bash -e
6446
6447for package in $(grep -v '^#' ../font-7.7.md5 | awk '{print $2}')
6448do
6449 packagedir=${package%.tar.bz2}
6450 tar -xf $package
6451 pushd $packagedir
6452 ./configure $XORG_CONFIG
6453 make
6454 sudo make install
6455 popd
6456 rm -fr $packagedir
6457done
6458
6459exit
6460
6461sudo su
6462install -v -d -m755 /usr/share/fonts
6463ln -svfn $XORG_PREFIX/share/fonts/X11/OTF /usr/share/fonts/X11-OTF
6464ln -svfn $XORG_PREFIX/share/fonts/X11/TTF /usr/share/fonts/X11-TTF
6465exit
6466
6467cd ..
6468
6469<Certificate Authorities>
6470sudo su
6471
6472vi /bin/make-cert.pl
6473
6474#!/usr/bin/perl -w
6475
6476# Used to generate PEM encoded files from Mozilla certdata.txt.
6477# Run as ./mkcrt.pl > certificate.crt
6478#
6479# Parts of this script courtesy of RedHat (mkcabundle.pl)
6480#
6481# This script modified for use with single file data (tempfile.cer)
6482# extracted
6483# from certdata.txt, taken from the latest version in the Mozilla NSS
6484# source.
6485# mozilla/security/nss/lib/ckfw/builtins/certdata.txt
6486#
6487# Authors: DJ Lucas
6488# Bruce Dubbs
6489#
6490# Version 20120211
6491
6492my $certdata = './tempfile.cer';
6493
6494open( IN, "cat $certdata|" )
6495 || die "could not open $certdata";
6496
6497my $incert = 0;
6498
6499while ( <IN> )
6500{
6501 if ( /^CKA_VALUE MULTILINE_OCTAL/ )
6502 {
6503 $incert = 1;
6504 open( OUT, "|openssl x509 -text -inform DER -fingerprint" )
6505 || die "could not pipe to openssl x509";
6506 }
6507
6508 elsif ( /^END/ && $incert )
6509 {
6510 close( OUT );
6511 $incert = 0;
6512 print "\n\n";
6513 }
6514
6515 elsif ($incert)
6516 {
6517 my @bs = split( /\\/ );
6518 foreach my $b (@bs)
6519 {
6520 chomp $b;
6521 printf( OUT "%c", oct($b) ) unless $b eq '';
6522 }
6523 }
6524}
6525
6526chmod +x /bin/make-cert.pl
6527
6528vi /bin/make-ca.sh
6529
6530#!/bin/bash
6531# Begin make-ca.sh
6532# Script to populate OpenSSL's CApath from a bundle of PEM formatted CAs
6533#
6534# The file certdata.txt must exist in the local directory
6535# Version number is obtained from the version of the data.
6536#
6537# Authors: DJ Lucas
6538# Bruce Dubbs
6539#
6540# Version 20120211
6541
6542certdata="certdata.txt"
6543
6544if [ ! -r $certdata ]; then
6545 echo "$certdata must be in the local directory"
6546 exit 1
6547fi
6548
6549REVISION=$(grep CVS_ID $certdata | cut -f4 -d'$')
6550
6551if [ -z "${REVISION}" ]; then
6552 echo "$certfile has no 'Revision' in CVS_ID"
6553 exit 1
6554fi
6555
6556VERSION=$(echo $REVISION | cut -f2 -d" ")
6557
6558TEMPDIR=$(mktemp -d)
6559TRUSTATTRIBUTES="CKA_TRUST_SERVER_AUTH"
6560BUNDLE="BLFS-ca-bundle-${VERSION}.crt"
6561CONVERTSCRIPT="/bin/make-cert.pl"
6562SSLDIR="/etc/ssl"
6563
6564mkdir "${TEMPDIR}/certs"
6565
6566# Get a list of staring lines for each cert
6567CERTBEGINLIST=$(grep -n "^# Certificate" "${certdata}" | cut -d ":" -f1)
6568
6569# Get a list of ending lines for each cert
6570CERTENDLIST=`grep -n "^CKA_TRUST_STEP_UP_APPROVED" "${certdata}" | cut -d ":" -f 1`
6571
6572# Start a loop
6573for certbegin in ${CERTBEGINLIST}; do
6574 for certend in ${CERTENDLIST}; do
6575 if test "${certend}" -gt "${certbegin}"; then
6576 break
6577 fi
6578 done
6579
6580 # Dump to a temp file with the name of the file as the beginning line
6581 # number
6582 sed -n "${certbegin},${certend}p" "${certdata}" > "${TEMPDIR}/certs/${certbegin}.tmp"
6583done
6584
6585unset CERTBEGINLIST CERTDATA CERTENDLIST certebegin certend
6586
6587mkdir -p certs
6588rm certs/*
6589
6590for tempfile in ${TEMPDIR}/certs/*.tmp; do
6591 # Make sure that the cert is trusted...
6592 grep "CKA_TRUST_SERVER_AUTH" "${tempfile}" | \
6593 egrep "TRUST_UNKNOWN|NOT_TRUSTED" > /dev/null
6594
6595 if test "${?}" = "0"; then
6596 # Throw a meaningful error and remove the file
6597 cp "${tempfile}" tempfile.cer
6598 perl ${CONVERTSCRIPT} > tempfile.crt
6599 keyhash=$(openssl x509 -noout -in tempfile.crt -hash)
6600 echo "Certificate ${keyhash} is not trusted! Removing..."
6601 rm -f tempfile.cer tempfile.crt "${tempfile}"
6602 continue
6603 fi
6604
6605 # If execution made it to here in the loop, the temp cert is trusted
6606 # Find the cert data and generate a cert file for it
6607
6608 cp "${tempfile}" tempfile.cer
6609 perl ${CONVERTSCRIPT} > tempfile.crt
6610 keyhash=$(openssl x509 -noout -in tempfile.crt -hash)
6611 mv tempfile.crt "certs/${keyhash}.pem"
6612 rm -f tempfile.cer "${tempfile}"
6613 echo "Created ${keyhash}.pem"
6614done
6615
6616# Remove blacklisted files
6617# MD5 Collision Proof of Concept CA
6618if test -f certs/8f111d69.pem; then
6619 echo "Certificate 8f111d69 is not trusted! Removing..."
6620 rm -f certs/8f111d69.pem
6621fi
6622
6623# Finally, generate the bundle and clean up.
6624cat certs/*.pem > ${BUNDLE}
6625rm -r "${TEMPDIR}"
6626
6627
6628chmod +x /bin/make-ca.sh
6629
6630vi /bin/remove-expired-certs.sh
6631
6632#!/bin/bash
6633# Begin /bin/remove-expired-certs.sh
6634#
6635# Version 20120211
6636
6637# Make sure the date is parsed correctly on all systems
6638function mydate()
6639{
6640 local y=$( echo $1 | cut -d" " -f4 )
6641 local M=$( echo $1 | cut -d" " -f1 )
6642 local d=$( echo $1 | cut -d" " -f2 )
6643 local m
6644
6645 if [ ${d} -lt 10 ]; then d="0${d}"; fi
6646
6647 case $M in
6648 Jan) m="01";;
6649 Feb) m="02";;
6650 Mar) m="03";;
6651 Apr) m="04";;
6652 May) m="05";;
6653 Jun) m="06";;
6654 Jul) m="07";;
6655 Aug) m="08";;
6656 Sep) m="09";;
6657 Oct) m="10";;
6658 Nov) m="11";;
6659 Dec) m="12";;
6660 esac
6661
6662 certdate="${y}${m}${d}"
6663}
6664
6665OPENSSL=/usr/bin/openssl
6666DIR=/etc/ssl/certs
6667
6668if [ $# -gt 0 ]; then
6669 DIR="$1"
6670fi
6671
6672certs=$( find ${DIR} -type f -name "*.pem" -o -name "*.crt" )
6673today=$( date +%Y%m%d )
6674
6675for cert in $certs; do
6676 notafter=$( $OPENSSL x509 -enddate -in "${cert}" -noout )
6677 date=$( echo ${notafter} | sed 's/^notAfter=//' )
6678 mydate "$date"
6679
6680 if [ ${certdate} -lt ${today} ]; then
6681 echo "${cert} expired on ${certdate}! Removing..."
6682 rm -f "${cert}"
6683 fi
6684done
6685
6686chmod +x /bin/remove-expired-certs.sh
6687
6688certhost='http://mxr.mozilla.org'
6689certdir='/mozilla/source/security/nss/lib/ckfw/builtins'
6690url="$certhost$certdir/certdata.txt?raw=1"
6691
6692wget --output-document certdata.txt $url
6693unset certhost certdir url
6694make-ca.sh
6695remove-expired-certs.sh certs
6696
6697SSLDIR=/etc/ssl
6698install -d ${SSLDIR}/certs
6699cp -v certs/*.pem ${SSLDIR}/certs
6700c_rehash
6701install BLFS-ca-bundle*.crt ${SSLDIR}/ca-bundle.crt
6702unset SSLDIR
6703
6704rm -r certs BLFS-ca-bundle*
6705
6706exit
6707
6708<wget-1.14 - solve https problem>
6709tar vxf wget-1.14.tar.xz
6710cd wget-1.14
6711
6712./configure --prefix=/usr \
6713 --sysconfdir=/etc \
6714 --with-ssl=openssl
6715
6716make
6717
6718sudo su
6719make install
6720
6721echo ca-directory=/etc/ssl/certs >> /etc/wgetrc
6722ldconfig
6723exit
6724
6725cd ..
6726rm -vfr wget-1.14
6727
6728<xkeyboard-config-2.7>
6729wget http://xorg.freedesktop.org/releases/individual/data/xkeyboard-config/xkeyboard-config-2.7.tar.bz2
6730tar vxf xkeyboard-config-2.7.tar.bz2
6731cd xkeyboard-config-2.7
6732
6733./configure $XORG_CONFIG --with-xkb-rules-symlink=xorg
6734
6735make
6736
6737sudo su
6738make install
6739ldconfig
6740exit
6741
6742cd ..
6743rm -vfr xkeyboard-config-2.7
6744
6745<xorg-server-1.13.1>
6746wget http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-1.13.1.tar.bz2
6747wget http://www.linuxfromscratch.org/patches/downloads/xorg-server/xorg-server-1.13.2-add_prime_support-1.patch
6748wget http://www.linuxfromscratch.org/patches/downloads/xorg-server/xorg-server-1.13.2-use_pixman_glyph_cache-1.patch
6749tar vxf xorg-server-1.13.1.tar.bz2
6750cd xorg-server-1.13.1
6751
6752patch -Np1 -i ../xorg-server-1.13.2-add_prime_support-1.patch
6753patch -Np1 -i ../xorg-server-1.13.2-use_pixman_glyph_cache-1.patch
6754
6755./configure $XORG_CONFIG \
6756 --with-xkb-output=/var/lib/xkb \
6757 --enable-install-setuid
6758
6759make
6760
6761make check
6762
6763sudo su
6764make install
6765
6766mkdir -pv /etc/X11/xorg.conf.d
6767cat >> /etc/sysconfig/createfiles << "EOF"
6768/tmp/.ICE-unix dir 1777 root root
6769/tmp/.X11-unix dir 1777 root root
6770EOF
6771ldconfig
6772exit
6773
6774cd ..
6775rm -vfr xorg-server-1.13.1
6776
6777<Xorg Driver>
6778***Select Drivers that match your hardware at this page -
6779 http://www.linuxfromscratch.org/blfs/view/svn/x/x7driver.html
6780
6781***The following install is for my hardware, use as a guide =)
6782
6783<Frame Buffer Device>
6784wget http://xorg.freedesktop.org/releases/individual/driver/xf86-video-fbdev-0.4.3.tar.bz2
6785tar vxf xf86-video-fbdev-0.4.3.tar.bz2
6786cd xf86-video-fbdev-0.4.3
6787
6788./configure $XORG_CONFIG
6789
6790make
6791
6792sudo su
6793make install
6794ldconfig
6795exit
6796
6797cd ..
6798rm -vfr xf86-video-fbdev-0.4.3
6799
6800<Vesa Driver> *** Needs vesa kernel support
6801wget http://xorg.freedesktop.org/releases/individual/driver/xf86-video-vesa-2.3.2.tar.bz2
6802tar vxf xf86-video-vesa-2.3.2.tar.bz2
6803cd xf86-video-vesa-2.3.2
6804
6805./configure $XORG_CONFIG
6806
6807make
6808
6809sudo su
6810make install
6811ldconfig
6812exit
6813
6814cd ..
6815rm -vfr xf86-video-vesa-2.3.2
6816
6817<Nouveau> - (nVidia) - Needs kernel support
6818wget http://xorg.freedesktop.org/releases/individual/driver/xf86-video-nouveau-1.0.4.tar.bz2
6819tar vxf xf86-video-nouveau-1.0.4.tar.bz2
6820cd xf86-video-nouveau-1.0.4
6821
6822./configure $XORG_CONFIG
6823
6824make
6825
6826sudo su
6827make install
6828ldconfig
6829exit
6830
6831cd ..
6832rm -vfr xf86-video-nouveau-1.0.4
6833
6834<xf86-video-intel-2.20.19>
6835wget http://xorg.freedesktop.org/releases/individual/driver/xf86-video-intel-2.20.19.tar.bz2
6836tar vxf xf86-video-intel-2.20.19.tar.bz2
6837cd xf86-video-intel-2.20.19
6838
6839./configure $XORG_CONFIG
6840
6841make
6842
6843sudo su
6844make install
6845ldconfig
6846exit
6847
6848cd ..
6849rm -vfr xf86-video-intel-2.20.19
6850
6851<mtdev-1.1.3> - multitouch driver
6852wget http://bitmath.org/code/mtdev/mtdev-1.1.3.tar.bz2
6853tar vxf mtdev-1.1.3.tar.bz2
6854cd mtdev-1.1.3
6855
6856./configure --prefix=/usr --disable-static
6857
6858make
6859
6860sudo su
6861make install
6862ldconfig
6863exit
6864
6865cd ..
6866rm -vfr mtdev-1.1.3
6867
6868<Evdev> - input driver - needs kernel support
6869wget http://xorg.freedesktop.org/releases/individual/driver/xf86-input-evdev-2.7.3.tar.bz2
6870tar vxf xf86-input-evdev-2.7.3.tar.bz2
6871cd xf86-input-evdev-2.7.3
6872
6873./configure $XORG_CONFIG
6874
6875make
6876
6877sudo su
6878make install
6879ldconfig
6880exit
6881
6882cd ..
6883rm -vfr xf86-input-evdev-2.7.3
6884
6885<printproto-1.0.5>
6886wget http://xorg.freedesktop.org/releases/individual/proto/printproto-1.0.5.tar.bz2
6887tar vxf printproto-1.0.5.tar.bz2
6888cd printproto-1.0.5
6889
6890./configure $XORG_CONFIG
6891
6892sudo su
6893make install
6894ldconfig
6895exit
6896
6897cd ..
6898rm -vfr printproto-1.0.5
6899
6900<libXp-1.0.1>
6901wget http://xorg.freedesktop.org/releases/individual/lib/libXp-1.0.1.tar.bz2
6902tar vxf libXp-1.0.1.tar.bz2
6903cd libXp-1.0.1
6904
6905./configure $XORG_CONFIG
6906
6907make
6908
6909sudo su
6910make install
6911ldconfig
6912exit
6913
6914cd ..
6915rm -vfr libXp-1.0.1
6916
6917<twm-1.0.7>
6918wget http://xorg.freedesktop.org/releases/individual/app/twm-1.0.7.tar.bz2
6919tar vxf twm-1.0.7.tar.bz2
6920cd twm-1.0.7
6921
6922sed -i -e '/^rcdir =/s,^\(rcdir = \).*,\1/etc/X11/app-defaults,' \
6923 src/Makefile.in
6924
6925./configure $XORG_CONFIG
6926
6927make
6928
6929sudo su
6930make install
6931ldconfig
6932exit
6933
6934cd ..
6935rm -vfr twm-1.0.7
6936
6937<xterm-279>
6938wget http://ftp.osuosl.org/pub/blfs/svn/Xorg/xterm-279.tgz
6939tar vxf xterm-279.tgz
6940cd xterm-279
6941
6942sed -i '/v0/,+1s/new:/new:kb=^?:/' termcap
6943echo -e '\tkbs=\\177,' >>terminfo
6944
6945TERMINFO=/usr/share/terminfo ./configure $XORG_CONFIG \
6946 --enable-luit --enable-wide-chars \
6947 --with-app-defaults=/etc/X11/app-defaults
6948
6949make
6950
6951sudo su
6952make install
6953make install-ti
6954
6955cat >> /etc/X11/app-defaults/XTerm << "EOF"
6956*VT100*locale: true
6957*VT100*faceName: Monospace
6958*VT100*faceSize: 10
6959*backarrowKeyIsErase: true
6960*ptyInitialErase: true
6961EOF
6962ldconfig
6963exit
6964
6965cd ..
6966rm -vfr xterm-279
6967
6968<xclock-1.0.6>
6969wget http://xorg.freedesktop.org/releases/individual/app/xclock-1.0.6.tar.bz2
6970tar vxf xclock-1.0.6.tar.bz2
6971cd xclock-1.0.6
6972
6973./configure $XORG_CONFIG
6974
6975make
6976
6977sudo su
6978make install
6979ldconfig
6980exit
6981
6982cd ..
6983rm -vfr xclock-1.0.6
6984
6985<xinit-1.3.2>
6986wget http://xorg.freedesktop.org/releases/individual/app/xinit-1.3.2.tar.bz2
6987tar vxf xinit-1.3.2.tar.bz2
6988cd xinit-1.3.2
6989
6990./configure $XORG_CONFIG \
6991 --with-xinitdir=/etc/X11/app-defaults
6992
6993make
6994
6995sudo su
6996make install
6997ldconfig
6998exit
6999
7000cd ..
7001rm -vfr xinit-1.3.2
7002
7003<Testing and Config>
7004sudo su
7005usermod -a -G video __a
7006exit
7007
7008***Start on main computer, not in putty or ssh etc,
7009***press ctrl+alt+f1 then ctrl+c to exit X (ctrl+alt+backspace don't work =)
7010startx
7011
7012***all being good you should have basic xorg and tiny window manager
7013*** running at high resolutions suggesting the gfx drivers you installed are working correctly =)
7014***Moving on first with a reboot
7015sudo su
7016init 6
7017
7018<X Libraries - Enhancements>
7019cd /sources
7020
7021<agg-2.5>
7022wget http://www.antigrain.com/agg-2.5.tar.gz
7023tar vxf agg-2.5.tar.gz
7024cd agg-2.5
7025
7026sed -i 's: -L@x_libraries@::' src/platform/X11/Makefile.am
7027sed -i '/^AM_C_PROTOTYPES/d' configure.in
7028
7029bash autogen.sh --prefix=/usr --disable-static
7030
7031make
7032
7033sudo su
7034make install
7035ldconfig
7036exit
7037
7038cd ..
7039rm -vfr agg-2.5
7040
7041<libsigc++-2.2.11>
7042wget http://ftp.gnome.org/pub/gnome/sources/libsigc++/2.2/libsigc++-2.2.11.tar.xz
7043tar vxf libsigc++-2.2.11.tar.xz
7044cd libsigc++-2.2.11
7045
7046./configure --prefix=/usr
7047
7048make
7049
7050make check
7051
7052sudo su
7053make install
7054ldconfig
7055exit
7056
7057cd ..
7058rm -vfr libsigc++-2.2.11
7059
7060<glibmm-2.34.1>
7061wget http://ftp.gnome.org/pub/gnome/sources/glibmm/2.34/glibmm-2.34.1.tar.xz
7062tar vxf glibmm-2.34.1.tar.xz
7063cd glibmm-2.34.1
7064
7065./configure --prefix=/usr
7066
7067make
7068
7069make check
7070
7071sudo su
7072make install
7073ldconfig
7074exit
7075
7076cd ..
7077rm -vfr glibmm-2.34.1
7078
7079<atkmm-2.22.6>
7080wget http://ftp.gnome.org/pub/gnome/sources/atkmm/2.22/atkmm-2.22.6.tar.xz
7081tar vxf atkmm-2.22.6.tar.xz
7082cd atkmm-2.22.6
7083
7084./configure --prefix=/usr
7085
7086make
7087
7088sudo su
7089make install
7090ldconfig
7091exit
7092
7093cd ..
7094rm -vfr atkmm-2.22.6
7095
7096<at-spi2-core-2.6.3>
7097wget http://ftp.gnome.org/pub/gnome/sources/at-spi2-core/2.6/at-spi2-core-2.6.3.tar.xz
7098tar vxf at-spi2-core-2.6.3.tar.xz
7099cd at-spi2-core-2.6.3
7100
7101./configure --prefix=/usr \
7102 --sysconfdir=/etc \
7103 --libexecdir=/usr/lib/at-spi2-core
7104
7105make
7106
7107sudo su
7108make install
7109ldconfig
7110exit
7111
7112cd ..
7113rm -vfr at-spi2-core-2.6.3
7114
7115<at-spi2-atk-2.6.2>
7116wget http://ftp.gnome.org/pub/gnome/sources/at-spi2-atk/2.6/at-spi2-atk-2.6.2.tar.xz
7117tar vxf at-spi2-atk-2.6.2.tar.xz
7118cd at-spi2-atk-2.6.2
7119
7120./configure --prefix=/usr
7121
7122make
7123
7124sudo su
7125make install
7126glib-compile-schemas /usr/share/glib-2.0/schemas
7127ldconfig
7128exit
7129
7130cd ..
7131rm -vfr at-spi2-atk-2.6.2
7132
7133<boost_1_52_0>
7134wget http://downloads.sourceforge.net/boost/boost_1_52_0.tar.bz2
7135tar vxf boost_1_52_0.tar.bz2
7136cd boost_1_52_0
7137
7138./bootstrap.sh --prefix=/usr
7139./b2 stage threading=multi link=shared
7140
7141sudo su
7142./b2 install threading=multi link=shared
7143ldconfig
7144exit
7145
7146cd ..
7147rm -vfr boost_1_52_0
7148
7149<aspell-0.60.6.1>
7150wget http://ftp.gnu.org/gnu/aspell/aspell-0.60.6.1.tar.gz
7151tar vxf aspell-0.60.6.1.tar.gz
7152cd aspell-0.60.6.1
7153
7154./configure --prefix=/usr
7155
7156make
7157
7158sudo su
7159make install
7160
7161install -v -m755 -d /usr/share/doc/aspell-0.60.6.1/aspell{,-dev}.html
7162install -v -m644 manual/aspell.html/* \
7163 /usr/share/doc/aspell-0.60.6.1/aspell.html
7164install -v -m644 manual/aspell-dev.html/* \
7165 /usr/share/doc/aspell-0.60.6.1/aspell-dev.html
7166
7167install -v -m 755 scripts/ispell /usr/bin/
7168install -v -m 755 scripts/spell /usr/bin/
7169ldconfig
7170exit
7171
7172cd ..
7173rm -vfr aspell-0.60.6.1
7174
7175<aspell6-en-7.1-0> - English Dictionary
7176wget ftp://ftp.gnu.org/gnu/aspell/dict/en/aspell6-en-7.1-0.tar.bz2
7177tar vxf aspell6-en-7.1-0.tar.bz2
7178cd aspell6-en-7.1-0
7179
7180./configure
7181
7182make
7183
7184sudo su
7185make install
7186ldconfig
7187exit
7188
7189cd ..
7190rm -vfr aspell6-en-7.1-0
7191
7192<enchant-1.6.0>
7193wget http://www.abisource.com/downloads/enchant/1.6.0/enchant-1.6.0.tar.gz
7194tar vxf enchant-1.6.0.tar.gz
7195cd enchant-1.6.0
7196
7197./configure --prefix=/usr
7198
7199make
7200
7201sudo su
7202make install
7203ldconfig
7204exit
7205
7206cd ..
7207rm -vfr enchant-1.6.0
7208
7209<exempi-2.2.0>
7210wget http://libopenraw.freedesktop.org/download/exempi-2.2.0.tar.bz2
7211tar vxf exempi-2.2.0.tar.bz2
7212cd exempi-2.2.0
7213
7214./configure --prefix=/usr --disable-static
7215
7216make
7217
7218make check
7219
7220sudo su
7221make install
7222ldconfig
7223exit
7224
7225cd ..
7226rm -vfr exempi-2.2.0
7227
7228<cairomm-1.10.0>
7229wget http://cairographics.org/releases/cairomm-1.10.0.tar.gz
7230tar vxf cairomm-1.10.0.tar.gz
7231cd cairomm-1.10.0
7232
7233./configure --prefix=/usr
7234
7235make
7236
7237sudo su
7238make install
7239ldconfig
7240exit
7241
7242cd ..
7243rm -vfr cairomm-1.10.0
7244
7245<cogl-1.12.2>
7246wget http://ftp.gnome.org/pub/gnome/sources/cogl/1.12/cogl-1.12.2.tar.xz
7247tar vxf cogl-1.12.2.tar.xz
7248cd cogl-1.12.2
7249
7250./configure --prefix=/usr
7251
7252make
7253
7254sudo su
7255make install
7256ldconfig
7257exit
7258
7259cd ..
7260rm -vfr cogl-1.12.2
7261
7262<json-glib-0.15.2>
7263wget http://ftp.gnome.org/pub/gnome/sources/json-glib/0.15/json-glib-0.15.2.tar.xz
7264tar vxf json-glib-0.15.2.tar.xz
7265cd json-glib-0.15.2
7266
7267./configure --prefix=/usr
7268
7269make
7270
7271make check
7272
7273sudo su
7274make install
7275ldconfig
7276exit
7277
7278cd ..
7279rm -vfr json-glib-0.15.2
7280
7281<clutter-1.12.2>
7282wget http://ftp.gnome.org/pub/gnome/sources/clutter/1.12/clutter-1.12.2.tar.xz
7283tar vxf clutter-1.12.2.tar.xz
7284cd clutter-1.12.2
7285
7286./configure --prefix=/usr --sysconfdir=/etc
7287
7288make
7289
7290sudo su
7291make install
7292ldconfig
7293exit
7294
7295cd ..
7296rm -vfr clutter-1.12.2
7297
7298<clutter-gst-1.9.92>
7299wget http://ftp.gnome.org/pub/gnome/sources/clutter-gst/1.9/clutter-gst-1.9.92.tar.xz
7300tar vxf clutter-gst-1.9.92.tar.xz
7301cd clutter-gst-1.9.92
7302
7303./configure --prefix=/usr
7304
7305make
7306
7307sudo su
7308make install
7309ldconfig
7310exit
7311
7312cd ..
7313rm -vfr clutter-gst-1.9.92
7314
7315<lcms2-2.4>
7316wget http://downloads.sourceforge.net/lcms/lcms2-2.4.tar.gz
7317tar vxf lcms2-2.4.tar.gz
7318cd lcms2-2.4
7319
7320./configure --prefix=/usr --disable-static
7321
7322make
7323
7324make check
7325
7326sudo su
7327make install
7328ldconfig
7329exit
7330
7331cd ..
7332rm -vfr lcms2-2.4
7333
7334<nspr-4.9.4> - no deps
7335wget http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.9.4/src/nspr-4.9.4.tar.gz
7336tar vxf nspr-4.9.4.tar.gz
7337cd nspr-4.9.4
7338
7339cd mozilla/nsprpub
7340
7341sed -ri 's#^(RELEASE_BINS =).*#\1#' pr/src/misc/Makefile.in
7342sed -i 's#$(LIBRARY) ##' config/rules.mk
7343
7344./configure --prefix=/usr \
7345 --with-mozilla \
7346 --with-pthreads \
7347 $([ $(uname -m) = x86_64 ] && echo --enable-64bit)
7348
7349make
7350
7351sudo su
7352make install
7353ldconfig
7354exit
7355
7356cd ../../..
7357rm -vfr nspr-4.9.4
7358
7359<Spider-Monkey-1.0.0>
7360***Nice little bug i best mention. I used spaces in the system name
7361***setting in kerenel config when compiling the kernel. This caused
7362***a problem here with files not being found!! most obscure. Anyways,
7363***i replaced the spaces with underscores and recompiled the kernel,
7364***rebooted and then all was well. =) I think the config makes a file
7365***using the kernel config details but goes astray if there is a space
7366***and
7367***Report this bug if you like but I cant be bothered specially if
7368***there is a potential for exploit...
7369
7370wget http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz
7371tar vxf js185-1.0.0.tar.gz
7372cd js-1.8.5
7373
7374cd js/src
7375sed -i 's#s \($(SHLIB_\(ABI\|EXACT\)_VER)\)#s $(notdir \1)#' Makefile.in
7376
7377./configure --prefix=/usr --enable-threadsafe --with-system-nspr
7378
7379make
7380
7381TZ=US/Pacific make check
7382
7383sudo su
7384make install
7385ldconfig
7386exit
7387
7388cd ../../..
7389rm -vfr js-1.8.5
7390
7391<polkit-0.110>
7392wget http://www.freedesktop.org/software/polkit/releases/polkit-0.110.tar.gz
7393tar vxf polkit-0.110.tar.gz
7394cd polkit-0.110
7395
7396sudo su
7397groupadd -fg 27 polkitd
7398
7399useradd -c "PolicyKit Daemon Owner" -d /etc/polkit-1 -u 27 \
7400 -g polkitd -s /bin/false polkitd
7401exit
7402
7403./configure --prefix=/usr \
7404 --sysconfdir=/etc \
7405 --localstatedir=/var \
7406 --libexecdir=/usr/lib/polkit-1 \
7407 --disable-static
7408
7409make
7410
7411make check
7412
7413sudo su
7414make install
7415
7416cat > /etc/pam.d/polkit-1 << "EOF"
7417# Begin /etc/pam.d/polkit-1
7418auth include system-auth
7419account include system-account
7420password include system-password
7421session include system-session
7422
7423# End /etc/pam.d/polkit-1
7424EOF
7425ldconfig
7426exit
7427
7428cd ..
7429rm -vfr polkit-0.110
7430
7431<vala-0.18.1>
7432wget http://ftp.gnome.org/pub/gnome/sources/vala/0.18/vala-0.18.1.tar.xz
7433tar vxf vala-0.18.1.tar.xz
7434cd vala-0.18.1
7435
7436./configure --prefix=/usr
7437
7438make
7439
7440make check
7441
7442sudo su
7443make install
7444ldconfig
7445exit
7446
7447cd ..
7448rm -vfr vala-0.18.1
7449
7450<colord-0.1.27>
7451wget http://www.freedesktop.org/software/colord/releases/colord-0.1.27.tar.xz
7452tar vxf colord-0.1.27.tar.xz
7453cd colord-0.1.27
7454
7455./configure --prefix=/usr \
7456 --sysconfdir=/etc \
7457 --localstatedir=/var \
7458 --libexecdir=/usr/lib/colord \
7459 --enable-vala \
7460 --disable-gusb \
7461 --disable-static
7462
7463make
7464
7465sudo su
7466make install
7467ldconfig
7468exit
7469
7470cd ..
7471rm -vfr colord-0.1.27
7472
7473<gtk+-3.6.4>
7474wget http://ftp.gnome.org/pub/gnome/sources/gtk+/3.6/gtk+-3.6.4.tar.xz
7475tar vxf gtk+-3.6.4.tar.xz
7476cd gtk+-3.6.4
7477
7478./configure --prefix=/usr --sysconfdir=/etc --enable-gtk2-dependency
7479
7480make
7481
7482sudo su
7483make install
7484
7485gtk-query-immodules-3.0 --update-cache
7486glib-compile-schemas /usr/share/glib-2.0/schemas
7487
7488cat > /etc/gtk-3.0/settings.ini << "EOF"
7489[Settings]
7490gtk-theme-name = Clearwaita
7491gtk-fallback-icon-theme = elementary
7492EOF
7493
7494ldconfig
7495exit
7496
7497mkdir -p ~/.config/gtk-3.0
7498cat > ~/.config/gtk-3.0/settings.ini << "EOF"
7499[Settings]
7500gtk-theme-name = Clearwaita
7501gtk-fallback-icon-theme = elementary
7502EOF
7503
7504cd ..
7505rm -vfr gtk+-3.6.4
7506
7507<clutter-gtk-1.4.2>
7508wget http://ftp.gnome.org/pub/gnome/sources/clutter-gtk/1.4/clutter-gtk-1.4.2.tar.xz
7509tar vxf clutter-gtk-1.4.2.tar.xz
7510cd clutter-gtk-1.4.2
7511
7512./configure --prefix=/usr
7513
7514make
7515
7516sudo su
7517make install
7518ldconfig
7519exit
7520
7521cd ..
7522rm -vfr clutter-gtk-1.4.2
7523
7524<colord-gtk-0.1.24>
7525wget http://www.freedesktop.org/software/colord/releases/colord-gtk-0.1.24.tar.xz
7526tar vxf colord-gtk-0.1.24.tar.xz
7527cd colord-gtk-0.1.24
7528
7529./configure --prefix=/usr \
7530 --enable-vala \
7531 --disable-static
7532
7533make
7534
7535sudo su
7536make install
7537ldconfig
7538exit
7539
7540cd ..
7541rm -vfr colord-gtk-0.1.24
7542
7543<freeglut-2.8.0>
7544wget http://downloads.sourceforge.net/freeglut/freeglut-2.8.0.tar.gz
7545wget http://www.linuxfromscratch.org/patches/blfs/svn/freeglut-2.8.0-remove_smooth_opengl3_demo-1.patch
7546tar vxf freeglut-2.8.0.tar.gz
7547cd freeglut-2.8.0
7548
7549patch -Np1 -i ../freeglut-2.8.0-remove_smooth_opengl3_demo-1.patch
7550
7551./configure --prefix=/usr --disable-static
7552
7553make
7554
7555sudo su
7556make install
7557ldconfig
7558exit
7559
7560cd ..
7561rm -vfr freeglut-2.8.0
7562
7563<GConf-3.2.5>
7564wget http://ftp.gnome.org/pub/gnome/sources/GConf/3.2/GConf-3.2.5.tar.xz
7565tar vxf GConf-3.2.5.tar.xz
7566cd GConf-3.2.5
7567
7568./configure --prefix=/usr \
7569 --sysconfdir=/etc \
7570 --libexecdir=/usr/lib/GConf \
7571 --disable-orbit \
7572 --disable-static
7573
7574make
7575
7576sudo su
7577make install
7578
7579ln -s gconf.xml.defaults /etc/gconf/gconf.xml.system
7580ldconfig
7581exit
7582
7583cd ..
7584rm -vfr GConf-3.2.5
7585
7586<libglade-2.6.4>
7587wget http://ftp.gnome.org/pub/gnome/sources/libglade/2.6/libglade-2.6.4.tar.bz2
7588tar vxf libglade-2.6.4.tar.bz2
7589cd libglade-2.6.4
7590
7591sed -i '/DG_DISABLE_DEPRECATED/d' glade/Makefile.in
7592
7593./configure --prefix=/usr
7594
7595make
7596
7597sudo su
7598make install
7599ldconfig
7600exit
7601
7602cd ..
7603rm -vfr libglade-2.6.4
7604
7605<pygtk-2.24.0>
7606wget http://ftp.gnome.org/pub/gnome/sources/pygtk/2.24/pygtk-2.24.0.tar.bz2
7607tar vxf pygtk-2.24.0.tar.bz2
7608cd pygtk-2.24.0
7609
7610./configure --prefix=/usr
7611
7612make
7613
7614sudo su
7615make install
7616ldconfig
7617exit
7618
7619cd ..
7620rm -vfr pygtk-2.24.0
7621
7622<libgsf-1.14.25>
7623wget http://ftp.gnome.org/pub/gnome/sources/libgsf/1.14/libgsf-1.14.25.tar.xz
7624tar vxf libgsf-1.14.25.tar.xz
7625cd libgsf-1.14.25
7626
7627./configure --prefix=/usr --disable-static
7628
7629make
7630
7631sudo su
7632make install
7633ldconfig
7634exit
7635
7636cd ..
7637rm -vfr libgsf-1.14.25
7638
7639<goffice-0.8.17>
7640wget http://ftp.gnome.org/pub/gnome/sources/goffice/0.8/goffice-0.8.17.tar.bz2
7641tar vxf goffice-0.8.17.tar.bz2
7642cd goffice-0.8.17
7643
7644sed -i 's#info (r, NULL#full&, 0#' goffice/utils/regutf8.c
7645
7646./configure --prefix=/usr --disable-static
7647
7648make
7649
7650sudo su
7651make install
7652ldconfig
7653exit
7654
7655cd ..
7656rm -vfr goffice-0.8.17
7657
7658<gtk-engines-2.20.2>
7659wget http://ftp.gnome.org/pub/gnome/sources/gtk-engines/2.20/gtk-engines-2.20.2.tar.bz2
7660tar vxf gtk-engines-2.20.2.tar.bz2
7661cd gtk-engines-2.20.2
7662
7663./configure --prefix=/usr
7664
7665make
7666
7667make check
7668
7669sudo su
7670make install
7671ldconfig
7672exit
7673
7674cd ..
7675rm -vfr gtk-engines-2.20.2
7676
7677<pangomm-2.28.4>
7678wget http://ftp.gnome.org/pub/gnome/sources/pangomm/2.28/pangomm-2.28.4.tar.xz
7679tar vxf pangomm-2.28.4.tar.xz
7680cd pangomm-2.28.4
7681
7682./configure --prefix=/usr
7683
7684make
7685
7686sudo su
7687make install
7688ldconfig
7689exit
7690
7691cd ..
7692rm -vfr pangomm-2.28.4
7693
7694<gtkmm-2.24.2>
7695wget http://ftp.gnome.org/pub/gnome/sources/gtkmm/2.24/gtkmm-2.24.2.tar.xz
7696tar vxf gtkmm-2.24.2.tar.xz
7697cd gtkmm-2.24.2
7698
7699./configure --prefix=/usr
7700
7701make
7702
7703make check
7704
7705sudo su
7706make install
7707ldconfig
7708exit
7709
7710cd ..
7711rm -vfr gtkmm-2.24.2
7712
7713<gtkmm-3.6.0>
7714wget http://ftp.gnome.org/pub/gnome/sources/gtkmm/3.6/gtkmm-3.6.0.tar.xz
7715tar vxf gtkmm-3.6.0.tar.xz
7716cd gtkmm-3.6.0
7717
7718./configure --prefix=/usr
7719
7720make
7721
7722sudo su
7723make install
7724ldconfig
7725exit
7726
7727cd ..
7728rm -vfr gtkmm-3.6.0
7729
7730<nettle-2.6>
7731wget http://ftp.gnu.org/gnu/nettle/nettle-2.6.tar.gz
7732tar vxf nettle-2.6.tar.gz
7733cd nettle-2.6
7734
7735./configure --prefix=/usr
7736
7737make
7738
7739make check
7740
7741sudo su
7742make install
7743chmod -v 755 /usr/lib/libhogweed.so.2.3 /usr/lib/libnettle.so.4.5
7744
7745install -v -m755 -d /usr/share/doc/nettle-2.6
7746install -v -m644 nettle.html /usr/share/doc/nettle-2.6
7747ldconfig
7748exit
7749
7750cd ..
7751rm -vfr nettle-2.6
7752
7753<libtasn1-3.2>
7754wget http://ftp.gnu.org/gnu/libtasn1/libtasn1-3.2.tar.gz
7755tar vxf libtasn1-3.2.tar.gz
7756cd libtasn1-3.2
7757
7758./configure --prefix=/usr --disable-static
7759
7760make
7761
7762make check
7763
7764sudo su
7765make install
7766make -C doc/reference install-data-local
7767ldconfig
7768exit
7769
7770cd ..
7771rm -vfr libtasn1-3.2
7772
7773<gc-7.2d>
7774wget http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.2d.tar.gz
7775tar vxf gc-7.2d.tar.gz
7776cd gc-7.2
7777
7778sed -i 's#pkgdata#doc#' doc/doc.am
7779
7780autoreconf
7781
7782./configure --prefix=/usr \
7783 --enable-cplusplus \
7784 --disable-static \
7785 --docdir=/usr/share/doc/gc-7.2d
7786
7787make
7788
7789make check
7790
7791sudo su
7792make install
7793install -v -m644 doc/gc.man /usr/share/man/man3/gc_malloc.3
7794ln -sfv gc_malloc.3 /usr/share/man/man3/gc.3
7795ldconfig
7796exit
7797
7798cd ..
7799rm -vfr gc-7.2
7800
7801<libunistring-0.9.3>
7802wget http://ftp.gnu.org/gnu/libunistring/libunistring-0.9.3.tar.gz
7803tar vxf libunistring-0.9.3.tar.gz
7804cd libunistring-0.9.3
7805
7806./configure --prefix=/usr
7807
7808make
7809
7810make check
7811
7812sudo su
7813make install
7814ldconfig
7815exit
7816
7817cd ..
7818rm -vfr libunistring-0.9.3
7819
7820<guile-2.0.7>
7821wget http://ftp.gnu.org/pub/gnu/guile/guile-2.0.7.tar.xz
7822tar vxf guile-2.0.7.tar.xz
7823cd guile-2.0.7
7824
7825./configure --prefix=/usr --disable-static
7826
7827make
7828make html
7829
7830makeinfo --plaintext -o doc/r5rs/r5rs.txt doc/r5rs/r5rs.texi
7831makeinfo --plaintext -o doc/ref/guile.txt doc/ref/guile.texi
7832
7833make check
7834
7835sudo su
7836make install
7837
7838find examples -name "Makefile*" -exec rm {} \;
7839install -v -m755 -d /usr/share/doc/guile-2.0.7
7840cp -vR examples /usr/share/doc/guile-2.0.7
7841
7842for DIRNAME in r5rs ref
7843do
7844 install -v -m755 -d /usr/share/doc/guile-2.0.7/${DIRNAME}
7845 install -v -m644 doc/${DIRNAME}/*.txt \
7846 /usr/share/doc/guile-2.0.7/${DIRNAME}
7847 if [ -d doc/${DIRNAME}/${DIRNAME}.html ]; then
7848 cp -v -R doc/${DIRNAME}/${DIRNAME}.html \
7849 /usr/share/doc/guile-2.0.7/${DIRNAME}
7850 fi
7851done
7852
7853cp -v -R doc/ref/guile.html /usr/share/doc/guile-2.0.7/ref
7854ldconfig
7855exit
7856
7857cd ..
7858rm -vfr guile-2.0.7
7859
7860<libidn-1.25>
7861wget http://ftp.gnu.org/gnu/libidn/libidn-1.25.tar.gz
7862tar vxf libidn-1.25.tar.gz
7863cd libidn-1.25
7864
7865./configure --prefix=/usr --disable-static
7866
7867make
7868
7869make check
7870
7871sudo su
7872make install
7873
7874find doc -name "Makefile*" -delete
7875rm -rf -v doc/{gdoc,idn.1,stamp-vti,man,texi}
7876mkdir -v /usr/share/doc/libidn-1.25
7877cp -r -v doc/* /usr/share/doc/libidn-1.25
7878ldconfig
7879exit
7880
7881cd ..
7882rm -vfr libidn-1.25
7883
7884<p11-kit-0.14>
7885wget http://p11-glue.freedesktop.org/releases/p11-kit-0.14.tar.gz
7886tar vxf p11-kit-0.14.tar.gz
7887cd p11-kit-0.14
7888
7889./configure --prefix=/usr --sysconfdir=/etc
7890
7891make
7892
7893make check
7894
7895sudo su
7896make install
7897ldconfig
7898exit
7899
7900cd ..
7901rm -vfr p11-kit-0.14
7902
7903<gnutls-3.1.6>
7904wget ftp://ftp.gnutls.org/gcrypt/gnutls/v3.1/gnutls-3.1.6.tar.xz
7905tar vxf gnutls-3.1.6.tar.xz
7906cd gnutls-3.1.6
7907
7908./configure --prefix=/usr --disable-static
7909
7910make
7911
7912sudo su
7913make install
7914make -C doc/reference install-data-local
7915ldconfig
7916exit
7917
7918cd ..
7919rm -vfr gnutls-3.1.6
7920
7921<gtk-vnc-0.5.1>
7922wget http://ftp.gnome.org/pub/gnome/sources/gtk-vnc/0.5/gtk-vnc-0.5.1.tar.xz
7923tar vxf gtk-vnc-0.5.1.tar.xz
7924cd gtk-vnc-0.5.1
7925
7926./configure --prefix=/usr \
7927 --with-gtk=3.0 \
7928 --enable-vala \
7929 --without-sasl
7930
7931make
7932
7933sudo su
7934make install
7935ldconfig
7936exit
7937
7938cd ..
7939rm -vfr gtk-vnc-0.5.1
7940
7941<libnotify-0.7.5>
7942wget http://ftp.gnome.org/pub/gnome/sources/libnotify/0.7/libnotify-0.7.5.tar.xz
7943tar vxf libnotify-0.7.5.tar.xz
7944cd libnotify-0.7.5
7945
7946./configure --prefix=/usr --disable-static
7947
7948make
7949
7950sudo su
7951make install
7952ldconfig
7953exit
7954
7955cd ..
7956rm -vfr libnotify-0.7.5
7957
7958<iso-codes-3.40>
7959wget http://pkg-isocodes.alioth.debian.org/downloads/iso-codes-3.40.tar.xz
7960tar vxf iso-codes-3.40.tar.xz
7961cd iso-codes-3.40
7962
7963./configure --prefix=/usr
7964
7965make
7966
7967sudo su
7968make install
7969ldconfig
7970exit
7971
7972cd ..
7973rm -vfr iso-codes-3.40
7974
7975<libxklavier-5.3>
7976wget http://ftp.gnome.org/pub/gnome/sources/libxklavier/5.3/libxklavier-5.3.tar.xz
7977tar vxf libxklavier-5.3.tar.xz
7978cd libxklavier-5.3
7979
7980./configure --prefix=/usr --disable-static
7981
7982make
7983
7984sudo su
7985make install
7986ldconfig
7987exit
7988
7989cd ..
7990rm -vfr libxklavier-5.3
7991
7992<libcanberra-0.30>
7993wget http://0pointer.de/lennart/projects/libcanberra/libcanberra-0.30.tar.xz
7994tar vxf libcanberra-0.30.tar.xz
7995cd libcanberra-0.30
7996
7997./configure --prefix=/usr --disable-oss
7998
7999make
8000
8001sudo su
8002make install
8003ldconfig
8004exit
8005
8006cd ..
8007rm -vfr libcanberra-0.30
8008
8009<notification-daemon-0.7.6>
8010wget http://ftp.gnome.org/pub/gnome/sources/notification-daemon/0.7/notification-daemon-0.7.6.tar.xz
8011tar vxf notification-daemon-0.7.6.tar.xz
8012cd notification-daemon-0.7.6
8013
8014./configure --prefix=/usr \
8015 --sysconfdir=/etc \
8016 --libexecdir=/usr/lib/notification-daemon
8017
8018make
8019
8020sudo su
8021make install
8022ldconfig
8023exit
8024
8025cd ..
8026rm -vfr notification-daemon-0.7.6
8027
8028<lcms-1.19>
8029wget http://sourceforge.net/projects/lcms/files/lcms/1.19/lcms-1.19.tar.gz
8030tar vxf lcms-1.19.tar.gz
8031cd lcms-1.19
8032
8033./configure --prefix=/usr
8034
8035make
8036
8037make check
8038
8039sudo su
8040make install
8041
8042install -v -m755 -d /usr/share/doc/lcms-1.19
8043install -v -m644 README.1ST doc/* \
8044 /usr/share/doc/lcms-1.19
8045ldconfig
8046exit
8047
8048cd ..
8049rm -vfr lcms-1.19
8050
8051<libmng-1.0.10>
8052wget http://downloads.sourceforge.net/libmng/libmng-1.0.10.tar.bz2
8053tar vxf libmng-1.0.10.tar.bz2
8054cd libmng-1.0.10
8055
8056cp makefiles/makefile.linux Makefile
8057
8058sed -i -e 's/unroll-loops/& -fPIC/' Makefile
8059
8060make
8061
8062sudo su
8063make prefix=/usr install
8064
8065install -v -m644 doc/man/*.3 /usr/share/man/man3
8066install -v -m644 doc/man/*.5 /usr/share/man/man5
8067install -v -m755 -d /usr/share/doc/libmng-1.0.10
8068install -v -m644 doc/*.{png,txt} /usr/share/doc/libmng-1.0.10
8069ldconfig
8070exit
8071
8072cd ..
8073rm -vfr libmng-1.0.10
8074
8075<json-c-0.9>
8076wget http://oss.metaparadigm.com/json-c/json-c-0.9.tar.gz
8077tar vxf json-c-0.9.tar.gz
8078cd json-c-0.9
8079
8080./configure --prefix=/usr --disable-static
8081
8082make
8083
8084sudo su
8085make install
8086ldconfig
8087exit
8088
8089cd ..
8090rm -vfr json-c-0.9
8091
8092<speex-1.2rc1>
8093wget http://downloads.us.xiph.org/releases/speex/speex-1.2rc1.tar.gz
8094tar vxf speex-1.2rc1.tar.gz
8095cd speex-1.2rc1
8096
8097./configure --prefix=/usr \
8098 --disable-static \
8099 --docdir=/usr/share/doc/speex-1.2rc1
8100
8101make
8102
8103sudo su
8104make install
8105ldconfig
8106exit
8107
8108cd ..
8109rm -vfr speex-1.2rc1
8110
8111<pulseaudio-3.0>
8112wget http://freedesktop.org/software/pulseaudio/releases/pulseaudio-3.0.tar.xz
8113tar vxf pulseaudio-3.0.tar.xz
8114cd pulseaudio-3.0
8115
8116sudo su
8117groupadd -g 58 pulse
8118
8119groupadd -g 59 pulse-access
8120
8121useradd -c "Pulseaudio User" -d /var/run/pulse -g pulse \
8122 -s /bin/false -u 58 pulse
8123
8124usermod -a -G audio pulse
8125exit
8126
8127find . -name "Makefile.in" | xargs sed -i "s|(libdir)/@PACKAGE@|(libdir)/pulse|"
8128
8129./configure --prefix=/usr \
8130 --sysconfdir=/etc \
8131 --localstatedir=/var \
8132 --libexecdir=/usr/lib \
8133 --with-module-dir=/usr/lib/pulse/modules \
8134 --disable-ipv6 \
8135 --enable-orc \
8136 --disable-xen
8137
8138make
8139
8140sudo su
8141unset MAKEFLAGS
8142make install
8143ldconfig
8144export MAKEFLAGS='-j 4'
8145exit
8146
8147cd ..
8148rm -vfr pulseaudio-3.0
8149
8150<qt-everywhere-opensource-src-4.8.4>
8151wget http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-4.8.4.tar.gz
8152tar vxf qt-everywhere-opensource-src-4.8.4.tar.gz
8153cd qt-everywhere-opensource-src-4.8.4
8154
8155./configure -prefix /usr \
8156 -release \
8157 -nomake examples \
8158 -nomake demos \
8159 -system-sqlite \
8160 -no-nis \
8161 -opensource \
8162 -confirm-license
8163
8164make
8165
8166sudo su
8167make install
8168ldconfig
8169exit
8170
8171cd ..
8172rm -vfr qt-everywhere-opensource-src-4.8.4
8173
8174<startup-notification-0.12>
8175wget http://www.freedesktop.org/software/startup-notification/releases/startup-notification-0.12.tar.gz
8176tar vxf startup-notification-0.12.tar.gz
8177cd startup-notification-0.12
8178
8179./configure --prefix=/usr
8180
8181make
8182
8183sudo su
8184make install
8185
8186install -v -m644 -D doc/startup-notification.txt \
8187 /usr/share/doc/startup-notification-0.12/startup-notification.txt
8188ldconfig
8189exit
8190
8191cd ..
8192rm -vfr startup-notification-0.12
8193
8194<gsettings-desktop-schemas-3.6.1>
8195wget http://ftp.gnome.org/pub/gnome/sources/gsettings-desktop-schemas/3.6/gsettings-desktop-schemas-3.6.1.tar.xz
8196tar vxf gsettings-desktop-schemas-3.6.1.tar.xz
8197cd gsettings-desktop-schemas-3.6.1
8198
8199./configure --prefix=/usr
8200
8201make
8202
8203sudo su
8204make install
8205
8206glib-compile-schemas /usr/share/glib-2.0/schemas
8207ldconfig
8208exit
8209
8210cd ..
8211rm -vfr gsettings-desktop-schemas-3.6.1
8212
8213<glib-networking-2.34.2>
8214wget http://ftp.gnome.org/pub/gnome/sources/glib-networking/2.34/glib-networking-2.34.2.tar.xz
8215tar vxf glib-networking-2.34.2.tar.xz
8216cd glib-networking-2.34.2
8217
8218./configure --prefix=/usr \
8219 --libexecdir=/usr/lib/glib-networking \
8220 --with-ca-certificates=/etc/ssl/ca-bundle.crt \
8221 --disable-static
8222
8223make
8224
8225sudo su
8226make install
8227ldconfig
8228exit
8229
8230cd ..
8231rm -vfr glib-networking-2.34.2
8232
8233<libgnome-keyring-3.6.0>
8234wget http://ftp.gnome.org/pub/gnome/sources/libgnome-keyring/3.6/libgnome-keyring-3.6.0.tar.xz
8235tar vxf libgnome-keyring-3.6.0.tar.xz
8236cd libgnome-keyring-3.6.0
8237
8238./configure --prefix=/usr
8239
8240make
8241
8242make check
8243
8244sudo su
8245make install
8246ldconfig
8247exit
8248
8249cd ..
8250rm -vfr libgnome-keyring-3.6.0
8251
8252<libsoup-2.40.3>
8253wget http://ftp.gnome.org/pub/gnome/sources/libsoup/2.40/libsoup-2.40.3.tar.xz
8254tar vxf libsoup-2.40.3.tar.xz
8255cd libsoup-2.40.3
8256
8257./configure --prefix=/usr --disable-static
8258
8259make
8260
8261sudo su
8262make install
8263ldconfig
8264exit
8265
8266cd ..
8267rm -vfr libsoup-2.40.3
8268
8269<libnl-3.2.19>
8270wget http://www.infradead.org/~tgr/libnl/files/libnl-3.2.19.tar.gz
8271tar vxf libnl-3.2.19.tar.gz
8272cd libnl-3.2.19
8273
8274./configure --prefix=/usr \
8275 --sysconfdir=/etc \
8276 --disable-static
8277
8278make
8279
8280sudo su
8281make install
8282ldconfig
8283exit
8284
8285cd ..
8286rm -vfr libnl-3.2.19
8287
8288<nss-3.14.1>
8289wget http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_14_1_WITH_CKBI_1_93_RTM/src/nss-3.14.1.with.ckbi.1.93.tar.gz
8290wget http://www.linuxfromscratch.org/patches/blfs/svn/nss-3.14.1-standalone-1.patch
8291tar vxf nss-3.14.1.with.ckbi.1.93.tar.gz
8292cd nss-3.14.1
8293
8294patch -Np1 -i ../nss-3.14.1-standalone-1.patch
8295
8296cd mozilla/security/nss
8297
8298unset MAKEFLAGS
8299make nss_build_all BUILD_OPT=1 \
8300 NSPR_INCLUDE_DIR=/usr/include/nspr \
8301 USE_SYSTEM_ZLIB=1 \
8302 ZLIB_LIBS=-lz \
8303 $([ $(uname -m) = x86_64 ] && echo USE_64=1) \
8304 $([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1)
8305
8306sudo su
8307cd ../../dist
8308
8309install -v -m755 Linux*/lib/*.so /usr/lib
8310install -v -m644 Linux*/lib/{*.chk,libcrmf.a} /usr/lib
8311install -v -m755 -d /usr/include/nss
8312cp -v -RL {public,private}/nss/* /usr/include/nss
8313chmod 644 /usr/include/nss/*
8314install -v -m755 Linux*/bin/{certutil,nss-config,pk12util} /usr/bin
8315install -v -m644 Linux*/lib/pkgconfig/nss.pc /usr/lib/pkgconfig
8316ldconfig
8317exit
8318
8319echo $MAKEFLAGS='-j 4'
8320cd ../../../..
8321rm -vfr nss-3.14.1
8322
8323<wireless_tools.29>
8324wget http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.29.tar.gz
8325tar vxf wireless_tools.29.tar.gz
8326cd wireless_tools.29
8327
8328make
8329
8330sudo su
8331make PREFIX=/usr INSTALL_MAN=/usr/share/man install
8332echo "/usr/lib/" >> /etc/ld.so.conf
8333ldconfig
8334exit
8335
8336cd ..
8337rm -vfr wireless_tools.29
8338
8339<ConsoleKit-0.4.6>
8340wget http://anduin.linuxfromscratch.org/sources/BLFS/svn/c/ConsoleKit-0.4.6.tar.xz
8341tar vxf ConsoleKit-0.4.6.tar.xz
8342cd ConsoleKit-0.4.6
8343
8344./configure --prefix=/usr \
8345 --sysconfdir=/etc \
8346 --localstatedir=/var \
8347 --libexecdir=/usr/lib/ConsoleKit \
8348 --enable-udev-acl \
8349 --enable-pam-module
8350
8351make
8352
8353sudo su
8354make install
8355
8356cat >> /etc/pam.d/system-session << "EOF"
8357# Begin ConsoleKit addition
8358
8359session optional pam_loginuid.so
8360session optional pam_ck_connector.so nox11
8361
8362# End ConsoleKit addition
8363EOF
8364
8365cat > /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck << "EOF"
8366#!/bin/sh
8367TAGDIR=/var/run/console
8368
8369[ -n "$CK_SESSION_USER_UID" ] || exit 1
8370[ "$CK_SESSION_IS_LOCAL" = "true" ] || exit 0
8371
8372TAGFILE="$TAGDIR/`getent passwd $CK_SESSION_USER_UID | cut -f 1 -d:`"
8373
8374if [ "$1" = "session_added" ]; then
8375 mkdir -p "$TAGDIR"
8376 echo "$CK_SESSION_ID" >> "$TAGFILE"
8377fi
8378
8379if [ "$1" = "session_removed" ] && [ -e "$TAGFILE" ]; then
8380 sed -i "\%^$CK_SESSION_ID\$%d" "$TAGFILE"
8381 [ -s "$TAGFILE" ] || rm -f "$TAGFILE"
8382fi
8383EOF
8384chmod -v 755 /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck
8385
8386ldconfig
8387exit
8388
8389cd ..
8390rm -vfr ConsoleKit-0.4.6
8391
8392<dhcpcd-5.6.2>
8393wget http://roy.marples.name/downloads/dhcpcd/dhcpcd-5.6.2.tar.bz2
8394tar vxf dhcpcd-5.6.2.tar.bz2
8395cd dhcpcd-5.6.2
8396
8397./configure --libexecdir=/lib/dhcpcd \
8398 --dbdir=/run \
8399 --sysconfdir=/etc
8400
8401make
8402
8403sudo su
8404make install
8405
8406sed -i "s;/var/lib;/run;g" dhcpcd-hooks/50-dhcpcd-compat
8407install -v -m 644 dhcpcd-hooks/50-dhcpcd-compat /lib/dhcpcd/dhcpcd-hooks/
8408
8409cd ../blfs-bootscripts-20120828
8410make install-service-dhcpcd
8411cd ../dhcpcd-5.6.2
8412
8413***i like my static ip for the mo so i'm skipping this config
8414cat > /etc/sysconfig/ifconfig.eth0 << "EOF"
8415ONBOOT="yes"
8416IFACE="eth0"
8417SERVICE="dhcpcd"
8418DHCP_START="-b -q"
8419DHCP_STOP="-k"
8420EOF
8421
8422ldconfig
8423exit
8424
8425cd ..
8426rm -vfr dhcpcd-5.6.2
8427
8428<iptables-1.4.17> - kernel config required
8429wget http://www.netfilter.org/projects/iptables/files/iptables-1.4.17.tar.bz2
8430tar vxf iptables-1.4.17.tar.bz2
8431cd iptables-1.4.17
8432
8433LDFLAGS="-L$PWD/libiptc/.libs" \
8434./configure --prefix=/usr \
8435 --exec-prefix= \
8436 --bindir=/usr/bin \
8437 --with-xtlibdir=/lib/xtables \
8438 --with-pkgconfigdir=/usr/lib/pkgconfig \
8439 --enable-libipq \
8440 --enable-devel
8441
8442make
8443
8444sudo su
8445make install
8446
8447ln -sfv ../../sbin/xtables-multi /usr/bin/iptables-xml
8448for file in libip4tc libip6tc libipq libiptc libxtables
8449do
8450 ln -sfv ../../lib/`readlink /lib/${file}.so` /usr/lib/${file}.so
8451 rm -v /lib/${file}.so
8452 mv -v /lib/${file}.la /usr/lib
8453 sed -i "s@libdir='@&/usr@g" /usr/lib/${file}.la
8454done
8455
8456cd ../blfs-bootscripts-20130127
8457make install-iptables
8458cd ../iptables-1.4.17
8459
8460ldconfig
8461exit
8462
8463export MAKEFLAGS='-j 4'
8464cd ..
8465rm -vfr iptables-1.4.17
8466
8467<wpa_supplicant-2.0> - Kernel config required
8468wget http://hostap.epitest.fi/releases/wpa_supplicant-2.0.tar.gz
8469tar vxf wpa_supplicant-2.0.tar.gz
8470cd wpa_supplicant-2.0
8471
8472cat > wpa_supplicant/.config << "EOF"
8473CONFIG_BACKEND=file
8474CONFIG_CTRL_IFACE=y
8475CONFIG_DEBUG_FILE=y
8476CONFIG_DEBUG_SYSLOG=y
8477CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON
8478CONFIG_DRIVER_NL80211=y
8479CONFIG_DRIVER_WEXT=y
8480CONFIG_DRIVER_WIRED=y
8481CONFIG_EAP_GTC=y
8482CONFIG_EAP_LEAP=y
8483CONFIG_EAP_MD5=y
8484CONFIG_EAP_MSCHAPV2=y
8485CONFIG_EAP_OTP=y
8486CONFIG_EAP_PEAP=y
8487CONFIG_EAP_TLS=y
8488CONFIG_EAP_TTLS=y
8489CONFIG_IEEE8021X_EAPOL=y
8490CONFIG_IPV6=N
8491CONFIG_LIBNL32=y
8492CONFIG_PEERKEY=y
8493CONFIG_PKCS12=y
8494CONFIG_READLINE=y
8495CONFIG_SMARTCARD=y
8496CONFIG_WPS=y
8497CFLAGS += -I/usr/include/libnl3
8498EOF
8499
8500cat >> wpa_supplicant/.config << "EOF"
8501CONFIG_CTRL_IFACE_DBUS=y
8502CONFIG_CTRL_IFACE_DBUS_NEW=y
8503CONFIG_CTRL_IFACE_DBUS_INTRO=y
8504EOF
8505
8506cd wpa_supplicant
8507make BINDIR=/sbin LIBDIR=/lib
8508
8509pushd wpa_gui-qt4
8510qmake wpa_gui.pro
8511make
8512popd
8513
8514sudo su
8515install -v -m755 wpa_{cli,passphrase,supplicant} /sbin
8516install -v -m644 doc/docbook/wpa_supplicant.conf.5 /usr/share/man/man5
8517install -v -m644 doc/docbook/wpa_{cli,passphrase,supplicant}.8 /usr/share/man/man8
8518
8519install -v -m644 dbus/fi.{epitest.hostap.WPASupplicant,w1.wpa_supplicant1}.service \
8520 /usr/share/dbus-1/system-services
8521install -v -m644 dbus/dbus-wpa_supplicant.conf /etc/dbus-1/system.d/wpa_supplicant.conf
8522
8523install -m755 wpa_gui-qt4/wpa_gui /usr/bin/
8524install -m644 doc/docbook/wpa_gui.8 /usr/share/man/man8/
8525install -m644 wpa_gui-qt4/wpa_gui.desktop /usr/share/applications/
8526install -m644 wpa_gui-qt4/icons/wpa_gui.svg /usr/share/pixmaps/
8527
8528*** SSID == your router id and SECRET_PASSWORD is your wpa/wpa2 wireless key, simples.
8529wpa_passphrase SSID SECRET_PASSWORD > /etc/wpa_supplicant.conf
8530
8531echo ctrl_interface=/run/wpa_supplicant >> /etc/wpa_supplicant.conf
8532
8533*** I put this in a bash script at /usr/bin for easy starting of wifi from cli =)
8534wpa_supplicant -B -c/etc/wpa_supplicant.conf -iwlan0 -Dnl80211,wext
8535sleep 3 # let it settle
8536dhcpcd
8537
8538ldconfig
8539exit
8540
8541cd ../..
8542rm -vfr wpa_supplicant-2.0
8543
8544<NetworkManager-0.9.6.4>
8545wget http://ftp.gnome.org/pub/gnome/sources/NetworkManager/0.9/NetworkManager-0.9.6.4.tar.xz
8546tar vxf NetworkManager-0.9.6.4.tar.xz
8547cd NetworkManager-0.9.6.4
8548
8549./configure --prefix=/usr \
8550 --sysconfdir=/etc \
8551 --localstatedir=/var \
8552 --libexecdir=/usr/lib/NetworkManager \
8553 --without-systemdsystemunitdir \
8554 --disable-ppp \
8555 --with-distro=lfs
8556
8557make
8558
8559sudo su
8560make install
8561
8562cat >> /etc/NetworkManager/NetworkManager.conf << "EOF"
8563[main]
8564plugins=keyfile
8565EOF
8566
8567cd ../blfs-bootscripts-20130127
8568make install-networkmanager
8569
8570ldconfig
8571exit
8572
8573cd ..
8574rm -vfr NetworkManager-0.9.6.4
8575
8576<geoclue-0.12.0>
8577wget https://launchpad.net/geoclue/trunk/0.12/+download/geoclue-0.12.0.tar.gz
8578wget http://www.linuxfromscratch.org/patches/blfs/svn/geoclue-0.12.0-gpsd_fix-1.patch
8579tar vxf geoclue-0.12.0.tar.gz
8580cd geoclue-0.12.0
8581
8582patch -Np1 -i ../geoclue-0.12.0-gpsd_fix-1.patch
8583
8584sed -i "s@ -Werror@@" configure
8585sed -i "s@libnm_glib@libnm-glib@g" configure
8586sed -i "s@geoclue/libgeoclue.la@& -lgthread-2.0@g" \
8587 providers/skyhook/Makefile.in
8588
8589./configure --prefix=/usr --libexecdir=/usr/lib/geoclue
8590
8591make
8592
8593sudo su
8594make install
8595ldconfig
8596exit
8597
8598cd ..
8599rm -vfr geoclue-0.12.0
8600
8601<curl-7.28.1>
8602wget http://curl.haxx.se/download/curl-7.28.1.tar.bz2
8603tar vxf curl-7.28.1.tar.bz2
8604cd curl-7.28.1
8605
8606sed -i '/--static-libs)/{N;s#echo .*#echo #;}' curl-config.in
8607
8608./configure --prefix=/usr --disable-static --with-ca-path=/etc/ssl/certs
8609
8610make
8611
8612make check
8613
8614sudo su
8615make install
8616
8617find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \;
8618install -v -d -m755 /usr/share/doc/curl-7.28.1
8619cp -v -R docs/* /usr/share/doc/curl-7.28.1
8620
8621ldconfig
8622exit
8623
8624cd ..
8625rm -vfr curl-7.28.1
8626
8627<webkitgtk-1.10.2>
8628wget http://webkitgtk.org/releases/webkitgtk-1.10.2.tar.xz
8629tar vxf webkitgtk-1.10.2.tar.xz
8630cd webkitgtk-1.10.2
8631
8632./configure --prefix=/usr \
8633 --libexecdir=/usr/lib/WebKitGTK \
8634 --with-gstreamer=1.0 \
8635 --enable-introspection \
8636 --disable-geolocation
8637
8638make
8639
8640sudo su
8641make install
8642ldconfig
8643exit
8644
8645cd ..
8646rm -vfr webkitgtk-1.10.2
8647
8648<libevent-2.0.21-stable>
8649wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
8650tar vxf libevent-2.0.21-stable.tar.gz
8651cd libevent-2.0.21-stable
8652
8653./configure --prefix=/usr --disable-static
8654
8655make
8656
8657make check
8658
8659sudo su
8660make install
8661ldconfig
8662exit
8663
8664cd ..
8665rm -vfr libevent-2.0.21-stable
8666
8667<Python-3.3.0>
8668wget http://www.python.org/ftp/python/3.3.0/Python-3.3.0.tar.xz
8669wget http://docs.python.org/ftp/python/doc/3.3.0/python-3.3.0-docs-html.tar.bz2
8670tar vxf Python-3.3.0.tar.xz
8671cd Python-3.3.0
8672
8673sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py
8674
8675./configure --prefix=/usr \
8676 --enable-shared \
8677 --with-system-expat \
8678 --with-system-ffi
8679
8680make
8681
8682make test
8683
8684sudo su
8685make install
8686chmod -v 755 /usr/lib/libpython3.3m.so
8687chmod -v 755 /usr/lib/libpython3.so
8688
8689install -v -m755 -d /usr/share/doc/Python-3.3.0/html
8690tar --strip-components=1 \
8691 --no-same-owner \
8692 --no-same-permissions \
8693 -C /usr/share/doc/Python-3.3.0/html \
8694 -xvf ../python-3.3.0-docs-html.tar.bz2
8695
8696sed -i '/export PYTHONDOCS=\/usr\/share\/doc\/Python-2.7.3/d' /etc/bashrc
8697echo "export PYTHONDOCS=/usr/share/doc/Python-3.3.0/html" >> /etc/bashrc
8698
8699ldconfig
8700exit
8701
8702cd ..
8703rm -vfr Python-3.3.0
8704
8705<yasm-1.2.0>
8706wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
8707tar vxf yasm-1.2.0.tar.gz
8708cd yasm-1.2.0
8709
8710sed -i 's#) ytasm.*#)#' Makefile.in
8711
8712./configure --prefix=/usr
8713
8714make
8715
8716make check
8717
8718sudo su
8719make install
8720ldconfig
8721exit
8722
8723cd ..
8724rm -vfr yasm-1.2.0
8725
8726<libvpx-v1.1.0>
8727wget http://webm.googlecode.com/files/libvpx-v1.1.0.tar.bz2
8728tar vxf libvpx-v1.1.0.tar.bz2
8729cd libvpx-v1.1.0
8730
8731mkdir ../libvpx-build
8732cd ../libvpx-build
8733
8734../libvpx-v1.1.0/configure --prefix=/usr \
8735 --enable-shared \
8736 --disable-static
8737
8738make
8739
8740sudo su
8741make install
8742ldconfig
8743exit
8744
8745cd ..
8746rm -vfr libvpx-build
8747rm -vfr libvpx-v1.1.0
8748
8749<Xulrunner-18.0.1>
8750wget http://releases.mozilla.org/pub/mozilla.org/firefox/releases/18.0.1/source/firefox-18.0.1.source.tar.bz2
8751tar vxf firefox-18.0.1.source.tar.bz2
8752cd mozilla-release
8753
8754vi mozconfig
8755# If you have a multicore machine you can speed up the build by running
8756# several jobs at once by uncommenting the following line and setting
8757# the
8758# value to number of CPU cores:
8759mk_add_options MOZ_MAKE_FLAGS="-j4"
8760
8761# If you have installed DBus-Glib comment out this line:
8762#ac_add_options --disable-dbus
8763
8764# If you have installed wireless-tools comment out this line:
8765#ac_add_options --disable-necko-wifi
8766
8767# If you have installed libnotify comment out this line:
8768#ac_add_options --disable-libnotify
8769
8770# Uncomment these lines if you have installed optional dependencies:
8771#ac_add_options --enable-system-hunspell
8772ac_add_options --enable-startup-notification
8773
8774# If you have not installed Yasm then uncomment this line:
8775#ac_add_options --disable-webm
8776
8777# Comment out following options if you have not installed
8778# recommended dependencies:
8779ac_add_options --enable-system-sqlite
8780ac_add_options --with-system-libevent
8781ac_add_options --with-system-libvpx
8782ac_add_options --with-system-nspr
8783ac_add_options --with-system-nss
8784
8785# It is recommended not to touch anything below this line
8786ac_add_options --prefix=/usr
8787ac_add_options --enable-application=xulrunner
8788
8789ac_add_options --disable-crashreporter
8790ac_add_options --disable-installer
8791ac_add_options --disable-updater
8792ac_add_options --disable-debug
8793ac_add_options --disable-tests
8794ac_add_options --disable-mochitest
8795
8796ac_add_options --enable-optimize
8797ac_add_options --enable-strip
8798ac_add_options --enable-install-strip
8799
8800ac_add_options --enable-system-ffi
8801ac_add_options --enable-system-pixman
8802
8803ac_add_options --enable-shared-js
8804ac_add_options --with-pthreads
8805
8806ac_add_options --with-system-bz2
8807ac_add_options --with-system-jpeg
8808ac_add_options --with-system-png
8809ac_add_options --with-system-zlib
8810
8811mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/xulrunner-build-dir
8812
8813make -f client.mk
8814
8815sudo su
8816make -C xulrunner-build-dir install
8817
8818mkdir -pv /usr/lib/mozilla/plugins
8819rm -rf /usr/lib/xulrunner-18.0.1/plugins
8820ln -sv ../mozilla/plugins /usr/lib/xulrunner-18.0.1
8821
8822chmod -v 755 /usr/lib/xulrunner-18.0.1/libxpcom.so \
8823 /usr/lib/xulrunner-devel-18.0.1/sdk/bin/xpcshell
8824
8825for library in libmozalloc.so libmozjs.so libxpcom.so libxul.so; do
8826 ln -sfv ../../../xulrunner-18.0.1/$library \
8827 /usr/lib/xulrunner-devel-18.0.1/sdk/lib/$library
8828 ln -sfv xulrunner-18.0.1/$library /usr/lib/$library
8829done
8830
8831ln -sfv ../xulrunner-devel-18.0.1/sdk/bin/run-mozilla.sh \
8832 /usr/lib/xulrunner-18.0.1
8833ln -sfv ../xulrunner-devel-18.0.1/sdk/bin/xpcshell \
8834 /usr/lib/xulrunner-18.0.1
8835
8836ldconfig
8837exit
8838
8839cd ..
8840sudo rm -vfr mozilla-release
8841
8842##### STAGE 2 XORG - COMPLETE #####
8843
8844Congratulations on reaching this far, that last section is a proper ball ache.
8845
8846Up next is the meat and a potatoes of this build - Gnome 3.
8847
8848Good Luck
8849
8850##### STAGE 3 GNOME3 #####
8851
8852<eject-2.1.5>
8853wget http://www.paldo.org/paldo/sources/eject/eject-2.1.5.tar.bz2
8854tar vxf eject-2.1.5.tar.bz2
8855cd eject
8856
8857./configure --prefix=/usr
8858
8859make
8860
8861sudo su
8862make install
8863exit
8864
8865cd ..
8866rm -vfr eject
8867
8868<fcron-3.1.1>
8869wget http://fcron.free.fr/archives/fcron-3.1.1.src.tar.gz
8870tar vxf fcron-3.1.1.src.tar.gz
8871cd fcron-3.1.1
8872
8873sudo su
8874cat >> /etc/syslog.conf << "EOF"
8875# Begin fcron addition to /etc/syslog.conf
8876
8877cron.* -/var/log/cron.log
8878
8879# End fcron addition
8880EOF
8881
8882/etc/rc.d/init.d/sysklogd reload
8883
8884groupadd -g 22 fcron
8885
8886useradd -d /dev/null -c "Fcron User" -g fcron -s /bin/false -u 22 fcron
8887exit
8888
8889sed -i.bak 's/x"$USE_SENDMAIL" != x ;/x"$USE_SENDMAIL" != x0 ;/' configure
8890sed -i.bak '/clear_forcemail(cl->cl_option);/d' fileconf.c
8891
8892./configure --prefix=/usr --sysconfdir=/etc \
8893 --localstatedir=/var --without-sendmail --with-boot-install=no
8894
8895make
8896
8897sudo su
8898make install
8899
8900cd ../blfs-bootscripts-20130127
8901make install-fcron
8902cd ../fcron-3.1.1
8903exit
8904
8905cd ..
8906rm -vfr fcron-3.1.1
8907
8908<hdparm-9.42>
8909wget http://downloads.sourceforge.net/hdparm/hdparm-9.42.tar.gz
8910tar vxf hdparm-9.42.tar.gz
8911cd hdparm-9.42
8912
8913make
8914
8915sudo su
8916make install
8917exit
8918
8919cd ..
8920rm -vfr hdparm-9.42
8921
8922<dconf-0.14.1>
8923wget http://ftp.gnome.org/pub/gnome/sources/dconf/0.14/dconf-0.14.1.tar.xz
8924tar vxf dconf-0.14.1.tar.xz
8925cd dconf-0.14.1
8926
8927./configure --prefix=/usr \
8928 --sysconfdir=/etc \
8929 --libexecdir=/usr/lib/dconf
8930
8931make
8932
8933sudo su
8934make install
8935ldconfig
8936exit
8937
8938cd ..
8939rm -vfr dconf-0.14.1
8940
8941<ibus-1.5.1>
8942wget http://ibus.googlecode.com/files/ibus-1.5.1.tar.gz
8943tar vxf ibus-1.5.1.tar.gz
8944cd ibus-1.5.1
8945
8946./configure --prefix=/usr \
8947 --sysconfdir=/etc \
8948 --libexecdir=/usr/lib/ibus \
8949 --disable-gtk2
8950
8951make
8952
8953sudo su
8954make install
8955ldconfig
8956exit
8957
8958cd ..
8959rm -vfr ibus-1.5.1
8960
8961<libsigc++-2.2.11>
8962wget http://ftp.gnome.org/pub/gnome/sources/libsigc++/2.2/libsigc++-2.2.11.tar.xz
8963tar vxf libsigc++-2.2.11.tar.xz
8964cd libsigc++-2.2.11
8965
8966./configure --prefix=/usr
8967
8968make
8969
8970sudo su
8971make install
8972ldconfig
8973exit
8974
8975cd ..
8976rm -vfr libsigc++-2.2.11
8977
8978<lcms2-2.4>
8979tar vxf lcms2-2.4.tar.gz
8980cd lcms2-2.4
8981
8982./configure --prefix=/usr --disable-static
8983
8984make
8985
8986sudo su
8987make install
8988ldconfig
8989exit
8990
8991cd ..
8992rm -vfr lcms2-2.4
8993
8994<yaml-0.1.4>
8995wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
8996tar vxf yaml-0.1.4.tar.gz
8997cd yaml-0.1.4
8998
8999./configure --prefix=/usr
9000
9001make
9002
9003sudo su
9004make install
9005ldconfig
9006exit
9007
9008cd ..
9009rm -vfr yaml-0.1.4
9010
9011<accountsservice-0.6.30>
9012wget http://www.freedesktop.org/software/accountsservice/accountsservice-0.6.30.tar.xz
9013tar vxf accountsservice-0.6.30.tar.xz
9014cd accountsservice-0.6.30
9015
9016./configure --prefix=/usr \
9017 --sysconfdir=/etc \
9018 --localstatedir=/var \
9019 --libexecdir=/usr/lib/accountsservice \
9020 --disable-static
9021
9022make
9023
9024sudo su
9025make install
9026ldconfig
9027exit
9028
9029cd ..
9030rm -vfr accountsservice-0.6.30
9031
9032<polkit-gnome-0.105>
9033wget http://ftp.gnome.org/pub/gnome/sources/polkit-gnome/0.105/polkit-gnome-0.105.tar.xz
9034tar vxf polkit-gnome-0.105.tar.xz
9035cd polkit-gnome-0.105
9036
9037./configure --prefix=/usr \
9038 --libexecdir=/usr/lib/polkit-gnome
9039
9040make
9041
9042sudo su
9043make install
9044
9045mkdir -p /etc/xdg/autostart
9046cat > /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop << "EOF"
9047[Desktop Entry]
9048Name=PolicyKit Authentication Agent
9049Comment=PolicyKit Authentication Agent
9050Exec=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
9051Terminal=false
9052Type=Application
9053Categories=
9054NoDisplay=true
9055OnlyShowIn=GNOME;XFCE;Unity;
9056AutostartCondition=GNOME3 unless-session gnome
9057EOF
9058
9059ldconfig
9060exit
9061
9062cd ..
9063rm -vfr polkit-gnome-0.105
9064
9065<rarian-0.8.1>
9066wget http://ftp.gnome.org/pub/gnome/sources/rarian/0.8/rarian-0.8.1.tar.bz2
9067tar vxf rarian-0.8.1.tar.bz2
9068cd rarian-0.8.1
9069
9070./configure --prefix=/usr \
9071 --localstatedir=/var
9072
9073make
9074
9075sudo su
9076make install
9077ldconfig
9078exit
9079
9080cd ..
9081rm -vfr rarian-0.8.1
9082
9083<gnome-doc-utils-0.20.10>
9084wget http://ftp.gnome.org/pub/gnome/sources/gnome-doc-utils/0.20/gnome-doc-utils-0.20.10.tar.xz
9085tar vxf gnome-doc-utils-0.20.10.tar.xz
9086cd gnome-doc-utils-0.20.10
9087
9088./configure --prefix=/usr
9089
9090make
9091
9092sudo su
9093make install
9094ldconfig
9095exit
9096
9097cd ..
9098rm -vfr gnome-doc-utils-0.20.10
9099
9100<itstool-1.2.0>
9101wget http://files.itstool.org/itstool/itstool-1.2.0.tar.bz2
9102tar vxf itstool-1.2.0.tar.bz2
9103cd itstool-1.2.0
9104
9105./configure --prefix=/usr
9106
9107make
9108
9109sudo su
9110make install
9111ldconfig
9112exit
9113
9114cd ..
9115rm -vfr itstool-1.2.0
9116
9117<yelp-xsl-3.6.1>
9118wget http://ftp.gnome.org/pub/gnome/sources/yelp-xsl/3.6/yelp-xsl-3.6.1.tar.xz
9119tar vxf yelp-xsl-3.6.1.tar.xz
9120cd yelp-xsl-3.6.1
9121
9122./configure --prefix=/usr
9123
9124make
9125
9126sudo su
9127make install
9128ldconfig
9129exit
9130
9131cd ..
9132rm -vfr yelp-xsl-3.6.1
9133
9134<libsecret-0.12>
9135wget http://ftp.gnome.org/pub/gnome/sources/libsecret/0.12/libsecret-0.12.tar.xz
9136tar vxf libsecret-0.12.tar.xz
9137cd libsecret-0.12
9138
9139./configure --prefix=/usr --disable-static
9140
9141make
9142
9143sudo su
9144make install
9145ldconfig
9146exit
9147
9148cd ..
9149rm -vfr libsecret-0.12
9150
9151<gsettings-desktop-schemas-3.6.1>
9152tar vxf gsettings-desktop-schemas-3.6.1.tar.xz
9153cd gsettings-desktop-schemas-3.6.1
9154
9155./configure --prefix=/usr
9156
9157make
9158
9159sudo su
9160make install
9161ldconfig
9162exit
9163
9164cd ..
9165rm -vfr gsettings-desktop-schemas-3.6.1
9166
9167<gcr-3.6.2>
9168wget http://ftp.gnome.org/pub/gnome/sources/gcr/3.6/gcr-3.6.2.tar.xz
9169tar vxf gcr-3.6.2.tar.xz
9170cd gcr-3.6.2
9171
9172./configure --prefix=/usr \
9173 --sysconfdir=/etc \
9174 --libexecdir=/usr/lib/gnome-keyring
9175
9176make
9177
9178sudo su
9179make install
9180ldconfig
9181exit
9182
9183cd ..
9184rm -vfr gcr-3.6.2
9185
9186<libgee-0.6.7>
9187wget http://ftp.gnome.org/pub/gnome/sources/libgee/0.6/libgee-0.6.7.tar.xz
9188tar vxf libgee-0.6.7.tar.xz
9189cd libgee-0.6.7
9190
9191./configure --prefix=/usr
9192
9193make
9194
9195sudo su
9196make install
9197ldconfig
9198exit
9199
9200cd ..
9201rm -vfr libgee-0.6.7
9202
9203<libgweather-3.6.2>
9204wget http://ftp.gnome.org/pub/gnome/sources/libgweather/3.6/libgweather-3.6.2.tar.xz
9205tar vxf libgweather-3.6.2.tar.xz
9206cd libgweather-3.6.2
9207
9208./configure --prefix=/usr --enable-locations-compression
9209
9210make
9211
9212sudo su
9213make install
9214ldconfig
9215exit
9216
9217cd ..
9218rm -vfr libgweather-3.6.2
9219
9220<libwnck-3.4.4>
9221wget http://ftp.gnome.org/pub/gnome/sources/libwnck/3.4/libwnck-3.4.4.tar.xz
9222tar vxf libwnck-3.4.4.tar.xz
9223cd libwnck-3.4.4
9224
9225./configure --prefix=/usr
9226
9227make
9228
9229sudo su
9230make install
9231ldconfig
9232exit
9233
9234cd ..
9235rm -vfr libwnck-3.4.4
9236
9237<libgnomekbd-3.6.0>
9238wget http://ftp.gnome.org/pub/gnome/sources/libgnomekbd/3.6/libgnomekbd-3.6.0.tar.xz
9239tar vxf libgnomekbd-3.6.0.tar.xz
9240cd libgnomekbd-3.6.0
9241
9242./configure --prefix=/usr --disable-static
9243
9244make
9245
9246sudo su
9247make install
9248ldconfig
9249exit
9250
9251cd ..
9252rm -vfr libgnomekbd-3.6.0
9253
9254<libgtop-2.28.4>
9255wget http://ftp.gnome.org/pub/gnome/sources/libgtop/2.28/libgtop-2.28.4.tar.xz
9256tar vxf libgtop-2.28.4.tar.xz
9257cd libgtop-2.28.4
9258
9259./configure --prefix=/usr --disable-static
9260
9261make
9262
9263sudo su
9264make install
9265ldconfig
9266exit
9267
9268cd ..
9269rm -vfr libgtop-2.28.4
9270
9271<libwacom-0 6>
9272wget http://downloads.sourceforge.net/linuxwacom/libwacom-0.6.tar.bz2
9273tar vxf libwacom-0.6.tar.bz2
9274cd libwacom-0.6
9275
9276./configure --prefix=/usr --disable-static
9277
9278make
9279
9280sudo su
9281make install
9282ldconfig
9283exit
9284
9285cd ..
9286rm -vfr libwacom-0.6
9287
9288<rest-0.7.90>
9289wget http://ftp.gnome.org/pub/gnome/sources/rest/0.7/rest-0.7.90.tar.xz
9290tar vxf rest-0.7.90.tar.xz
9291cd rest-0.7.90
9292
9293./configure --prefix=/usr \
9294 --with-ca-certificates=/etc/ssl/ca-bundle.crt
9295
9296make
9297
9298sudo su
9299make install
9300ldconfig
9301exit
9302
9303cd ..
9304rm -vfr rest-0.7.90
9305
9306<gnome-online-accounts-3.6.2>
9307wget http://ftp.gnome.org/pub/gnome/sources/gnome-online-accounts/3.6/gnome-online-accounts-3.6.2.tar.xz
9308tar vxf gnome-online-accounts-3.6.2.tar.xz
9309cd gnome-online-accounts-3.6.2
9310
9311./configure --prefix=/usr \
9312 --libexecdir=/usr/lib/gnome-online-accounts \
9313 --disable-static
9314
9315make
9316
9317sudo su
9318make install
9319ldconfig
9320exit
9321
9322cd ..
9323rm -vfr gnome-online-accounts-3.6.2
9324
9325<liboauth-1.0.0>
9326wget http://downloads.sourceforge.net/liboauth/liboauth-1.0.0.tar.gz
9327tar vxf liboauth-1.0.0.tar.gz
9328cd liboauth-1.0.0
9329
9330./configure --prefix=/usr --disable-static
9331
9332make
9333
9334sudo su
9335make install
9336ldconfig
9337exit
9338
9339cd ..
9340rm -vfr liboauth-1.0.0
9341
9342<libgdata-0.13.2>
9343wget http://ftp.gnome.org/pub/gnome/sources/libgdata/0.13/libgdata-0.13.2.tar.xz
9344tar vxf libgdata-0.13.2.tar.xz
9345cd libgdata-0.13.2
9346
9347./configure --prefix=/usr --disable-static
9348
9349make
9350
9351sudo su
9352make install
9353ldconfig
9354exit
9355
9356cd ..
9357rm -vfr libgdata-0.13.2
9358
9359<sharutils-4.11.1>
9360tar xvf sharutils-4.11.1.tar.bz2
9361cd sharutils-4.11.1
9362
9363sed -i -e '/gets is a/d' lib/stdio.in.h
9364
9365./configure --prefix=/usr
9366
9367make
9368
9369sudo su
9370make install
9371ldconfig
9372exit
9373
9374cd ..
9375rm -vfr sharutils-4.11.1
9376
9377<libical-0.48>
9378wget http://downloads.sourceforge.net/freeassociation/libical-0.48.tar.gz
9379tar vxf libical-0.48.tar.gz
9380cd libical-0.48
9381
9382./configure --prefix=/usr
9383
9384make
9385
9386sudo su
9387make install
9388ldconfig
9389exit
9390
9391cd ..
9392rm -vfr libical-0.48
9393
9394<evolution-data-server-3.6.2>
9395wget http://ftp.gnome.org/pub/gnome/sources/evolution-data-server/3.6/evolution-data-server-3.6.2.tar.xz
9396tar vxf evolution-data-server-3.6.2.tar.xz
9397cd evolution-data-server-3.6.2
9398
9399./configure --prefix=/usr \
9400 --libexecdir=/usr/lib/evolution-data-server \
9401 --enable-vala-bindings \
9402 --enable-ipv6=no
9403
9404make
9405
9406sudo su
9407make install
9408ldconfig
9409exit
9410
9411cd ..
9412rm -vfr evolution-data-server-3.6.2
9413
9414<libzeitgeist-0.3.18>
9415wget https://launchpad.net/libzeitgeist/0.3/0.3.18/+download/libzeitgeist-0.3.18.tar.gz
9416tar vxf libzeitgeist-0.3.18.tar.gz
9417cd libzeitgeist-0.3.18
9418
9419./configure --prefix=/usr --disable-static
9420
9421make
9422
9423sudo su
9424make install
9425ldconfig
9426exit
9427
9428cd ..
9429rm -vfr libzeitgeist-0.3.18
9430
9431<telepathy-glib-0.20.1>
9432wget http://telepathy.freedesktop.org/releases/telepathy-glib/telepathy-glib-0.20.1.tar.gz
9433tar vxf telepathy-glib-0.20.1.tar.gz
9434cd telepathy-glib-0.20.1
9435
9436./configure --prefix=/usr \
9437 --enable-vala-bindings \
9438 --disable-static
9439
9440make
9441
9442sudo su
9443make install
9444ldconfig
9445exit
9446
9447cd ..
9448rm -vfr telepathy-glib-0.20.1
9449
9450<folks-0.8.0>
9451wget http://ftp.gnome.org/pub/gnome/sources/folks/0.8/folks-0.8.0.tar.xz
9452tar vxf folks-0.8.0.tar.xz
9453cd folks-0.8.0
9454
9455./configure --prefix=/usr --enable-vala
9456
9457make
9458
9459sudo su
9460make install
9461ldconfig
9462exit
9463
9464cd ..
9465rm -vfr folks-0.8.0
9466
9467<gnome-js-common-0.1.2>
9468wget http://ftp.gnome.org/pub/gnome/sources/gnome-js-common/0.1/gnome-js-common-0.1.2.tar.bz2
9469tar vxf gnome-js-common-0.1.2.tar.bz2
9470cd gnome-js-common-0.1.2
9471
9472./configure --prefix=/usr
9473
9474make
9475
9476sudo su
9477make install
9478ldconfig
9479exit
9480
9481cd ..
9482rm -vfr gnome-js-common-0.1.2
9483
9484<seed-3.2.0>
9485wget http://ftp.gnome.org/pub/gnome/sources/seed/3.2/seed-3.2.0.tar.xz
9486tar vxf seed-3.2.0.tar.xz
9487cd seed-3.2.0
9488
9489./configure --prefix=/usr --disable-static
9490
9491make
9492
9493sudo su
9494make install
9495ldconfig
9496exit
9497
9498cd ..
9499rm -vfr seed-3.2.0
9500
9501<gjs-1.34.0>
9502wget http://ftp.gnome.org/pub/gnome/sources/gjs/1.34/gjs-1.34.0.tar.xz
9503tar vxf gjs-1.34.0.tar.xz
9504cd gjs-1.34.0
9505
9506./configure --prefix=/usr
9507
9508make
9509
9510sudo su
9511make install
9512ldconfig
9513exit
9514
9515cd ..
9516rm -vfr gjs-1.34.0
9517
9518<gnome-js-common-0.1.2> - Circuler install for seed support
9519tar vxf gnome-js-common-0.1.2.tar.bz2
9520cd gnome-js-common-0.1.2
9521
9522./configure --prefix=/usr
9523
9524make
9525
9526sudo su
9527make install
9528ldconfig
9529exit
9530
9531cd ..
9532rm -vfr gnome-js-common-0.1.2
9533
9534<libpeas-1.6.2>
9535wget http://ftp.gnome.org/pub/gnome/sources/libpeas/1.6/libpeas-1.6.2.tar.xz
9536tar vxf libpeas-1.6.2.tar.xz
9537cd libpeas-1.6.2
9538
9539./configure --prefix=/usr
9540
9541make
9542
9543sudo su
9544make install
9545ldconfig
9546exit
9547
9548cd ..
9549rm -vfr libpeas-1.6.2
9550
9551<gtksourceview-3.6.1>
9552wget http://ftp.gnome.org/pub/gnome/sources/gtksourceview/3.6/gtksourceview-3.6.1.tar.xz
9553tar vxf gtksourceview-3.6.1.tar.xz
9554cd gtksourceview-3.6.1
9555
9556./configure --prefix=/usr
9557
9558make
9559
9560sudo su
9561make install
9562ldconfig
9563exit
9564
9565cd ..
9566rm -vfr gtksourceview-3.6.1
9567
9568<XML::Simple>
9569sudo cpan
9570yes to config
9571yes to mirror sites
9572
9573install XML::Simple
9574
9575exit
9576
9577<icon-naming-utils-0.8.90>
9578wget http://tango.freedesktop.org/releases/icon-naming-utils-0.8.90.tar.bz2
9579tar vxf icon-naming-utils-0.8.90.tar.bz2
9580cd icon-naming-utils-0.8.90
9581
9582./configure --prefix=/usr \
9583 --libexecdir=/usr/lib/icon-naming-utils
9584
9585make
9586
9587sudo su
9588make install
9589ldconfig
9590exit
9591
9592cd ..
9593rm -vfr icon-naming-utils-0.8.90
9594
9595<gnome-icon-theme-3.6.2>
9596wget http://ftp.gnome.org/pub/gnome/sources/gnome-icon-theme/3.6/gnome-icon-theme-3.6.2.tar.xz
9597tar vxf gnome-icon-theme-3.6.2.tar.xz
9598cd gnome-icon-theme-3.6.2
9599
9600./configure --prefix=/usr
9601
9602make
9603
9604sudo su
9605make install
9606ldconfig
9607exit
9608
9609cd ..
9610rm -vfr gnome-icon-theme-3.6.2
9611
9612<gsettings-desktop-schemas-3.6.1>
9613tar vxf gsettings-desktop-schemas-3.6.1.tar.xz
9614cd gsettings-desktop-schemas-3.6.1
9615
9616./configure --prefix=/usr
9617
9618make
9619
9620sudo su
9621make install
9622ldconfig
9623exit
9624
9625cd ..
9626rm -vfr gsettings-desktop-schemas-3.6.1
9627
9628<gtkhtml-4.6.2>
9629wget http://ftp.gnome.org/pub/gnome/sources/gtkhtml/4.6/gtkhtml-4.6.2.tar.xz
9630tar vxf gtkhtml-4.6.2.tar.xz
9631cd gtkhtml-4.6.2
9632
9633./configure --prefix=/usr
9634
9635make
9636
9637sudo su
9638make install
9639ldconfig
9640exit
9641
9642cd ..
9643rm -vfr gtkhtml-4.6.2
9644
9645<gmime-2.6.13>
9646wget http://ftp.gnome.org/pub/gnome/sources/gmime/2.6/gmime-2.6.13.tar.xz
9647tar vxf gmime-2.6.13.tar.xz
9648cd gmime-2.6.13
9649
9650./configure --prefix=/usr --disable-static
9651
9652make
9653
9654sudo su
9655make install
9656ldconfig
9657exit
9658
9659cd ..
9660rm -vfr gmime-2.6.13
9661
9662<libarchive-3.0.4>
9663wget http://github.com/downloads/libarchive/libarchive/libarchive-3.0.4.tar.gz
9664tar vxf libarchive-3.0.4.tar.gz
9665cd libarchive-3.0.4
9666
9667./configure --prefix=/usr \
9668 --disable-static
9669
9670make
9671
9672sudo su
9673make install
9674ldconfig
9675exit
9676
9677cd ..
9678rm -vfr libarchive-3.0.4
9679
9680<totem-pl-parser-3.4.3>
9681wget http://ftp.gnome.org/pub/gnome/sources/totem-pl-parser/3.4/totem-pl-parser-3.4.3.tar.xz
9682tar vxf totem-pl-parser-3.4.3.tar.xz
9683cd totem-pl-parser-3.4.3
9684
9685./configure --prefix=/usr --disable-static
9686
9687make
9688
9689sudo su
9690make install
9691ldconfig
9692exit
9693
9694cd ..
9695rm -vfr totem-pl-parser-3.4.3
9696
9697<vte-0.34.2>
9698wget http://ftp.gnome.org/pub/gnome/sources/vte/0.34/vte-0.34.2.tar.xz
9699tar vxf vte-0.34.2.tar.xz
9700cd vte-0.34.2
9701
9702./configure --prefix=/usr \
9703 --sysconfdir=/etc \
9704 --libexecdir=/usr/lib/vte-2.90 \
9705 --enable-introspection \
9706 --disable-static
9707
9708make
9709
9710sudo su
9711make install
9712ldconfig
9713exit
9714
9715cd ..
9716rm -vfr vte-0.34.2
9717
9718<gnome-backgrounds-3.6.1>
9719wget http://ftp.gnome.org/pub/gnome/sources/gnome-backgrounds/3.6/gnome-backgrounds-3.6.1.tar.xz
9720tar vxf gnome-backgrounds-3.6.1.tar.xz
9721cd gnome-backgrounds-3.6.1
9722
9723./configure --prefix=/usr
9724
9725make
9726
9727sudo su
9728make install
9729ldconfig
9730exit
9731
9732cd ..
9733rm -vfr gnome-backgrounds-3.6.1
9734
9735<gnome-icon-theme-extras-3.6.2>
9736wget http://ftp.gnome.org/pub/gnome/sources/gnome-icon-theme-extras/3.6/gnome-icon-theme-extras-3.6.2.tar.xz
9737tar vxf gnome-icon-theme-extras-3.6.2.tar.xz
9738cd gnome-icon-theme-extras-3.6.2
9739
9740./configure --prefix=/usr
9741
9742make
9743
9744sudo su
9745make install
9746ldconfig
9747exit
9748
9749cd ..
9750rm -vfr gnome-icon-theme-extras-3.6.2
9751
9752<gnome-icon-theme-symbolic-3.6.2>
9753wget http://ftp.gnome.org/pub/gnome/sources/gnome-icon-theme-symbolic/3.6/gnome-icon-theme-symbolic-3.6.2.tar.xz
9754tar vxf gnome-icon-theme-symbolic-3.6.2.tar.xz
9755cd gnome-icon-theme-symbolic-3.6.2
9756
9757./configure --prefix=/usr
9758
9759make
9760
9761sudo su
9762make install
9763ldconfig
9764exit
9765
9766cd ..
9767rm -vfr gnome-icon-theme-symbolic-3.6.2
9768
9769<libcroco-0.6.8>
9770wget http://ftp.gnome.org/pub/gnome/sources/libcroco/0.6/libcroco-0.6.8.tar.xz
9771tar vxf libcroco-0.6.8.tar.xz
9772cd libcroco-0.6.8
9773
9774./configure --prefix=/usr --disable-static
9775
9776make
9777
9778sudo su
9779make install
9780ldconfig
9781exit
9782
9783cd ..
9784rm -vfr libcroco-0.6.8
9785
9786<librsvg-2.36.4>
9787wget http://ftp.gnome.org/pub/gnome/sources/librsvg/2.36/librsvg-2.36.4.tar.xz
9788tar vxf librsvg-2.36.4.tar.xz
9789cd librsvg-2.36.4
9790
9791./configure --prefix=/usr --disable-static
9792
9793make
9794
9795sudo su
9796make install
9797ldconfig
9798exit
9799
9800cd ..
9801rm -vfr librsvg-2.36.4
9802
9803<gnome-themes-standard-3.6.2>
9804wget http://ftp.gnome.org/pub/gnome/sources/gnome-themes-standard/3.6/gnome-themes-standard-3.6.2.tar.xz
9805tar vxf gnome-themes-standard-3.6.2.tar.xz
9806cd gnome-themes-standard-3.6.2
9807
9808./configure --prefix=/usr
9809
9810make
9811
9812sudo su
9813make install
9814ldconfig
9815exit
9816
9817cd ..
9818rm -vfr gnome-themes-standard-3.6.2
9819
9820<gnome-video-effects-0.4.0>
9821wget http://ftp.gnome.org/pub/gnome/sources/gnome-video-effects/0.4/gnome-video-effects-0.4.0.tar.xz
9822tar vxf gnome-video-effects-0.4.0.tar.xz
9823cd gnome-video-effects-0.4.0
9824
9825./configure --prefix=/usr
9826
9827make
9828
9829sudo su
9830make install
9831ldconfig
9832exit
9833
9834cd ..
9835rm -vfr gnome-video-effects-0.4.0
9836
9837<gnome-desktop-3.6.2>
9838wget http://ftp.gnome.org/pub/gnome/sources/gnome-desktop/3.6/gnome-desktop-3.6.2.tar.xz
9839tar vxf gnome-desktop-3.6.2.tar.xz
9840cd gnome-desktop-3.6.2
9841
9842./configure --prefix=/usr --libexecdir=/usr/lib/gnome-desktop-3.0
9843
9844make
9845
9846sudo su
9847make install
9848ldconfig
9849exit
9850
9851cd ..
9852rm -vfr gnome-desktop-3.6.2
9853
9854<gnome-keyring-3.6.2>
9855wget http://ftp.gnome.org/pub/gnome/sources/gnome-keyring/3.6/gnome-keyring-3.6.2.tar.xz
9856tar vxf gnome-keyring-3.6.2.tar.xz
9857cd gnome-keyring-3.6.2
9858
9859./configure --prefix=/usr \
9860 --sysconfdir=/etc \
9861 --with-pam-dir=/lib/security \
9862 --with-root-certs=/etc/ssl/certs
9863
9864make
9865
9866sudo su
9867make install
9868ldconfig
9869exit
9870
9871cd ..
9872rm -vfr gnome-keyring-3.6.2
9873
9874<gnome-menus-3.6.2>
9875wget http://ftp.gnome.org/pub/gnome/sources/gnome-menus/3.6/gnome-menus-3.6.2.tar.xz
9876tar vxf gnome-menus-3.6.2.tar.xz
9877cd gnome-menus-3.6.2
9878
9879./configure --prefix=/usr \
9880 --sysconfdir=/etc \
9881 --disable-static
9882
9883make
9884
9885sudo su
9886make install
9887ldconfig
9888exit
9889
9890cd ..
9891rm -vfr gnome-menus-3.6.2
9892
9893<gnome-panel-3.6.2>
9894wget http://ftp.gnome.org/pub/gnome/sources/gnome-panel/3.6/gnome-panel-3.6.2.tar.xz
9895tar vxf gnome-panel-3.6.2.tar.xz
9896cd gnome-panel-3.6.2
9897
9898./configure --prefix=/usr \
9899 --sysconfdir=/etc \
9900 --libexecdir=/usr/lib/gnome-applets
9901
9902make
9903
9904sudo su
9905make install
9906ldconfig
9907exit
9908
9909cd ..
9910rm -vfr gnome-panel-3.6.2
9911
9912<libatasmart-0.19>
9913wget http://0pointer.de/public/libatasmart-0.19.tar.xz
9914tar vxf libatasmart-0.19.tar.xz
9915cd libatasmart-0.19
9916
9917./configure --prefix=/usr --disable-static
9918
9919make
9920
9921sudo su
9922make install
9923ldconfig
9924exit
9925
9926cd ..
9927rm -vfr libatasmart-0.19
9928
9929<udisks-2.0.1>
9930wget http://udisks.freedesktop.org/releases/udisks-2.0.1.tar.bz2
9931tar vxf udisks-2.0.1.tar.bz2
9932cd udisks-2.0.1
9933
9934./configure --prefix=/usr \
9935 --sysconfdir=/etc \
9936 --localstatedir=/var \
9937 --disable-static
9938
9939make
9940
9941sudo su
9942make install
9943ldconfig
9944exit
9945
9946cd ..
9947rm -vfr udisks-2.0.1
9948
9949<gvfs-1.14.2>
9950wget http://ftp.gnome.org/pub/gnome/sources/gvfs/1.14/gvfs-1.14.2.tar.xz
9951tar vxf gvfs-1.14.2.tar.xz
9952cd gvfs-1.14.2
9953
9954./configure --prefix=/usr \
9955 --sysconfdir=/etc \
9956 --libexecdir=/usr/lib/gvfs \
9957 --disable-gphoto2
9958
9959make
9960
9961sudo su
9962make install
9963ldconfig
9964exit
9965
9966cd ..
9967rm -vfr gvfs-1.14.2
9968
9969<libexif-0.6.21>
9970wget http://downloads.sourceforge.net/libexif/libexif-0.6.21.tar.bz2
9971tar vxf libexif-0.6.21.tar.bz2
9972cd libexif-0.6.21
9973
9974./configure --prefix=/usr \
9975 --with-doc-dir=/usr/share/doc/libexif-0.6.21 \
9976 --disable-static
9977
9978make
9979
9980sudo su
9981make install
9982ldconfig
9983exit
9984
9985cd ..
9986rm -vfr libexif-0.6.21
9987
9988<nautilus-3.6.3>
9989wget http://ftp.gnome.org/pub/gnome/sources/nautilus/3.6/nautilus-3.6.3.tar.xz
9990tar vxf nautilus-3.6.3.tar.xz
9991cd nautilus-3.6.3
9992
9993./configure --prefix=/usr \
9994 --sysconfdir=/etc \
9995 --libexecdir=/usr/lib/nautilus \
9996 --disable-nst-extension \
9997 --disable-packagekit \
9998 --disable-tracker
9999
10000make
10001
10002sudo su
10003make install
10004ldconfig
10005exit
10006
10007cd ..
10008rm -vfr nautilus-3.6.3
10009
10010<nautilus-sendto-3.6.1>
10011wget http://ftp.gnome.org/pub/gnome/sources/nautilus-sendto/3.6/nautilus-sendto-3.6.1.tar.xz
10012tar vxf nautilus-sendto-3.6.1.tar.xz
10013cd nautilus-sendto-3.6.1
10014
10015./configure --prefix=/usr
10016
10017make
10018
10019sudo su
10020make install
10021ldconfig
10022exit
10023
10024cd ..
10025rm -vfr nautilus-sendto-3.6.1
10026
10027<gnome-screensaver-3.6.1>
10028wget http://ftp.gnome.org/pub/gnome/sources/gnome-screensaver/3.6/gnome-screensaver-3.6.1.tar.xz
10029tar vxf gnome-screensaver-3.6.1.tar.xz
10030cd gnome-screensaver-3.6.1
10031
10032sed -i 's|etc/pam\.d"|etc"|' data/Makefile.in
10033
10034./configure --prefix=/usr \
10035 --sysconfdir=/etc \
10036 --libexecdir=/usr/lib/gnome-screensaver \
10037 --with-pam-prefix=/etc
10038
10039make
10040
10041sudo su
10042make install
10043
10044cat > /etc/pam.d/gnome-screensaver << "EOF"
10045# Begin /etc/pam.d/gnome-screensaver
10046
10047auth include system-auth
10048auth optional pam_gnome_keyring.so
10049
10050account include system-account
10051password include system-password
10052session include system-session
10053
10054# End /etc/pam.d/gnome-screensaver
10055EOF
10056chmod -v 644 /etc/pam.d/gnome-screensaver
10057ldconfig
10058exit
10059
10060cd ..
10061rm -vfr gnome-screensaver-3.6.1
10062
10063<upower-0.9.19>
10064wget http://upower.freedesktop.org/releases/upower-0.9.19.tar.xz
10065tar vxf upower-0.9.19.tar.xz
10066cd upower-0.9.19
10067
10068./configure --prefix=/usr \
10069 --sysconfdir=/etc \
10070 --localstatedir=/var \
10071 --libexecdir=/usr/lib/upower \
10072 --disable-static
10073
10074make
10075
10076sudo su
10077make install
10078ldconfig
10079exit
10080
10081cd ..
10082rm -vfr upower-0.9.19
10083
10084<gnome-power-manager-3.6.0>
10085wget http://ftp.gnome.org/pub/gnome/sources/gnome-power-manager/3.6/gnome-power-manager-3.6.0.tar.xz
10086tar vxf gnome-power-manager-3.6.0.tar.xz
10087cd gnome-power-manager-3.6.0
10088
10089./configure --prefix=/usr
10090
10091make
10092
10093sudo su
10094make install
10095ldconfig
10096exit
10097
10098cd ..
10099rm -vfr gnome-power-manager-3.6.0
10100
10101<fuse-2.9.2>
10102wget http://downloads.sourceforge.net/fuse/fuse-2.9.2.tar.gz
10103tar vxf fuse-2.9.2.tar.gz
10104cd fuse-2.9.2
10105
10106./configure --prefix=/usr --disable-static INIT_D_PATH=/tmp/init.d
10107
10108make
10109
10110sudo su
10111make install
10112
10113mv -v /usr/lib/libfuse.so.* /lib
10114ln -sfv ../../lib/libfuse.so.2.9.2 /usr/lib/libfuse.so
10115rm -rf /tmp/init.d
10116
10117install -v -m755 -d /usr/share/doc/fuse-2.9.2
10118install -v -m644 doc/{how-fuse-works,kernel.txt} \
10119 /usr/share/doc/fuse-2.9.2
10120
10121cat > /etc/fuse.conf << "EOF"
10122# Set the maximum number of FUSE mounts allowed to non-root users.
10123# The default is 1000.
10124#
10125#mount_max = 1000
10126
10127# Allow non-root users to specify the 'allow_other' or 'allow_root'
10128# mount options.
10129#
10130#user_allow_other
10131EOF
10132ldconfig
10133exit
10134
10135cd ..
10136rm -vfr fuse-2.9.2
10137
10138<bluez-5.0> - kernel config required to enable bluetooth
10139wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.29.tar.xz
10140wget http://ftp.lfs-matrix.net/pub/blfs/conglomeration/bluez/bluez-5.29-obexd_without_systemd-1.patch
10141tar vxf bluez-5.29.tar.xz
10142cd bluez-5.29
10143
10144patch -Np1 -i ../bluez-5.29-obexd_without_systemd-1.patch
10145
10146./configure --prefix=/usr \
10147 --sysconfdir=/etc \
10148 --localstatedir=/var \
10149 --libexecdir=/lib \
10150 --enable-tools \
10151 --disable-test \
10152 --disable-systemd \
10153 --with-dbusconfdir=/etc/dbus-1
10154
10155make
10156
10157sudo su
10158make install
10159
10160cd ../blfs-bootscripts-20130127
10161make install-bluetooth
10162ldconfig
10163exit
10164
10165cd ..
10166rm -vfr bluez-5.29
10167
10168<obexd-0.46>
10169wget http://www.kernel.org/pub/linux/bluetooth/obexd-0.46.tar.gz
10170tar vxf obexd-0.46.tar.gz
10171cd obexd-0.46
10172
10173./configure --prefix=/usr \
10174 --sysconfdir=/etc \
10175 --libexecdir=/usr/lib/obex \
10176 --enable-usb
10177
10178make
10179
10180sudo su
10181make install
10182ldconfig
10183exit
10184
10185cd ..
10186rm -vfr obexd-0.46
10187
10188<obexd-0.48>
10189wget http://www.kernel.org/pub/linux/bluetooth/obexd-0.48.tar.xz
10190tar vxf obexd-0.48.tar.xz
10191cd obexd-0.48
10192
10193./configure --prefix=/usr \
10194 --sysconfdir=/etc \
10195 --libexecdir=/usr/lib/obex
10196
10197make
10198
10199sudo su
10200make install
10201ldconfig
10202exit
10203
10204cd ..
10205rm -vfr obexd-0.48
10206
10207<openobex-1.5.0>
10208wget http://downloads.sourceforge.net/project/openobex/openobex/1.5/openobex-1.7-Source.zip
10209unzip openobex-1.7-Source.zip
10210cd openobex-1.7-Source
10211
10212./bootstrap
10213./configure --prefix=/usr \
10214 --disable-irda
10215
10216make
10217
10218sudo su
10219make install
10220ldconfig
10221exit
10222
10223cd ..
10224rm -vfr openobex-1.7-Source
10225
10226<ImageMagick-6.7.9-8>
10227wget http://anduin.linuxfromscratch.org/sources/BLFS/svn/i/ImageMagick-6.7.9-8.tar.xz
10228tar vxf ImageMagick-6.7.9-8.tar.xz
10229cd ImageMagick-6.7.9-8
10230
10231./configure --prefix=/usr \
10232 --sysconfdir=/etc \
10233 --with-modules \
10234 --with-perl \
10235 --without-magick-plus-plus
10236
10237make
10238
10239sudo su
10240make install
10241ldconfig
10242exit
10243
10244cd ..
10245rm -vfr ImageMagick-6.7.9-8
10246
10247<obex-data-server-0.4.6>
10248wget http://tadas.dailyda.com/software/obex-data-server-0.4.6.tar.gz
10249wget http://www.linuxfromscratch.org/patches/blfs/svn/obex-data-server-0.4.6-build-fixes-1.patch
10250tar vxf obex-data-server-0.4.6.tar.gz
10251cd obex-data-server-0.4.6
10252
10253patch -Np1 -i ../obex-data-server-0.4.6-build-fixes-1.patch
10254
10255./configure --prefix=/usr --sysconfdir=/etc --enable-system-config
10256
10257make
10258
10259sudo su
10260make install
10261ldconfig
10262exit
10263
10264cd ..
10265rm -vfr obex-data-server-0.4.6
10266
10267<obexftp-0.22>
10268wget http://sourceforge.net/projects/openobex/files/obexftp/0.22/obexftp-0.22.tar.bz2
10269tar vxf obexftp-0.22.tar.bz2
10270cd obexftp-0.22
10271
10272./configure --prefix=/usr
10273
10274make
10275
10276sudo su
10277make install
10278ldconfig
10279exit
10280
10281cd ..
10282rm -vfr obexftp-0.22
10283
10284<obexftp-0.23>
10285wget http://downloads.sourceforge.net/project/openobex/obexftp/0.23/obexftp-0.23.tar.bz2
10286tar vxf obexftp-0.23.tar.bz2
10287cd obexftp-0.23
10288
10289./configure --prefix=/usr \
10290 --disable-ruby
10291
10292make
10293
10294sudo su
10295make install
10296ldconfig
10297exit
10298
10299cd ..
10300rm -vfr obexftp-0.23
10301
10302<obexfs-0.12>
10303wget http://downloads.sourceforge.net/project/openobex/obexfs/0.12/obexfs-0.12.tar.gz
10304tar vxf obexfs-0.12.tar.gz
10305cd obexfs-0.12
10306
10307./configure --prefix=/usr
10308
10309make
10310
10311sudo su
10312make install
10313ldconfig
10314exit
10315
10316cd ..
10317rm -vfr obexfs-0.12
10318
10319<gnome-bluetooth-3.6.1>
10320wget http://ftp.gnome.org/pub/gnome/sources/gnome-bluetooth/3.6/gnome-bluetooth-3.6.1.tar.xz
10321tar vxf gnome-bluetooth-3.6.1.tar.xz
10322cd gnome-bluetooth-3.6.1
10323
10324./configure --prefix=/usr --sysconfdir=/etc
10325
10326make
10327
10328sudo su
10329make install
10330
10331cat > /lib/udev/rules.d/61-gnome-bluetooth.rules << "EOF"
10332# Get access to /dev/rfkill for users
10333# See https://bugzilla.redhat.com/show_bug.cgi?id=514798
10334#
10335# Updated for udev >= 154
10336# http://bugs.debian.org/582188
10337# https://bugzilla.redhat.com/show_bug.cgi?id=588660
10338
10339ENV{ACL_MANAGE}=="0", GOTO="gnome_bluetooth_end"
10340ACTION!="add|change", GOTO="gnome_bluetooth_end"
10341KERNEL=="rfkill", TAG+="udev-acl"
10342LABEL="gnome_bluetooth_end"
10343EOF
10344ldconfig
10345exit
10346
10347cd ..
10348rm -vfr gnome-bluetooth-3.6.1
10349
10350<libogg-1.3.0>
10351wget http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.xz
10352tar vxf libogg-1.3.0.tar.xz
10353cd libogg-1.3.0
10354
10355./configure --prefix=/usr
10356
10357make
10358
10359sudo su
10360make install
10361ldconfig
10362exit
10363
10364cd ..
10365rm -vfr libogg-1.3.0
10366
10367<xf86-input-wacom-0.19.0> - requires kernel configuration
10368wget http://downloads.sourceforge.net/linuxwacom/xf86-input-wacom-0.19.0.tar.bz2
10369tar vxf xf86-input-wacom-0.19.0.tar.bz2
10370cd xf86-input-wacom-0.19.0
10371
10372./configure $XORG_CONFIG
10373
10374make
10375
10376sudo su
10377make install
10378ldconfig
10379exit
10380
10381cd ..
10382rm -vfr xf86-input-wacom-0.19.0
10383
10384<ijs-0.35>
10385wget http://www.openprinting.org/download/ijs/download/ijs-0.35.tar.bz2
10386tar vxf ijs-0.35.tar.bz2
10387cd ijs-0.35
10388
10389./configure --prefix=/usr \
10390 --mandir=/usr/share/man \
10391 --enable-shared \
10392 --disable-static
10393
10394make
10395
10396sudo su
10397make install
10398ldconfig
10399exit
10400
10401cd ..
10402rm -vfr ijs-0.35
10403
10404<poppler-0.22.0>
10405wget http://poppler.freedesktop.org/poppler-0.22.0.tar.gz
10406wget http://poppler.freedesktop.org/poppler-data-0.4.5.tar.gz
10407tar vxf poppler-0.22.0.tar.gz
10408cd poppler-0.22.0
10409
10410./configure --prefix=/usr \
10411 --sysconfdir=/etc \
10412 --enable-zlib \
10413 --disable-static \
10414 --enable-xpdf-headers
10415
10416make
10417
10418sudo su
10419make install
10420install -v -m755 -d /usr/share/doc/poppler-0.22.0
10421install -v -m644 README* /usr/share/doc/poppler-0.22.0
10422
10423tar -xf ../poppler-data-0.4.5.tar.gz
10424cd poppler-data-0.4.5
10425
10426make prefix=/usr install
10427ldconfig
10428exit
10429
10430cd ..
10431rm -vfr poppler-0.22.0
10432
10433<qpdf-4.0.1>
10434wget http://downloads.sourceforge.net/qpdf/qpdf-4.0.1.tar.gz
10435tar vxf qpdf-4.0.1.tar.gz
10436cd qpdf-4.0.1
10437
10438./configure --prefix=/usr --disable-static
10439
10440make
10441
10442sudo su
10443make docdir=/usr/share/doc/qpdf-4.0.1 install
10444ldconfig
10445exit
10446
10447cd ..
10448rm -vfr qpdf-4.0.1
10449
10450<ghostscript-9.06>
10451wget http://downloads.ghostscript.com/public/ghostscript-9.06.tar.bz2
10452wget http://downloads.sourceforge.net/gs-fonts/ghostscript-fonts-std-8.11.tar.gz
10453wget http://downloads.sourceforge.net/gs-fonts/gnu-gs-fonts-other-6.0.tar.gz
10454tar vxf ghostscript-9.06.tar.bz2
10455cd ghostscript-9.06
10456
10457rm -rf expat freetype jpeg lcms2 libpng tiff
10458
10459rm -rf jasper lcms zlib
10460
10461./configure --prefix=/usr \
10462 --enable-dynamic \
10463 --with-system-libtiff LIBS=-lz \
10464 --with-install-cups
10465
10466make
10467make so
10468
10469sudo su
10470make install
10471
10472make soinstall
10473install -v -m644 base/*.h /usr/include/ghostscript
10474ln -v -s ghostscript /usr/include/ps
10475
10476tar -xvf ../ghostscript-fonts-std-8.11.tar.gz -C /usr/share/ghostscript --no-same-owner
10477tar -xvf ../gnu-gs-fonts-other-6.0.tar.gz -C /usr/share/ghostscript --no-same-owner
10478ldconfig
10479exit
10480
10481cd ..
10482rm -vfr ghostscript-9.06
10483
10484<xdg-utils-1.1.0-rc1>
10485wget http://portland.freedesktop.org/download/xdg-utils-1.1.0-rc1.tar.gz
10486tar vxf xdg-utils-1.1.0-rc1.tar.gz
10487cd xdg-utils-1.1.0-rc1
10488
10489./configure --prefix=/usr --mandir=/usr/share/man
10490
10491sudo su
10492make install
10493ldconfig
10494exit
10495
10496cd ..
10497rm -vfr xdg-utils-1.1.0-rc1
10498
10499<cups-1.6.1>
10500wget http://ftp.easysw.com/pub/cups/1.6.1/cups-1.6.1-source.tar.bz2
10501wget http://lfs-matrix.net/patches/blfs/svn/cups-1.6.1-upstream-fixes-2.patch
10502wget http://lfs-matrix.net/patches/blfs/svn/cups-1.6.1-blfs-1.patch
10503tar vxf cups-1.6.1-source.tar.bz2
10504cd cups-1.6.1
10505
10506sudo su
10507useradd -c "Print Service User" -d /var/spool/cups -g lp -s /bin/false -u 9 lp
10508
10509groupadd -g 19 lpadmin
10510
10511usermod -a -G lpadmin __a
10512exit
10513
10514patch -Np1 -i ../cups-1.6.1-upstream-fixes-2.patch
10515patch -Np1 -i ../cups-1.6.1-blfs-1.patch
10516
10517aclocal -I config-scripts
10518autoconf -I config-scripts
10519
10520./configure --libdir=/usr/lib \
10521 --with-rcdir=/tmp/cupsinit \
10522 --with-docdir=/usr/share/cups/doc \
10523 --with-system-groups=lpadmin
10524
10525make
10526
10527sudo su
10528make install
10529rm -rf /tmp/cupsinit
10530ln -sv ../cups/doc /usr/share/doc/cups-1.6.1
10531
10532echo "ServerName /var/run/cups/cups.sock" > /etc/cups/client.conf
10533
10534rm -rf /usr/share/cups/banners
10535rm -rf /usr/share/cups/data/testprint
10536
10537cat > /etc/pam.d/cups << "EOF"
10538# Begin /etc/pam.d/cups
10539
10540auth include system-auth
10541account include system-account
10542session include system-session
10543
10544# End /etc/pam.d/cups
10545EOF
10546chmod -v 644 /etc/pam.d/cups
10547
10548cd ../blfs-bootscripts-20130127
10549make install-cups
10550exit
10551
10552cd ..
10553rm -vfr cups-1.6.1
10554
10555<cups-filters-1.0.29>
10556wget http://www.openprinting.org/download/cups-filters/cups-filters-1.0.29.tar.xz
10557wget http://www.linuxfromscratch.org/patches/blfs/svn/cups-filters-1.0.29-poppler_fix-1.patch
10558tar vxf cups-filters-1.0.29.tar.xz
10559cd cups-filters-1.0.29
10560
10561patch -Np0 -i ../cups-filters-1.0.29-poppler_fix-1.patch
10562
10563./configure --prefix=/usr \
10564 --sysconfdir=/etc \
10565 --docdir=/usr/share/doc/cups-filters-1.0.29 \
10566 --without-rcdir \
10567 --with-gs-path=/usr/bin/gs \
10568 --with-pdftops-path=/usr/bin/gs \
10569 --disable-avahi \
10570 --disable-static
10571
10572make
10573
10574sudo su
10575make install
10576ldconfig
10577exit
10578
10579cd ..
10580rm -vfr cups-filters-1.0.29
10581
10582<gnome-settings-daemon-3.6.4>
10583wget http://ftp.gnome.org/pub/gnome/sources/gnome-settings-daemon/3.6/gnome-settings-daemon-3.6.4.tar.xz
10584tar vxf gnome-settings-daemon-3.6.4.tar.xz
10585cd gnome-settings-daemon-3.6.4
10586
10587./configure --prefix=/usr \
10588 --sysconfdir=/etc \
10589 --libexecdir=/usr/lib/gnome-settings-daemon \
10590 --disable-packagekit \
10591 --disable-static
10592
10593make
10594
10595sudo su
10596make install
10597ldconfig
10598exit
10599
10600cd ..
10601rm -vfr gnome-settings-daemon-3.6.4
10602
10603<libpwquality-1.2.0>
10604wget https://fedorahosted.org/releases/l/i/libpwquality/libpwquality-1.2.0.tar.bz2
10605tar vxf libpwquality-1.2.0.tar.bz2
10606cd libpwquality-1.2.0
10607
10608./configure --prefix=/usr \
10609 --sysconfdir=/etc \
10610 --with-securedir=/lib/security \
10611 --disable-python-bindings \
10612 --disable-static
10613
10614make
10615
10616sudo su
10617make install
10618ldconfig
10619exit
10620
10621cd ..
10622rm -vfr libpwquality-1.2.0
10623
10624<tcl8.5.13> - Downgrade for kerberos 5 support =(
10625wget http://sourceforge.net/projects/tcl/files/Tcl/8.5.13/tcl8.5.13-src.tar.gz
10626tar vxf tcl8.5.13-src.tar.gz
10627cd tcl8.5.13
10628
10629cd unix
10630./configure --prefix=/usr \
10631 --mandir=/usr/share/man \
10632 $([ $(uname -m) = x86_64 ] && echo --enable-64bit)
10633
10634make
10635
10636sed -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \
10637 -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \
10638 -i tclConfig.sh
10639
10640sudo su
10641make install
10642make install-private-headers
10643
10644ln -v -sf tclsh8.5 /usr/bin/tclsh
10645chmod -v 755 /usr/lib/libtcl8.5.so
10646ldconfig
10647exit
10648
10649cd ../..
10650rm -vfr tcl8.5.13
10651
10652<krb5-1.11>
10653wget http://web.mit.edu/kerberos/www/dist/krb5/1.11/krb5-1.11-signed.tar
10654tar vxf krb5-1.11-signed.tar
10655tar vxf krb5-1.11.tar.gz
10656cd krb5-1.11
10657
10658cd src
10659./configure CPPFLAGS="-I/usr/include/et -I/usr/include/ss" \
10660 --prefix=/usr \
10661 --localstatedir=/var/lib \
10662 --with-system-et \
10663 --with-system-ss \
10664 --enable-dns-for-realm
10665
10666make
10667
10668sudo su
10669make install
10670
10671for LIBRARY in gssapi_krb5 gssrpc k5crypto kadm5clnt_mit kadm5srv_mit \
10672 kdb5 krb5 krb5support verto ; do
10673 chmod -v 755 /usr/lib/lib$LIBRARY.so.*.*
10674done
10675
10676mv -v /usr/lib/libkrb5.so.3* /lib
10677mv -v /usr/lib/libk5crypto.so.3* /lib
10678mv -v /usr/lib/libkrb5support.so.0* /lib
10679
10680ln -v -sf ../../lib/libkrb5.so.3.3 /usr/lib/libkrb5.so
10681ln -v -sf ../../lib/libk5crypto.so.3.1 /usr/lib/libk5crypto.so
10682ln -v -sf ../../lib/libkrb5support.so.0.1 /usr/lib/libkrb5support.so
10683
10684mv -v /usr/bin/ksu /bin
10685chmod -v 755 /bin/ksu
10686
10687install -v -dm755 /usr/share/doc/krb5-1.11
10688cp -vfr ../doc/* /usr/share/doc/krb5-1.11
10689
10690unset LIBRARY
10691
10692cat > /etc/krb5.conf << "EOF"
10693# Begin /etc/krb5.conf
10694
10695[libdefaults]
10696 default_realm = __a
10697 encrypt = true
10698
10699[realms]
10700 __a = {
10701 kdc = __a
10702 admin_server = __a
10703 dict_file = /usr/share/dict/words
10704 }
10705
10706[domain_realm]
10707 .__a = __a
10708
10709[logging]
10710 kdc = SYSLOG[:INFO[:AUTH]]
10711 admin_server = SYSLOG[INFO[:AUTH]]
10712 default = SYSLOG[[:SYS]]
10713
10714# End /etc/krb5.conf
10715EOF
10716
10717kdb5_util create -r __a -s
10718
10719kadmin.local
10720
10721708133 > this bit didn't work!!!
10722bash: add_policy: command not found
10723add_policy dict-only
10724addprinc -policy dict-only __a
10725
10726addprinc -policy dict-only root
10727
10728addprinc -randkey host/__a
10729addprinc -randkey host/root
10730
10731ktadd host/__a
10732ktadd host/root
10733708133 > to here!!! not sure why yet.
10734
10735exit
10736ldconfig
10737
10738/usr/sbin/krb5kdc
10739
10740kinit __a < not working either. no realm =D hehe
10741
10742kinit root
10743
10744klist
10745
10746ktutil
10747rkt /etc/krb5.keytab
10748l
10749exit
10750exit
10751
10752cd ../..
10753rm -vfr krb5-1.11
10754
10755<libdvdread-4.2.0>
10756wget http://dvdnav.mplayerhq.hu/releases/libdvdread-4.2.0.tar.bz2
10757tar vxf libdvdread-4.2.0.tar.bz2
10758cd libdvdread-4.2.0
10759
10760./autogen.sh --prefix=/usr
10761
10762make
10763
10764sudo su
10765make install
10766ldconfig
10767exit
10768
10769cd ..
10770rm -vfr libdvdread-4.2.0
10771
10772<libdvdnav-4.2.0>
10773wget http://dvdnav.mplayerhq.hu/releases/libdvdnav-4.2.0.tar.bz2
10774tar vxf libdvdnav-4.2.0.tar.bz2
10775cd libdvdnav-4.2.0
10776
10777./autogen.sh --prefix=/usr
10778
10779make
10780
10781sudo su
10782make install
10783ldconfig
10784exit
10785
10786cd ..
10787rm -vfr libdvdnav-4.2.0
10788
10789<soundtouch-1.7.1>
10790wget http://www.surina.net/soundtouch/soundtouch-1.7.1.tar.gz
10791tar vxf soundtouch-1.7.1.tar.gz
10792cd soundtouch
10793
10794./bootstrap
10795
10796./configure --prefix=/usr
10797
10798make
10799
10800sudo su
10801make pkgdocdir=/usr/share/doc/soundtouch-1.7.1 install
10802ldconfig
10803exit
10804
10805cd ..
10806rm -vfr soundtouch
10807
10808<faac-1.28>
10809wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz
10810wget http://www.linuxfromscratch.org/patches/blfs/svn/faac-1.28-glibc_fixes-1.patch
10811tar vxf faac-1.28.tar.gz
10812cd faac-1.28
10813
10814patch -Np1 -i ../faac-1.28-glibc_fixes-1.patch
10815
10816sed -i -e '/obj-type/d' -e '/Long Term/d' frontend/main.c
10817
10818./configure --prefix=/usr
10819
10820make
10821
10822sudo su
10823make install
10824ldconfig
10825exit
10826
10827cd ..
10828rm -vfr faac-1.28
10829
10830<faad2-2.7>
10831wget http://downloads.sourceforge.net/faac/faad2-2.7.tar.gz
10832tar vxf faad2-2.7.tar.gz
10833cd faad2-2.7
10834
10835./configure --prefix=/usr
10836
10837make
10838
10839sudo su
10840make install
10841ldconfig
10842exit
10843
10844cd ..
10845rm -vfr faad2-2.7
10846
10847<libmpeg2-0.5.1>
10848wget http://libmpeg2.sourceforge.net/files/libmpeg2-0.5.1.tar.gz
10849tar vxf libmpeg2-0.5.1.tar.gz
10850cd libmpeg2-0.5.1
10851
10852sed -i 's/static const/static/' libmpeg2/idct_mmx.c
10853
10854./configure --prefix=/usr
10855
10856make
10857
10858sudo su
10859make install
10860ldconfig
10861exit
10862
10863cd ..
10864rm -vfr libmpeg2-0.5.1
10865
10866<mpg123-1.14.4>
10867wget http://downloads.sourceforge.net/mpg123/mpg123-1.14.4.tar.bz2
10868tar vxf mpg123-1.14.4.tar.bz2
10869cd mpg123-1.14.4
10870
10871./configure --prefix=/usr --disable-static
10872
10873make
10874
10875sudo su
10876make install
10877ldconfig
10878exit
10879
10880cd ..
10881rm -vfr mpg123-1.14.4
10882
10883<gst-plugins-bad-1.0.5>
10884wget http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.0.5.tar.xz
10885tar vxf gst-plugins-bad-1.0.5.tar.xz
10886cd gst-plugins-bad-1.0.5
10887
10888./configure --prefix=/usr \
10889 --with-package-name="GStreamer Bad Plugins 1.0.5" \
10890 --with-package-origin="__a"
10891
10892make
10893
10894sudo su
10895make install
10896ldconfig
10897exit
10898
10899cd ..
10900rm -vfr gst-plugins-bad-1.0.5
10901
10902<popt-1.16>
10903wget http://rpm5.org/files/popt/popt-1.16.tar.gz
10904tar vxf popt-1.16.tar.gz
10905cd popt-1.16
10906
10907./configure --prefix=/usr
10908
10909make
10910
10911sudo su
10912make install
10913ldconfig
10914exit
10915
10916cd ..
10917rm -vfr popt-1.16
10918
10919<libdv-1.0.0>
10920wget http://downloads.sourceforge.net/libdv/libdv-1.0.0.tar.gz
10921tar vxf libdv-1.0.0.tar.gz
10922cd libdv-1.0.0
10923
10924./configure --prefix=/usr \
10925 --disable-xv \
10926 --disable-static
10927
10928make
10929
10930sudo su
10931make install
10932ldconfig
10933exit
10934
10935cd ..
10936rm -vfr libdv-1.0.0
10937
10938<cmake-2.8.10.2>
10939wget http://www.cmake.org/files/v2.8/cmake-2.8.10.2.tar.gz
10940tar vxf cmake-2.8.10.2.tar.gz
10941cd cmake-2.8.10.2
10942
10943./bootstrap --prefix=/usr \
10944 --system-libs \
10945 --mandir=/share/man \
10946 --docdir=/share/doc/cmake-2.8.10.2
10947
10948make
10949
10950sudo su
10951make install
10952ldconfig
10953exit
10954
10955cd ..
10956rm -vfr cmake-2.8.10.2
10957
10958<taglib-1.8>
10959wget https://github.com/downloads/taglib/taglib/taglib-1.8.tar.gz
10960tar vxf taglib-1.8.tar.gz
10961cd taglib-1.8
10962
10963mkdir build
10964cd build
10965
10966cmake -DCMAKE_INSTALL_PREFIX=/usr \
10967 -DCMAKE_BUILD_TYPE=Release \
10968 ..
10969
10970make
10971
10972sudo su
10973make install
10974ldconfig
10975exit
10976
10977cd ../..
10978rm -vfr taglib-1.8
10979
10980<gst-plugins-good-1.0.5>
10981wget http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.0.5.tar.xz
10982tar vxf gst-plugins-good-1.0.5.tar.xz
10983cd gst-plugins-good-1.0.5
10984
10985./configure --prefix=/usr \
10986 --with-package-name="GStreamer Good Plugins 1.0.5" \
10987 --with-package-origin="__a"
10988
10989make
10990
10991sudo su
10992make install
10993ldconfig
10994exit
10995
10996cd ..
10997rm -vfr gst-plugins-good-1.0.5
10998
10999<gnome-control-center-3.6.3>
11000wget http://ftp.gnome.org/pub/gnome/sources/gnome-control-center/3.6/gnome-control-center-3.6.3.tar.xz
11001tar vxf gnome-control-center-3.6.3.tar.xz
11002cd gnome-control-center-3.6.3
11003
11004./configure --prefix=/usr \
11005 --sysconfdir=/etc \
11006 --disable-static
11007
11008make
11009
11010sudo su
11011make install
11012ldconfig
11013exit
11014
11015cd ..
11016rm -vfr gnome-control-center-3.6.3
11017
11018<gnome-terminal-3.6.1>
11019wget http://ftp.gnome.org/pub/gnome/sources/gnome-terminal/3.6/gnome-terminal-3.6.1.tar.xz
11020tar vxf gnome-terminal-3.6.1.tar.xz
11021cd gnome-terminal-3.6.1
11022
11023./configure --prefix=/usr --sysconfdir=/etc
11024
11025make
11026
11027sudo su
11028make install
11029ldconfig
11030exit
11031
11032cd ..
11033rm -vfr gnome-terminal-3.6.1
11034
11035<zenity-3.6.0>
11036wget http://ftp.gnome.org/pub/gnome/sources/zenity/3.6/zenity-3.6.0.tar.xz
11037tar vxf zenity-3.6.0.tar.xz
11038cd zenity-3.6.0
11039
11040./configure --prefix=/usr
11041
11042make
11043
11044sudo su
11045make install
11046ldconfig
11047exit
11048
11049cd ..
11050rm -vfr zenity-3.6.0
11051
11052<metacity-2.34.13>
11053wget http://ftp.gnome.org/pub/gnome/sources/metacity/2.34/metacity-2.34.13.tar.xz
11054tar vxf metacity-2.34.13.tar.xz
11055cd metacity-2.34.13
11056
11057./configure --prefix=/usr --disable-static
11058
11059make
11060
11061sudo su
11062make install
11063ldconfig
11064exit
11065
11066cd ..
11067rm -vfr metacity-2.34.13
11068
11069<network-manager-applet-0.9.6.4>
11070wget http://ftp.gnome.org/pub/gnome/sources/network-manager-applet/0.9/network-manager-applet-0.9.6.4.tar.xz
11071tar vxf network-manager-applet-0.9.6.4.tar.xz
11072cd network-manager-applet-0.9.6.4
11073
11074./configure --prefix=/usr \
11075 --sysconfdir=/etc \
11076 --libexecdir=/usr/lib/NetworkManager \
11077 --disable-migration \
11078 --disable-static
11079
11080make
11081
11082sudo su
11083make install
11084ldconfig
11085exit
11086
11087cd ..
11088rm -vfr network-manager-applet-0.9.6.4
11089
11090<pygobject-3.4.2>
11091wget http://ftp.gnome.org/pub/gnome/sources/pygobject/3.4/pygobject-3.4.2.tar.xz
11092tar vxf pygobject-3.4.2.tar.xz
11093cd pygobject-3.4.2
11094
11095./configure --prefix=/usr
11096
11097make
11098
11099sudo su
11100make install
11101ldconfig
11102exit
11103
11104cd ..
11105rm -vfr pygobject-3.4.2
11106
11107<caribou-0.4.4.2>
11108wget http://ftp.gnome.org/pub/gnome/sources/caribou/0.4/caribou-0.4.4.2.tar.xz
11109tar vxf caribou-0.4.4.2.tar.xz
11110cd caribou-0.4.4.2
11111
11112./configure --prefix=/usr \
11113 --sysconfdir=/etc \
11114 --libexecdir=/usr/lib/caribou \
11115 --disable-gtk2-module \
11116 --disable-static
11117
11118make
11119
11120sudo su
11121make install
11122ldconfig
11123exit
11124
11125cd ..
11126rm -vfr caribou-0.4.4.2
11127
11128<mutter-3.6.2>
11129wget http://ftp.gnome.org/pub/gnome/sources/mutter/3.6/mutter-3.6.2.tar.xz
11130tar vxf mutter-3.6.2.tar.xz
11131cd mutter-3.6.2
11132
11133./configure --prefix=/usr --disable-static
11134
11135make
11136
11137sudo su
11138make install
11139ldconfig
11140exit
11141
11142cd ..
11143rm -vfr mutter-3.6.2
11144
11145<telepathy-mission-control-5.14.0>
11146wget http://telepathy.freedesktop.org/releases/telepathy-mission-control/telepathy-mission-control-5.14.0.tar.gz
11147tar vxf telepathy-mission-control-5.14.0.tar.gz
11148cd telepathy-mission-control-5.14.0
11149
11150./configure --prefix=/usr \
11151 --libexecdir=/usr/lib/telepathy \
11152 --enable-gnome-keyring \
11153 --disable-static
11154
11155make
11156
11157sudo su
11158make install
11159ldconfig
11160exit
11161
11162cd ..
11163rm -vfr telepathy-mission-control-5.14.0
11164
11165<telepathy-logger-0.6.0>
11166wget http://telepathy.freedesktop.org/releases/telepathy-logger/telepathy-logger-0.6.0.tar.bz2
11167tar vxf telepathy-logger-0.6.0.tar.bz2
11168cd telepathy-logger-0.6.0
11169
11170./configure --prefix=/usr \
11171 --libexecdir=/usr/lib/telepathy \
11172 --disable-static
11173
11174make
11175
11176sudo su
11177make install
11178ldconfig
11179exit
11180
11181cd ..
11182rm -vfr telepathy-logger-0.6.0
11183
11184<gnome-shell-3.6.2>
11185wget http://ftp.gnome.org/pub/gnome/sources/gnome-shell/3.6/gnome-shell-3.6.2.tar.xz
11186tar vxf gnome-shell-3.6.2.tar.xz
11187cd gnome-shell-3.6.2
11188
11189./configure --prefix=/usr \
11190 --sysconfdir=/etc \
11191 --libexecdir=/usr/lib/gnome-shell
11192
11193make
11194
11195sudo su
11196make install
11197ldconfig
11198exit
11199
11200cd ..
11201rm -vfr gnome-shell-3.6.2
11202
11203<gnome-session-3.6.2>
11204wget http://ftp.gnome.org/pub/gnome/sources/gnome-session/3.6/gnome-session-3.6.2.tar.xz
11205tar vxf gnome-session-3.6.2.tar.xz
11206cd gnome-session-3.6.2
11207
11208./configure --prefix=/usr --libexecdir=/usr/lib/gnome-session
11209
11210make
11211
11212sudo su
11213make install
11214ldconfig
11215exit
11216
11217cat > ~/.xinitrc << "EOF"
11218exec ck-launch-session dbus-launch --exit-with-session gnome-session
11219EOF
11220
11221cat >> ~/.bashrc << "EOF"
11222# Start the D-Bus session daemon
11223eval `dbus-launch`
11224export DBUS_SESSION_BUS_ADDRESS
11225EOF
11226
11227cat >> ~/.bash_logout << "EOF"
11228# Kill the D-Bus session daemon
11229kill $DBUS_SESSION_BUS_PID
11230EOF
11231
11232sudo su
11233cat > /root/.xinitrc << "EOF"
11234exec ck-launch-session dbus-launch --exit-with-session gnome-session
11235EOF
11236
11237cat >> ~/.bashrc << "EOF"
11238# Start the D-Bus session daemon
11239eval `dbus-launch`
11240export DBUS_SESSION_BUS_ADDRESS
11241EOF
11242
11243cat >> ~/.bash_logout << "EOF"
11244# Kill the D-Bus session daemon
11245kill $DBUS_SESSION_BUS_PID
11246EOF
11247exit
11248
11249cd ..
11250rm -vfr gnome-session-3.6.2
11251
11252<gnome-user-docs-3.6.2>
11253wget http://ftp.gnome.org/pub/gnome/sources/gnome-user-docs/3.6/gnome-user-docs-3.6.2.tar.xz
11254tar vxf gnome-user-docs-3.6.2.tar.xz
11255cd gnome-user-docs-3.6.2
11256
11257./configure --prefix=/usr
11258
11259make
11260
11261sudo su
11262make install
11263ldconfig
11264exit
11265
11266cd ..
11267rm -vfr gnome-user-docs-3.6.2
11268
11269<yelp-3.6.2>
11270wget http://ftp.gnome.org/pub/gnome/sources/yelp/3.6/yelp-3.6.2.tar.xz
11271tar vxf yelp-3.6.2.tar.xz
11272cd yelp-3.6.2
11273
11274./configure --prefix=/usr --disable-static
11275
11276make
11277
11278sudo su
11279make install
11280ldconfig
11281exit
11282
11283cd ..
11284rm -vfr yelp-3.6.2
11285
11286<gdm-3.6.2>
11287wget http://ftp.gnome.org/pub/gnome/sources/gdm/3.6/gdm-3.6.2.tar.xz
11288tar vxf gdm-3.6.2.tar.xz
11289cd gdm-3.6.2
11290
11291sudo su
11292groupadd -g 21 gdm
11293
11294useradd -c "GDM Daemon Owner" -d /var/lib/gdm -u 21 \
11295 -g gdm -s /bin/false gdm
11296
11297usermod -a -G audio gdm
11298usermod -a -G video gdm
11299exit
11300
11301./configure --prefix=/usr \
11302 --sysconfdir=/etc \
11303 --localstatedir=/var \
11304 --libexecdir=/usr/lib/gdm \
11305 --with-initial-vt=7 \
11306 --with-at-spi-registryd-directory=/usr/lib/at-spi2-core \
11307 --with-authentication-agent-directory=/usr/lib/polkit-gnome \
11308 --with-check-accelerated-directory=/usr/lib/gnome-session \
11309 --with-consolekit-directory=/usr/lib/ConsoleKit \
11310 --disable-static \
11311 --with-default-pam-config=lfs
11312
11313make
11314
11315sudo su
11316make install
11317
11318chown -R -v gdm:gdm /var/lib/gdm /var/cache/gdm /var/log/gdm
11319
11320cd ../blfs-bootscripts-20130127
11321make install-gdm
11322
11323cat > /etc/gdm/custom.conf << "EOF"
11324# GDM configuration storage
11325
11326[daemon]
11327
11328AutomaticLoginEnable=False
11329AutomaticLogin=__a
11330
11331[security]
11332
11333[xdmcp]
11334
11335[greeter]
11336
11337[chooser]
11338
11339[debug]
11340EOF
11341
11342sed -i 's/id:3:initdefault:/id:5:initdefault:/' /etc/inittab
11343ldconfig
11344exit
11345
11346cd ..
11347rm -vfr gdm-3.6.2
11348
11349##### STAGE 3 GNOME3 - TROUBLESHOOTING #####
11350
11351Great work back there!! I typed that lot in one sitting whilst compiling it =\
11352Good for us we can copy and paste from the dox to the SSH shell =)
11353Anyways...
11354
11355Exit any shells you got open and simply reboot the computer and away we go =)
11356If X works ok you simply Login in as __a and type startx to enjoy your new desktop.
11357
11358Hmmmm. It appear I have some issues on my system that you may have on your system =(
11359The list of things not working are as follows:
11360
11361 Wifi is not working although the kernel driver is loaded =\
11362 **turns out firmware is needed in /lib/firmware =)
11363
11364 My webcam is detected but no /dev/video has been make =\
11365 **kernel config issues - is v4l2 compilled??
11366
11367 gmenu is segfaulting, possible qt causing issues =\
11368 **still not got a handle on this one =( everything appears to be built correctly
11369
11370 bluetooth sort of works but cannot browse files!!
11371 ***OBEXFTP refuses to install, not worked out missing depend yet.
11372
11373 Nautilus has segfaulted whilst browsing filea!!
11374
11375Considering what we've just been through this list is not too bad
11376methinks. The only other gripe is the network is now dhcp so i have to
11377mess about a little bit to get the IP of my box as it's currently NATted
11378via my laptop as wifi is not working.
11379
11380So lets get to work and resolve these issues.
11381
11382##### STAGE 3 GNOME3 - COMPLETE #####
11383
11384...Now all we need are some things to go in it =)
11385
11386##### STAGE 4 GNOME APPLICATIONS #####
11387
11388Bells and Whistles Please
11389
11390** when apps are installed have a look in appications for new icons =)
11391
11392<gnome-system-monitor-3.6.1> - NEW ICON - SYSTEM MONITOR
11393wget http://ftp.gnome.org/pub/gnome/sources/gnome-system-monitor/3.6/gnome-system-monitor-3.6.1.tar.xz
11394tar vxf gnome-system-monitor-3.6.1.tar.xz
11395cd gnome-system-monitor-3.6.1
11396
11397./configure --prefix=/usr
11398
11399make
11400
11401sudo su
11402make install
11403ldconfig
11404exit
11405
11406cd ..
11407rm -vfr gnome-system-monitor-3.6.1
11408
11409<aisleriot-3.6.2> - NEW ICON - AISLERIOT SOLITAIRE
11410wget http://ftp.gnome.org/pub/gnome/sources/aisleriot/3.6/aisleriot-3.6.2.tar.xz
11411tar vxf aisleriot-3.6.2.tar.xz
11412cd aisleriot-3.6.2
11413
11414./configure --prefix=/usr \
11415 --sysconfdir=/etc \
11416 --libexecdir=/usr/lib \
11417 --with-clutter \
11418 --enable-sound
11419
11420make
11421
11422sudo su
11423make install
11424ldconfig
11425exit
11426
11427cd ..
11428rm -vfr aisleriot-3.6.2
11429
11430<alacarte-3.6.1> - NEW ICON - MAIN MENU
11431wget http://ftp.gnome.org/pub/gnome/sources/alacarte/3.6/alacarte-3.6.1.tar.xz
11432tar vxf alacarte-3.6.1.tar.xz
11433cd alacarte-3.6.1
11434
11435./configure --prefix=/usr
11436
11437make
11438
11439sudo su
11440make install
11441ldconfig
11442exit
11443
11444cd ..
11445rm -vfr alacarte-3.6.1
11446
11447<baobab-3.6.4> - NEW ICON - DISK USAGE ANALYSER
11448wget http://ftp.gnome.org/pub/gnome/sources/baobab/3.6/baobab-3.6.4.tar.xz
11449tar vxf baobab-3.6.4.tar.xz
11450cd baobab-3.6.4
11451
11452./configure --prefix=/usr
11453
11454make
11455
11456sudo su
11457make install
11458ldconfig
11459exit
11460
11461cd ..
11462rm -vfr baobab-3.6.4
11463
11464***Brasero-3.6.1 INSTALLS
11465<libburn-1.2.6>
11466wget http://files.libburnia-project.org/releases/libburn-1.2.6.tar.gz
11467tar vxf libburn-1.2.6.tar.gz
11468cd libburn-1.2.6
11469
11470./configure --prefix=/usr --disable-static
11471
11472make
11473
11474sudo su
11475make install
11476ldconfig
11477exit
11478
11479cd ..
11480rm -vfr libburn-1.2.6
11481
11482<libisofs-1.2.6>
11483wget http://files.libburnia-project.org/releases/libisofs-1.2.6.tar.gz
11484tar vxf libisofs-1.2.6.tar.gz
11485cd libisofs-1.2.6
11486
11487./configure --prefix=/usr --disable-static
11488
11489make
11490
11491sudo su
11492make install
11493ldconfig
11494exit
11495
11496cd ..
11497rm -vfr libisofs-1.2.6
11498
11499<dvd+rw-tools-7.1>
11500wget http://fy.chalmers.se/~appro/linux/DVD+RW/tools/dvd+rw-tools-7.1.tar.gz
11501tar vxf dvd+rw-tools-7.1.tar.gz
11502cd dvd+rw-tools-7.1
11503
11504sed -i '/stdlib/a #include <limits.h>' transport.hxx
11505sed -i 's#mkisofs"#xorrisofs"#' growisofs.c
11506sed -i 's#mkisofs#xorrisofs#;s#MKISOFS#XORRISOFS#' growisofs.1
11507
11508make all rpl8 btcflash
11509
11510sudo su
11511make prefix=/usr install
11512ldconfig
11513exit
11514
11515cd ..
11516rm -vfr dvd+rw-tools-7.1
11517
11518<libao-1.1.0>
11519wget http://downloads.xiph.org/releases/ao/libao-1.1.0.tar.gz
11520tar vxf libao-1.1.0.tar.gz
11521cd libao-1.1.0
11522
11523./configure --prefix=/usr
11524
11525make
11526
11527sudo su
11528make install
11529install -v -m644 README /usr/share/doc/libao-1.1.0
11530ldconfig
11531exit
11532
11533cd ..
11534rm -vfr libao-1.1.0
11535
11536<libmad-0.15.1b>
11537wget http://downloads.sourceforge.net/mad/libmad-0.15.1b.tar.gz
11538tar vxf libmad-0.15.1b.tar.gz
11539cd libmad-0.15.1b
11540
11541sed -i '/-fforce-mem/d' configure
11542
11543./configure --prefix=/usr
11544
11545make
11546
11547sudo su
11548make install
11549
11550cat > /usr/lib/pkgconfig/mad.pc << "EOF"
11551prefix=/usr
11552exec_prefix=${prefix}
11553libdir=${exec_prefix}/lib
11554includedir=${prefix}/include
11555
11556Name: mad
11557Description: MPEG audio decoder
11558Requires:
11559Version: 0.15.1b
11560Libs: -L${libdir} -lmad
11561Cflags: -I${includedir}
11562EOF
11563
11564ldconfig
11565exit
11566
11567cd ..
11568rm -vfr libmad-0.15.1b
11569
11570<cdrdao-1.2.3>
11571wget http://downloads.sourceforge.net/cdrdao/cdrdao-1.2.3.tar.bz2
11572tar vxf cdrdao-1.2.3.tar.bz2
11573cd cdrdao-1.2.3
11574
11575sed -i '/ioctl/a #include <sys/stat.h>' dao/ScsiIf-linux.cc
11576
11577./configure --prefix=/usr --mandir=/usr/share/man
11578
11579make
11580
11581sudo su
11582make install
11583
11584install -v -m755 -d /usr/share/doc/cdrdao-1.2.3
11585install -v -m644 README /usr/share/doc/cdrdao-1.2.3
11586
11587ldconfig
11588exit
11589
11590cd ..
11591rm -vfr cdrdao-1.2.3
11592
11593<cdrtools-3.01a11>
11594wget ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-3.01a11.tar.bz2
11595tar vxf cdrtools-3.01a11.tar.bz2
11596cd cdrtools-3.01
11597
11598make
11599
11600sudo su
11601make install
11602ldconfig
11603exit
11604
11605cd ..
11606rm -vfr cdrtools-3.01
11607
11608<brasero-3.6.1> - NEW ICON - BRASERO
11609wget http://ftp.gnome.org/pub/gnome/sources/brasero/3.6/brasero-3.6.1.tar.xz
11610tar vxf brasero-3.6.1.tar.xz
11611cd brasero-3.6.1
11612
11613./configure --prefix=/usr
11614
11615make
11616
11617sudo su
11618make install
11619ldconfig
11620exit
11621
11622cd ..
11623rm -vfr brasero-3.6.1
11624
11625<cheese-3.6.2> - NEW ICON - CHEESE
11626wget http://ftp.gnome.org/pub/gnome/sources/cheese/3.6/cheese-3.6.2.tar.xz
11627tar vxf cheese-3.6.2.tar.xz
11628cd cheese-3.6.2
11629
11630./configure --prefix=/usr
11631
11632make
11633
11634sudo su
11635make install
11636ldconfig
11637exit
11638
11639cd ..
11640rm -vfr cheese-3.6.2
11641
11642***Empathy Install
11643<libnice-0.1.3>
11644wget http://nice.freedesktop.org/releases/libnice-0.1.3.tar.gz
11645tar vxf libnice-0.1.3.tar.gz
11646cd libnice-0.1.3
11647
11648./configure --prefix=/usr \
11649 --disable-static \
11650 --without-gstreamer-0.10
11651
11652make
11653
11654sudo su
11655make install
11656ldconfig
11657exit
11658
11659cd ..
11660rm -vfr libnice-0.1.3
11661
11662<farstream-0.2.2>
11663wget http://freedesktop.org/software/farstream/releases/farstream/farstream-0.2.2.tar.gz
11664tar vxf farstream-0.2.2.tar.gz
11665cd farstream-0.2.2
11666
11667./configure --prefix=/usr
11668
11669make
11670
11671sudo su
11672make install
11673ldconfig
11674exit
11675
11676cd ..
11677rm -vfr farstream-0.2.2
11678
11679<telepathy-farstream-0.6.0>
11680wget http://telepathy.freedesktop.org/releases/telepathy-farstream/telepathy-farstream-0.6.0.tar.gz
11681tar vxf telepathy-farstream-0.6.0.tar.gz
11682cd telepathy-farstream-0.6.0
11683
11684./configure --prefix=/usr --disable-static
11685
11686make
11687
11688sudo su
11689make install
11690ldconfig
11691exit
11692
11693cd ..
11694rm -vfr telepathy-farstream-0.6.0
11695
11696<empathy-3.6.3> - NEW ICON - EMPATHY
11697wget http://ftp.gnome.org/pub/gnome/sources/empathy/3.6/empathy-3.6.3.tar.xz
11698tar vxf empathy-3.6.3.tar.xz
11699cd empathy-3.6.3
11700
11701./configure --prefix=/usr \
11702 --libexecdir=/usr/lib/empathy \
11703 --disable-static
11704
11705make
11706
11707sudo su
11708make install
11709ldconfig
11710exit
11711
11712cd ..
11713rm -vfr empathy-3.6.3
11714
11715<eog-3.6.2> - NEW ICON - IMAGE VIEWER
11716wget http://ftp.gnome.org/pub/gnome/sources/eog/3.6/eog-3.6.2.tar.xz
11717tar vxf eog-3.6.2.tar.xz
11718cd eog-3.6.2
11719
11720./configure --prefix=/usr
11721
11722make
11723
11724sudo su
11725make install
11726ldconfig
11727exit
11728
11729cd ..
11730rm -vfr eog-3.6.2
11731
11732<evince-3.6.1>
11733wget http://ftp.gnome.org/pub/gnome/sources/evince/3.6/evince-3.6.1.tar.xz
11734tar vxf evince-3.6.1.tar.xz
11735cd evince-3.6.1
11736
11737./configure --prefix=/usr \
11738 --libexecdir=/usr/lib/evince \
11739 --enable-introspection \
11740 --disable-static
11741
11742make
11743
11744sudo su
11745make install
11746ldconfig
11747exit
11748
11749cd ..
11750rm -vfr evince-3.6.1
11751
11752<evolution-3.6.2> - NEW ICON - EVOLUTION
11753wget http://ftp.gnome.org/pub/gnome/sources/evolution/3.6/evolution-3.6.2.tar.xz
11754tar vxf evolution-3.6.2.tar.xz
11755cd evolution-3.6.2
11756
11757./configure --prefix=/usr \
11758 --sysconfdir=/etc \
11759 --libexecdir=/usr/lib \
11760 --disable-pst-import \
11761 --with-krb5=/usr
11762
11763make
11764
11765sudo su
11766make install
11767ldconfig
11768exit
11769
11770cd ..
11771rm -vfr evolution-3.6.2
11772
11773***File Roller Install
11774<unrarsrc-4.2.4>
11775wget http://www.rarlab.com/rar/unrarsrc-4.2.4.tar.gz
11776tar vxf unrarsrc-4.2.4.tar.gz
11777cd unrar
11778
11779make -f makefile.unix
11780
11781sudo su
11782install -v -m755 unrar /usr/bin
11783ldconfig
11784exit
11785
11786cd ..
11787rm -vfr unrar
11788
11789<file-roller-3.6.3> - NEW ICON - ARCHIVE MANAGER
11790wget http://ftp.gnome.org/pub/gnome/sources/file-roller/3.6/file-roller-3.6.3.tar.xz
11791tar vxf file-roller-3.6.3.tar.xz
11792cd file-roller-3.6.3
11793
11794./configure --prefix=/usr \
11795 --libexecdir=/usr/lib \
11796 --disable-packagekit \
11797 --disable-static
11798
11799make
11800
11801sudo su
11802make install
11803ldconfig
11804exit
11805
11806cd ..
11807rm -vfr file-roller-3.6.3
11808
11809<gcalctool-6.6.2> - NEW ICON - CALCULATOR
11810wget http://ftp.gnome.org/pub/gnome/sources/gcalctool/6.6/gcalctool-6.6.2.tar.xz
11811tar vxf gcalctool-6.6.2.tar.xz
11812cd gcalctool-6.6.2
11813
11814./configure --prefix=/usr
11815
11816make
11817
11818sudo su
11819make install
11820ldconfig
11821exit
11822
11823cd ..
11824rm -vfr gcalctool-6.6.2
11825
11826<gedit-3.6.2> - NEW ICON - GEDIT
11827wget http://ftp.gnome.org/pub/gnome/sources/gedit/3.6/gedit-3.6.2.tar.xz
11828tar vxf gedit-3.6.2.tar.xz
11829cd gedit-3.6.2
11830
11831./configure --prefix=/usr --libexecdir=/usr/lib
11832
11833make
11834
11835sudo su
11836make install
11837ldconfig
11838exit
11839
11840cd ..
11841rm -vfr gedit-3.6.2
11842
11843***gnome-color-manager install
11844<exiv2-0.23>
11845wget http://www.exiv2.org/exiv2-0.23.tar.gz
11846tar vxf exiv2-0.23.tar.gz
11847cd exiv2-0.23
11848
11849./configure --prefix=/usr --disable-static
11850
11851make
11852
11853sudo su
11854make install
11855ldconfig
11856exit
11857
11858cd ..
11859rm -vfr exiv2-0.23
11860
11861<gnome-color-manager-3.6.1> - added color calibration wizard
11862wget http://ftp.gnome.org/pub/gnome/sources/gnome-color-manager/3.6/gnome-color-manager-3.6.1.tar.xz
11863tar vxf gnome-color-manager-3.6.1.tar.xz
11864cd gnome-color-manager-3.6.1
11865
11866./configure --prefix=/usr \
11867 --libexecdir=/usr/lib/gnome-color-manager \
11868 --disable-packagekit
11869
11870make
11871
11872sudo su
11873make install
11874ldconfig
11875exit
11876
11877cd ..
11878rm -vfr gnome-color-manager-3.6.1
11879
11880<gnome-contacts-3.6.2> - NEW ICON - CONTACTS
11881wget http://ftp.gnome.org/pub/gnome/sources/gnome-contacts/3.6/gnome-contacts-3.6.2.tar.xz
11882tar vxf gnome-contacts-3.6.2.tar.xz
11883cd gnome-contacts-3.6.2
11884
11885./configure --prefix=/usr --libexecdir=/usr/lib/gnome-contacts
11886
11887make
11888
11889sudo su
11890make install
11891ldconfig
11892exit
11893
11894cd ..
11895rm -vfr gnome-contacts-3.6.2
11896
11897<gnome-dictionary-3.6.0> - NEW ICON - DICTIONARY
11898wget http://ftp.gnome.org/pub/gnome/sources/gnome-dictionary/3.6/gnome-dictionary-3.6.0.tar.xz
11899tar vxf gnome-dictionary-3.6.0.tar.xz
11900cd gnome-dictionary-3.6.0
11901
11902./configure --prefix=/usr --enable-ipv6=no
11903
11904make
11905
11906sudo su
11907make install
11908ldconfig
11909exit
11910
11911cd ..
11912rm -vfr gnome-dictionary-3.6.0
11913
11914<gnome-disk-utility-3.6.1> - NEW ICON - DISKS
11915wget http://ftp.gnome.org/pub/gnome/sources/gnome-disk-utility/3.6/gnome-disk-utility-3.6.1.tar.xz
11916tar vxf gnome-disk-utility-3.6.1.tar.xz
11917cd gnome-disk-utility-3.6.1
11918
11919./configure --prefix=/usr
11920
11921make
11922
11923sudo su
11924make install
11925ldconfig
11926exit
11927
11928cd ..
11929rm -vfr gnome-disk-utility-3.6.1
11930
11931<gnome-games-3.6.1> - NEW ICONS - GAMES CATEGORY
11932wget http://ftp.gnome.org/pub/gnome/sources/gnome-games/3.6/gnome-games-3.6.1.tar.xz
11933tar vxf gnome-games-3.6.1.tar.xz
11934cd gnome-games-3.6.1
11935
11936sudo su
11937install -v -m755 -d /var/games
11938groupadd -g 60 games
11939
11940useradd -c "Games High Score Owner" -d /var/games \
11941 -g games -s /bin/false -u 60 games
11942
11943chown -v games:games /var/games
11944exit
11945
11946./configure --prefix=/usr --localstatedir=/var
11947
11948make
11949
11950sudo su
11951make install
11952ldconfig
11953exit
11954
11955cd ..
11956rm -vfr gnome-games-3.6.1
11957
11958***gnome-nettools install
11959<bind-9.9.2> - utils only
11960wget http://anduin.linuxfromscratch.org/sources/BLFS/svn/b/bind-9.9.2.tar.gz
11961tar vxf bind-9.9.2.tar.gz
11962cd bind-9.9.2
11963
11964./configure --prefix=/usr
11965
11966make -C lib/dns
11967make -C lib/isc
11968make -C lib/bind9
11969make -C lib/isccfg
11970make -C lib/lwres
11971make -C bin/dig
11972
11973sudo su
11974make -C bin/dig install
11975ldconfig
11976exit
11977
11978cd ..
11979rm -vfr bind-9.9.2
11980
11981<net-tools-CVS_20101030>
11982wget http://anduin.linuxfromscratch.org/sources/BLFS/svn/n/net-tools-CVS_20101030.tar.gz
11983tar vxf net-tools-CVS_20101030.tar.gz
11984cd net-tools-CVS_20101030
11985
11986sed -i -e '/Token/s/y$/n/' config.in
11987sed -i -e '/HAVE_HWSTRIP/s/y$/n/' config.in
11988yes "" | make config
11989
11990make
11991
11992sudo su
11993make update
11994ldconfig
11995exit
11996
11997cd ..
11998rm -vfr net-tools-CVS_20101030
11999
12000<whois_5.0.20>
12001wget http://ftp.debian.org/debian/pool/main/w/whois/whois_5.0.20.tar.xz
12002tar vxf whois_5.0.20.tar.xz
12003cd whois-5.0.20
12004
12005make
12006
12007sudo su
12008make prefix=/usr install-whois
12009make prefix=/usr install-mkpasswd
12010make prefix=/usr install-pos
12011ldconfig
12012exit
12013
12014cd ..
12015rm -vfr whois-5.0.20
12016
12017<traceroute-2.0.18>
12018wget http://downloads.sourceforge.net/traceroute/traceroute-2.0.18.tar.gz
12019tar vxf traceroute-2.0.18.tar.gz
12020cd traceroute-2.0.18
12021
12022make
12023
12024sudo su
12025make prefix=/usr install
12026ldconfig
12027exit
12028
12029cd ..
12030rm -vfr traceroute-2.0.18
12031
12032<gnome-nettool-3.2.0> - NEW ICON - NETWORK TOOLS
12033wget http://ftp.gnome.org/pub/gnome/sources/gnome-nettool/3.2/gnome-nettool-3.2.0.tar.xz
12034tar vxf gnome-nettool-3.2.0.tar.xz
12035cd gnome-nettool-3.2.0
12036
12037./configure --prefix=/usr
12038
12039make
12040
12041sudo su
12042make install
12043ldconfig
12044exit
12045
12046cd ..
12047rm -vfr gnome-nettool-3.2.0
12048
12049<gnome-screenshot-3.6.1> - NEW ICON - SCREENSHOT
12050wget http://ftp.gnome.org/pub/gnome/sources/gnome-screenshot/3.6/gnome-screenshot-3.6.1.tar.xz
12051tar vxf gnome-screenshot-3.6.1.tar.xz
12052cd gnome-screenshot-3.6.1
12053
12054./configure --prefix=/usr
12055
12056make
12057
12058sudo su
12059make install
12060ldconfig
12061exit
12062
12063cd ..
12064rm -vfr gnome-screenshot-3.6.1
12065
12066<gnome-search-tool-3.6.0> - NEW ICON - SEARCH FOR FILES
12067wget http://ftp.gnome.org/pub/gnome/sources/gnome-search-tool/3.6/gnome-search-tool-3.6.0.tar.xz
12068tar vxf gnome-search-tool-3.6.0.tar.xz
12069cd gnome-search-tool-3.6.0
12070
12071./configure --prefix=/usr
12072
12073make
12074
12075sudo su
12076make install
12077ldconfig
12078exit
12079
12080cd ..
12081rm -vfr gnome-search-tool-3.6.0
12082
12083<gnome-system-log-3.6.1> - NEW ICON - SYSTEM LOG
12084wget http://ftp.gnome.org/pub/gnome/sources/gnome-system-log/3.6/gnome-system-log-3.6.1.tar.xz
12085tar vxf gnome-system-log-3.6.1.tar.xz
12086cd gnome-system-log-3.6.1
12087
12088./configure --prefix=/usr
12089
12090make
12091
12092sudo su
12093make install
12094ldconfig
12095exit
12096
12097cd ..
12098rm -vfr gnome-system-log-3.6.1
12099
12100<gnome-tweak-tool-3.6.1> - NEW ICON - TWEAK TOOL
12101wget http://ftp.gnome.org/pub/gnome/sources/gnome-tweak-tool/3.6/gnome-tweak-tool-3.6.1.tar.xz
12102tar vxf gnome-tweak-tool-3.6.1.tar.xz
12103cd gnome-tweak-tool-3.6.1
12104
12105./configure --prefix=/usr
12106
12107make
12108
12109sudo su
12110make install
12111ldconfig
12112exit
12113
12114cd ..
12115rm -vfr gnome-tweak-tool-3.6.1
12116
12117<gucharmap-3.6.1> - NEW ICON - CHARACTER MAP
12118wget http://ftp.gnome.org/pub/gnome/sources/gucharmap/3.6/gucharmap-3.6.1.tar.xz
12119tar vxf gucharmap-3.6.1.tar.xz
12120cd gucharmap-3.6.1
12121
12122./configure --prefix=/usr --enable-vala
12123
12124make
12125
12126sudo su
12127make install
12128ldconfig
12129exit
12130
12131cd ..
12132rm -vfr gucharmap-3.6.1
12133
12134<mousetweaks-3.6.0>
12135wget http://ftp.gnome.org/pub/gnome/sources/mousetweaks/3.6/mousetweaks-3.6.0.tar.xz
12136tar vxf mousetweaks-3.6.0.tar.xz
12137cd mousetweaks-3.6.0
12138
12139./configure --prefix=/usr
12140
12141make
12142
12143sudo su
12144make install
12145ldconfig
12146exit
12147
12148cd ..
12149rm -vfr mousetweaks-3.6.0
12150
12151***seahorse install
12152<libassuan-2.0.3>
12153wget ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-2.0.3.tar.bz2
12154tar vxf libassuan-2.0.3.tar.bz2
12155cd libassuan-2.0.3
12156
12157./configure --prefix=/usr
12158
12159make
12160
12161sudo su
12162make install
12163ldconfig
12164exit
12165
12166cd ..
12167rm -vfr libassuan-2.0.3
12168
12169<gnupg-1.4.12>
12170wget http://anduin.linuxfromscratch.org/sources/BLFS/svn/g/gnupg-1.4.12.tar.bz2
12171tar vxf gnupg-1.4.12.tar.bz2
12172cd gnupg-1.4.12
12173
12174./configure --prefix=/usr --libexecdir=/usr/lib
12175
12176make
12177
12178sudo su
12179make install
12180ldconfig
12181exit
12182
12183cd ..
12184rm -vfr gnupg-1.4.12
12185
12186<libksba-1.3.0>
12187wget ftp://ftp.gnupg.org/gcrypt/libksba/libksba-1.3.0.tar.bz2
12188tar vxf libksba-1.3.0.tar.bz2
12189cd libksba-1.3.0
12190
12191./configure --prefix=/usr
12192
12193make
12194
12195sudo su
12196make install
12197ldconfig
12198exit
12199
12200cd ..
12201rm -vfr libksba-1.3.0
12202
12203<gnupg-2.0.19>
12204wget ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-2.0.19.tar.bz2
12205tar vxf gnupg-2.0.19.tar.bz2
12206cd gnupg-2.0.19
12207
12208./configure --prefix=/usr \
12209 --libexecdir=/usr/lib/gnupg2 \
12210 --docdir=/usr/share/doc/gnupg-2.0.19
12211
12212make
12213
12214sudo su
12215make install
12216ldconfig
12217exit
12218
12219cd ..
12220rm -vfr gnupg-2.0.19
12221
12222<gpgme-1.3.2>
12223wget ftp://ftp.gnupg.org/gcrypt/gpgme/gpgme-1.3.2.tar.bz2
12224tar vxf gpgme-1.3.2.tar.bz2
12225cd gpgme-1.3.2
12226
12227./configure --prefix=/usr \
12228 --libexecdir=/usr/lib \
12229 --without-g13
12230
12231make
12232
12233sudo su
12234make install
12235ldconfig
12236exit
12237
12238cd ..
12239rm -vfr gpgme-1.3.2
12240
12241<seahorse-3.6.3> - NEW ICON - PASSWORDS AND KEYS
12242wget http://ftp.gnome.org/pub/gnome/sources/seahorse/3.6/seahorse-3.6.3.tar.xz
12243tar vxf seahorse-3.6.3.tar.xz
12244cd seahorse-3.6.3
12245
12246./configure --prefix=/usr --disable-static
12247
12248make
12249
12250sudo su
12251make install
12252ldconfig
12253exit
12254
12255cd ..
12256rm -vfr seahorse-3.6.3
12257
12258***totem install
12259<gst-libav-1.0.5>
12260wget http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-1.0.5.tar.xz
12261tar vxf gst-libav-1.0.5.tar.xz
12262cd gst-libav-1.0.5
12263
12264./configure --prefix=/usr \
12265 --with-package-name="GStreamer Libav Plugins 1.0.5" \
12266 --with-package-origin="__a"
12267
12268make
12269
12270sudo su
12271make install
12272ldconfig
12273exit
12274
12275cd ..
12276rm -vfr gst-libav-1.0.5
12277
12278<lame-3.99.5>
12279wget http://downloads.sourceforge.net/lame/lame-3.99.5.tar.gz
12280tar vxf lame-3.99.5.tar.gz
12281cd lame-3.99.5
12282
12283./configure --prefix=/usr --enable-mp3rtp --disable-static
12284
12285make
12286
12287sudo su
12288make pkghtmldir=/usr/share/doc/lame-3.99.5 install
12289ldconfig
12290exit
12291
12292cd ..
12293rm -vfr lame-3.99.5
12294
12295<gst-plugins-ugly-1.0.5>
12296wget http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-1.0.5.tar.xz
12297tar vxf gst-plugins-ugly-1.0.5.tar.xz
12298cd gst-plugins-ugly-1.0.5
12299
12300./configure --prefix=/usr \
12301 --with-package-name="GStreamer Ugly Plugins 1.0.5" \
12302 --with-package-origin="__a"
12303
12304make
12305
12306sudo su
12307make install
12308ldconfig
12309exit
12310
12311cd ..
12312rm -vfr gst-plugins-ugly-1.0.5
12313
12314<libdvdcss-1.2.12>
12315wget http://www.videolan.org/pub/libdvdcss/1.2.12/libdvdcss-1.2.12.tar.bz2
12316tar vxf libdvdcss-1.2.12.tar.bz2
12317cd libdvdcss-1.2.12
12318
12319./configure --prefix=/usr --disable-static
12320
12321make
12322
12323sudo su
12324make install
12325ldconfig
12326exit
12327
12328cd ..
12329rm -vfr libdvdcss-1.2.12
12330
12331<grilo-0.2.4>
12332wget http://ftp.acc.umu.se/pub/GNOME/sources/grilo/0.2/grilo-0.2.6.tar.xz
12333tar vxf grilo-0.2.6.tar.xz
12334cd grilo-0.2.6
12335
12336./configure --prefix=/usr
12337
12338make
12339
12340sudo su
12341make install
12342ldconfig
12343exit
12344
12345cd ..
12346rm -vfr grilo-0.2.6
12347
12348<grilo-plugins-0.2.5>
12349wget http://ftp.acc.umu.se/pub/GNOME/sources/grilo-plugins/0.2/grilo-plugins-0.2.9.tar.xz
12350tar vxf grilo-plugins-0.2.9.tar.xz
12351cd grilo-plugins-0.2.9
12352
12353./configure --prefix=/usr
12354
12355make
12356
12357sudo su
12358make install
12359ldconfig
12360exit
12361
12362cd ..
12363rm -vfr grilo-plugins-0.2.9
12364
12365<totem-3.6.3> - NEW ICON - TOTEM
12366wget http://ftp.gnome.org/pub/gnome/sources/totem/3.6/totem-3.6.3.tar.xz
12367tar vxf totem-3.6.3.tar.xz
12368cd totem-3.6.3
12369
12370./configure --prefix=/usr \
12371 --libexecdir=/usr/lib/totem \
12372 --disable-static
12373
12374make
12375
12376sudo su
12377make install
12378ldconfig
12379exit
12380
12381cd ..
12382rm -vfr totem-3.6.3
12383
12384<tor-0.2.3.25> - run 'tor' from command line to get tor
12385wget https://www.torproject.org/dist/tor-0.2.3.25.tar.gz
12386tar vxf tor-0.2.3.25.tar.gz
12387cd tor-0.2.3.25
12388
12389./configure --prefix=/usr
12390
12391make
12392
12393sudo su
12394make install
12395ldconfig
12396exit
12397
12398cd ..
12399rm -vfr tor-0.2.3.25
12400
12401<firefox-18.0.1> - NEW ICON - FIREFOX
12402tar vxf firefox-18.0.1.source.tar.bz2
12403cd mozilla-release
12404
12405vi mozconfig
12406
12407# If you have a multicore machine you can speed up the build by running
12408# several jobs at once by uncommenting the following line and setting
12409# the
12410# value to number of CPU cores:
12411mk_add_options MOZ_MAKE_FLAGS="-j4"
12412
12413# If you have installed DBus-Glib comment out this line:
12414#ac_add_options --disable-dbus
12415
12416# If you have installed wireless-tools comment out this line:
12417#ac_add_options --disable-necko-wifi
12418
12419# If you have installed libnotify comment out this line:
12420#ac_add_options --disable-libnotify
12421
12422# Uncomment these lines if you have installed optional dependencies:
12423#ac_add_options --enable-system-hunspell
12424ac_add_options --enable-startup-notification
12425
12426# If you have not installed Yasm then uncomment this line:
12427#ac_add_options --disable-webm
12428
12429# If you have installed xulrunner uncomment following two lines:
12430ac_add_options --with-system-libxul
12431ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul)
12432
12433# Comment out following options if you have not installed
12434# recommended dependencies:
12435ac_add_options --enable-system-sqlite
12436ac_add_options --with-system-libevent
12437ac_add_options --with-system-libvpx
12438ac_add_options --with-system-nspr
12439ac_add_options --with-system-nss
12440
12441# It is recommended not to touch anything below this line
12442ac_add_options --prefix=/usr
12443ac_add_options --enable-application=browser
12444
12445ac_add_options --disable-crashreporter
12446ac_add_options --disable-installer
12447ac_add_options --disable-updater
12448ac_add_options --disable-debug
12449ac_add_options --disable-tests
12450
12451ac_add_options --enable-optimize
12452ac_add_options --enable-strip
12453ac_add_options --enable-install-strip
12454
12455ac_add_options --enable-gio
12456ac_add_options --enable-official-branding
12457ac_add_options --enable-safe-browsing
12458ac_add_options --enable-url-classifier
12459
12460ac_add_options --enable-system-ffi
12461ac_add_options --enable-system-pixman
12462
12463ac_add_options --with-pthreads
12464
12465ac_add_options --with-system-bz2
12466ac_add_options --with-system-jpeg
12467ac_add_options --with-system-png
12468ac_add_options --with-system-zlib
12469
12470mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir
12471#EOF
12472
12473sed -i 's# ""##' browser/base/Makefile.in
12474
12475make -f client.mk
12476
12477sudo su
12478make -C firefox-build-dir install
12479rm -vf /usr/bin/firefox
12480
12481cat > /usr/bin/firefox << "EOF"
12482#!/bin/bash
12483/usr/lib/xulrunner-18.0.1/xulrunner
12484/usr/lib/firefox-18.0.1/application.ini "${@}"
12485EOF
12486
12487chmod -v 755 /usr/bin/firefox
12488mkdir -pv /usr/lib/mozilla/plugins
12489ln -sfv mozilla/plugins /usr/lib/firefox-18.0.1
12490
12491mkdir -pv /usr/share/applications
12492mkdir -pv /usr/share/pixmaps
12493
12494cat > /usr/share/applications/firefox.desktop << "EOF"
12495[Desktop Entry]
12496Encoding=UTF-8
12497Name=Firefox Web Browser
12498Comment=Browse the World Wide Web
12499GenericName=Web Browser
12500Exec=firefox %u
12501Terminal=false
12502Type=Application
12503Icon=firefox
12504Categories=GNOME;GTK;Network;WebBrowser;
12505MimeType=application/xhtml+xml;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
12506StartupNotify=true
12507EOF
12508
12509ln -sfv /usr/lib/firefox-18.0.1/icons/mozicon128.png \
12510 /usr/share/pixmaps/firefox.png
12511ldconfig
12512exit
12513
12514cd ..
12515rm -vfr mozilla-release
12516
12517***gnash install - Adds flash movie player plugin to mozilla
12518<gstreamer-0.10.36>
12519wget http://ftp.gnome.org/pub/gnome/sources/gstreamer/0.10/gstreamer-0.10.36.tar.xz
12520tar vxf gstreamer-0.10.36.tar.xz
12521cd gstreamer-0.10.36
12522
12523./configure --prefix=/usr \
12524 --libexecdir=/usr/lib \
12525 --disable-static
12526
12527make
12528
12529sudo su
12530make install
12531ldconfig
12532exit
12533
12534cd ..
12535rm -vfr gstreamer-0.10.36
12536
12537<gst-plugins-base-0.10.36>
12538wget http://ftp.gnome.org/pub/gnome/sources/gst-plugins-base/0.10/gst-plugins-base-0.10.36.tar.xz
12539tar vxf gst-plugins-base-0.10.36.tar.xz
12540cd gst-plugins-base-0.10.36
12541
12542./configure --prefix=/usr
12543
12544make
12545
12546sudo su
12547make install
12548ldconfig
12549exit
12550
12551cd ..
12552rm -vfr gst-plugins-base-0.10.36
12553
12554<gst-plugins-good-0.10.31>
12555wget http://ftp.gnome.org/pub/gnome/sources/gst-plugins-good/0.10/gst-plugins-good-0.10.31.tar.xz
12556tar vxf gst-plugins-good-0.10.31.tar.xz
12557cd gst-plugins-good-0.10.31
12558
12559sed -i -e '/input:/d' sys/v4l2/gstv4l2bufferpool.c
12560
12561./configure --prefix=/usr \
12562 --sysconfdir=/etc \
12563 --with-gtk=3.0
12564
12565make
12566
12567sudo su
12568make install
12569ldconfig
12570exit
12571
12572cd ..
12573rm -vfr gst-plugins-good-0.10.31
12574
12575<gst-plugins-bad-0.10.23>
12576wget http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-0.10.23.tar.xz
12577tar vxf gst-plugins-bad-0.10.23.tar.xz
12578cd gst-plugins-bad-0.10.23
12579
12580./configure --prefix=/usr --with-gtk=3.0 --disable-examples
12581
12582make
12583
12584sudo su
12585make install
12586ldconfig
12587exit
12588
12589cd ..
12590rm -vfr gst-plugins-bad-0.10.23
12591
12592<gst-plugins-ugly-0.10.19> #### PATCH FILE MISSING!!! ####
12593wget http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-0.10.19.tar.xz
12594wget http://www.linuxfromscratch.org/patches/blfs/svn/gst-plugins-ugly-0.10.19-libcdio_fixes-1.patch
12595tar vxf gst-plugins-ugly-0.10.19.tar.xz
12596cd gst-plugins-ugly-0.10.19
12597
12598patch -Np1 -i ../gst-plugins-ugly-0.10.19-libcdio_fixes-1.patch
12599
12600./configure --prefix=/usr
12601
12602make
12603
12604sudo su
12605make install
12606ldconfig
12607exit
12608
12609cd ..
12610rm -vfr gst-plugins-ugly-0.10.19
12611
12612<gst-ffmpeg-0.10.13> #### PATCH FILE MISSING!!! ####
12613wget http://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-0.10.13.tar.bz2
12614wget http://www.linuxfromscratch.org/patches/blfs/svn/gst-ffmpeg-0.10.13-gcc-4.7-1.patch
12615tar vxf gst-ffmpeg-0.10.13.tar.bz2
12616cd gst-ffmpeg-0.10.13
12617
12618patch -p1 < ../gst-ffmpeg-0.10.13-gcc-4.7-1.patch
12619
12620./configure --prefix=/usr
12621
12622make
12623
12624sudo su
12625make install
12626ldconfig
12627exit
12628
12629cd ..
12630rm -vfr gst-ffmpeg-0.10.13
12631
12632<giflib-4.1.6>
12633wget http://downloads.sourceforge.net/giflib/giflib-4.1.6.tar.bz2
12634tar vxf giflib-4.1.6.tar.bz2
12635cd giflib-4.1.6
12636
12637./configure --prefix=/usr
12638
12639make
12640
12641sudo su
12642make install
12643ldconfig
12644exit
12645
12646cd ..
12647rm -vfr giflib-4.1.6
12648
12649<gnash-0.8.10> - Adds flash movie player plugin to mozilla
12650 #### PATCH FILE MISSING!!! ####
12651wget http://ftp.gnu.org/pub/gnu/gnash/0.8.10/gnash-0.8.10.tar.bz2
12652wget http://www.linuxfromscratch.org/patches/blfs/svn/gnash-0.8.10-CVE-2012-1175-1.patch
12653tar vxf gnash-0.8.10.tar.bz2
12654cd gnash-0.8.10
12655
12656patch -Np1 -i ../gnash-0.8.10-CVE-2012-1175-1.patch
12657
12658sed -i '/^LIBS/s/\(.*\)/\1 -lboost_system/' \
12659 gui/Makefile.in utilities/Makefile.in
12660
12661unset QTDIR
12662
12663./configure --prefix=/usr --sysconfdir=/etc \
12664 --with-npapi-incl=/usr/include/xulrunner-18.0.1 --enable-media=gst \
12665 --with-npapi-plugindir=/usr/lib/mozilla/plugins
12666
12667make
12668
12669sudo su
12670make install
12671make install-plugin
12672ldconfig
12673exit
12674
12675QTDIR=/usr
12676export QTDIR
12677
12678cd ..
12679rm -vfr gnash-0.8.10
12680
12681<xchat-2.8.8> - NEW ICON - XCHAT
12682wget http://www.xchat.org/files/source/2.8/xchat-2.8.8.tar.bz2
12683wget http://www.linuxfromscratch.org/patches/blfs/svn/xchat-2.8.8-glib-2.31-1.patch
12684tar vxf xchat-2.8.8.tar.bz2
12685cd xchat-2.8.8
12686
12687patch -Np1 -i ../xchat-2.8.8-glib-2.31-1.patch
12688
12689LIBS+="-lgmodule-2.0" ./configure --prefix=/usr \
12690 --sysconfdir=/etc \
12691 --enable-shm
12692
12693make
12694
12695sudo su
12696make install
12697ldconfig
12698exit
12699
12700cd ..
12701rm -vfr xchat-2.8.8
12702
12703*** Gimp install
12704<babl-0.1.10>
12705wget http://gd.tuwien.ac.at/graphics/gimp/babl/0.1/babl-0.1.10.tar.bz2
12706tar vxf babl-0.1.10.tar.bz2
12707cd babl-0.1.10
12708
12709./configure --prefix=/usr
12710
12711make
12712
12713sudo su
12714make install
12715ldconfig
12716exit
12717
12718cd ..
12719rm -vfr babl-0.1.10
12720
12721<gegl-0.2.0>
12722wget http://gd.tuwien.ac.at/graphics/gimp/gegl/0.2/gegl-0.2.0.tar.bz2
12723tar vxf gegl-0.2.0.tar.bz2
12724cd gegl-0.2.0
12725
12726sed -e '274cerr = avformat_open_input (&p->ic, o->path, NULL, NULL);' \
12727 -i operations/external/ff-load.c
12728
12729./configure --prefix=/usr
12730
12731make
12732
12733sudo su
12734make install
12735ldconfig
12736exit
12737
12738cd ..
12739rm -vfr gegl-0.2.0
12740
12741<gimp-2.8.2> - NEW ICON - GIMP
12742wget http://artfiles.org/gimp.org/gimp/v2.8/gimp-2.8.2.tar.bz2
12743tar vxf gimp-2.8.2.tar.bz2
12744cd gimp-2.8.2
12745
12746./configure --prefix=/usr --sysconfdir=/etc --without-gvfs
12747
12748make
12749
12750sudo su
12751make install
12752ldconfig
12753exit
12754
12755cd ..
12756rm -vfr gimp-2.8.2
12757
12758***Blueman install
12759<notify-python-0.1.1>
12760wget http://www.galago-project.org/files/releases/source/notify-python/notify-python-0.1.1.tar.bz2
12761wget http://lfs-matrix.net/patches/blfs/svn/notify-python-0.1.1-libnotify-0.7-1.patch
12762tar vxf notify-python-0.1.1.tar.bz2
12763cd notify-python-0.1.1
12764
12765patch -Np1 -i ../notify-python-0.1.1-libnotify-0.7-1.patch
12766
12767./configure --prefix=/usr
12768
12769make
12770
12771sudo su
12772make install
12773ldconfig
12774exit
12775
12776cd ..
12777rm -vfr notify-python-0.1.1
12778
12779<Pyrex-0.9.9>
12780wget http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/Pyrex-0.9.9.tar.gz
12781tar vxf Pyrex-0.9.9.tar.gz
12782cd Pyrex-0.9.9
12783
12784sudo su
12785python setup.py install
12786ldconfig
12787exit
12788
12789cd ..
12790rm -vfr Pyrex-0.9.9
12791
12792<blueman-1.23>25 - NEW ICON - BLUETOOTH MANAGER
12793wget http://download.tuxfamily.org/blueman/blueman-1.23.tar.gz
12794tar vxf blueman-1.23.tar.gz
12795cd blueman-1.23
12796
12797./configure --prefix=/usr \
12798 --sysconfdir=/etc \
12799 --libexecdir=/usr/lib/blueman \
12800 --disable-static
12801
12802make
12803
12804sudo su
12805make install
12806ldconfig
12807exit
12808
12809cd ..
12810rm -vfr blueman-1.23
12811
12812***LibreOffice Install
12813<Archive::Zip>
12814sudo su
12815cpan
12816
12817install Archive::Zip
12818
12819exit
12820
12821exit
12822
12823<neon-0.29.6>
12824wget http://www.webdav.org/neon/neon-0.29.6.tar.gz
12825tar vxf neon-0.29.6.tar.gz
12826cd neon-0.29.6
12827
12828./configure --prefix=/usr --enable-shared --disable-static
12829
12830make
12831
12832sudo su
12833make install
12834ldconfig
12835exit
12836
12837cd ..
12838rm -vfr neon-0.29.6
12839
12840<raptor2-2.0.8>
12841wget http://download.librdf.org/source/raptor2-2.0.8.tar.gz
12842tar vxf raptor2-2.0.8.tar.gz
12843cd raptor2-2.0.8
12844
12845./configure --prefix=/usr \
12846 --disable-static
12847
12848make
12849
12850sudo su
12851make install
12852ldconfig
12853exit
12854
12855cd ..
12856rm -vfr raptor2-2.0.8
12857
12858<rasqal-0.9.30>
12859wget http://download.librdf.org/source/rasqal-0.9.30.tar.gz
12860tar vxf rasqal-0.9.30.tar.gz
12861cd rasqal-0.9.30
12862
12863./configure --prefix=/usr --disable-static
12864
12865make
12866
12867sudo su
12868make install
12869ldconfig
12870exit
12871
12872cd ..
12873rm -vfr r sqal-0.9.30
12874
12875<redland-1.0.16>
12876wget http://download.librdf.org/source/redland-1.0.16.tar.gz
12877tar vxf redland-1.0.16.tar.gz
12878cd redland-1.0.16
12879
12880./configure --prefix=/usr --disable-static
12881
12882make
12883
12884sudo su
12885make install
12886ldconfig
12887exit
12888
12889cd ..
12890rm -vfr redland-1.0.16
12891
12892<libreoffice-core-3.6.4.3>
12893wget http://download.documentfoundation.org/libreoffice/src/3.6.4/libreoffice-core-3.6.4.3.tar.xz
12894tar vxf libreoffice-core-3.6.4.3.tar.xz
12895cd libreoffice-core-3.6.4.3
12896
12897./autogen.sh --prefix=/usr \
12898 --disable-binfilter \
12899 --disable-gconf \
12900 --disable-mozilla \
12901 --disable-odk \
12902 --disable-postgresql-sdbc \
12903 --with-system-boost \
12904 --with-system-cairo \
12905 --with-system-curl \
12906 --with-system-db \
12907 --with-system-expat \
12908 --with-system-gettext \
12909 --with-system-icu \
12910 --with-system-jpeg \
12911 --with-system-libpng \
12912 --with-system-libxml \
12913 --with-system-neon \
12914 --with-system-nss \
12915 --with-system-openssl \
12916 --with-system-poppler \
12917 --with-system-redland \
12918 --with-system-zlib \
12919 --without-java \
12920 --with-num-cpus=$(getconf _NPROCESSORS_ONLN)
12921
12922./download
12923mkdir -p ../libreoffice-downloads
12924
12925cp src/*.{xz,gz,txt,zip,bz2,tgz,jar,dll,oxt} \
12926 src/*LICENSE* ../libreoffice-downloads
12927
12928make
12929
12930sudo su
12931make install
12932
12933SOFFICE=/usr/lib/libreoffice/program/soffice
12934
12935for program in base calc draw impress math writer
12936do
12937 echo '#!/bin/bash' > /usr/bin/${program}
12938 echo "exec ${SOFFICE} --nologo --${program} \"\${@}\"" >> /usr/bin/${program}
12939 chmod 755 /usr/bin/${program}
12940done
12941
12942unset SOFFICE
12943
12944ln -sfv ../lib/libreoffice/program/spadmin /usr/bin/printeradmin
12945ln -sfv ../lib/libreoffice/program/unopkg /usr/bin
12946cp sysui/desktop/man/{libreoffice,unopkg}.1 /usr/share/man/man1
12947
12948for res in 16 32 48 128 256
12949do
12950 mkdir -p /usr/share/icons/hicolor/${res}x${res}/{apps,mimetypes}
12951 cp sysui/desktop/icons/hicolor/${res}x${res}/apps/*.png \
12952 /usr/share/icons/hicolor/${res}x${res}/apps
12953 cp sysui/desktop/icons/hicolor/${res}x${res}/mimetypes/*.png \
12954 /usr/share/icons/hicolor/${res}x${res}/mimetypes
12955done
12956
12957gtk-update-icon-cache /usr/share/icons/hicolor
12958
12959mkdir -p /usr/share/applications
12960
12961for program in base calc draw impress math writer
12962do echo "[Desktop Entry]
12963Encoding=UTF-8
12964Type=Application
12965Name=${program^}
12966Comment=LibreOffice ${program^}
12967Icon=${program}
12968Exec=${program}
12969Categories=Office;Application;
12970StartupNotify=true
12971Terminal=false" > /usr/share/applications/${program}.desktop
12972done
12973
12974echo "[Desktop Entry]
12975Encoding=UTF-8
12976Type=Application
12977Name=Printer Administration
12978Comment=LibreOffice Printer Administration
12979Icon=printeradmin
12980Exec=printeradmin
12981Categories=Office;Printing;Application;
12982StartupNotify=true
12983Terminal=false" > /usr/share/applications/printeradmin.desktop
12984
12985ldconfig
12986exit
12987
12988cd ..
12989rm -vfr libreoffice-core-3.6.4.3
12990
12991***DVB Install
12992<v4l-utils-0.9.3> - NEW ICON - V4L2 TEST UTILITY
12993wget http://www.linuxtv.org/downloads/v4l-utils/v4l-utils-0.9.3.tar.bz2
12994tar vxf v4l-utils-0.9.3.tar.bz2
12995cd v4l-utils-0.9.3
12996
12997./configure --prefix=/usr
12998
12999make
13000
13001sudo su
13002make install
13003ldconfig
13004exit
13005
13006cd ..
13007rm -vfr v4l-utils-0.9.3
13008
13009<xawtv-3.102>
13010wget http://www.linuxtv.org/downloads/xawtv/xawtv-3.102.tar.bz2
13011tar vxf xawtv-3.102.tar.bz2
13012cd xawtv-3.102
13013
13014./autogen.sh --prefix=/usr
13015
13016make
13017
13018sudo make install
13019
13020cd ..
13021rm -vfr xawtv-3.102
13022
13023<DVB-apps>
13024wget http://linuxtv.org/hg/dvb-apps/archive/dvb-apps-83c746462ccb.tar.bz2
13025tar vxf dvb-apps-83c746462ccb.tar.bz2
13026cd dvb-apps-83c746462ccb
13027
13028make
13029
13030sudo make install
13031
13032cd ..
13033rm -vfr dvb-apps-83c746462ccb
13034
13035***wine install
13036<libelf-0.8.5>
13037wget http://www.mr511.de/software/libelf-0.8.5.tar.gz
13038tar vxf libelf-0.8.5.tar.gz
13039cd libelf-0.8.5
13040
13041./configure --prefix=/usr --enable-shared
13042
13043make
13044
13045sudo su
13046unset MAKEFLAGS
13047make install
13048export MAKEFLAGS='-j 4'
13049ldconfig
13050exit
13051
13052cd ..
13053rm -vfr libelf-0.8.5
13054
13055<prelink-20050314>
13056wget http://people.redhat.com/jakub/prelink/prelink-20111012.tar.bz2
13057tar vxf prelink-20111012.tar.bz2
13058cd prelink
13059
13060./configure --prefix=/usr --sysconfdir=/etc
13061
13062make
13063
13064sudo su
13065make install
13066install -m644 doc/prelink.conf /etc/prelink.conf
13067ldconfig
13068exit
13069
13070cd ..
13071rm -vfr prelink
13072
13073<wine-1.4.1>
13074wget http://mirrors.ibiblio.org/wine/source/1.4/wine-1.4.1.tar.bz2
13075tar vxf wine-1.4.1.tar.bz2
13076cd wine-1.4.1
13077
13078./configure --prefix=/usr
13079
13080make
13081
13082sudo su
13083make install
13084ldconfig
13085exit
13086
13087cd ..
13088rm -vfr wine-1.4.1
13089
13090##### STAGE 4 GNOME APPLICATIONS - COMPLETE #####
13091
13092##### STAGE 5 SECURITY #####
13093
13094<lua-5.2.1>
13095wget http://www.lua.org/ftp/lua-5.2.1.tar.gz
13096tar vxf lua-5.2.1.tar.gz
13097cd lua-5.2.1
13098
13099make linux
13100
13101sudo su
13102make install INSTALL_TOP=/usr
13103ldconfig
13104exit
13105
13106cd ..
13107rm -vfr lua-5.2.1
13108
13109<libpcap-1.3.0>
13110wget http://www.tcpdump.org/release/libpcap-1.3.0.tar.gz
13111tar vxf libpcap-1.3.0.tar.gz
13112cd libpcap-1.3.0
13113
13114./configure --prefix=/usr
13115
13116make
13117
13118sudo su
13119make install
13120ldconfig
13121exit
13122
13123cd ..
13124rm -vfr libpcap-1.3.0
13125
13126<nmap-6.01>
13127wget http://anduin.linuxfromscratch.org/sources/BLFS/svn/n/nmap-6.01.tar.bz2
13128tar vxf nmap-6.01.tar.bz2
13129cd nmap-6.01
13130
13131./configure --prefix=/usr --without-liblua
13132
13133make
13134
13135sudo su
13136make install
13137ldconfig
13138exit
13139
13140cd ..
13141rm -vfr nmap-6.01
13142
13143<wireshark-1.8.3>
13144wget http://www.wireshark.org/download/src/all-versions/wireshark-1.8.3.tar.bz2
13145tar vxf wireshark-1.8.3.tar.bz2
13146cd wireshark-1.8.3
13147
13148cat > svnversion.h << "EOF"
13149#define SVNVERSION "__A"
13150#define SVNPATH "source"
13151EOF
13152
13153cat > make-version.pl << "EOF"
13154#!/usr/bin/perl
13155EOF
13156
13157sudo su
13158groupadd -g 62 wireshark
13159exit
13160
13161./configure --prefix=/usr --sysconfdir=/etc
13162
13163make
13164
13165sudo su
13166make install
13167
13168install -v -m755 -d /usr/share/doc/wireshark-1.8.3
13169install -v -m755 -d /usr/share/pixmaps/wireshark
13170
13171install -v -m644 README{,.linux} doc/README.* doc/*.{pod,txt} \
13172 /usr/share/doc/wireshark-1.8.3
13173
13174pushd /usr/share/doc/wireshark-1.8.3
13175 for FILENAME in ../../wireshark/*.html; do
13176 ln -s -v $FILENAME .
13177 done
13178popd
13179
13180install -v -m644 -D wireshark.desktop \
13181 /usr/share/applications/wireshark.desktop
13182
13183install -v -m644 -D image/wsicon48.png \
13184 /usr/share/pixmaps/wireshark.png
13185
13186install -v -m644 image/*.{png,ico,xpm,bmp} \
13187 /usr/share/pixmaps/wireshark
13188
13189chown -v root:wireshark /usr/bin/{tshark,dumpcap}
13190chmod -v 6550 /usr/bin/{tshark,dumpcap}
13191
13192usermod -a -G wireshark __a
13193ldconfig
13194exit
13195
13196cd ..
13197rm -vfr wireshark-1.8.3
13198
13199<metasploit>
13200wget http://downloads.metasploit.com/data/releases/metasploit-latest-linux-installer.run
13201
13202chmod +x metasploit-latest-linux-installer.run
13203
13204sudo su
13205./metasploit-latest-linux-installer.run
13206exit