Merge branch 'master' of git://github.com/akhuettel/portage-gentoo-git-config
This commit is contained in:
commit
2d9fe8addb
11
README.md
11
README.md
@ -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
|
||||
```
|
||||
|
@ -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)"
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 $?
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user