diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl index c056e27..3774cbc 100644 --- a/LFS/lfs.xsl +++ b/LFS/lfs.xsl @@ -118,102 +118,9 @@ cd $PKGDIR - - - mkdir -pv $PKG_DEST/{boot,etc,lib,bin,sbin} -mkdir -pv $PKG_DEST/usr/{lib,bin,sbin,include} -mkdir -pv $PKG_DEST/usr/share/{doc,info,man} -mkdir -pv $PKG_DEST/usr/share/man/man{1..8} -ln -sv share/{man,doc,info} $PKG_DEST/usr -case $(uname -m) in - x86_64) ln -sv lib $PKG_DEST/lib64 && ln -sv lib $PKG_DEST/usr/lib64 ;; -esac - - - - mkdir -pv $PKG_DEST/usr/include/{rpc,rpcsvc} - - - - - - - rm -fv $PKG_DEST/usr/share/man/{man3/getspnam.3,man5/passwd.5} - - - rm -fv $PKG_DEST/{,usr/}lib64 -rm -fv $PKG_DEST/usr/{man,doc,info} -for dir in $PKG_DEST/usr/share/man/man{1..8}; do - [[ -z $(ls $dir) ]] && rmdir -v $dir -done -for dir in $PKG_DEST/usr/share/{doc,info,man}; do - [[ -z $(ls $dir) ]] && rmdir -v $dir -done -for dir in $PKG_DEST/usr/{lib,bin,sbin,include}; do - [[ -z $(ls $dir) ]] && rmdir -v $dir -done -for dir in $PKG_DEST/{boot,etc,lib,bin,sbin}; do - [[ -z $(ls $dir) ]] && rmdir -v $dir -done -packInstall -rm -rf $PKG_DEST - - - - - - - - - - - - - - - - - if LOCALE=`grep " - - /" $PKGDIR/localedata/SUPPORTED`; then - CHARMAP=`echo $LOCALE | sed 's,[^/]*/\([^ ]*\) [\],\1,'` - INPUT=`echo $LOCALE | sed 's,[/.].*,,'` - LOCALE=`echo $LOCALE | sed 's,/.*,,'` - localedef -i $INPUT -f $CHARMAP $LOCALE -fi - - - - - - + + + + + + + + + + + + + + + + mkdir -pv $PKG_DEST/{boot,etc,lib,bin,sbin} +mkdir -pv $PKG_DEST/usr/{lib,bin,sbin,include} +mkdir -pv $PKG_DEST/usr/share/{doc,info,man} +mkdir -pv $PKG_DEST/usr/share/man/man{1..8} +ln -sv share/{man,doc,info} $PKG_DEST/usr +case $(uname -m) in + x86_64) ln -sv lib $PKG_DEST/lib64 && ln -sv lib $PKG_DEST/usr/lib64 ;; +esac + + + + mkdir -pv $PKG_DEST/usr/include/{rpc,rpcsvc} + + + + + + + rm -fv $PKG_DEST/usr/share/man/{man3/getspnam.3,man5/passwd.5} + + + rm -fv $PKG_DEST/{,usr/}lib64 +rm -fv $PKG_DEST/usr/{man,doc,info} +for dir in $PKG_DEST/usr/share/man/man{1..8}; do + [[ -z $(ls $dir) ]] && rmdir -v $dir +done +for dir in $PKG_DEST/usr/share/{doc,info,man}; do + [[ -z $(ls $dir) ]] && rmdir -v $dir +done +for dir in $PKG_DEST/usr/{lib,bin,sbin,include}; do + [[ -z $(ls $dir) ]] && rmdir -v $dir +done +for dir in $PKG_DEST/{boot,etc,lib,bin,sbin}; do + [[ -z $(ls $dir) ]] && rmdir -v $dir +done +packInstall +rm -rf $PKG_DEST + + + + + + + + + + + + + + + + + if LOCALE=`grep " + + /" $PKGDIR/localedata/SUPPORTED`; then + CHARMAP=`echo $LOCALE | sed 's,[^/]*/\([^ ]*\) [\],\1,'` + INPUT=`echo $LOCALE | sed 's,[/.].*,,'` + LOCALE=`echo $LOCALE | sed 's,/.*,,'` + localedef -i $INPUT -f $CHARMAP $LOCALE +fi + + + + + + + + + diff --git a/common/libs/func_book_parser b/common/libs/func_book_parser index 5734f6f..eabcb6f 100644 --- a/common/libs/func_book_parser +++ b/common/libs/func_book_parser @@ -137,7 +137,9 @@ extract_commands() { # lfs) echo -n " ${L_arrow}${BOLD}LFS${R_arrow} build... " pushd $BOOK > /dev/null - bash process-scripts.sh >> $LOGDIR/$LOG 2>&1 + if [ -f process.scripts.sh ]; then + bash process-scripts.sh >> $LOGDIR/$LOG 2>&1 + fi popd > /dev/null xsltproc --nonet \ --xinclude \ diff --git a/common/libs/func_wrt_Makefile b/common/libs/func_wrt_Makefile index 8c5fe23..3624e12 100644 --- a/common/libs/func_wrt_Makefile +++ b/common/libs/func_wrt_Makefile @@ -96,6 +96,8 @@ get_package_tarball_name() { # ;; e2fsprogs-libs) echo $(grep "^e2fsprogs" $JHALFSDIR/pkg_tarball_list | head -n1 ) ;; + libcap) echo $(grep "^libcap" $JHALFSDIR/pkg_tarball_list | head -n1 ) + ;; util-linux-libs) echo $(grep "^util-linux" $JHALFSDIR/pkg_tarball_list | head -n1 ) ;; xz-utils) echo $(grep "^xz" $JHALFSDIR/pkg_tarball_list | head -n1 )