Commit 27f364e2 authored by Julian Wiesener's avatar Julian Wiesener

Build klarlack instead of varnish

parent d7f9043e
#!/bin/bash #!/bin/bash
PREFIX="/home/pkgbuild/uplex-varnish-dpkg" PREFIX="/home/pkgbuild/ino/uplex-varnish-dpkg"
DPKGDIR="${PREFIX}/dpkg" DPKGDIR="${PREFIX}/dpkg"
BUILDDIR="${PREFIX}/build" BUILDDIR="${PREFIX}/build"
PATH="${PREFIX}/bin:${PATH}" PATH="${PREFIX}/bin:${PATH}"
...@@ -51,17 +51,6 @@ if [ -z "${VERSION}" ]; then ...@@ -51,17 +51,6 @@ if [ -z "${VERSION}" ]; then
VERSION=$(date "+%Y%m%d") VERSION=$(date "+%Y%m%d")
fi fi
if [ -z "${VARNISHABI}" ]; then
VARNISHABI=$(${PREFIX}/bin/getvarnishabi.py)
if [ $? -ne 0 ]; then
exit 1
fi
fi
sed -i '/^GIT_CHEKOUT/d' varnish/overrides || exit 1
echo "GIT_CHEKOUT=${VARNISHABI}" >> varnish/overrides || exit 1
if [ -z "${DEBRELEASE}" ]; then if [ -z "${DEBRELEASE}" ]; then
for dist in $(<build_dist.list); do for dist in $(<build_dist.list); do
ERR=0 ERR=0
......
#!/bin/bash #!/bin/bash
PREFIX="/home/pkgbuild/uplex-varnish-dpkg" PREFIX="/home/pkgbuild/ino/uplex-varnish-dpkg"
DPKGDIR="${PREFIX}/dpkg" DPKGDIR="${PREFIX}/dpkg"
PKGNAME="$1" PKGNAME="$1"
BUILDDIR="${PREFIX}/build" BUILDDIR="${PREFIX}/build"
...@@ -60,12 +60,15 @@ fi ...@@ -60,12 +60,15 @@ fi
SRCDIR="${BUILDDIR}/${SRCDIR}" SRCDIR="${BUILDDIR}/${SRCDIR}"
cd "${SRCDIR}" || exit 1 cd "${SRCDIR}" || exit 1
if ! [ -z "${GIT_CHEKOUT}" ]; then if [ -z "${KEEP_SOURCE}" ]; then
${GIT_FETCH} || exit 1 if ! [ -z "${GIT_CHEKOUT}" ]; then
git checkout ${GIT_CHEKOUT} || exit 1 git reset --hard
fi ${GIT_FETCH} || exit 1
if [ -f ./debian/changelog ]; then git checkout ${GIT_CHEKOUT} || exit 1
rm ./debian/changelog || exit 1 fi
fi
if [ -d debian/source ]; then
rm -r debian/source
fi fi
rsync -a ${DEBDIR} ./ rsync -a ${DEBDIR} ./
if type prep_src >/dev/null 2>&1; then if type prep_src >/dev/null 2>&1; then
...@@ -73,13 +76,20 @@ if type prep_src >/dev/null 2>&1; then ...@@ -73,13 +76,20 @@ if type prep_src >/dev/null 2>&1; then
fi fi
sed "s/DPGK_VERSION/${FULL_VERSION}/g" ${DEBDIR}/control > debian/control || exit 1 sed "s/DPGK_VERSION/${FULL_VERSION}/g" ${DEBDIR}/control > debian/control || exit 1
if [ -f ${DEBDIR}/control.in ]; then
sed "s/DPGK_VERSION/${FULL_VERSION}/g" ${DEBDIR}/control.in > debian/control.in || exit 1
fi
if [ -f debian/changelog ]; then if [ -f debian/changelog ]; then
dch -u low -v "$FULL_VERSION" -D stable "${CHANGE_MSG}" || exit 1 dch -u low -v "$FULL_VERSION" -D stable "${CHANGE_MSG}" || exit 1
else else
dch -u low --package "${PKGNAME}" --create -v "$FULL_VERSION" -D stable "${CHANGE_MSG}" || exit 1 dch -u low --package "${PKGNAME}" --create -v "$FULL_VERSION" -D stable "${CHANGE_MSG}" || exit 1
fi fi
if [ -f debian/changelog.in ]; then
cp debian/changelog debian/changelog.in
fi
if ! [ -d "${SBUILDDIR}" ]; then if ! [ -d "${SBUILDDIR}" ]; then
mkdir -p "${SBUILDDIR}" || exit 1 mkdir -p "${SBUILDDIR}" || exit 1
fi fi
cd "${SBUILDDIR}" || exit 1 cd "${SBUILDDIR}" || exit 1
sbuild -d ${DEBRELEASE} --arch=${ARCH} ${SRCDIR} || exit 1 sbuild -d ${DEBRELEASE} --arch=${ARCH} ${SRCDIR} || exit 1
......
#!/bin/bash #!/bin/bash
PREFIX="/home/pkgbuild/uplex-varnish-dpkg" PREFIX="/home/pkgbuild/ino/uplex-varnish-dpkg"
DPKGDIR="${PREFIX}/dpkg" DPKGDIR="${PREFIX}/dpkg"
PKGNAME="$1" PKGNAME="$1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment