diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-08-13 16:41:57 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-08-13 16:41:57 +0100 |
commit | 73d156909c1cd9641e04c1556a900ff3703a5266 (patch) | |
tree | 31ce5427f6d5c2d01345f49568a173628a0683e4 /sys-boot/grub-config-redcore/grub-config-redcore-1708.ebuild | |
parent | fdc97647f9837884d5b729a8000d52bf2ecf5858 (diff) |
sys-boot/grub-config-redcore : split /etc/default/grub out of main grub package
Diffstat (limited to 'sys-boot/grub-config-redcore/grub-config-redcore-1708.ebuild')
-rw-r--r-- | sys-boot/grub-config-redcore/grub-config-redcore-1708.ebuild | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sys-boot/grub-config-redcore/grub-config-redcore-1708.ebuild b/sys-boot/grub-config-redcore/grub-config-redcore-1708.ebuild new file mode 100644 index 00000000..7e817dc1 --- /dev/null +++ b/sys-boot/grub-config-redcore/grub-config-redcore-1708.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +DESCRIPTION="Redcore Linux GRUB configuration files" +HOMEPAGE="" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="sys-boot/grub" + +S="${FILESDIR}" + +src_install() { + dodir "/etc/default" || die + insinto "/etc/default" || die + doins -r "${S}/"* || die +} + +pkg_preinst() { + if [[ -f ""${ROOT}"etc/default/grub" ]]; then + mv ""${ROOT}"etc/default/grub" ""${ROOT}"etc/default/grub.backup" + fi +} |