Merge pull request #749 from YunoHost/enh-debian-vendor

[enh] Dpkg vendor set to YunoHost
This commit is contained in:
Bram 2019-07-28 06:10:30 +02:00 committed by GitHub
commit ea443495eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -24,6 +24,12 @@ do_configure() {
"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#