Changeset 7072e1f for jhalfs


Ignore:
Timestamp:
02/01/2012 11:29:37 PM (12 years ago)
Author:
Thomas Pegg <thomasp@…>
Branches:
2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
2c9a16b
Parents:
f5dc6d7
Message:

Commit Pierre Labastie's patch for including package management support in jhalfs. NOTE: Package management is by default disabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jhalfs

    rf5dc6d7 r7072e1f  
    8888[[ $VERBOSITY > 0 ]] && echo -n "Loading config params from <configuration>..."
    8989source configuration
    90 [[ $? > 0 ]] && echo "file:configuration did not load.." && exit 1
     90[[ $? > 0 ]] && echo "file: configuration did not load.." && exit 1
    9191[[ $VERBOSITY > 0 ]] && echo "OK"
    9292
    9393# These are boolean vars generated from Config.in.
    94 # ISSUE: If a boolean parameter is not set <true> that
    95 # variable is not defined by the menu app. This can
    96 # cause a headache if you are not careful.
    97 #  The following parameters MUST be created and have a
    98 #  default value.
     94# ISSUE: If a boolean parameter is not set to y(es) there
     95# is no variable defined by the menu app. This can
     96# cause a headache if you are not aware.
     97#  The following variables MUST exist. If they don't, the
     98#  default value is n(o).
    9999RUNMAKE=${RUNMAKE:-n}
    100100GETPKG=${GETPKG:-n}
     
    103103RUN_FARCE=${RUN_FARCE:-n}
    104104RUN_ICA=${RUN_ICA:-n}
     105PKGMNGT=${PKGMNGT:-n}
    105106BOMB_TEST=${BOMB_TEST:-n}
    106107STRIP=${STRIP:=n}
     
    181182              * )  BLFS_TREE=tags/${BLFS_BRANCH_ID} ;;
    182183  esac
    183   # Dependencies envars, more easy to update.
     184  # Dependencies envars, easier to update.
    184185  # Tidy and Unzip version are harcoded also in wrt_blfs_tool_targets()
    185186    # libxml2
    186   LIBXML_PKG="libxml2-2.6.29.tar.gz"
     187  LIBXML_PKG="libxml2-2.7.8.tar.gz"
    187188  LIBXML_URL="ftp://xmlsoft.org/libxml2/${LIBXML_PKG}"
    188   LIBXML_MD5="8b99b6e8b08e838438d9e6b639d79ebd"
     189  LIBXML_MD5="8127a65e8c3b08856093099b52599c86"
    189190    # libxslt
    190   LIBXSLT_PKG="libxslt-1.1.21.tar.gz"
     191  LIBXSLT_PKG="libxslt-1.1.26.tar.gz"
    191192  LIBXSLT_URL="ftp://xmlsoft.org/libxslt/${LIBXSLT_PKG}"
    192   LIBXSLT_MD5="59fe34e85692f71df2a38c2ee291b3ca"
     193  LIBXSLT_MD5="e61d0364a30146aaa3001296f853b2b9"
    193194    # tidy
    194   TIDY_PKG="tidy-cvs_20070326.tar.bz2"
    195   TIDY_URL="http://anduin.linuxfromscratch.org/files/BLFS/sources/${TIDY_PKG}"
    196   TIDY_MD5="468bfaa5cf917a8ecbe7834c13a61376"
     195  TIDY_PKG="tidy-cvs_20101110.tar.bz2"
     196  TIDY_URL="http://anduin.linuxfromscratch.org/sources/BLFS/svn/t/${TIDY_PKG}"
     197  TIDY_MD5="dd1fe109b4259ad3f364b175787ad5e9"
    197198    # unzip
    198   UNZIP_PKG="unzip552.tar.gz"
     199  UNZIP_PKG="unzip60.tar.gz"
    199200  UNZIP_URL="http://downloads.sourceforge.net/infozip/${UNZIP_PKG}"
    200   UNZIP_MD5="9d23919999d6eac9217d1f41472034a9"
    201     # unzip security patch
    202   UNZIP_PATCH="unzip-5.52-security_fix-1.patch"
    203   UNZIP_PATCH_URL="http://www.linuxfromscratch.org/patches/blfs/svn/${UNZIP_PATCH}"
    204   UNZIP_PATCH_MD5="00ebf64fdda2ad54ddfc619f85f328bb"
     201  UNZIP_MD5="62b490407489521db863b523a7f86375"
    205202    # DocBook XML DTD
    206203  DBXML_PKG="docbook-xml-4.5.zip"
     
    211208#   DBXSL_URL="http://prdownloads.sourceforge.net/docbook/${DBXSL_PKG}"
    212209#   DBXSL_MD5="6ebd29a67f2dcc3f2220f475ee6f6552"
    213     # Links
    214   LYNX_PKG="lynx2.8.6.tar.bz2"
    215   LYNX_URL="http://lynx.isc.org/release/${LYNX_PKG}"
    216   LYNX_MD5="dc80497b7dda6a28fd80404684d27548"
     210    # Lynx
     211  LYNX_PKG="lynx2.8.7rel.2.tar.bz2"
     212  LYNX_URL="http://lynx.isc.org/current/${LYNX_PKG}"
     213  LYNX_MD5="cb936aef812e4e463ab86cbbe14d4db9"
    217214    # sudo
    218   SUDO_PKG="sudo-1.6.8p12.tar.gz"
    219   SUDO_URL="http://anduin.linuxfromscratch.org/sources/BLFS/svn/s/${SUDO_PKG}"
    220   SUDO_MD5="b29893c06192df6230dd5f340f3badf5"
    221     # sudo envar fix patch
    222   SUDO_PATCH="sudo-1.6.8p12-envvar_fix-1.patch"
    223   SUDO_PATCH_URL="http://www.linuxfromscratch.org/patches/blfs/svn/${SUDO_PATCH}"
    224   SUDO_PATCH_MD5="454925aedfe054dff8fe0d03b209f986"
     215  SUDO_PKG="sudo-1.8.2.tar.gz"
     216  SUDO_URL="http://www.sudo.ws/sudo/dist/${SUDO_PKG}"
     217  SUDO_MD5="000f458e7391be9fdf459a9ad6a4912a"
    225218    # wget
    226   WGET_PKG="wget-1.10.2.tar.gz"
     219  WGET_PKG="wget-1.13.4.tar.xz"
    227220  WGET_URL="ftp://ftp.gnu.org/gnu/wget/${WGET_PKG}"
    228   WGET_MD5="795fefbb7099f93e2d346b026785c4b8"
     221  WGET_MD5="7f518b3a71e9efd330e9a0c3714f8463"
     222    # SQLite (for subversion)
     223  SQLITE_PKG="sqlite-autoconf-3070800.tar.gz"
     224  SQLITE_URL="http://sqlite.org/${SQLITE_PKG}"
     225  SQLITE_MD5="6bfb46d73caaa1bbbcd2b52184b6c542"
     226    # Apache Portable Runtime (for subversion)
     227  APR_PKG="apr-1.4.5.tar.bz2"
     228  APR_URL="http://mirror.speednetwork.de/apache/apr/$APR_PKG"
     229  APR_MD5="8b53f5a5669d0597f2da889a2f576eb6"
     230    # APR config patch
     231  APR_PATCH_1="apr-1.4.5-config.patch"
     232  APR_PATCH_1_URL="file:///sources/local-patches/${APR_PATCH_1}"
     233  APR_PATCH_1_MD5="fff6eddf998f4e956915f8053c15e41e"
     234    # Apache Portable Runtime Utilities (for subversion)
     235  APR_U_PKG="apr-util-1.4.1.tar.bz2"
     236  APR_U_URL="http://mirrors.ircam.fr/pub/apache/apr/$APR_U_PKG"
     237  APR_U_MD5="52b31b33fb1aa16e65ddaefc76e41151"
     238    # APR-util config patch
     239  APR_U_PATCH_1="apr-util-1.4.1-config.patch"
     240  APR_U_PATCH_1_URL="file:///sources/local-patches/${APR_U_PATCH_1}"
     241  APR_U_PATCH_1_MD5="4c07cb0d298ae9ddc75cd2d5acdedb2b"
    229242    # Subversion
    230   SVN_PKG="subversion-1.3.1.tar.bz2"
    231   SVN_URL="http://subversion.tigris.org/tarballs/${SVN_PKG}"
    232   SVN_MD5="07b95963968ae345541ca99d0e7bf082"
     243  SVN_PKG="subversion-1.7.1.tar.bz2"
     244  SVN_URL="http://archive.apache.org/dist/subversion/${SVN_PKG}"
     245  SVN_MD5="8a4fa74385df85a9702141b6b68b8307"
    233246    # GPM
    234   GPM_PKG="gpm-1.20.1.tar.bz2"
    235   GPM_URL="ftp://ftp.linux.ee/pub/gentoo/distfiles/distfiles/${GPM_PKG}"
    236   GPM_MD5="2c63e827d755527950d9d13fe3d87692"
    237     # GPM segfaul patch
    238   GPM_PATCH_1="gpm-1.20.1-segfault-1.patch"
    239   GPM_PATCH_1_URL="http://www.linuxfromscratch.org/patches/blfs/svn/${GPM_PATCH_1}"
    240   GPM_PATCH_1_MD5="8c88f92990ba7613014fcd1db14ca7ac"
    241     # GPM silent patch
    242   GPM_PATCH_2="gpm-1.20.1-silent-1.patch"
    243   GPM_PATCH_2_URL="http://www.linuxfromscratch.org/patches/blfs/svn/${GPM_PATCH_2}"
    244   GPM_PATCH_2_MD5="bf6cbefe20c6f15b587f19ebc1c8a37a"
     247  GPM_PKG="gpm-1.20.6.tar.bz2"
     248  GPM_URL="http://www.nico.schottelius.org/software/gpm/archives/$GPM_PKG"
     249  GPM_MD5="6b534da16dc1b28ba828dea89e520f6f"
    245250fi
    246251
    247252#--- Envars not sourced from configuration
    248253case $PROGNAME in
    249   clfs* ) declare -r SVN="http://svn.cross-lfs.org/svn/repos" ;;
     254# TODO: clfs is now on git
     255#  clfs* ) declare -r SVN="http://svn.cross-lfs.org/svn/repos" ;;
    250256      * ) declare -r SVN="svn://svn.linuxfromscratch.org" ;;
    251257esac
    252258declare -r LOG=000-masterscript.log
    253   # Needed to can fetch BLFS book sources when building CLFS
     259  # Needed for fetching BLFS book sources when building CLFS
    254260declare -r SVN_2="svn://svn.linuxfromscratch.org"
    255261
     
    258264PACKAGE_DIR=$(echo $PROGNAME | tr '[a-z]' '[A-Z]')
    259265MODULE=$PACKAGE_DIR/master.sh
     266PKGMNGTDIR="pkgmngt"
     267# The name packageManager.xml is hardcoded in *.xsl, so no variable.
    260268
    261269[[ $VERBOSITY > 0 ]] && echo -n "Loading common-functions module..."
     
    370378  #
    371379
     380  # Copy packageManager.xml, if needed
     381  [[ "$PKGMNGT" = "y" ]] && [[ "$PROGNAME" = "lfs" ]] &&
     382    cp $PKGMNGTDIR/packageManager.xml  $JHALFSDIR/ &&
     383    cp $PKGMNGTDIR/packInstall.sh  $JHALFSDIR/
     384  #
    372385  # Copy urls.xsl, if needed
    373386  [[ "$GETPKG" = "y" ]] && cp $COMMON_DIR/urls.xsl  $JHALFSDIR/
     387  #
     388  # Copy APR patches, if needed
     389  [[ "$DEP_SVN" = "y" ]] &&
     390         cp $COMMON_DIR/blfs-tool-deps/apr*.patch  $BUILDDIR/sources
    374391  #
    375392  # Create the test-log directory, if needed
     
    382399  if [[ "$REPORT" = "y" ]]; then
    383400    cp $COMMON_DIR/create-sbu_du-report.sh  $JHALFSDIR/
    384     # After being sure that all looks sane, dump the settings to a file
     401    # After making sure that all looks sane, dump the settings to a file
    385402    # This file will be used to create the REPORT header
    386403    validate_config > $JHALFSDIR/jhalfs.config
Note: See TracChangeset for help on using the changeset viewer.