2 export DEBFULLNAME
="PowerDNS.COM BV AutoBuilder"
3 export DEBEMAIL
="noreply@powerdns.com"
5 if [ -z "$VERSION" ]; then
6 echo 'Please set $VERSION' >&2
10 if [ -z "$RELEASE" ];then
11 echo 'Please set $RELEASE' >&2
15 TARBALLVERSION
=${TARBALLVERSION:-$VERSION}
17 TARBALLFILE
=${TARBALLPREFIX}-${TARBALLVERSION}.
tar.bz2
19 if [ ! -f ${TARBALLFILE} ]; then
20 echo "${TARBALLFILE} not found" >&2
28 tar -xf ${TARBALLFILE} -C ${DIR}
30 SRCDIR
=${DIR}/${TARBALLPREFIX}-${TARBALLVERSION}
31 if [ "${TARBALLPREFIX}" = "pdns" ]; then
32 cp -r build-scripts
/debian-authoritative
${SRCDIR}/debian
33 elif [ "${TARBALLPREFIX}" = "pdns-recursor" ]; then
34 cp -r build-scripts
/debian-recursor
${SRCDIR}/debian
36 cp -r build-scripts
/debian-
${TARBALLPREFIX} ${SRCDIR}/debian
40 cp_tarball_to_rpm_sources
() {
42 cp ${TARBALLFILE} ${HOME}/rpmbuild
/SOURCES