Commits (2)
# Install the environment to build the package
**Warning:** you can build the package only on **Debian Jessie**.
**Warning:** you can build the package only on **Debian Buster**.
These commands should be launched **only once**:
......@@ -39,22 +39,6 @@ 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
......@@ -102,47 +86,6 @@ cd ..
# Put the package in the "DANE" repository
To put the package in
[the "DANE" repository](http://repository.crdp.ac-versailles.fr/),
you have to be able to make a scp to the private IP of
`repository@repository.crdp.ac-versailles.fr` via a SSH key.
Your SSH public key must be put in the file
`/home/repository/.ssh/authorized_keys` of this server:
# To build the package.
cd xia-packaging/ && ./make build
# Of course, you have to use a VPN.
IP='<Private IP of repository.crdp.ac-versailles.fr>'
cat > /tmp/.dput.cf <<EOF
fqdn = $IP
login = repository
method = scp
incoming = /var/www/debian/incoming/xia
allow_unsigned_uploads = 1
# "*" to match the version number.
dput -c /tmp/.dput.cf xia xia_*_amd64.changes
After this last command, you have to wait for 5 minutes
approximatively before the package is updated in the APT
**Remark:** you can upload the package in a different host
than the one you built the package. You just need these files:
* `xia_<version>_all.deb`
* `xia_<version>_amd64.changes`
# Put the package in the "mentors" repository
To do that, you must be a maintainer of the package (ie you
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
......@@ -55,7 +55,6 @@ clean:
cd "$(WORKING_DIR)" && rm -f ../*.build
cd "$(WORKING_DIR)" && rm -f .gitlab-ci.yml
cd "$(WORKING_DIR)" && rm -fr .pc/
cd "$(WORKING_DIR)" && ../hack-danerepo clean
# Remove the upstream archive too.
clean_all: clean
......@@ -85,11 +84,6 @@ populate: clean
build: populate
cd "$(WORKING_DIR)" && debuild -b -us -uc --lintian-opts --pedantic -i -I && echo 'Building is OK!'
populate4danerepo: populate
cd "$(WORKING_DIR)" && ../hack-danerepo hack
build4danerepo: populate4danerepo build
build_sign: populate
cd "$(WORKING_DIR)" && debuild -sa --lintian-opts --pedantic -i -I && echo 'Building is OK!'
Source: xia
Section: misc
Priority: extra
Priority: optional
Maintainer: François Lafont <francois.lafont@ac-versailles.fr>
Uploaders: Pascal Fautrero <pascal.fautrero@ac-versailles.fr>,
Michael Nourry <michael.nourry@ac-versailles.fr>,