Commit 6610a647 by Lafont François

Change to use only the master branch

Even to build the package for the DANE APT repository. The goal is to remove the stupid and painful DANEREPO branch.
parent 88b22607
# WARNING, master branch is the official DEBIAN package
This is the official candidate Debian package.
# Install the environment to build the package
**Warning:** you can build the package only on **Debian Jessie**.
......@@ -14,7 +9,6 @@ apt-get update
apt-get install -y git ca-certificates openssl make
git clone ""
cd xia-packaging/
git checkout master # don't forget to use the good branch.
./make install_env
......@@ -45,6 +39,22 @@ ls -lh
# Specific case of the DANE repository
To build the package for the DANE repository, there are
particular and historical differences with the official
Debian repository (all differences are showed in the
`./hack-danerepo` script). To build the package for the DANE
repository, the only difference is to not use the command
`./make build` but use instead :
./make build4danerepo
That's all.
# Build the package with a version not yet mentioned in the `debian/changelog`
First, you have to create a new release entry in the
......@@ -92,10 +102,10 @@ cd ..
# Put the package in the "CRDP" repository
# Put the package in the "DANE" repository
To put the package in
[the "CRDP" repository](,
[the "DANE" repository](,
you have to be able to make a scp to the private IP of
`` via a SSH key.
Your SSH public key must be put in the file
set -e
scriptdir=$(cd "${0%/*}"; pwd)
# Modified files.
if [ ! -f "$rules" ] || [ ! -f "$control" ]
printf 'Sorry, %s and %s must exist.\n' "$rules" "$control" >&2
exit 1
case "$action" in
git checkout "$rules"
git checkout "$control"
### Hack for wheezy compatibility ###
cat >> "$rules" <<'EOF'
PYTHON_DEPENDS := python (>= 2.7), python (<< 2.8)
dh_gencontrol -- -Vpython:Depends="$(PYTHON_DEPENDS)"
### For historical reasons, the DANEREPO package is
### in conflict with the `xia-converter` package
### (set in the `debian/control` file) and this is not
### the case for the official Debian package.
### Could be removed after some releases...
sed -i '/^Suggests:/i \
Conflicts: xia-converter' "$control"
printf 'Sorry, action `%s` not defined.\n' "$action" >&2
exit 1
......@@ -84,6 +84,11 @@ populate: clean
build: populate
cd "$(WORKING_DIR)" && debuild -b -us -uc --lintian-opts --pedantic -i -I && echo 'Building is OK!'
build4danerepo: populate
cd "$(WORKING_DIR)" && ../hack-danerepo clean
cd "$(WORKING_DIR)" && ../hack-danerepo hack
cd "$(WORKING_DIR)" && debuild -b -us -uc --lintian-opts --pedantic -i -I && ../hack-danerepo clean && echo 'Building is OK!'
build_sign: populate
cd "$(WORKING_DIR)" && debuild -sa --lintian-opts --pedantic -i -I && echo 'Building is OK!'
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