diff --git a/build-ps/build-dpkg.sh b/build-ps/build-dpkg.sh deleted file mode 100755 index cac42db64e4f..000000000000 --- a/build-ps/build-dpkg.sh +++ /dev/null @@ -1,138 +0,0 @@ -#!/bin/sh -# Usage: build-dpkg.sh [target dir] -# The default target directory is the current directory. If it is not -# supplied and the current directory is not empty, it will issue an error in -# order to avoid polluting the current directory after a test run. -# -# The program will setup the dpkg building environment and ultimately call -# dpkg-buildpackage with the appropiate parameters. -# - -# Bail out on errors, be strict -set -ue - -# Examine parameters -go_out="$(getopt --options "k:Ke:bDS" \ - --longoptions key:,nosign,epoch:,binary,nodebug,source \ - --name "$(basename "$0")" -- "$@")" -test $? -eq 0 || exit 1 -eval set -- $go_out - -BUILDPKG_KEY='' -EPOCH='' -DPKG_BINSRC='' -SKIPDEBUG='' - -for arg -do - case "$arg" in - -- ) shift; break;; - -k | --key ) shift; BUILDPKG_KEY="-pgpg -k$1"; shift;; - -K | --nosign ) shift; BUILDPKG_KEY="-uc -us";; - -e | --epoch ) shift; EPOCH="$1:"; shift;; - -b | --binary ) shift; DPKG_BINSRC='-b';; - -D | --nodebug ) shift; SKIPDEBUG='yes';; - -S | --source ) shift; DPKG_BINSRC='-S';; - esac -done - -# Working directory -if test "$#" -eq 0 -then - WORKDIR="$(pwd)" - - # Check that the current directory is not empty - if test "x$(echo *)" != "x*" - then - echo >&2 \ - "Current directory is not empty. Use $0 . to force build in ." - exit 1 - fi - -elif test "$#" -eq 1 -then - WORKDIR="$1" - - # Check that the provided directory exists and is a directory - if ! test -d "$WORKDIR" - then - echo >&2 "$WORKDIR is not a directory" - exit 1 - fi - -else - echo >&2 "Usage: $0 [target dir]" - exit 1 - -fi - -SOURCEDIR="$(cd $(dirname "$0"); cd ..; pwd)" -test -e "$SOURCEDIR/Makefile" || exit 2 - -# The number of processors is a good default for -j -if test -e "/proc/cpuinfo" -then - PROCESSORS="$(grep -c ^processor /proc/cpuinfo)" -else - PROCESSORS=4 -fi - -# Extract version from the Makefile -MYSQL_VERSION="$(grep ^MYSQL_VERSION= "$SOURCEDIR/Makefile" \ - | cut -d = -f 2)" -PERCONA_SERVER_VERSION="$(grep ^PERCONA_SERVER_VERSION= "$SOURCEDIR/Makefile" | cut -d = -f 2)" -PRODUCT="Percona-Server-$MYSQL_VERSION-$PERCONA_SERVER_VERSION" -DEBIAN_VERSION="$(lsb_release -sc)" - - -# Build information -export BB_PERCONA_REVISION="$(cd "$SOURCEDIR"; bzr revno)" -export DEB_BUILD_OPTIONS='debug' - -# Compilation flags -export CC="${CC:-gcc}" -export CXX="${CXX:-gcc}" -export HS_CXX=${HS_CXX:-g++} -export UDF_CXX=${UDF_CXX:-g++} -export CFLAGS="-fPIC -Wall -O3 -g -static-libgcc -fno-omit-frame-pointer -DPERCONA_INNODB_VERSION=$PERCONA_SERVER_VERSION ${CFLAGS:-}" -export CXXFLAGS="-O2 -fno-omit-frame-pointer -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fno-exceptions -DPERCONA_INNODB_VERSION=$PERCONA_SERVER_VERSION ${CXXFLAGS:-}" -export MAKE_JFLAG="${MAKE_JFLAG:--j$PROCESSORS}" - -# Prepare sources -( - cd "$SOURCEDIR" - make clean all -) - -# Build -( - # Make a copy in workdir and copy debian files - cd "$WORKDIR" - - rm -rf "$PRODUCT/" - cp -a "$SOURCEDIR/$PRODUCT/" . - ( - cd "$PRODUCT/" - - # Copy debian files from source - cp -R "$SOURCEDIR/build/debian" . - chmod +x debian/rules - - # If nodebug is set, do not ship mysql-debug - if test "x$SKIPDEBUG" = "xyes" - then - sed -i '/mysqld-debug/d' debian/percona-server-server-5.5.install - fi - - # Update distribution name - dch -m -D "$DEBIAN_VERSION" --force-distribution -v "$EPOCH$MYSQL_VERSION-$PERCONA_SERVER_VERSION-$BB_PERCONA_REVISION.$DEBIAN_VERSION" 'Update distribution' - - DEB_CFLAGS_APPEND="$CFLAGS" DEB_CXXFLAGS_APPEND="$CXXFLAGS" \ - SKIP_DEBUG_BINARY="$SKIPDEBUG" \ - dpkg-buildpackage $DPKG_BINSRC -rfakeroot $BUILDPKG_KEY - - ) - - rm -rf "$PRODUCT" - -) diff --git a/build-ps/debian/libmysqlclient18-dev.README.Maintainer b/build-ps/debian/libmysqlclient18-dev.README.Maintainer deleted file mode 100644 index f24cdcd519d6..000000000000 --- a/build-ps/debian/libmysqlclient18-dev.README.Maintainer +++ /dev/null @@ -1,4 +0,0 @@ -The examples directory includes files that might be needed by some -developers: -- header files not installed by default -- the example file udf_example.c diff --git a/build-ps/debian/libmysqlclient18-dev.examples b/build-ps/debian/libmysqlclient18-dev.examples deleted file mode 100644 index f1649c311c4b..000000000000 --- a/build-ps/debian/libmysqlclient18-dev.examples +++ /dev/null @@ -1 +0,0 @@ -sql/udf_example.c diff --git a/build-ps/debian/libmysqlclient18-dev.install b/build-ps/debian/libmysqlclient18-dev.install deleted file mode 100644 index fc3f0c68804b..000000000000 --- a/build-ps/debian/libmysqlclient18-dev.install +++ /dev/null @@ -1,7 +0,0 @@ -usr/bin/mysql_config -usr/include -usr/lib/libmysqlclient.a -usr/lib/libmysqlclient_r.a -usr/lib/libmysqlservices.a -usr/lib/libhsclient.a -usr/share/man/man1/mysql_config.1 diff --git a/build-ps/debian/libmysqlclient18-dev.links b/build-ps/debian/libmysqlclient18-dev.links deleted file mode 100644 index 0076791dcfa1..000000000000 --- a/build-ps/debian/libmysqlclient18-dev.links +++ /dev/null @@ -1,2 +0,0 @@ -usr/lib/libmysqlclient.so.18 usr/lib/libmysqlclient.so -usr/lib/libmysqlclient_r.so.18 usr/lib/libmysqlclient_r.so diff --git a/build-ps/debian/libmysqlclient18.links b/build-ps/debian/libmysqlclient18.links deleted file mode 100644 index 7fca44703a89..000000000000 --- a/build-ps/debian/libmysqlclient18.links +++ /dev/null @@ -1 +0,0 @@ -usr/lib/libmysqlclient.so.18.0.0 usr/lib/libmysqlclient_r.so.18.0.0 diff --git a/build-ps/debian/percona-server-client-5.5.menu b/build-ps/debian/percona-server-client-5.5.menu deleted file mode 100644 index 1378555c423f..000000000000 --- a/build-ps/debian/percona-server-client-5.5.menu +++ /dev/null @@ -1,3 +0,0 @@ -# According to /usr/share/menu/ policy 1.4, not /usr/share/doc/debian-policy/ -?package(innotop):needs="text" section="Applications/Data Management"\ - title="innotop" command="/usr/bin/innotop" diff --git a/plugin/percona-udf/Makefile.am b/plugin/percona-udf/Makefile.am deleted file mode 100644 index f8238b2370ae..000000000000 --- a/plugin/percona-udf/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -ACLOCAL_AMFLAGS = -I m4 - -SUBDIRS = src diff --git a/plugin/percona-udf/configure.ac b/plugin/percona-udf/configure.ac deleted file mode 100644 index 79f7c3aecfae..000000000000 --- a/plugin/percona-udf/configure.ac +++ /dev/null @@ -1,10 +0,0 @@ -AC_INIT([pt-udf], [0.1], [https://bugs.launchpad.net/percona-toolkit]) -AM_INIT_AUTOMAKE([foreign -Wall -Wno-extra-portability foreign]) -AC_CONFIG_MACRO_DIR([m4]) -LT INIT -AC_PROG_LIBTOOL -AC_PROG_CC -AC_PROG_CXX -AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_FILES([Makefile src/Makefile]) -AC_OUTPUT diff --git a/plugin/percona-udf/src/Makefile.am b/plugin/percona-udf/src/Makefile.am deleted file mode 100644 index a800bd46d9ab..000000000000 --- a/plugin/percona-udf/src/Makefile.am +++ /dev/null @@ -1,7 +0,0 @@ -lib_LTLIBRARIES = libfnv1a_udf.la libfnv_udf.la libmurmur_udf.la -libfnv1a_udf_la_SOURCES = fnv1a_udf.cc -libfnv_udf_la_SOURCES = fnv_udf.cc -libmurmur_udf_la_SOURCES = murmur_udf.cc -libfnv1a_udf_la_CPPFLAGS = -I$(includedir) -libfnv_udf_la_CPPFLAGS = -I$(includedir) -libmurmur_udf_la_CPPFLAGS = -I$(includedir)