diff options
author | Otto Kekäläinen <otto@seravo.fi> | 2015-07-21 23:37:05 +0300 |
---|---|---|
committer | Otto Kekäläinen <otto@seravo.fi> | 2015-07-22 10:28:39 +0300 |
commit | 6809fdb7413473bd94385f0d13680ee26c17661a (patch) | |
tree | c36f774233046ff2026ef90973273c82d7336c9e /debian/autobake-deb.sh | |
parent | af9509d0d8edafa1f5c4896cc75165a378649dfe (diff) | |
download | mariadb-git-6809fdb7413473bd94385f0d13680ee26c17661a.tar.gz |
Update autobake.sh to match control file location. Drop lucid and squeeze support.
Diffstat (limited to 'debian/autobake-deb.sh')
-rwxr-xr-x | debian/autobake-deb.sh | 35 |
1 files changed, 5 insertions, 30 deletions
diff --git a/debian/autobake-deb.sh b/debian/autobake-deb.sh index d5cbb4ed51e..a716b1ad33d 100755 --- a/debian/autobake-deb.sh +++ b/debian/autobake-deb.sh @@ -28,47 +28,22 @@ PATCHLEVEL="+maria" LOGSTRING="MariaDB build" # Look up distro-version specific stuff. -# -# Libreadline changed to GPLv3. Old GPLv2 version is available, but it -# is called different things on different versions. + CODENAME="$(lsb_release -sc)" -case "${CODENAME}" in - lucid) LIBREADLINE_DEV='libreadline5-dev | libreadline-dev' ;; - squeeze) LIBREADLINE_DEV=libreadline5-dev ;; - *) LIBREADLINE_DEV=libreadline-gplv2-dev ;; -esac # add libcrack2 (>= 2.9.0) as a build dependency # but only where the distribution can possibly satisfy it if apt-cache madison cracklib2|grep 'cracklib2 *| *2\.[0-8]\.' >/dev/null 2>&1 then - MAYBE_LIBCRACK='' + # Anything in MARIADB_OPTIONAL_DEBS is omitted from the resulting + # packages by snipped in rules file MARIADB_OPTIONAL_DEBS="${MARIADB_OPTIONAL_DEBS} cracklib-password-check-10.1" + sed -i -e "/\\\${MAYBE_LIBCRACK}/d" debian/control else MAYBE_LIBCRACK='libcrack2-dev (>= 2.9.0),' + sed -i -e "s/\\\${MAYBE_LIBCRACK}/${MAYBE_LIBCRACK}/g" debian/control fi -# Clean up build file symlinks that are distro-specific. First remove all, then set -# new links. -DISTRODIRS="$(ls ./debian/dist)" -for distrodir in ${DISTRODIRS}; do - DISTROFILES="$(ls ./debian/dist/${distrodir})" - for distrofile in ${DISTROFILES}; do - rm -f "./debian/${distrofile}"; - done; -done; - -# Set no symlinks for build files in the debian dir, so we avoid adding AppArmor on Debian. -DISTRO="$(lsb_release -si)" -echo "Copying distribution specific build files for ${DISTRO}" -DISTROFILES="$(ls ./debian/dist/${DISTRO})" -for distrofile in ${DISTROFILES}; do - rm -f "./debian/${distrofile}" - sed -e "s/\\\${LIBREADLINE_DEV}/${LIBREADLINE_DEV}/g" \ - -e "s/\\\${MAYBE_LIBCRACK}/${MAYBE_LIBCRACK}/g" \ - < "./debian/dist/${DISTRO}/${distrofile}" > "./debian/${distrofile}" - chmod --reference="./debian/dist/${DISTRO}/${distrofile}" "./debian/${distrofile}" -done; # Adjust changelog, add new version. # |