saving uncommitted changes in /etc prior to emerge run

This commit is contained in:
hasufell 2015-08-14 15:46:59 +02:00 committed by Hans Wurst
parent 7bcc2875ff
commit 9481ae9bb5
7 changed files with 117 additions and 2 deletions

View File

@ -0,0 +1,20 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
PORTDIR="/usr/portage"
[[ -z ${PORTDIR} || "$(dirname ${PORTDIR})" == "/" ]] && die "PORTDIR empty or pointing to root!"
die() {
eerror "${1}"
exit 1
}
einfo "syncing metadata cache"
for i in gentoo games-overlay desktop-overlay media-overlay prism-overlay libressl arx-libertatis dotnet haskell qt sage-on-gentoo torbrowser tox-overlay hasufell-overlay; do
egencache --jobs=8 --repo=${i} --update --update-use-local-desc \
|| die "egencache failed for overlay ${i}!"
done

View File

@ -0,0 +1,24 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
PORTDIR="/usr/portage"
[[ -z ${PORTDIR} || "$(dirname ${PORTDIR})" == "/" ]] && die "PORTDIR empty or pointing to root!"
die() {
eerror "${1}"
exit 1
}
cd "${PORTDIR}"/metadata || die "could not cd into '${PORTDIR}/metadata'!"
if [[ -e dtd ]] ; then
einfo "dtd dir already exists, updating..."
cd glsa || die "could not cd into 'dtd'!"
git pull --ff || die "could not pull updates!"
else
einfo "dtd directory does not exist, cloning..."
git clone https://anongit.gentoo.org/git/data/dtd.git || die "could not clone repository!"
fi

View File

@ -0,0 +1,24 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
PORTDIR="/usr/portage"
[[ -z ${PORTDIR} || "$(dirname ${PORTDIR})" == "/" ]] && die "PORTDIR empty or pointing to root!"
die() {
eerror "${1}"
exit 1
}
cd "${PORTDIR}"/metadata || die "could not cd into '${PORTDIR}/metadata'!"
if [[ -e glsa ]] ; then
einfo "glsa dir already exists, updating..."
cd glsa || die "could not cd into 'glsa'!"
git pull --ff || die "could not pull updates!"
else
einfo "glsa directory does not exist, cloning..."
git clone https://anongit.gentoo.org/git/data/glsa.git || die "could not clone repository!"
fi

View File

@ -0,0 +1,17 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
PORTDIR="/usr/portage"
[[ -z ${PORTDIR} || "$(dirname ${PORTDIR})" == "/" ]] && die "PORTDIR empty or pointing to root!"
die() {
eerror "${1}"
exit 1
}
cd "${PORTDIR}"/metadata || die "could not cd into '${PORTDIR}/metadata'!"
[[ -e "${PORTDIR}"/metadata/herds.xml ]] && { rm "${PORTDIR}"/metadata/herds.xml || die "failed to rm herds.xml!" ;}
wget https://gitweb.gentoo.org/proj/api.git/plain/files/packages/herds.xml || die "failed to wget herds.xml"

View File

@ -0,0 +1,27 @@
#!/bin/bash
PORTDIR="/usr/portage"
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
[[ -z ${PORTDIR} || "$(dirname ${PORTDIR})" == "/" ]] && die "PORTDIR empty or pointing to root!"
die() {
eerror "${1}"
exit 1
}
cd "${PORTDIR}"/metadata || die "could not cd into '${PORTDIR}/metadata'!"
if [[ -e news ]] ; then
einfo "news dir already exists, updating..."
cd news || die "could not cd into 'news'!"
git pull --ff || die "could not pull updates!"
else
einfo "glsa directory does not exist, cloning..."
git clone https://anongit.gentoo.org/git/proj/gentoo-news.git news || die "could not clone repository!"
fi
cd "${PORTDIR}"/metadata/news || die "failed to cd into ${PORTDIR}/metadata/news"
git clean -fdxq || die "failed to clean git repo!"
cp -a */* . || die "could not copy news dirs to base news dir!"

View File

@ -604,7 +604,6 @@ sys-devel/bmake ~amd64
media-sound/pnmixer *
=virtual/libintl-0-r1 ~amd64
~dev-libs/libgcrypt-1.6.3 ~amd64
=media-libs/harfbuzz-0.9.26-r1 ~amd64
=x11-libs/pango-1.36.3-r2 ~amd64
=x11-libs/cairo-1.12.16-r2 ~amd64
=dev-db/sqlite-3.8.4.3 ~amd64
@ -892,3 +891,7 @@ dev-python/foolscap ~amd64
#www-servers/apache ~amd64
dev-vcs/git-imerge ~amd64
# texlive-core qtgui, libass
media-libs/harfbuzz ~amd64