saving uncommitted changes in /etc prior to emerge run

This commit is contained in:
hasufell 2015-08-16 17:46:11 +02:00 committed by Hans Wurst
parent a8450c09bb
commit b75ed94dff
23 changed files with 65 additions and 73 deletions

View File

@ -0,0 +1,8 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
einfo "running 'etckeeper post-install'"
etckeeper post-install

View File

@ -0,0 +1 @@
/etc/paludis/hooks/gold.bash

View File

@ -1,6 +0,0 @@
#!/bin/bash
if [[ "${CATEGORY}/${PN}" == "media-sound/pulseaudio" ]] ; then
chmod -x /usr/bin/pulseaudio
fi

View File

@ -0,0 +1,11 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
# e.g. use for ns2
if [[ "${CATEGORY}/${PN}" == "media-sound/pulseaudio" ]] ; then
einfo "removing executable bit from '/usr/bin/pulseaudio!'"
chmod -x /usr/bin/pulseaudio
fi

View File

@ -1,7 +0,0 @@
#!/bin/bash
echo -e '\033[1;32metckeeper postinst phase...\033[0m'
etckeeper post-install
if [[ $(ld --version) =~ "gold" ]] ; then
echo -e "\033[1;31mld gold is in use!!\033[0m"
fi

View File

@ -0,0 +1,8 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
einfo "running 'etckeeper post-install'"
etckeeper post-install

View File

@ -0,0 +1 @@
/etc/paludis/hooks/gold.bash

View File

@ -1,8 +0,0 @@
#!/bin/bash
echo -e '\033[1;32metckeeper postinst phase...\033[0m'
etckeeper post-install
if [[ $(ld --version) =~ "gold" ]] ; then
echo -e "\033[1;31mld gold is in use!!\033[0m"
fi

View File

@ -0,0 +1,7 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
einfo "running 'etckeeper pre-install'"
etckeeper pre-install

View File

@ -1,24 +0,0 @@
#!/bin/bash
echo -e '\033[1;32metckeeper preinst phase...\033[0m'
etckeeper pre-install
# if [[ "${CATEGORY}/${PN}" =~ "app-emulation/emul-linux-x86" ||
# "${CATEGORY}/${PN}" == "x11-drivers/nvidia-drivers" ||
# "${CATEGORY}/${PN}" == "sys-libs/libstdc++-v3" ||
# "${CATEGORY}/${PN}" == "dev-lang/dmd" ||
# "${CATEGORY}/${PN}" == "sys-apps/sandbox" ||
# "${CATEGORY}/${PN}" == "app-emulation/wine" ||
# "${CATEGORY}/${PN}" == "sys-libs/glibc"
# ]]
# then
# :
# else
# einfo
# einfo "removing stuff in "${ED%/}"/usr/lib32/"
# einfo
# if [[ -n ${ED%/} && -e "${ED%/}/usr/lib32" ]] ; then
# rm -rf "${ED%/}/usr/lib32"
# fi
# fi

View File

@ -0,0 +1,7 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
einfo "running 'etckeeper pre-install'"
etckeeper pre-install

View File

@ -1,4 +0,0 @@
#!/bin/bash
echo -e '\033[1;32metckeeper preinst phase...\033[0m'
etckeeper pre-install

View File

@ -0,0 +1 @@
/etc/paludis/hooks/gold.bash

View File

@ -1,4 +0,0 @@
#!/bin/bash
if [[ $(ld --version) =~ "gold" ]] ; then
echo -e "\033[1;31mld gold is in use!!\033[0m"
fi

View File

@ -0,0 +1 @@
/etc/paludis/hooks/gold.bash

View File

@ -1,4 +0,0 @@
#!/bin/bash
if [[ $(ld --version) =~ "gold" ]] ; then
echo -e "\033[1;31mld gold is in use!!\033[0m"
fi

7
paludis/hooks/gold.bash Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
if [[ $(ld --version) =~ "gold" ]] ; then
ewarn \033[1;31mld gold is in use!!\033[0m"
fi

View File

@ -1,10 +0,0 @@
#!/bin/sh
#echo -e "\033[1;33mcompressing logs...\033[0m"
#find "$(portageq envvar PORT_LOGDIR)" -type f -name "*.log" -exec xz -z -9 '{}' \; && echo -e "\033[1;32mcompressing logs finished!\033[0m" || echo -e "\033[1;31mfailed!\033[0m"
# updatedb
/root/updatedb.sh
echo -e "\033[1;33mstarting database-update...\033[0m"
updatedb && echo -e "\033[1;32mupdating database finished!\033[0m" || echo -e "\033[1;31mfailed!\033[0m"

View File

@ -0,0 +1,8 @@
#!/bin/sh
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
einfo "starting database-update..."
/root/updatedb.sh
updatedb && einfo "updating database finished!" || eerror "failed!"

View File

@ -7,4 +7,4 @@ source "/etc/paludis/hooks/set_portdir.bash"
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"
wget https://gitweb.gentoo.org/data/api.git/plain/files/packages/herds.xml || die "failed to wget herds.xml"

View File

@ -91,8 +91,8 @@ app-office/ganttproject-bin::sunrise
<media-video/mpv-9999
#>=net-voip/linphone-3.8.0
#>=media-libs/mediastreamer-2.11.0
#>=net-libs/ortp-0.24.0
#>=net-libs/belle-sip-1.4.0
>=net-voip/linphone-3.8.0
>=media-libs/mediastreamer-2.11.0
>=net-libs/ortp-0.24.0
>=net-libs/belle-sip-1.4.0