mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #749 from YunoHost/enh-debian-vendor
[enh] Dpkg vendor set to YunoHost
This commit is contained in:
commit
ea443495eb
4 changed files with 15 additions and 0 deletions
4
data/other/dpkg-origins
Normal file
4
data/other/dpkg-origins
Normal file
|
@ -0,0 +1,4 @@
|
|||
Vendor: YunoHost
|
||||
Vendor-URL: https://yunohost.org/
|
||||
Bugs: https://github.com/YunoHost/issues/
|
||||
Parent: Debian
|
1
debian/install
vendored
1
debian/install
vendored
|
@ -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
6
debian/postinst
vendored
|
@ -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
4
debian/postrm
vendored
|
@ -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#
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue