Initial commit
This commit is contained in:
commit
bff962cecb
16
etc/paludis/hooks/sync_cache.bash
Normal file
16
etc/paludis/hooks/sync_cache.bash
Normal file
@ -0,0 +1,16 @@
|
||||
#!/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"
|
||||
egencache --jobs=8 --repo=gentoo --update --update-use-local-desc || die "egencache failed!"
|
24
etc/paludis/hooks/sync_dtd.bash
Normal file
24
etc/paludis/hooks/sync_dtd.bash
Normal 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
|
||||
|
24
etc/paludis/hooks/sync_glsa.bash
Normal file
24
etc/paludis/hooks/sync_glsa.bash
Normal 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
|
||||
|
17
etc/paludis/hooks/sync_herds_xml.bash
Normal file
17
etc/paludis/hooks/sync_herds_xml.bash
Normal 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"
|
27
etc/paludis/hooks/sync_news.bash
Normal file
27
etc/paludis/hooks/sync_news.bash
Normal 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!"
|
7
etc/paludis/repositories/gentoo.conf
Normal file
7
etc/paludis/repositories/gentoo.conf
Normal file
@ -0,0 +1,7 @@
|
||||
location = /usr/portage
|
||||
sync = git+https://github.com/gentoo/gentoo.git
|
||||
profiles = ${location}/profiles/default/linux/amd64/13.0
|
||||
distdir = /usr/portage/distfiles
|
||||
format = e
|
||||
names_cache = /var/cache/paludis/names
|
||||
write_cache = /var/cache/paludis/metadata
|
Loading…
Reference in New Issue
Block a user