mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-14 00:49:03 +00:00
Make the documentation directory in most binary packages be a symlink to
that in grub-common.
This commit is contained in:
parent
e881bba9d0
commit
81fc656b13
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -81,6 +81,8 @@ grub2 (1.99~rc2-1) UNRELEASED; urgency=low
|
||||
images (e.g. d-i). The grub-<platform> packages now depend on these and
|
||||
include symlinks, so their behaviour will remain as before.
|
||||
* Make grub-emu depend on grub-common.
|
||||
* Make the documentation directory in most binary packages be a symlink to
|
||||
that in grub-common.
|
||||
|
||||
[ Updated translations ]
|
||||
* Belarusian (Viktar Siarheichyk). Closes: #606864
|
||||
|
2
debian/control
vendored
2
debian/control
vendored
@ -4,7 +4,7 @@ Priority: extra
|
||||
Maintainer: GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>
|
||||
Uploaders: Robert Millan <rmh@debian.org>, Felix Zielcke <fzielcke@z-51.de>, Jordi Mallach <jordi@debian.org>, Colin Watson <cjwatson@debian.org>
|
||||
DM-Upload-Allowed: yes
|
||||
Build-Depends: debhelper (>= 7.0.50~),
|
||||
Build-Depends: debhelper (>= 7.4.2~),
|
||||
quilt (>= 0.46-7),
|
||||
patchutils,
|
||||
autoconf,
|
||||
|
1
debian/examples.in
vendored
1
debian/examples.in
vendored
@ -1 +0,0 @@
|
||||
docs/grub.cfg
|
19
debian/grub-efi.postinst
vendored
Normal file
19
debian/grub-efi.postinst
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
#! /bin/sh
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
if dpkg --compare-versions "$2" lt-nl 1.99~rc2-1; then
|
||||
# Force dpkg to replace this directory with a symlink.
|
||||
if [ ! -L /usr/share/doc/@PACKAGE@ ] && [ -d /usr/share/doc/@PACKAGE@ ]; then
|
||||
if rmdir /usr/share/doc/@PACKAGE@ 2>/dev/null; then
|
||||
ln -sf grub-common /usr/share/doc/@PACKAGE@
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
19
debian/grub-emu.postinst
vendored
Normal file
19
debian/grub-emu.postinst
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
#! /bin/sh
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
if dpkg --compare-versions "$2" lt-nl 1.99~rc2-1; then
|
||||
# Force dpkg to replace this directory with a symlink.
|
||||
if [ ! -L /usr/share/doc/@PACKAGE@ ] && [ -d /usr/share/doc/@PACKAGE@ ]; then
|
||||
if rmdir /usr/share/doc/@PACKAGE@ 2>/dev/null; then
|
||||
ln -sf grub-common /usr/share/doc/@PACKAGE@
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
19
debian/grub-linuxbios.postinst
vendored
Normal file
19
debian/grub-linuxbios.postinst
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
#! /bin/sh
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
if dpkg --compare-versions "$2" lt-nl 1.99~rc2-1; then
|
||||
# Force dpkg to replace this directory with a symlink.
|
||||
if [ ! -L /usr/share/doc/@PACKAGE@ ] && [ -d /usr/share/doc/@PACKAGE@ ]; then
|
||||
if rmdir /usr/share/doc/@PACKAGE@ 2>/dev/null; then
|
||||
ln -sf grub-common /usr/share/doc/@PACKAGE@
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
19
debian/grub2.postinst
vendored
Normal file
19
debian/grub2.postinst
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
#! /bin/sh
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
if dpkg --compare-versions "$2" lt-nl 1.99~rc2-1; then
|
||||
# Force dpkg to replace this directory with a symlink.
|
||||
if [ ! -L /usr/share/doc/@PACKAGE@ ] && [ -d /usr/share/doc/@PACKAGE@ ]; then
|
||||
if rmdir /usr/share/doc/@PACKAGE@ 2>/dev/null; then
|
||||
ln -sf grub-common /usr/share/doc/@PACKAGE@
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
9
debian/postinst.in
vendored
9
debian/postinst.in
vendored
@ -291,6 +291,15 @@ case "$1" in
|
||||
configure)
|
||||
. /usr/share/debconf/confmodule
|
||||
|
||||
if dpkg --compare-versions "$2" lt-nl 1.99~rc2-1; then
|
||||
# Force dpkg to replace this directory with a symlink.
|
||||
if [ ! -L /usr/share/doc/@PACKAGE@ ] && [ -d /usr/share/doc/@PACKAGE@ ]; then
|
||||
if rmdir /usr/share/doc/@PACKAGE@ 2>/dev/null; then
|
||||
ln -sf grub-common /usr/share/doc/@PACKAGE@
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
devicemap_regenerated=
|
||||
|
||||
if egrep -q '^[[:space:]]*post(inst|rm)_hook[[:space:]]*=[[:space:]]*(/sbin/|/usr/sbin/)?update-grub' /etc/kernel-img.conf 2>/dev/null; then
|
||||
|
5
debian/rules
vendored
5
debian/rules
vendored
@ -34,7 +34,7 @@ export GRUB_CONTRIB := $(CURDIR)/debian/grub-extras
|
||||
|
||||
confflags = PACKAGE_VERSION="$(deb_version)" PACKAGE_STRING="GRUB $(deb_version)" CC=$(CC) TARGET_CC=$(CC) --enable-grub-mkfont
|
||||
|
||||
AUTOGEN_DEB_FILES = examples config templates preinst postinst postrm dirs install links
|
||||
AUTOGEN_DEB_FILES = config templates preinst postinst postrm dirs install links
|
||||
|
||||
BUILD_PACKAGES := $(strip $(shell dh_listpackages))
|
||||
REAL_PACKAGES = grub-emu grub-pc grub-coreboot grub-efi-ia32 grub-efi-amd64 grub-ieee1275 grub-firmware-qemu grub-yeeloong
|
||||
@ -244,7 +244,8 @@ override_dh_install:
|
||||
dh_install -pgrub-emu --sourcedir=debian/tmp-grub-emu
|
||||
|
||||
override_dh_installdocs:
|
||||
dh_installdocs -A AUTHORS NEWS README THANKS TODO
|
||||
dh_installdocs -pgrub-common -pgrub-rescue-pc -pgrub-firmware-qemu -A AUTHORS NEWS README THANKS TODO
|
||||
dh_installdocs -Ngrub-common -Ngrub-rescue-pc -Ngrub-firmware-qemu --link-doc=grub-common
|
||||
|
||||
override_dh_strip:
|
||||
dh_strip -X/usr/bin/grub-emu
|
||||
|
Loading…
Reference in New Issue
Block a user