[enh] Dpkg vendor set to YunoHost

This commit is contained in:
ljf 2019-07-07 22:09:38 +02:00
parent 506aaf7472
commit a2759b76dc
4 changed files with 15 additions and 0 deletions

4
data/other/dpkg-origins Normal file
View file

@ -0,0 +1,4 @@
Vendor: YunoHost
Vendor-URL: https://yunohost.org/
Bugs: https://github.com/YunoHost/issues/
Parent: Debian

1
debian/install vendored
View file

@ -6,6 +6,7 @@ data/actionsmap/* /usr/share/moulinette/actionsmap/
data/hooks/* /usr/share/yunohost/hooks/
data/other/yunoprompt.service /etc/systemd/system/
data/other/password/* /usr/share/yunohost/other/password/
data/other/dpkg-origins /etc/dpkg/origins/yunohost
data/other/* /usr/share/yunohost/yunohost-config/moulinette/
data/templates/* /usr/share/yunohost/templates/
data/helpers /usr/share/yunohost/

6
debian/postinst vendored
View file

@ -23,6 +23,12 @@ do_configure() {
|| echo "yunohost-firewall service is not running, you should " \
"consider to start it by doing 'service yunohost-firewall start'."
fi
# Change dpkg vendor
# see https://wiki.debian.org/Derivatives/Guidelines#Vendor
readlink -f /etc/dpkg/origins/default | grep -q debian \
&& rm -f /etc/dpkg/origins/default \
&& ln -s /etc/dpkg/origins/yunohost /etc/dpkg/origins/default
# Yunoprompt
systemctl enable yunoprompt.service

4
debian/postrm vendored
View file

@ -14,6 +14,10 @@ if [ "$1" = "remove" ]; then
rm -f /etc/yunohost/installed
fi
# Reset dpkg vendor to debian
# see https://wiki.debian.org/Derivatives/Guidelines#Vendor
rm -f /etc/dpkg/origins/default
ln -s /etc/dpkg/origins/debian /etc/dpkg/origins/default
#DEBHELPER#