Commit 031e9b15 authored by Marco d'Itri's avatar Marco d'Itri Committed by Andreas Henriksson

files with the same name installed in / and /usr

The package installs a symbolic link and a file with the same name in
both /bin/ and /usr/bin/, so it makes impossible to convert a system
to the everything-in-usr directories scheme.

This solves the problem by creating the link in postinst and only if it
is needed.

For more information about everything-in-usr please read
http://anonscm.debian.org/cgit/users/md/usrmerge.git/tree/debian/README.Debian

Closes: #767922
parent 27743322
bin/openvt bin/open
usr/share/man/man1/openvt.1.gz usr/share/man/man1/open.1.gz
# see #261801
bin/dumpkeys usr/bin/dumpkeys
bin/loadkeys usr/bin/loadkeys
#!/bin/sh
set -e
case "$1" in
configure)
# see #261801
for file in dumpkeys loadkeys; do
if [ ! -e /usr/bin/$file ]; then
ln -s /bin/$file /usr/bin/$file
fi
done
;;
esac
#DEBHELPER#
# vim:sw=4:sts=4:et:
#!/bin/sh
set -e
case "$1" in
remove)
for file in dumpkeys loadkeys; do
if [ -L /usr/bin/$file ]; then
rm /usr/bin/$file
fi
done
;;
esac
#DEBHELPER#
# vim:sw=4:sts=4:et:
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