Commit 22af7f9c authored by Daniel Salzman's avatar Daniel Salzman

distro: simplify deb sources hierarchy

parent b3d54bc6
../../common/knot.service
\ No newline at end of file
../../common/knot.tmpfiles
\ No newline at end of file
Format: 3.0 (quilt)
Source: knot
Binary:
knot,
libknot7,
libzscanner1,
libdnssec5,
libknot-dev,
knot-dnsutils,
knot-host,
knot-doc,
Architecture: any all
Version: __VERSION__-1
Maintainer: Knot DNS <knot-dns@lists.nic.cz>
Uploaders: Tomas Krizek <tomas.krizek@nic.cz>
Homepage: https://www.knot-dns.cz/
Build-Depends:
bash-completion,
bison,
debhelper (>= 9),
flex,
latexmk,
libedit-dev,
libfstrm-dev,
libgnutls28-dev,
libidn11-dev,
libjansson-dev (>= 2.4),
liblmdb-dev,
libprotobuf-c-dev,
libsystemd-dev [linux-any] | libsystemd-daemon-dev [linux-any],
libsystemd-dev [linux-any] | libsystemd-journal-dev [linux-any],
liburcu-dev (>= 0.4),
pkg-config,
protobuf-c-compiler,
Build-Depends-Indep:
ghostscript,
python3-sphinx,
texinfo,
texlive,
texlive-font-utils,
texlive-generic-extra,
texlive-latex-extra,
Package-List:
knot deb net optional arch=any
knot-dnsutils deb net optional arch=any
knot-doc deb doc optional arch=all
knot-host deb net optional arch=any
libdnssec5 deb libs optional arch=any
libknot-dev deb libdevel optional arch=any
libknot7 deb libs optional arch=any
libzscanner1 deb libs optional arch=any
Files:
../common/knot.service
\ No newline at end of file
../common/knot.tmpfiles
\ No newline at end of file
......@@ -19,11 +19,9 @@ fi
osc co "${project}" "${package}"
pushd "${project}/${package}"
osc del * ||:
cp ../../*.tar.xz ./
cp -L ../../*.orig.tar.xz ../../*.debian.tar.xz ../../*.dsc ./
cp -rL ../../distro/rpm/* ./
cp -rL ../../distro/arch/* ./
cp ../../distro/deb/*.debian.tar.xz ./
cp "../../distro/deb/${package}.dsc" ./
osc addremove
osc ci -n
popd
......@@ -27,7 +27,7 @@ if [[ $(echo "${version}" | grep '^[[:alnum:].]$') -ne 0 ]]; then
fi
# Fill in VERSION field in distribution specific files
files="distro/rpm/${package}.spec distro/deb/debian/changelog distro/arch/PKGBUILD"
files="distro/rpm/${package}.spec distro/deb/changelog distro/arch/PKGBUILD"
for file in ${files}; do
sed -i "s/__VERSION__/${version}/g" "${file}"
done
......@@ -40,7 +40,7 @@ ln -s "${pkgname}.tar.xz" "${debname}.tar.xz"
# Prepare clean debian-specific directory
tar -xf "${debname}.tar.xz"
pushd "${pkgname}" > /dev/null
cp -arL ../distro/deb/debian .
cp -arL ../distro/deb debian
# Optionally remove symbols file
if [ "$withsymbols" = false ]; then
......
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