Merge branch 'master' of git://github.com/akhuettel/portage-gentoo-git-config

This commit is contained in:
hasufell 2015-09-05 16:48:23 +02:00
commit 2d9fe8addb
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
6 changed files with 16 additions and 25 deletions

View File

@ -2,17 +2,8 @@ This is not a full portage configuration. It contains only those parts that are
necessary to set up a gentoo github mirror based sync system:
* Configures Portage to sync via https://github.com/gentoo/gentoo.git URL.
* Updates metadata-cache (the first update might take long, all subsequent ones not).
* Updates metadata-cache.
* Updates the dtd directory.
* Updates the glsa directory.
* Updates `herds.xml` file.
* Updates the news directory.
## Notes ##
Note that typically most repositories other than `gentoo` don't come with a pregenerated cache. It is a good idea to generate/update their cache every time they are synced. One way to do this, is by activating the `example` hook script that portage installs by default in `/etc/portage/postsync.d`:
```
cp -i /etc/portage/repo.postsync.d/example /etc/portage/repo.postsync.d/gen_cache
chmod +x /etc/portage/repo.postsync.d/gen_cache
```

View File

@ -1,12 +1,12 @@
#!/bin/bash
repository_name="${1}"
repository_path="${3}"
[[ ${repository_name} == "gentoo" ]] || exit 0
source /lib/gentoo/functions.sh
repository_name="${1}"
repository_path="${3}"
# Number of jobs for egencache, default is number or processors.
parallel_jobs="$(nproc)"

View File

@ -1,12 +1,12 @@
#!/bin/bash
repository_name="${1}"
repository_path="${3}"
[[ ${repository_name} == "gentoo" ]] || exit 0
source /lib/gentoo/functions.sh
repository_name="${1}"
repository_path="${3}"
DTDDIR="${repository_path}"/metadata/dtd
ebegin "Updating DTDs"
if [[ -e ${DTDDIR} ]]; then

View File

@ -1,12 +1,12 @@
#!/bin/bash
repository_name="${1}"
repository_path="${3}"
[[ ${repository_name} == "gentoo" ]] || exit 0
source /lib/gentoo/functions.sh
repository_name="${1}"
repository_path="${3}"
GLSADIR="${repository_path}"/metadata/glsa
ebegin "Updating GLSAs"
if [[ -e ${GLSADIR} ]]; then

View File

@ -1,12 +1,12 @@
#!/bin/bash
repository_name="${1}"
repository_path="${3}"
[[ ${repository_name} == "gentoo" ]] || exit 0
source /lib/gentoo/functions.sh
repository_name="${1}"
repository_path="${3}"
ebegin "Updating herds.xml"
wget -q -O "${repository_path}"/metadata/herds.xml https://api.gentoo.org/packages/herds.xml
eend $?

View File

@ -1,12 +1,12 @@
#!/bin/bash
repository_name="${1}"
repository_path="${3}"
[[ ${repository_name} == "gentoo" ]] || exit 0
source /lib/gentoo/functions.sh
repository_name="${1}"
repository_path="${3}"
NEWSDIR="${repository_path}"/metadata/news
ebegin "Updating news items"
if [[ -e ${NEWSDIR} ]]; then