Automated install of fuse & dvdfs
authorroot <root@364a67c3-989e-7be9-548d-dae8560ea662>
Wed, 9 Dec 2009 07:18:29 +0000 (07:18 +0000)
committerroot <root@364a67c3-989e-7be9-548d-dae8560ea662>
Wed, 9 Dec 2009 07:18:29 +0000 (07:18 +0000)
dependencies
packages-list
stage2/cis-udev
stage2/packages-update
stage2/stage2-additions
stage3/bootscripts/apache
stage3/cis-dvdfs [new file with mode: 0755]
stage3/packages-update
stage3/resources/mount.fusedvdfs [new file with mode: 0644]
stage3/stage3-install

index ed872c1..1a55b1c 100644 (file)
@@ -28,3 +28,5 @@ ${FIREFOX}: ${SQLITE}
 
 ${PROCMAIL}: ${SENDMAIL}
 ${FETCHMAIL}: ${OPENSSL} ${PROCMAIL}
+
+${FUSE}: ${UDEV}
index 05c83f6..392cf71 100644 (file)
@@ -19,13 +19,13 @@ AVR_GDB="gdb-6.4"
 AVRDUDE="avrdude-5.1"
 ATK="atk-1.18.0"
 AUDIOFILE="audiofile-0.2.6"
-AUTOCONF="autoconf-2.63"
-AUTOMAKE="automake-1.10.1"
+AUTOCONF="autoconf-2.64"
+AUTOMAKE="automake-1.11"
 
 BABL="babl-0.0.22"
 BASH="bash-3.2"
 BC="bc-1.06"
-BISON="bison-2.3"
+BISON="bison-2.4.1"
 BIND="bind-9.5.0-P2"
 BINUTILS="binutils-2.18"
 ARM_BINUTILS="binutils-2.18"
@@ -54,6 +54,7 @@ DDCLIENT="ddclient-3.6.7"
 DESKTOP_FILE_UTILS="desktop-file-utils-0.13"
 DHCP="dhcp-3.0.5"
 DIFFUTILS="diffutils-2.8.7"
+DVDFS="dvdfs-0.2"
 DVDRWTOOLS="dvd+rw-tools-7.1"
 
 SGML_COMMON="sgml-common-0.6.3"
@@ -92,6 +93,7 @@ FLEX="flex-2.5.33"
 FONTCONFIG="fontconfig-2.4.2"
 FREETYPE="freetype-2.3.4"
 FRIBIDI="fribidi-0.10.7"
+FUSE="fuse-2.8.1"
 
 GAWK="gawk-3.1.6"
 GC="gc6.5"
@@ -242,6 +244,7 @@ HVCLOCK="hvclock-0.2.0"
 IMLIB="imlib-1.9.14"
 IANA="iana-etc-2.20"
 IMAGE_MAGICK="ImageMagick-6.5.0-8"
+INDENT="indent-2.2.10"
 INETUTILS="inetutils-1.5"
 INKSCAPE="inkscape-r19727"
 INTLTOOL="intltool-0.40.6"
@@ -299,6 +302,7 @@ LIBSAMPLERATE="libsamplerate-0.1.2"
 LIBTHEORA="libtheora-1.0"
 LIBSPF2="libspf2-1.2.5"
 LIBNOTIFY="libnotify-0.4.4"
+LILYPOND="lilypond-2.12.2"
 LTSP_UTILS="ltsp-utils-0.25-0"
 TFTP_HPA="tftp-hpa-0.42"
 
@@ -415,11 +419,11 @@ TETEX_SRC="tetex-src-3.0"
 TETEX_TEXMF="tetex-texmf-3.0"
 TETEX_TEXMFSRC="tetex-texmfsrc-3.0"
 TETEX_CM_SUPER="tetex-cm-super"
-TEXINFO="texinfo-4.9"
+TEXINFO="texinfo-4.13a"
 TRANSMISSION="transmission-1.34"
 
-UDEV="udev-113"
-UDEV_CONFIG="udev-config-20080217"
+UDEV="udev-149"
+UDEV_CONFIG="udev-config-20090925"
 UML_UTILITIES="uml_utilities_20070815"
 UNZIP="unzip-5.52"
 UTIL_LINUX="util-linux-2.12r"
