# Default subdirectory on server
SRC_DIR=$(get_pkg_name ${PACK})
fi
- SRC_DIR="${SRC_DIR}/$(get_pkg_ver_base ${PACK})"
+ SRC_DIR="${SRC_DIR}/$(get_pkg_ver2 ${PACK})"
;;
sf)
URL=${SOURCEFORGE_URL}
echo ${1} | sed "s!.*-\([0-9].*\)!\1!g"
}
-# Extracting the base version number from a complete package name.
-# Arg. #1: Complete package name with version (ex: gcc-3.4.4 will output 3.4)
-get_pkg_ver_base()
+# Extracting the first digit version number from a complete package name.
+# Arg. #1: Complete package name with version (ex: gcc-3.4.4 will output 3)
+get_pkg_ver1()
{
# Checking for correct number of arguments
if [ $# -ne 1 ]; then
return 1
fi
- echo ${1} | sed "s!^.*-\([0-9]*\.[0-9]*\).*!\1!g"
+ echo ${1} | sed "s!^.*-\([0-9]*\)\..*!\1!g"
}
-# Extracting the 3-digit version number from a complete package name.
-# Arg. #1: Complete package name with version
-# (ex: linux-2.6.37.1 will output 2.6.37)
-get_pkg_ver3()
+# Extracting the first 2 digits version number from a complete package name.
+# Arg. #1: Complete package name with version (ex: gcc-3.4.4 will output 3.4)
+get_pkg_ver2()
{
# Checking for correct number of arguments
if [ $# -ne 1 ]; then
return 1
fi
- echo ${1} | sed "s!^.*-\([0-9]*\.[0-9]*\.[0-9]*\).*!\1!g"
+ echo ${1} | sed "s!^.*-\([0-9]*\.[0-9]*\).*!\1!g"
}
-# Extracting the base version number from a complete package name.
-# Arg. #1: Complete package name with version (ex: gcc-3.4.4 will output 3)
-get_pkg_ver_major()
+# Extracting the first 3 digit version number from a complete package name.
+# Arg. #1: Complete package name with version
+# (ex: linux-2.6.37.1 will output 2.6.37)
+get_pkg_ver3()
{
# Checking for correct number of arguments
if [ $# -ne 1 ]; then
return 1
fi
- echo ${1} | sed "s!^.*-\([0-9]*\)\..*!\1!g"
+ echo ${1} | sed "s!^.*-\([0-9]*\.[0-9]*\.[0-9]*\).*!\1!g"
}
# Extracting the name from a complete package name.
fpkg ${XZ_UTILS} "http://tukaani.org/xz"
# Chapter 7
-fpkg -s "linux/utils/util-linux/v$(get_pkg_ver_base ${UTIL_LINUX})" \
+fpkg -s "linux/utils/util-linux/v$(get_pkg_ver2 ${UTIL_LINUX})" \
${UTIL_LINUX} ${KERNEL_URL}
fpkg -m sf ${E2FSPROGS}
fpkg ${SYSVINIT} "http://download.savannah.gnu.org/releases/sysvinit"
fi
ipkg ${KERBEROS5}
ipkg -m noac ${SENDMAIL} # Replace by SSMTP for workstation...
+ipkg ${MUTT} "--enable-imap --with-ssl --with-sasl"
if [ "x${INST_TYPE}" = "xserver" -o "x${INST_TYPE}" = "xltsp-server" ]; then
ipkg -m noac ${PROCMAIL}
ipkg -m noac ${SQUIRRELMAIL}
ipkg ${FETCHMAIL} "--with-ssl"
- ipkg ${MUTT} "--enable-imap --with-ssl"
# Subversion server (client was already installed in stage2)
ipkg ${SUBVERSION}
fpkg ${IMAGE_MAGICK} "ftp://ftp.imagemagick.org/pub/ImageMagick"
fpkg -m fd -s "none" ${POPPLER}
fpkg -m gnome ${LIBRSVG}
-fpkg ${BABL} "ftp://ftp.gtk.org/pub/babl/$(get_pkg_ver_base ${BABL})"
-fpkg ${GEGL} "ftp://ftp.gimp.org/pub/gegl/$(get_pkg_ver_base ${BABL})"
-fpkg ${GIMP} "ftp://ftp.gimp.org/pub/gimp/v$(get_pkg_ver_base ${GIMP})"
+fpkg ${BABL} "ftp://ftp.gtk.org/pub/babl/$(get_pkg_ver2 ${BABL})"
+fpkg ${GEGL} "ftp://ftp.gimp.org/pub/gegl/$(get_pkg_ver2 ${BABL})"
+fpkg ${GIMP} "ftp://ftp.gimp.org/pub/gimp/v$(get_pkg_ver2 ${GIMP})"
fpkg -m sf -s "gimp-print" -e "tar.bz2" ${GUTENPRINT}
fpkg -m sf -s "boost" ${BOOST}
fpkg -m sf ${INKSCAPE}
fpkg -m sf -e "tar.bz2" ${CDRDAO}
fpkg -m sf -e "tar.bz2" ${EASYTAG}
fpkg -e "tar.gz" ${LILYPOND} \
- "http://lilypond.org/download/sources/v$(get_pkg_ver_base ${LILYPOND})"
+ "http://lilypond.org/download/sources/v$(get_pkg_ver2 ${LILYPOND})"
fpkg -m hv ${FFMPEG}
fpkg ${SYLPHEED} \
- "http://sylpheed.good-day.net/sylpheed/v$(get_pkg_ver_base ${SYLPHEED})"
+ "http://sylpheed.good-day.net/sylpheed/v$(get_pkg_ver2 ${SYLPHEED})"
fpkg -m hv ${NSS}
fpkg -f "${FIREFOX}.source" ${FIREFOX} \
"http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$(get_pkg_ver ${FIREFOX})/source"
#fpkg_mis ${SPLINT} "${SPLINT}.src" "http://splint.org/downloads"
-GEDA_BASE_URL=http://geda.seul.org/release/v$(get_pkg_ver_base ${LIBGEDA})/$(get_pkg_ver ${LIBGEDA})
+GEDA_BASE_URL=http://geda.seul.org/release/v$(get_pkg_ver2 ${LIBGEDA})/$(get_pkg_ver ${LIBGEDA})
#fpkg ${LIBGEDA} ${GEDA_BASE_URL}
#fpkg ${GEDA_SYMBOLS} ${GEDA_BASE_URL}