Index: .fossil-settings/ignore-glob ================================================================== --- .fossil-settings/ignore-glob +++ .fossil-settings/ignore-glob @@ -46,10 +46,16 @@ server/buildpkgs/tclreadline/build/* server/buildpkgs/tclreadline/out server/buildpkgs/tclreadline/out/* server/buildpkgs/tclreadline/src server/buildpkgs/tclreadline/src/* +server/buildpkgs/tdom/build +server/buildpkgs/tdom/build/* +server/buildpkgs/tdom/out +server/buildpkgs/tdom/out/* +server/buildpkgs/tdom/src +server/buildpkgs/tdom/src/* server/buildpkgs/tls/build server/buildpkgs/tls/build/* server/buildpkgs/tls/out server/buildpkgs/tls/out/* server/buildpkgs/tls/src Index: server/buildpkgs/build_all.sh ================================================================== --- server/buildpkgs/build_all.sh +++ server/buildpkgs/build_all.sh @@ -138,11 +138,15 @@ rm -f "${PROJROOTDIR}/platform.magic.dir" fi # Determine platform if [ -z "${FORCE_PLATFORM}" ]; then - PLATFORM="$(./platform)" + PLATFORM="$(echo 'package require platform; puts [platform::identify]' | ./tcl/inst-8.5/bin/tclsh8.5 2>/dev/null)" + + if [ -z "${PLATFORM}" ]; then + PLATFORM="$(./platform)" + fi else PLATFORM="${FORCE_PLATFORM}" fi export PLATFORM ADDED server/buildpkgs/certs.pem Index: server/buildpkgs/certs.pem ================================================================== --- /dev/null +++ server/buildpkgs/certs.pem @@ -0,0 +1,23 @@ +-----BEGIN CERTIFICATE----- +MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBs +MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 +d3cuZGlnaWNlcnQuY29tMSswKQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3VyYW5j +ZSBFViBSb290IENBMB4XDTA2MTExMDAwMDAwMFoXDTMxMTExMDAwMDAwMFowbDEL +MAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IEluYzEZMBcGA1UECxMQd3d3 +LmRpZ2ljZXJ0LmNvbTErMCkGA1UEAxMiRGlnaUNlcnQgSGlnaCBBc3N1cmFuY2Ug +RVYgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMbM5XPm ++9S75S0tMqbf5YE/yc0lSbZxKsPVlDRnogocsF9ppkCxxLeyj9CYpKlBWTrT3JTW +PNt0OKRKzE0lgvdKpVMSOO7zSW1xkX5jtqumX8OkhPhPYlG++MXs2ziS4wblCJEM +xChBVfvLWokVfnHoNb9Ncgk9vjo4UFt3MRuNs8ckRZqnrG0AFFoEt7oT61EKmEFB +Ik5lYYeBQVCmeVyJ3hlKV9Uu5l0cUyx+mM0aBhakaHPQNAQTXKFx01p8VdteZOE3 +hzBWBOURtCmAEvF5OYiiAhF8J2a3iLd48soKqDirCmTCv2ZdlYTBoSUeh10aUAsg +EsxBu24LUTi4S8sCAwEAAaNjMGEwDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQF +MAMBAf8wHQYDVR0OBBYEFLE+w2kD+L9HAdSYJhoIAu9jZCvDMB8GA1UdIwQYMBaA +FLE+w2kD+L9HAdSYJhoIAu9jZCvDMA0GCSqGSIb3DQEBBQUAA4IBAQAcGgaX3Nec +nzyIZgYIVyHbIUf4KmeqvxgydkAQV8GK83rZEWWONfqe/EW1ntlMMUu4kehDLI6z +eM7b41N5cdblIZQB2lWHmiRk9opmzN6cN82oNLFpmyPInngiK3BD41VHMWEZ71jF +hS9OMPagMRYjyOfiZRYzy78aG6A9+MpeizGLYAiJLQwGXFK3xPkKmNEVX58Svnw2 +Yzi9RKR/5CYrCsSXaQ3pjOLAEFe4yHYSkVXySGnYvCoCWw9E1CAx2/S6cCZdkGCe +vEsXCS+0yx5DaMkHJ8HSXPfqIbloEpw8nL+e/IBcm2PN7EeqJSdnoDfzAIJ9VNep ++OkuE6N36B9K +-----END CERTIFICATE----- Index: server/buildpkgs/common.sh ================================================================== --- server/buildpkgs/common.sh +++ server/buildpkgs/common.sh @@ -44,11 +44,15 @@ return 0 fi rm -f "${file}.tmp" "${file}" - wget -O "${file}.tmp" "${url}" || return 1 + if echo "${url}" | grep '^https://' >/dev/null; then + wget --ca-certificate='../certs.pem' -O "${file}.tmp" "${url}" || return 1 + else + wget -O "${file}.tmp" "${url}" || return 1 + fi mv "${file}.tmp" "${file}" } function download_src () { ADDED server/buildpkgs/tdom/build.sh Index: server/buildpkgs/tdom/build.sh ================================================================== --- /dev/null +++ server/buildpkgs/tdom/build.sh @@ -0,0 +1,43 @@ +#! /bin/bash + +# Define parameters +VERS=0.8.3 +SRC="src/tDOM-${VERS}.tgz" +SRCURL="https://github.com/downloads/tDOM/tdom/tDOM-${VERS}.tgz" +BUILDDIR="tDOM-${VERS}" +export VERS SRC SRCURL BUILDDIR + +# Load common functions +source ../common.sh + +# Do not build if the "tcl" platform has been requested +not_platforms 'tcl' + +# Download source +download_src + +# Build package +( + rm -rf build + mkdir -p "${PLATDIR}" >/dev/null 2>/dev/null + mkdir build + + cd build/ || exit 1 + + gzip -dc "../${SRC}" | tar -xf - + cd "${BUILDDIR}" || exit 1 + + bash ./configure --enable-shared --enable-threads --with-tcl="${TCLCONFIGDIR}" --prefix="${PLATDIR}" --libdir="${PLATDIR}" --bindir="${PLATDIR}" ${CONFIGUREEXTRA} + + ${MAKE:-make} || exit 1 + + ${MAKE:-make} install-binaries PKG_DIR='' || exit 1 + + rm -f "${PLATDIR}"/*.a + rm -f "${PLATDIR}"/tdomConfig.sh +) || exit 1 + +# Create metadata +../create_teapot "${PLATDIR}/teapot.txt" "tdom" "${VERS}" "${SRCURL}" "${PLATFORM}" "Tcl 8.4" "tDOM combines high performance XML data processing with easy and powerful Tcl scripting functionality. tDOM should be one of the fastest ways to manipulate XML with a scripting language and uses very little memory in the process. http://tdom.github.com/" + +exit 0