@@ -431,7 +435,6 @@ WINDOWMAKER="WindowMaker-0.92.0"
 WINDOWMAKER_EXTRA="WindowMaker-extra-0.1"
 WMNOTIFY="wmnotify-0.3.2"
 WV="wv-1.2.4"
-####WXGTK="wxGTK-2.8.7"
 
 XFREE86="XFree86-4.6.0"
 XMLTOMAN="xmltoman-0.4"
index 2104875..130770e 100755 (executable)
@@ -17,6 +17,10 @@ if [ ! -c /lib/udev/devices/null ]; then
     mknod -m0666 /lib/udev/devices/null c 1 3 || exit 1
 fi &&
 
+if [ ! -c /lib/udev/devices/kmsg ]; then
+    mknod -m0600 /lib/udev/devices/kmsg c 1 11 || exit 1
+fi &&
+
 if [ ! -h /lib/udev/devices/fd ]; then
     ln -sfv /proc/self/fd /lib/udev/devices/fd || exit 1
 fi &&
@@ -37,15 +41,19 @@ if [ ! -h /lib/udev/devices/core ]; then
     ln -sfv /proc/kcore /lib/udev/devices/core || exit 1
 fi &&
 
-make EXTRAS="`echo extras/*/`" &&
-make DESTDIR=/ EXTRAS="`echo extras/*/`" install &&
-
-# First install the commonly-used rules files provided by Udev:
-cp -v etc/udev/rules.d/[0-9]* /etc/udev/rules.d/ &&
-
-# Install the documentation that explains how to create custom Udev rules:
-#install -m644 -v docs/writing_udev_rules/index.html \
-#    /usr/share/doc/${1}/index.html &&
+cd ${LFS_TMP}/${PACKAGE} &&
+./configure \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --sbindir=/sbin \
+    --with-rootlibdir=/lib \
+    --libexecdir=/lib/udev \
+    --docdir=/usr/share/doc/${PACKAGE} \
+    --disable-extras \
+    --disable-introspection \
+    ${CONFIGURE_OPTS} &&
+make &&
+make install &&
 
 cat > /etc/sysconfig/modules << "EOF" &&
 # Add modules that must be manually loaded in this file,
@@ -55,7 +63,6 @@ EOF
 
 chmod -v 644 /etc/sysconfig/modules &&
 
-
 ldconfig
 
 # Return last error
index b4d4da1..459ba58 100755 (executable)
@@ -65,7 +65,7 @@ fpkg_hv    ${SHADOW}
 fpkg       ${SYSKLOGD} http://www.infodrom.org/projects/sysklogd/download
 fpkg       ${SYSVINIT} ftp://ftp.cistron.nl/pub/people/miquels/sysvinit
 fpkg       ${UDEV} http://www.kernel.org/pub/linux/utils/kernel/hotplug
-fpkg_lfs   ${UDEV_CONFIG}
+fpkg       ${UDEV_CONFIG} "http://www.linuxfromscratch.org/lfs/downloads/development"
 
 # Additional packages (not in original LFS, only for hvlinux).
 fpkg       ${NANO} http://www.nano-editor.org/dist/v2.0
index af8fd15..bb73b06 100755 (executable)
@@ -20,6 +20,8 @@ if [ ! -f ${LFS_LOG_FILE} ]; then
 fi
 
 ipkg_ac        ${LIBTOOL}
+ipkg           ${UDEV} cis-udev
+ipkg           ${UDEV_CONFIG} cis-udev-config
 
 # Return last error
 exit $?
index 773839d..f2d0522 100755 (executable)
@@ -9,7 +9,7 @@ log_script_name "$0 $*"
 
 APACHECTL=/usr/sbin/apachectl
 
-# Check that the ifconfig program is present and executable.
+# Check that the program is present and executable.
 if [ ! -x ${APACHECTL} ]; then
     log_message "*** ERROR: ${APACHECTL} program not found."
     exit ${EXIT_CODE_FAILURE}
