Added blfs-tool dependencies build scripts.
This commit is contained in:
parent
c03e5d0597
commit
3c5ca23f29
10 changed files with 190 additions and 0 deletions
11
common/blfs-tool-deps/901-libxml2
Normal file
11
common/blfs-tool-deps/901-libxml2
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $Id$
|
||||
|
||||
set -e
|
||||
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
make install
|
||||
|
||||
exit
|
11
common/blfs-tool-deps/902-libxslt
Normal file
11
common/blfs-tool-deps/902-libxslt
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $Id$
|
||||
|
||||
set -e
|
||||
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
make install
|
||||
|
||||
exit
|
38
common/blfs-tool-deps/903-docbook-xsl
Normal file
38
common/blfs-tool-deps/903-docbook-xsl
Normal file
|
@ -0,0 +1,38 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $Id$
|
||||
|
||||
set -e
|
||||
|
||||
install -v -m755 -d /usr/share/xml/docbook/xsl-stylesheets-1.69.1
|
||||
cp -v -R VERSION common eclipse extensions fo html \
|
||||
htmlhelp images javahelp lib manpages params \
|
||||
profiling slides template website xhtml \
|
||||
/usr/share/xml/docbook/xsl-stylesheets-1.69.1
|
||||
|
||||
if [ ! -d /etc/xml ]; then install -v -m755 -d /etc/xml; fi
|
||||
if [ ! -f /etc/xml/catalog ]; then
|
||||
xmlcatalog --noout --create /etc/xml/catalog
|
||||
fi
|
||||
|
||||
xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://docbook.sourceforge.net/release/xsl/1.69.1" \
|
||||
"/usr/share/xml/docbook/xsl-stylesheets-1.69.1" \
|
||||
/etc/xml/catalog
|
||||
|
||||
xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://docbook.sourceforge.net/release/xsl/1.69.1" \
|
||||
"/usr/share/xml/docbook/xsl-stylesheets-1.69.1" \
|
||||
/etc/xml/catalog
|
||||
|
||||
xmlcatalog --noout --add "rewriteSystem" \
|
||||
"http://docbook.sourceforge.net/release/xsl/current" \
|
||||
"/usr/share/xml/docbook/xsl-stylesheets-1.69.1" \
|
||||
/etc/xml/catalog
|
||||
|
||||
xmlcatalog --noout --add "rewriteURI" \
|
||||
"http://docbook.sourceforge.net/release/xsl/current" \
|
||||
"/usr/share/xml/docbook/xsl-stylesheets-1.69.1" \
|
||||
/etc/xml/catalog
|
||||
|
||||
exit
|
15
common/blfs-tool-deps/904-gpm
Normal file
15
common/blfs-tool-deps/904-gpm
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $Id$
|
||||
|
||||
set -e
|
||||
|
||||
patch -Np1 -i ../gpm-1.20.1-segfault-1.patch
|
||||
patch -Np1 -i ../gpm-1.20.1-silent-1.patch
|
||||
./configure --prefix=/usr --sysconfdir=/etc
|
||||
LDFLAGS="$LDFLAGS -lm" make
|
||||
make install
|
||||
cp -v conf/gpm-root.conf /etc
|
||||
ldconfig
|
||||
|
||||
exit
|
11
common/blfs-tool-deps/905-links
Normal file
11
common/blfs-tool-deps/905-links
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $Id$
|
||||
|
||||
set -e
|
||||
|
||||
./configure --prefix=/usr
|
||||
make CFLAGS="-O2 -Wno-sign-compare -Wno-pointer-sign"
|
||||
make install
|
||||
|
||||
exit
|
14
common/blfs-tool-deps/906-sudo
Normal file
14
common/blfs-tool-deps/906-sudo
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $Id$
|
||||
|
||||
set -e
|
||||
|
||||
patch -Np1 -i ../sudo-1.6.8p12-envvar_fix-1.patch
|
||||
./configure --prefix=/usr --libexecdir=/usr/lib \
|
||||
--enable-noargs-shell --with-ignore-dot --with-all-insults \
|
||||
--enable-shell-sets-home
|
||||
make
|
||||
make install
|
||||
|
||||
exit
|
11
common/blfs-tool-deps/907-wget
Normal file
11
common/blfs-tool-deps/907-wget
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $Id$
|
||||
|
||||
set -e
|
||||
|
||||
./configure --prefix=/usr --sysconfdir=/etc
|
||||
make
|
||||
make install
|
||||
|
||||
exit
|
18
common/blfs-tool-deps/908-subversion
Normal file
18
common/blfs-tool-deps/908-subversion
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $Id$
|
||||
|
||||
set -e
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--without-berkeley-db \
|
||||
--with-installbuilddir=/usr/lib/apr-0
|
||||
make
|
||||
make install
|
||||
rm doc/{Makefile,doxygen.conf}
|
||||
find doc -type d -exec chmod 755 {} \;
|
||||
find doc -type f -exec chmod 644 {} \;
|
||||
install -v -m755 -d /usr/share/doc/subversion-1.3.1
|
||||
cp -v -R doc/* /usr/share/doc/subversion-1.3.1
|
||||
|
||||
exit
|
|
@ -577,6 +577,8 @@ extract_commands() { #
|
|||
*) exit 1 ;;
|
||||
esac
|
||||
|
||||
[[ "${BLFS_TOOL}" = "y" ]] && copy_blfs_deps_scripts
|
||||
|
||||
echo " ...OK"
|
||||
|
||||
# Make the scripts executable.
|
||||
|
@ -824,6 +826,7 @@ add_blfs_deps_urls() { # No easy way to extract it.
|
|||
|
||||
if [[ "${DEP_SUDO}" = "y" ]] ; then
|
||||
echo "${SUDO_URL} ${BLFS_SERVER}sudo/${SUDO_PKG} ${SUDO_MD5}" >> urls.lst
|
||||
echo "${SUDO_PATCH_URL} ${BLFS_SERVER}sudo/${SUDO_PATCH} ${SUDO_PATCH_MD5}" >> urls.lst
|
||||
fi
|
||||
|
||||
if [[ "${DEP_WGET}" = "y" ]] ; then
|
||||
|
@ -836,6 +839,50 @@ add_blfs_deps_urls() { # No easy way to extract it.
|
|||
|
||||
if [[ "${DEP_GPM}" = "y" ]] ; then
|
||||
echo "${GPM_URL} ${BLFS_SERVER}gpm/${GPM_PKG} ${GPM_MD5}" >> urls.lst
|
||||
echo "${GPM_PATCH_1_URL} ${BLFS_SERVER}gpm/${GPM_PATCH_1} ${GPM_PATCH_1_MD5}" >> urls.lst
|
||||
echo "${GPM_PATCH_2_URL} ${BLFS_SERVER}gpm/${GPM_PATCH_2} ${GPM_PATCH_2_MD5}" >> urls.lst
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
#----------------------------# Maybe there is a better way to do this, but this
|
||||
copy_blfs_deps_scripts() { # method avoid to place the test on all
|
||||
#----------------------------# $PROGNAME/master.sh scripts.
|
||||
|
||||
mkdir -p ${PROGNAME}-commands/blfs-tool-deps
|
||||
|
||||
if [[ "${DEP_LIBXML}" = "y" ]] ; then
|
||||
mv blfs-tool-deps/901-libxml2 ${PROGNAME}-commands/blfs-tool-deps
|
||||
fi
|
||||
|
||||
if [[ "${DEP_LIBXSLT}" = "y" ]] ; then
|
||||
mv blfs-tool-deps/902-libxslt ${PROGNAME}-commands/blfs-tool-deps
|
||||
fi
|
||||
|
||||
if [[ "${DEP_DBXSL}" = "y" ]] ; then
|
||||
mv blfs-tool-deps/903-docbook-xsl ${PROGNAME}-commands/blfs-tool-deps
|
||||
fi
|
||||
|
||||
if [[ "${DEP_LINKS}" = "y" ]] ; then
|
||||
mv blfs-tool-deps/905-links ${PROGNAME}-commands/blfs-tool-deps
|
||||
fi
|
||||
|
||||
if [[ "${DEP_SUDO}" = "y" ]] ; then
|
||||
mv blfs-tool-deps/906-sudo ${PROGNAME}-commands/blfs-tool-deps
|
||||
fi
|
||||
|
||||
if [[ "${DEP_WGET}" = "y" ]] ; then
|
||||
mv blfs-tool-deps/907-wget ${PROGNAME}-commands/blfs-tool-deps
|
||||
fi
|
||||
|
||||
if [[ "${DEP_SVN}" = "y" ]] ; then
|
||||
mv blfs-tool-deps/908-subversion ${PROGNAME}-commands/blfs-tool-deps
|
||||
fi
|
||||
|
||||
if [[ "${DEP_GPM}" = "y" ]] ; then
|
||||
mv blfs-tool-deps/904-gpm ${PROGNAME}-commands/blfs-tool-deps
|
||||
fi
|
||||
|
||||
rm -rf blfs-tool-deps
|
||||
|
||||
}
|
14
jhalfs
14
jhalfs
|
@ -181,6 +181,10 @@ if [[ "${BLFS_TOOL}" = "y" ]] ; then
|
|||
SUDO_PKG="sudo-1.6.8p12.tar.gz"
|
||||
SUDO_URL="http://www.courtesan.com/sudo/dist/${SUDO_PKG}"
|
||||
SUDO_MD5="b29893c06192df6230dd5f340f3badf5"
|
||||
# sudo envar fix patch
|
||||
SUDO_PATCH="sudo-1.6.8p12-envvar_fix-1.patch"
|
||||
SUDO_PATCH_URL="http://www.linuxfromscratch.org/patches/blfs/svn/${SUDO_PATCH}"
|
||||
SUDO_PATCH_MD5="454925aedfe054dff8fe0d03b209f986"
|
||||
# wget
|
||||
WGET_PKG="wget-1.10.2.tar.gz"
|
||||
WGET_URL="ftp://ftp.gnu.org/gnu/wget/${WGET_PKG}"
|
||||
|
@ -193,6 +197,14 @@ if [[ "${BLFS_TOOL}" = "y" ]] ; then
|
|||
GPM_PKG="gpm-1.20.1.tar.bz2"
|
||||
GPM_URL="ftp://arcana.linux.it/pub/gpm/${GPM_PKG}"
|
||||
GPM_MD5="2c63e827d755527950d9d13fe3d87692"
|
||||
# GPM segfaul patch
|
||||
GPM_PATCH_1="gpm-1.20.1-segfault-1.patch"
|
||||
GPM_PATCH_1_URL="http://www.linuxfromscratch.org/patches/blfs/svn/${GPM_PATCH_1}"
|
||||
GPM_PATCH_1_MD5="8c88f92990ba7613014fcd1db14ca7ac"
|
||||
# GPM silent patch
|
||||
GPM_PATCH_2="gpm-1.20.1-silent-1.patch"
|
||||
GPM_PATCH_2_URL="http://www.linuxfromscratch.org/patches/blfs/svn/${GPM_PATCH_2}"
|
||||
GPM_PATCH_2_MD5="bf6cbefe20c6f15b587f19ebc1c8a37a"
|
||||
fi
|
||||
|
||||
# Set true internal variables
|
||||
|
@ -346,6 +358,8 @@ if [[ "${BLFS_TOOL}" = "y" ]] ; then
|
|||
# Set some harcoded envars to their proper values
|
||||
sed -i 's,blfs-xml,'$BLFS_XML',' ${BUILDDIR}${BLFS_ROOT}/{update_book.sh,libs/book.xsl}
|
||||
sed -i 's,tracking-dir,'$TRACKING_DIR',' ${BUILDDIR}${BLFS_ROOT}/{update_book.sh,gen-makefile.sh}
|
||||
# Copy the dependencies build scripts
|
||||
cp -r $COMMON_DIR/blfs-tool-deps $JHALFSDIR/
|
||||
fi
|
||||
|
||||
get_book
|
||||
|
|
Reference in a new issue