#!/bin/bash
#
# Target dist: Ubuntu xenial
DIST=xenial

rm -rf ${DIST}
cp -r debian ${DIST}

# mi_xmlrpc module
sed -i 's/libxmlrpc-c3-dev/libxmlrpc-core-c3-dev/' ${DIST}/control

# old mysql
sed -i -e 's/default-mysql-client/mysql-client/' \
  -e 's/default-libmysqlclient-dev/libmysqlclient-dev/' ${DIST}/control

# no libssl-dev
sed -i -e '/libssl-dev/d' ${DIST}/control

# clean backports scripts
rm -rf ${DIST}/backports
exit 0