diff --git a/stage3/cis-dvdfs b/stage3/cis-dvdfs
new file mode 100755 (executable)
index 0000000..8aa3be1
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+# First argument of this script is the package name.
+# Remaining arguments are additional configure options.
+
+# Reading system configuration informations, functions and package versions.
+source ../sysinfos
+source ../functions
+source ../packages-list
+
+CUR_DIR=$(pwd)
+
+PACKAGE=${1}
+shift
+CONFIGURE_OPTS=${*}
+
+# Applying patches (if any)
+apply_patches ${PACKAGE} &&
+
+cd ${LFS_TMP}/${PACKAGE} &&
+make &&
+make install &&
+
+# Mount script
+install -v -m755 ${CUR_DIR}/resources/mount.fusedvdfs /sbin
+
+# Return last error
+exit $?
index d918758..be59577 100755 (executable)
@@ -188,7 +188,7 @@ fpkg_sf    ${GRIP}
 fpkg_sf    ${CDRDAO}
 fpkg_hv    ${PORTAUDIO}
 fpkg_hv    ${SWEEP}
-
+fpkg       ${LILYPOND} "http://lilypond.org/download/sources/v$(get_pkg_ver_base ${LILYPOND})"
 fpkg       ${SYLPHEED} "http://sylpheed.good-day.net/sylpheed/v$(get_pkg_ver_base ${SYLPHEED})"
 
 fpkg       ${SQLITE} "http://www.sqlite.org"
@@ -254,6 +254,7 @@ fpkg       ${PHP}   "http://us2.php.net/distributions"
 
 fpkg_sf    ${STRACE}
 lpkg     2 ${SUBVERSION}
+fpkg_gnu   ${INDENT}
 fpkg       ${GIT} "http://www.kernel.org/pub/software/scm/git"
 fpkg_hv    ${GIT_MANPAGES}
 
@@ -279,6 +280,8 @@ fpkg_gnu   ${HELP2MAN}
 
 fpkg       ${LIBDVDCSS}  "ftp://ftp.linux.ee/pub/gentoo/distfiles/distfiles"
 fpkg       ${LIBDVDREAD} "ftp://ftp.linux.ee/pub/gentoo/distfiles/distfiles"
+fpkg_sf    ${FUSE}
+fpkg       ${DVDFS} "http://jspenguin.org:81/dvdfs"
 
 fpkg       ${DOSFSTOOLS} "http://www.daniel-baumann.ch/software/dosfstools"
 
diff --git a/stage3/resources/mount.fusedvdfs b/stage3/resources/mount.fusedvdfs
new file mode 100644 (file)
index 0000000..56137fb
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+DEVICE=${1}
+MOUNT_POINT=${2}
+
+dvdfs -o device=${DEVICE} ${MOUNT_POINT}
+
+exit $?
index 5963db0..1bd1190 100755 (executable)
@@ -252,6 +252,7 @@ if [ "x${INST_TYPE}" = "xworkstation" -o "x${INST_TYPE}" = "xltsp-server" ]; the
         ipkg_ac_nb ${CDRDAO}
         ipkg_ac    ${SWEEP} "--enable-pulseaudio"
         ipkg_ac    ${EASYTAG}
+        ipkg_ac_nb ${LILYPOND}
 
         ipkg_ac_nb ${FFMPEG} "--enable-shared --enable-pthreads --enable-gpl --enable-nonfree --disable-ffplay \
                               --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora \
@@ -309,6 +310,7 @@ if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
 
     # Subversion server (client was already installed in stage2) 
     ipkg     ${SUBVERSION} cis-subversion
+    ipkg_ac  ${INDENT}
 fi
 
     ipkg_ac_nb ${GIT}
@@ -339,6 +341,8 @@ ipkg_ac ${HELP2MAN}
 
 ipkg_ac ${LIBDVDCSS}
 ipkg_ac ${LIBDVDREAD} "--with-libdvdcss"
+INIT_D_PATH=/etc/rc.d/init.d ipkg_ac_nb ${FUSE}
+ipkg    ${DVDFS} cis-dvdfs
 
 ipkg    ${DOSFSTOOLS} cis-dosfstools