2011-04-17 22:19:57 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2011-04-27 10:14:09 +02:00
|
|
|
## Setup some vars to use local portage tree
|
|
|
|
# export PATH=${HOME}/euscan/:${PATH}
|
|
|
|
# export ROOT=${HOME}/local
|
2011-09-30 09:13:15 +02:00
|
|
|
# export PORTAGE_CONFIGROOT=${ROOT}
|
2011-04-27 10:14:09 +02:00
|
|
|
# export EIX_CACHEFILE=${HOME}/local/var/cache/eix
|
|
|
|
|
2011-04-17 22:19:57 +02:00
|
|
|
## Update local trees
|
2011-04-27 10:14:09 +02:00
|
|
|
# emerge --sync --root=${ROOT} --config-root=${PORTAGE_CONFIGROOT}
|
|
|
|
# ROOT="/" layman -S --config=${ROOT}/etc/layman/layman.cfg
|
2011-04-17 22:19:57 +02:00
|
|
|
|
2011-09-30 09:13:15 +02:00
|
|
|
## Generate ebuild cache to speed up eix
|
|
|
|
# cd ${ROOT}/var/lib/layman/ && \
|
|
|
|
# for overlay in **/; do
|
|
|
|
# [ ! -f ${overlay}profiles/repo_name ] && continue
|
|
|
|
#
|
|
|
|
# echo "egencache ${overlay}"
|
|
|
|
# egencache --jobs=8 --rsync \
|
|
|
|
# --repo=$(cat ${overlay}profiles/repo_name) \
|
|
|
|
# --config-root=${PORTAGE_CONFIGROOT} \
|
|
|
|
# --update --update-use-local-desc
|
|
|
|
# done
|
|
|
|
|
2011-04-17 22:19:57 +02:00
|
|
|
## Also update eix database, because we use eix internaly
|
|
|
|
# eix-update
|
|
|
|
|
2011-09-30 09:13:15 +02:00
|
|
|
## Go to euscanwww dir
|
|
|
|
# cd ${HOME}/euscan/euscanwww/
|
|
|
|
|
2011-04-17 22:19:57 +02:00
|
|
|
## Scan portage (packages, versions)
|
2011-08-31 15:38:32 +02:00
|
|
|
# python manage.py scan-portage --all --purge-versions --purge-packages
|
2011-09-30 09:13:15 +02:00
|
|
|
# eix --only-names -x | sort --random-sort | gparallel --eta --load 8 --jobs 400% --max-args=64 python manage.py scan-metadata
|
2011-04-17 22:19:57 +02:00
|
|
|
|
|
|
|
## Scan metadata (herds, maintainers, homepages, ...)
|
2011-04-18 21:21:23 +02:00
|
|
|
# python manage.py scan-metadata --all
|
2011-04-17 22:19:57 +02:00
|
|
|
|
|
|
|
## Scan uptsream packages
|
|
|
|
# python manage.py scan-upstream --all
|
2011-08-31 15:38:32 +02:00
|
|
|
# eix --only-names -x | gparallel --jobs 400% euscan | python manage.py scan-upstream --feed --purge-versions
|
2011-05-05 18:10:47 +02:00
|
|
|
|
|
|
|
## Update counters
|
2011-09-30 09:13:15 +02:00
|
|
|
# python manage.py update-counters
|