Commit 943eba4c authored by root's avatar root

Remove the historical "dane" hack

parent 1803513f
# 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 :
```sh
./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:
```sh
# 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
[xia]
fqdn = $IP
login = repository
method = scp
incoming = /var/www/debian/incoming/xia
allow_unsigned_uploads = 1
EOF
# "*" 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
repository.
**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
......
#!/bin/sh
set -e
scriptdir=$(cd "${0%/*}"; pwd)
action="$1"
# Modified files.
rules="$scriptdir/src/debian/rules"
control="$scriptdir/src/debian/control"
if [ ! -f "$rules" ] || [ ! -f "$control" ]
then
printf 'Sorry, %s and %s must exist.\n' "$rules" "$control" >&2
exit 1
fi
case "$action" in
clean)
git checkout "$rules"
git checkout "$control"
;;
hack)
### Hack for wheezy compatibility ###
cat >> "$rules" <<'EOF'
PYTHON_DEPENDS := python (>= 2.7), python (<< 2.8)
override_dh_gencontrol:
dh_gencontrol -- -Vpython:Depends="$(PYTHON_DEPENDS)"
EOF
### 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
esac
......@@ -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!'
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