Browse Source

package.accept-keywords: Change from file to folder

The default for /etc/portage/package.accept-keywords is that it is a
folder that contains files, so let's respect that decision. It does
seem to allow me to organize things a bit more cleanly.
master
jcmdln 2 years ago
parent
commit
36ae1ca03e

+ 0
- 31
etc/portage/package.accept_keywords View File

@@ -1,31 +0,0 @@
# /etc/portage/package.accept_keywords

## System
dev-util/bcc
sys-devel/binutils
sys-devel/gcc
sys-kernel/gentoo-sources
sys-kernel/linux-headers

## Development
app-editors/emacs
dev-lang/go
net-libs/nodejs

## Graphics
media-libs/mesa
x11-libs/libdrm
x11-libs/libxcb
x11-proto/xcb-proto

## LXQT
lxqt-base/*
media-gfx/lximage-qt
x11-misc/obconf-qt
x11-misc/pcmanfm-qt

## amd64
app-emulation/wine-mono ~amd64
app-emulation/wine-staging ~amd64
net-misc/cmst ~amd64
sys-firmware/nvidia-firmware ~amd64

+ 5
- 0
etc/portage/package.accept_keywords/development View File

@@ -0,0 +1,5 @@
# /etc/portage/package.accept_keywords/development

app-editors/emacs
dev-lang/go
net-libs/nodejs

+ 6
- 0
etc/portage/package.accept_keywords/lxqt View File

@@ -0,0 +1,6 @@
# /etc/portage/package.accept_keywords/lxqt

lxqt-base/*
media-gfx/lximage-qt
x11-misc/obconf-qt
x11-misc/pcmanfm-qt

+ 10
- 0
etc/portage/package.accept_keywords/media View File

@@ -0,0 +1,10 @@
# /etc/portage/package.accept_keywords/media

app-emulation/wine-mono ~amd64
app-emulation/wine-staging ~amd64
media-libs/mesa
net-misc/cmst ~amd64
sys-firmware/nvidia-firmware ~amd64
x11-libs/libdrm
x11-libs/libxcb
x11-proto/xcb-proto

+ 7
- 0
etc/portage/package.accept_keywords/system View File

@@ -0,0 +1,7 @@
# /etc/portage/package.accept_keywords/system

dev-util/bcc
sys-devel/binutils
sys-devel/gcc
sys-kernel/gentoo-sources
sys-kernel/linux-headers

+ 14
- 6
gein.sh View File

@@ -39,8 +39,13 @@ CONFIG() {
# moved into place.
Configs="
/etc/portage/make.conf
/etc/portage/package.accept_keywords
/etc/portage/package.env

/etc/portage/package.accept_keywords/development
/etc/portage/package.accept_keywords/lxqt
/etc/portage/package.accept_keywords/media
/etc/portage/package.accept_keywords/system

/etc/portage/package.env
/etc/portage/package.license

/etc/portage/package.use/global
@@ -61,13 +66,16 @@ CONFIG() {
# be a folder so we'll remove it outright and create what we need.
# Sure, this is wasting a little time, I know.
ConfigFolders="
/etc/portage/package.use
/etc/portage/sets
/etc/portage/package.accept_keywords
/etc/portage/package.use
/etc/portage/sets
"

for Folder in $ConfigFolders; do
[ -f "$Folder" ] && rm "$Folder"
[ ! -d "$Folder" ] && mkdir -p "$Folder"
if [ ! -d "$Folder" ]; then
rm "$Folder"
mkdir -p "$Folder"
fi
done

for File in $Configs; do

Loading…
Cancel
Save