mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-13 18:06:19 +02:00
Compare commits
48 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6e086f0e70 | ||
![]() |
93d735981b | ||
![]() |
97a2d2414a | ||
![]() |
eebfd9a30f | ||
![]() |
5085cfcdf9 | ||
![]() |
6caad191c1 | ||
![]() |
092fe2ffde | ||
![]() |
71b15aafb6 | ||
![]() |
4bcafd9768 | ||
![]() |
1f0374d8a6 | ||
![]() |
f03086a0e1 | ||
![]() |
35dc7485fb | ||
![]() |
89bda9217d | ||
![]() |
0dc2550af3 | ||
![]() |
0c62649b64 | ||
![]() |
b807c51102 | ||
![]() |
280d5501b0 | ||
![]() |
dee4d05b1e | ||
![]() |
10eba28151 | ||
![]() |
9cef7e0a9e | ||
![]() |
cb3a6ce1e8 | ||
![]() |
fb71ad1e7f | ||
![]() |
828143751b | ||
![]() |
890baf6891 | ||
![]() |
2020fb406a | ||
![]() |
4427b80aba | ||
![]() |
41b54bdde5 | ||
![]() |
54bad4c91d | ||
![]() |
fc95a57556 | ||
![]() |
21458bd07b | ||
![]() |
a05969b29d | ||
![]() |
fdeaed894a | ||
![]() |
3699321904 | ||
![]() |
d8ec9c9066 | ||
![]() |
fbb2bd2b8e | ||
![]() |
d5c6bc7656 | ||
![]() |
f7615fe7d7 | ||
![]() |
1703b92e1a | ||
![]() |
cfd81ab563 | ||
![]() |
ac1ee41e4d | ||
![]() |
ecae65e7fd | ||
![]() |
c617c67ff8 | ||
![]() |
7228cc00e8 | ||
![]() |
a26416dca3 | ||
![]() |
37bb1d33a7 | ||
![]() |
dbef0b91bf | ||
![]() |
499f20071a | ||
![]() |
0d3d63e3aa |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,5 +1,5 @@
|
|||||||
*~
|
*~
|
||||||
devtools-*.tar.gz
|
devtools-*.tar.gz*
|
||||||
archbuild
|
archbuild
|
||||||
archco
|
archco
|
||||||
archrelease
|
archrelease
|
||||||
|
9
Makefile
9
Makefile
@@ -1,4 +1,4 @@
|
|||||||
V=20120616
|
V=20130408
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
|
||||||
@@ -64,6 +64,10 @@ CROSSREPOMOVE_LINKS = \
|
|||||||
extra2community \
|
extra2community \
|
||||||
community2extra
|
community2extra
|
||||||
|
|
||||||
|
BASHCOMPLETION_LINKS = \
|
||||||
|
archco \
|
||||||
|
communityco
|
||||||
|
|
||||||
all: $(BINPROGS) $(SBINPROGS) bash_completion zsh_completion
|
all: $(BINPROGS) $(SBINPROGS) bash_completion zsh_completion
|
||||||
|
|
||||||
edit = sed -e "s|@pkgdatadir[@]|$(DESTDIR)$(PREFIX)/share/devtools|g"
|
edit = sed -e "s|@pkgdatadir[@]|$(DESTDIR)$(PREFIX)/share/devtools|g"
|
||||||
@@ -90,6 +94,7 @@ install:
|
|||||||
for l in ${CROSSREPOMOVE_LINKS}; do ln -sf crossrepomove $(DESTDIR)$(PREFIX)/bin/$$l; done
|
for l in ${CROSSREPOMOVE_LINKS}; do ln -sf crossrepomove $(DESTDIR)$(PREFIX)/bin/$$l; done
|
||||||
ln -sf find-libdeps $(DESTDIR)$(PREFIX)/bin/find-libprovides
|
ln -sf find-libdeps $(DESTDIR)$(PREFIX)/bin/find-libprovides
|
||||||
install -Dm0644 bash_completion $(DESTDIR)/usr/share/bash-completion/completions/devtools
|
install -Dm0644 bash_completion $(DESTDIR)/usr/share/bash-completion/completions/devtools
|
||||||
|
for l in ${BASHCOMPLETION_LINKS}; do ln -sf devtools $(DESTDIR)/usr/share/bash-completion/completions/$$l; done
|
||||||
install -Dm0644 zsh_completion $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_devtools
|
install -Dm0644 zsh_completion $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_devtools
|
||||||
ln -sf archco $(DESTDIR)$(PREFIX)/bin/communityco
|
ln -sf archco $(DESTDIR)$(PREFIX)/bin/communityco
|
||||||
|
|
||||||
@@ -110,6 +115,6 @@ dist:
|
|||||||
gpg --detach-sign --use-agent devtools-$(V).tar.gz
|
gpg --detach-sign --use-agent devtools-$(V).tar.gz
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
scp devtools-$(V).tar.gz devtools-$(V).tar.gz.sig gerolde.archlinux.org:/srv/ftp/other/devtools/
|
scp devtools-$(V).tar.gz devtools-$(V).tar.gz.sig nymeria.archlinux.org:/srv/ftp/other/devtools/
|
||||||
|
|
||||||
.PHONY: all clean install uninstall dist upload
|
.PHONY: all clean install uninstall dist upload
|
||||||
|
26
archbuild.in
26
archbuild.in
@@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
m4_include(lib/common.sh)
|
m4_include(lib/common.sh)
|
||||||
|
|
||||||
base_packages=(base base-devel sudo)
|
base_packages=(base-devel)
|
||||||
|
makechrootpkg_args=(-c -n)
|
||||||
|
|
||||||
cmd="${0##*/}"
|
cmd="${0##*/}"
|
||||||
if [[ "${cmd%%-*}" == 'multilib' ]]; then
|
if [[ "${cmd%%-*}" == 'multilib' ]]; then
|
||||||
@@ -18,13 +19,17 @@ chroots='/var/lib/archbuild'
|
|||||||
clean_first=false
|
clean_first=false
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage $cmd"
|
echo "Usage: $cmd [options] -- [makechrootpkg args]"
|
||||||
|
echo ' -h This help'
|
||||||
echo ' -c Recreate the chroot before building'
|
echo ' -c Recreate the chroot before building'
|
||||||
echo ' -r <dir> Create chroots in this directory'
|
echo ' -r <dir> Create chroots in this directory'
|
||||||
|
echo ''
|
||||||
|
echo "Default makechrootpkg args: ${makechrootpkg_args[*]}"
|
||||||
|
echo ''
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
while getopts 'cr:' arg; do
|
while getopts 'hcr:' arg; do
|
||||||
case "${arg}" in
|
case "${arg}" in
|
||||||
c) clean_first=true ;;
|
c) clean_first=true ;;
|
||||||
r) chroots="$OPTARG" ;;
|
r) chroots="$OPTARG" ;;
|
||||||
@@ -32,7 +37,10 @@ while getopts 'cr:' arg; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ "$EUID" != '0' ]]; then
|
# Pass all arguments after -- right to makepkg
|
||||||
|
makechrootpkg_args+=("${@:$OPTIND}")
|
||||||
|
|
||||||
|
if (( EUID )); then
|
||||||
die 'This script must be run as root.'
|
die 'This script must be run as root.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -50,7 +58,9 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then
|
|||||||
stat_done
|
stat_done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ type -P btrfs && btrfs subvolume delete "${copy}"; } &>/dev/null
|
if [[ "$(stat -f -c %T "${copy}")" == btrfs ]]; then
|
||||||
|
{ type -P btrfs && btrfs subvolume delete "${copy}"; } &>/dev/null
|
||||||
|
fi
|
||||||
rm -rf --one-file-system "${copy}"
|
rm -rf --one-file-system "${copy}"
|
||||||
done
|
done
|
||||||
exec 9>&-
|
exec 9>&-
|
||||||
@@ -61,14 +71,14 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then
|
|||||||
-C "@pkgdatadir@/pacman-${repo}.conf" \
|
-C "@pkgdatadir@/pacman-${repo}.conf" \
|
||||||
-M "@pkgdatadir@/makepkg-${arch}.conf" \
|
-M "@pkgdatadir@/makepkg-${arch}.conf" \
|
||||||
"${chroots}/${repo}-${arch}/root" \
|
"${chroots}/${repo}-${arch}/root" \
|
||||||
"${base_packages[@]}"
|
"${base_packages[@]}" || abort
|
||||||
else
|
else
|
||||||
setarch ${arch} mkarchroot \
|
setarch ${arch} mkarchroot \
|
||||||
-u \
|
-u \
|
||||||
-C "@pkgdatadir@/pacman-${repo}.conf" \
|
-C "@pkgdatadir@/pacman-${repo}.conf" \
|
||||||
-M "@pkgdatadir@/makepkg-${arch}.conf" \
|
-M "@pkgdatadir@/makepkg-${arch}.conf" \
|
||||||
"${chroots}/${repo}-${arch}/root"
|
"${chroots}/${repo}-${arch}/root" || abort
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg "Building in chroot for [${repo}] (${arch})..."
|
msg "Building in chroot for [${repo}] (${arch})..."
|
||||||
exec setarch "${arch}" makechrootpkg -c -n -r "${chroots}/${repo}-${arch}"
|
exec setarch "${arch}" makechrootpkg "${makechrootpkg_args[@]}" -r "${chroots}/${repo}-${arch}"
|
||||||
|
@@ -11,9 +11,9 @@ fi
|
|||||||
|
|
||||||
case $scriptname in
|
case $scriptname in
|
||||||
archco)
|
archco)
|
||||||
SVNURL="svn+ssh://gerolde.archlinux.org/srv/svn-packages";;
|
SVNURL="svn+ssh://svn-packages@nymeria.archlinux.org/srv/repos/svn-packages/svn";;
|
||||||
communityco)
|
communityco)
|
||||||
SVNURL="svn+ssh://aur.archlinux.org/srv/svn-packages";;
|
SVNURL="svn+ssh://svn-community@nymeria.archlinux.org/srv/repos/svn-community/svn";;
|
||||||
*)
|
*)
|
||||||
die "Couldn't find svn url for $scriptname"
|
die "Couldn't find svn url for $scriptname"
|
||||||
;;
|
;;
|
||||||
|
@@ -66,7 +66,7 @@ for tag in "$@"; do
|
|||||||
while read -r file; do
|
while read -r file; do
|
||||||
trash+=("repos/$tag/$file")
|
trash+=("repos/$tag/$file")
|
||||||
done < <(svn ls "repos/$tag")
|
done < <(svn ls "repos/$tag")
|
||||||
[[ $trash ]] && svn rm -q "${trash[@]}"
|
[[ $trash ]] && svn rm -q "${trash[@]/%/@}"
|
||||||
else
|
else
|
||||||
mkdir -p "repos/$tag"
|
mkdir -p "repos/$tag"
|
||||||
svn add --parents -q "repos/$tag"
|
svn add --parents -q "repos/$tag"
|
||||||
|
@@ -53,7 +53,7 @@ _mkarchroot() {
|
|||||||
|
|
||||||
case $cur in
|
case $cur in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W '-C -M -c -f -h -n -r -u' -- "$cur" ) )
|
COMPREPLY=( $( compgen -W '-C -M -c -h -n -r -u' -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
_filedir
|
_filedir
|
||||||
|
@@ -58,7 +58,7 @@ for _pkgname in "${pkgname[@]}"; do
|
|||||||
elif [[ -f "$STARTDIR/$oldpkg" ]]; then
|
elif [[ -f "$STARTDIR/$oldpkg" ]]; then
|
||||||
ln -s "$STARTDIR/$oldpkg" "$oldpkg"
|
ln -s "$STARTDIR/$oldpkg" "$oldpkg"
|
||||||
else
|
else
|
||||||
wget --quiet "$pkgurl"
|
curl -fsLC - --retry 3 --retry-delay 3 -o "$oldpkg" "$pkgurl"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
14
commitpkg.in
14
commitpkg.in
@@ -42,7 +42,7 @@ pkgbase=${pkgbase:-$pkgname}
|
|||||||
case "$cmd" in
|
case "$cmd" in
|
||||||
commitpkg)
|
commitpkg)
|
||||||
if (( $# == 0 )); then
|
if (( $# == 0 )); then
|
||||||
die 'usage: commitpkg <reponame> [-f] [-s server] [-l limit] [-a arch] [commit message]'
|
die 'Usage: commitpkg <reponame> [-f] [-s server] [-l limit] [-a arch] [commit message]'
|
||||||
fi
|
fi
|
||||||
repo="$1"
|
repo="$1"
|
||||||
shift
|
shift
|
||||||
@@ -51,7 +51,7 @@ case "$cmd" in
|
|||||||
repo="${cmd%pkg}"
|
repo="${cmd%pkg}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
die 'usage: commitpkg <reponame> [-f] [-s server] [-l limit] [-a arch] [commit message]'
|
die 'Usage: commitpkg <reponame> [-f] [-s server] [-l limit] [-a arch] [commit message]'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@@ -105,15 +105,7 @@ for _arch in ${arch[@]}; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [[ -z $server ]]; then
|
if [[ -z $server ]]; then
|
||||||
case "$repo" in
|
server='nymeria.archlinux.org'
|
||||||
core|extra|testing|staging|kde-unstable|gnome-unstable)
|
|
||||||
server='gerolde.archlinux.org' ;;
|
|
||||||
community*|multilib*)
|
|
||||||
server='aur.archlinux.org' ;;
|
|
||||||
*)
|
|
||||||
server='gerolde.archlinux.org'
|
|
||||||
msg "Non-standard repository $repo in use, defaulting to server $server" ;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n $(svn status -q) ]]; then
|
if [[ -n $(svn status -q) ]]; then
|
||||||
|
@@ -11,26 +11,16 @@ fi
|
|||||||
|
|
||||||
pkgbase="${1}"
|
pkgbase="${1}"
|
||||||
|
|
||||||
packages_svn='svn+ssh://gerolde.archlinux.org/srv/svn-packages'
|
|
||||||
packages_server='gerolde.archlinux.org'
|
|
||||||
community_svn='svn+ssh://aur.archlinux.org/srv/svn-packages'
|
|
||||||
community_server='aur.archlinux.org'
|
|
||||||
mirror='http://mirrors.kernel.org/archlinux'
|
|
||||||
|
|
||||||
case $scriptname in
|
case $scriptname in
|
||||||
extra2community)
|
extra2community)
|
||||||
source_svn="${packages_svn}"
|
source_name='packages'
|
||||||
target_svn="${community_svn}"
|
target_name='community'
|
||||||
source_server="${packages_server}"
|
|
||||||
target_server="${community_server}"
|
|
||||||
source_repo='extra'
|
source_repo='extra'
|
||||||
target_repo='community'
|
target_repo='community'
|
||||||
;;
|
;;
|
||||||
community2extra)
|
community2extra)
|
||||||
source_svn="${community_svn}"
|
source_name='community'
|
||||||
target_svn="${packages_svn}"
|
target_name='packages'
|
||||||
source_server="${community_server}"
|
|
||||||
target_server="${packages_server}"
|
|
||||||
source_repo='community'
|
source_repo='community'
|
||||||
target_repo='extra'
|
target_repo='extra'
|
||||||
;;
|
;;
|
||||||
@@ -39,6 +29,13 @@ case $scriptname in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
server='nymeria.archlinux.org'
|
||||||
|
mirror="http://${server}"
|
||||||
|
source_svn="svn+ssh://svn-${source_name}@${server}/srv/repos/svn-${source_name}/svn"
|
||||||
|
target_svn="svn+ssh://svn-${target_name}@${server}/srv/repos/svn-${target_name}/svn"
|
||||||
|
source_dbscripts="/srv/repos/svn-${source_name}/dbscripts"
|
||||||
|
target_dbscripts="/srv/repos/svn-${target_name}/dbscripts"
|
||||||
|
|
||||||
setup_workdir
|
setup_workdir
|
||||||
|
|
||||||
pushd $WORKDIR >/dev/null
|
pushd $WORKDIR >/dev/null
|
||||||
@@ -59,7 +56,7 @@ for _arch in ${arch[@]}; do
|
|||||||
for _pkgname in ${pkgname[@]}; do
|
for _pkgname in ${pkgname[@]}; do
|
||||||
fullver=$(get_full_version $_pkgname)
|
fullver=$(get_full_version $_pkgname)
|
||||||
# FIXME: this only works with .xz packages
|
# FIXME: this only works with .xz packages
|
||||||
ssh "${target_server}" "cd staging/${target_repo}
|
ssh "${server}" "cd staging/${target_repo}
|
||||||
curl -O ${mirror}/${source_repo}/os/${repo_arch}/$_pkgname-$fullver-${_arch}.pkg.tar.xz
|
curl -O ${mirror}/${source_repo}/os/${repo_arch}/$_pkgname-$fullver-${_arch}.pkg.tar.xz
|
||||||
curl -O ${mirror}/${source_repo}/os/${repo_arch}/$_pkgname-$fullver-${_arch}.pkg.tar.xz.sig" || die
|
curl -O ${mirror}/${source_repo}/os/${repo_arch}/$_pkgname-$fullver-${_arch}.pkg.tar.xz.sig" || die
|
||||||
done
|
done
|
||||||
@@ -72,11 +69,12 @@ svn -q commit -m"${scriptname}: Moving ${pkgbase} from ${source_repo} to ${targe
|
|||||||
pushd "target_checkout/${pkgbase}/trunk" >/dev/null
|
pushd "target_checkout/${pkgbase}/trunk" >/dev/null
|
||||||
archrelease "${arch[@]/#/$target_repo-}" || die
|
archrelease "${arch[@]/#/$target_repo-}" || die
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
ssh "${target_server}" '/arch/db-update' || die
|
|
||||||
|
ssh "${server}" "${target_dbscripts}/db-update" || die
|
||||||
|
|
||||||
msg "Removing ${pkgbase} from ${source_repo}"
|
msg "Removing ${pkgbase} from ${source_repo}"
|
||||||
for _arch in ${arch[@]}; do
|
for _arch in ${arch[@]}; do
|
||||||
ssh "${source_server}" "/arch/db-remove ${source_repo} ${_arch} ${pkgbase}"
|
ssh "${server}" "${source_dbscripts}/db-remove ${source_repo} ${_arch} ${pkgbase}"
|
||||||
done
|
done
|
||||||
svn -q checkout -N "${source_svn}" source_checkout
|
svn -q checkout -N "${source_svn}" source_checkout
|
||||||
svn -q up "source_checkout/${pkgbase}"
|
svn -q up "source_checkout/${pkgbase}"
|
||||||
|
@@ -8,7 +8,7 @@ m4_include(lib/common.sh)
|
|||||||
match=$1
|
match=$1
|
||||||
|
|
||||||
if [[ -z $match ]]; then
|
if [[ -z $match ]]; then
|
||||||
echo 'usage: finddeps <depname>'
|
echo 'Usage: finddeps <depname>'
|
||||||
echo ''
|
echo ''
|
||||||
echo 'Find packages that depend on a given depname.'
|
echo 'Find packages that depend on a given depname.'
|
||||||
echo 'Run this script from the top-level directory of your ABS tree.'
|
echo 'Run this script from the top-level directory of your ABS tree.'
|
||||||
|
@@ -62,8 +62,6 @@ setup_workdir() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
trap - EXIT INT QUIT TERM HUP
|
|
||||||
|
|
||||||
[[ -n $WORKDIR ]] && rm -rf "$WORKDIR"
|
[[ -n $WORKDIR ]] && rm -rf "$WORKDIR"
|
||||||
[[ $1 ]] && exit $1
|
[[ $1 ]] && exit $1
|
||||||
}
|
}
|
||||||
@@ -73,13 +71,23 @@ abort() {
|
|||||||
cleanup 0
|
cleanup 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
trap_abort() {
|
||||||
|
trap - EXIT INT QUIT TERM HUP
|
||||||
|
abort
|
||||||
|
}
|
||||||
|
|
||||||
|
trap_exit() {
|
||||||
|
trap - EXIT INT QUIT TERM HUP
|
||||||
|
cleanup
|
||||||
|
}
|
||||||
|
|
||||||
die() {
|
die() {
|
||||||
error "$*"
|
error "$*"
|
||||||
cleanup 1
|
cleanup 1
|
||||||
}
|
}
|
||||||
|
|
||||||
trap abort INT QUIT TERM HUP
|
trap 'trap_abort' INT QUIT TERM HUP
|
||||||
trap 'cleanup 0' EXIT
|
trap 'trap_exit' EXIT
|
||||||
|
|
||||||
##
|
##
|
||||||
# usage : in_array( $needle, $haystack )
|
# usage : in_array( $needle, $haystack )
|
||||||
|
103
makechrootpkg.in
103
makechrootpkg.in
@@ -19,15 +19,19 @@ clean_first=false
|
|||||||
install_pkg=
|
install_pkg=
|
||||||
add_to_db=false
|
add_to_db=false
|
||||||
run_namcap=false
|
run_namcap=false
|
||||||
|
temp_chroot=false
|
||||||
chrootdir=
|
chrootdir=
|
||||||
passeddir=
|
passeddir=
|
||||||
|
declare -a install_pkgs
|
||||||
|
declare -i ret=0
|
||||||
|
|
||||||
default_copy=$USER
|
copy=$USER
|
||||||
[[ -n $SUDO_USER ]] && default_copy=$SUDO_USER
|
[[ -n $SUDO_USER ]] && copy=$SUDO_USER
|
||||||
[[ -z $default_copy || $default_copy = root ]] && default_copy=copy
|
[[ -z "$copy" || $copy = root ]] && copy=copy
|
||||||
|
src_owner=${SUDO_USER:-$USER}
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage ${0##*/} [options] -r <chrootdir> [--] [makepkg args]"
|
echo "Usage: ${0##*/} [options] -r <chrootdir> [--] [makepkg args]"
|
||||||
echo ' Run this script in a PKGBUILD dir to build a package inside a'
|
echo ' Run this script in a PKGBUILD dir to build a package inside a'
|
||||||
echo ' clean chroot. All unrecognized arguments passed to this script'
|
echo ' clean chroot. All unrecognized arguments passed to this script'
|
||||||
echo ' will be passed to makepkg.'
|
echo ' will be passed to makepkg.'
|
||||||
@@ -38,7 +42,7 @@ usage() {
|
|||||||
echo ''
|
echo ''
|
||||||
echo 'The chroot "root" directory must be created via the following'
|
echo 'The chroot "root" directory must be created via the following'
|
||||||
echo 'command:'
|
echo 'command:'
|
||||||
echo ' mkarchroot <chrootdir>/root base base-devel sudo'
|
echo ' mkarchroot <chrootdir>/root base-devel'
|
||||||
echo ''
|
echo ''
|
||||||
echo "Default makepkg args: $makepkg_args"
|
echo "Default makepkg args: $makepkg_args"
|
||||||
echo ''
|
echo ''
|
||||||
@@ -52,22 +56,24 @@ usage() {
|
|||||||
echo '-r <dir> The chroot dir to use'
|
echo '-r <dir> The chroot dir to use'
|
||||||
echo '-I <pkg> Install a package into the working copy of the chroot'
|
echo '-I <pkg> Install a package into the working copy of the chroot'
|
||||||
echo '-l <copy> The directory to use as the working copy of the chroot'
|
echo '-l <copy> The directory to use as the working copy of the chroot'
|
||||||
echo ' Useful for maintaining multiple copies.'
|
echo ' Useful for maintaining multiple copies'
|
||||||
echo " Default: $default_copy"
|
echo " Default: $copy"
|
||||||
echo '-n Run namcap on the package'
|
echo '-n Run namcap on the package'
|
||||||
|
echo '-T Build in a temporary directory'
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
while getopts 'hcudr:I:l:n' arg; do
|
while getopts 'hcudr:I:l:nT' arg; do
|
||||||
case "$arg" in
|
case "$arg" in
|
||||||
h) usage ;;
|
h) usage ;;
|
||||||
c) clean_first=true ;;
|
c) clean_first=true ;;
|
||||||
u) update_first=true ;;
|
u) update_first=true ;;
|
||||||
d) add_to_db=true ;;
|
d) add_to_db=true ;;
|
||||||
r) passeddir="$OPTARG" ;;
|
r) passeddir="$OPTARG" ;;
|
||||||
I) install_pkg="$OPTARG" ;;
|
I) install_pkgs+=("$OPTARG") ;;
|
||||||
l) copy="$OPTARG" ;;
|
l) copy="$OPTARG" ;;
|
||||||
n) run_namcap=true; makepkg_args="$makepkg_args -i" ;;
|
n) run_namcap=true; makepkg_args="$makepkg_args -i" ;;
|
||||||
|
T) temp_chroot=true; copy+="-$RANDOM" ;;
|
||||||
*) makepkg_args="$makepkg_args -$arg $OPTARG" ;;
|
*) makepkg_args="$makepkg_args -$arg $OPTARG" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@@ -78,7 +84,6 @@ chrootdir=$(readlink -e "$passeddir")
|
|||||||
if [[ ${copy:0:1} = / ]]; then
|
if [[ ${copy:0:1} = / ]]; then
|
||||||
copydir=$copy
|
copydir=$copy
|
||||||
else
|
else
|
||||||
[[ -z $copy ]] && copy=$default_copy
|
|
||||||
copydir="$chrootdir/$copy"
|
copydir="$chrootdir/$copy"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -97,7 +102,7 @@ if (( EUID )); then
|
|||||||
die 'This script must be run as root.'
|
die 'This script must be run as root.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -f PKGBUILD && -z $install_pkg ]]; then
|
if [[ ! -f PKGBUILD && -z "${install_pkgs[*]}" ]]; then
|
||||||
die 'This must be run in a directory containing a PKGBUILD.'
|
die 'This must be run in a directory containing a PKGBUILD.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -106,16 +111,19 @@ if [[ ! -d $chrootdir ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -d $chrootdir/root ]]; then
|
if [[ ! -d $chrootdir/root ]]; then
|
||||||
die "Missing chroot dir root directory. Try using: mkarchroot $chrootdir/root base base-devel sudo"
|
die "Missing chroot dir root directory. Try using: mkarchroot $chrootdir/root base-devel"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
umask 0022
|
umask 0022
|
||||||
|
|
||||||
|
# Detect chrootdir filesystem type
|
||||||
|
chroottype=$(stat -f -c %T "$chrootdir")
|
||||||
|
|
||||||
# Lock the chroot we want to use. We'll keep this lock until we exit.
|
# Lock the chroot we want to use. We'll keep this lock until we exit.
|
||||||
# Note this is the same FD number as in mkarchroot
|
# Note this is the same FD number as in mkarchroot
|
||||||
exec 9>"$copydir.lock"
|
exec 9>"$copydir.lock"
|
||||||
if ! flock -n 9; then
|
if ! flock -n 9; then
|
||||||
stat_busy "Locking chroot copy '$copy'"
|
stat_busy "Locking chroot copy [$copy]"
|
||||||
flock 9
|
flock 9
|
||||||
stat_done
|
stat_done
|
||||||
fi
|
fi
|
||||||
@@ -131,17 +139,15 @@ if [[ ! -d $copydir ]] || $clean_first; then
|
|||||||
stat_done
|
stat_done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
stat_busy 'Creating clean working copy'
|
stat_busy "Creating clean working copy [$copy]"
|
||||||
use_rsync=false
|
if [[ "$chroottype" == btrfs ]]; then
|
||||||
if type -P btrfs >/dev/null; then
|
if [[ -d $copydir ]]; then
|
||||||
[[ -d $copydir ]] && btrfs subvolume delete "$copydir" &>/dev/null
|
btrfs subvolume delete "$copydir" >/dev/null ||
|
||||||
btrfs subvolume snapshot "$chrootdir/root" "$copydir" &>/dev/null ||
|
die "Unable to delete subvolume $copydir"
|
||||||
use_rsync=true
|
fi
|
||||||
|
btrfs subvolume snapshot "$chrootdir/root" "$copydir" >/dev/null ||
|
||||||
|
die "Unable to create subvolume $copydir"
|
||||||
else
|
else
|
||||||
use_rsync=true
|
|
||||||
fi
|
|
||||||
|
|
||||||
if $use_rsync; then
|
|
||||||
mkdir -p "$copydir"
|
mkdir -p "$copydir"
|
||||||
rsync -a --delete -q -W -x "$chrootdir/root/" "$copydir"
|
rsync -a --delete -q -W -x "$chrootdir/root/" "$copydir"
|
||||||
fi
|
fi
|
||||||
@@ -151,17 +157,19 @@ if [[ ! -d $copydir ]] || $clean_first; then
|
|||||||
exec 8>&-
|
exec 8>&-
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n $install_pkg ]]; then
|
if [[ -n "${install_pkgs[*]}" ]]; then
|
||||||
pkgname="${install_pkg##*/}"
|
for install_pkg in "${install_pkgs[@]}"; do
|
||||||
cp "$install_pkg" "$copydir/$pkgname"
|
pkgname="${install_pkg##*/}"
|
||||||
|
cp "$install_pkg" "$copydir/$pkgname"
|
||||||
|
|
||||||
mkarchroot -r "pacman -U /$pkgname --noconfirm" "$copydir"
|
mkarchroot -r "pacman -U /$pkgname --noconfirm" "$copydir"
|
||||||
ret=$?
|
(( ret += !! $? ))
|
||||||
|
|
||||||
rm "$copydir/$pkgname"
|
rm "$copydir/$pkgname"
|
||||||
|
done
|
||||||
|
|
||||||
# Exit early, we've done all we need to
|
# If there is no PKGBUILD we have done
|
||||||
exit $ret
|
[[ -f PKGBUILD ]] || exit $ret
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$update_first && mkarchroot -u "$copydir"
|
$update_first && mkarchroot -u "$copydir"
|
||||||
@@ -212,12 +220,12 @@ if ! grep -q 'SRCDEST="/srcdest"' "$copydir/etc/makepkg.conf"; then
|
|||||||
echo 'SRCDEST="/srcdest"' >> "$copydir/etc/makepkg.conf"
|
echo 'SRCDEST="/srcdest"' >> "$copydir/etc/makepkg.conf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n $MAKEFLAGS ]]; then
|
if [[ -n $MAKEFLAGS ]]; then
|
||||||
sed -i '/^MAKEFLAGS=/d' "$copydir/etc/makepkg.conf"
|
sed -i '/^MAKEFLAGS=/d' "$copydir/etc/makepkg.conf"
|
||||||
echo "MAKEFLAGS='${MAKEFLAGS}'" >> "$copydir/etc/makepkg.conf"
|
echo "MAKEFLAGS='${MAKEFLAGS}'" >> "$copydir/etc/makepkg.conf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n $PACKAGER ]]; then
|
if [[ -n $PACKAGER ]]; then
|
||||||
sed -i '/^PACKAGER=/d' "$copydir/etc/makepkg.conf"
|
sed -i '/^PACKAGER=/d' "$copydir/etc/makepkg.conf"
|
||||||
echo "PACKAGER='${PACKAGER}'" >> "$copydir/etc/makepkg.conf"
|
echo "PACKAGER='${PACKAGER}'" >> "$copydir/etc/makepkg.conf"
|
||||||
fi
|
fi
|
||||||
@@ -266,15 +274,13 @@ cat >"$copydir/chrootbuild" <<EOF
|
|||||||
export HOME=/build
|
export HOME=/build
|
||||||
|
|
||||||
cd /build
|
cd /build
|
||||||
sudo -u nobody makepkg $makepkg_args || touch BUILD_FAILED
|
sudo -u nobody makepkg $makepkg_args || exit 1
|
||||||
|
|
||||||
[[ -f BUILD_FAILED ]] && exit 1
|
|
||||||
|
|
||||||
if $run_namcap; then
|
if $run_namcap; then
|
||||||
pacman -S --needed --noconfirm namcap
|
pacman -S --needed --noconfirm namcap
|
||||||
for pkgfile in /build/PKGBUILD /pkgdest/*.pkg.tar.?z; do
|
for pkgfile in /build/PKGBUILD /pkgdest/*.pkg.tar.?z; do
|
||||||
echo "Checking \${pkgfile##*/}"
|
echo "Checking \${pkgfile##*/}"
|
||||||
namcap "\$pkgfile" 2>&1 | tee "/build/\${pkgfile##*/}-namcap.log"
|
sudo -u nobody namcap "\$pkgfile" 2>&1 | tee "/build/\${pkgfile##*/}-namcap.log"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -292,22 +298,39 @@ if mkarchroot -r "/chrootbuild" "$copydir"; then
|
|||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chown "$src_owner" "$pkgfile"
|
||||||
mv "$pkgfile" "$PKGDEST"
|
mv "$pkgfile" "$PKGDEST"
|
||||||
done
|
done
|
||||||
|
|
||||||
for l in "$copydir"/build/*-{build,check,namcap,package,package_*}.log; do
|
for l in "$copydir"/build/*-{build,check,namcap,package,package_*}.log; do
|
||||||
|
chown "$src_owner" "$l"
|
||||||
[[ -f $l ]] && mv "$l" .
|
[[ -f $l ]] && mv "$l" .
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
# Just in case. We returned 1, make sure we fail
|
# Just in case. We returned 1, make sure we fail
|
||||||
touch "$copydir/build/BUILD_FAILED"
|
ret=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for f in "$copydir"/srcdest/*; do
|
for f in "$copydir"/srcdest/*; do
|
||||||
|
chown "$src_owner" "$f"
|
||||||
mv "$f" "$SRCDEST"
|
mv "$f" "$SRCDEST"
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ -e $copydir/build/BUILD_FAILED ]]; then
|
if $temp_chroot; then
|
||||||
rm "$copydir/build/BUILD_FAILED"
|
stat_busy "Removing temporary directoy [$copy]"
|
||||||
|
if [[ "$chroottype" == btrfs ]]; then
|
||||||
|
btrfs subvolume delete "$copydir" >/dev/null ||
|
||||||
|
die "Unable to delete subvolume $copydir"
|
||||||
|
else
|
||||||
|
# avoid change of filesystem in case of an umount failure
|
||||||
|
rm --recursive --force --one-file-system "$copydir" ||
|
||||||
|
die "Unable to delete $copydir"
|
||||||
|
fi
|
||||||
|
# remove lock file
|
||||||
|
rm --force "$copydir.lock"
|
||||||
|
stat_done
|
||||||
|
elif (( ret != 0 )); then
|
||||||
die "Build failed, check $copydir/build"
|
die "Build failed, check $copydir/build"
|
||||||
|
else
|
||||||
|
true
|
||||||
fi
|
fi
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
|
DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
|
||||||
'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||||
'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||||
'rsync::/usr/bin/rsync -z %u %o'
|
'rsync::/usr/bin/rsync --no-motd -z %u %o'
|
||||||
'scp::/usr/bin/scp -C %u %o')
|
'scp::/usr/bin/scp -C %u %o')
|
||||||
|
|
||||||
# Other common tools:
|
# Other common tools:
|
||||||
@@ -29,11 +29,15 @@ CHOST="i686-pc-linux-gnu"
|
|||||||
#-- Compiler and Linker Flags
|
#-- Compiler and Linker Flags
|
||||||
# -march (or -mcpu) builds exclusively for an architecture
|
# -march (or -mcpu) builds exclusively for an architecture
|
||||||
# -mtune optimizes for an architecture, but builds for whole processor family
|
# -mtune optimizes for an architecture, but builds for whole processor family
|
||||||
CFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
|
CPPFLAGS="-D_FORTIFY_SOURCE=2"
|
||||||
CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
|
CFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
|
||||||
|
CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
|
||||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
|
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
|
||||||
#-- Make Flags: change this for DistCC/SMP systems
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
#MAKEFLAGS="-j2"
|
#MAKEFLAGS="-j2"
|
||||||
|
#-- Debugging flags
|
||||||
|
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||||
|
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
# BUILD ENVIRONMENT
|
# BUILD ENVIRONMENT
|
||||||
@@ -63,18 +67,20 @@ BUILDENV=(fakeroot !distcc color !ccache check !sign)
|
|||||||
# These are default values for the options=() settings
|
# These are default values for the options=() settings
|
||||||
#########################################################################
|
#########################################################################
|
||||||
#
|
#
|
||||||
# Default: OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
|
# Default: OPTIONS=(strip docs libtool staticlibs emptydirs zipman purge !upx !debug)
|
||||||
# A negated option will do the opposite of the comments below.
|
# A negated option will do the opposite of the comments below.
|
||||||
#
|
#
|
||||||
#-- strip: Strip symbols from binaries/libraries
|
#-- strip: Strip symbols from binaries/libraries
|
||||||
#-- docs: Save doc directories specified by DOC_DIRS
|
#-- docs: Save doc directories specified by DOC_DIRS
|
||||||
#-- libtool: Leave libtool (.la) files in packages
|
#-- libtool: Leave libtool (.la) files in packages
|
||||||
#-- emptydirs: Leave empty directories in packages
|
#-- staticlibs: Leave static library (.a) files in packages
|
||||||
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
|
#-- emptydirs: Leave empty directories in packages
|
||||||
#-- purge: Remove files specified by PURGE_TARGETS
|
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
|
||||||
#-- upx: Compress binary executable files using UPX
|
#-- purge: Remove files specified by PURGE_TARGETS
|
||||||
|
#-- upx: Compress binary executable files using UPX
|
||||||
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
#
|
#
|
||||||
OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
|
OPTIONS=(strip docs libtool staticlibs emptydirs zipman purge !upx !debug)
|
||||||
|
|
||||||
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
|
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
|
||||||
INTEGRITY_CHECK=(md5)
|
INTEGRITY_CHECK=(md5)
|
||||||
@@ -108,6 +114,17 @@ PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
|
|||||||
#-- Specify a key to use for package signing
|
#-- Specify a key to use for package signing
|
||||||
#GPGKEY=""
|
#GPGKEY=""
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# COMPRESSION DEFAULTS
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
COMPRESSGZ=(gzip -c -f -n)
|
||||||
|
COMPRESSBZ2=(bzip2 -c -f)
|
||||||
|
COMPRESSXZ=(xz -c -z -)
|
||||||
|
COMPRESSLRZ=(lrzip -q)
|
||||||
|
COMPRESSLZO=(lzop -q)
|
||||||
|
COMPRESSZ=(compress -c -f)
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
# EXTENSION DEFAULTS
|
# EXTENSION DEFAULTS
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
|
DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
|
||||||
'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||||
'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||||
'rsync::/usr/bin/rsync -z %u %o'
|
'rsync::/usr/bin/rsync --no-motd -z %u %o'
|
||||||
'scp::/usr/bin/scp -C %u %o')
|
'scp::/usr/bin/scp -C %u %o')
|
||||||
|
|
||||||
# Other common tools:
|
# Other common tools:
|
||||||
@@ -29,11 +29,15 @@ CHOST="x86_64-unknown-linux-gnu"
|
|||||||
#-- Compiler and Linker Flags
|
#-- Compiler and Linker Flags
|
||||||
# -march (or -mcpu) builds exclusively for an architecture
|
# -march (or -mcpu) builds exclusively for an architecture
|
||||||
# -mtune optimizes for an architecture, but builds for whole processor family
|
# -mtune optimizes for an architecture, but builds for whole processor family
|
||||||
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
|
CPPFLAGS="-D_FORTIFY_SOURCE=2"
|
||||||
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
|
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
|
||||||
|
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
|
||||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
|
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
|
||||||
#-- Make Flags: change this for DistCC/SMP systems
|
#-- Make Flags: change this for DistCC/SMP systems
|
||||||
#MAKEFLAGS="-j2"
|
#MAKEFLAGS="-j2"
|
||||||
|
#-- Debugging flags
|
||||||
|
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
||||||
|
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
# BUILD ENVIRONMENT
|
# BUILD ENVIRONMENT
|
||||||
@@ -63,18 +67,20 @@ BUILDENV=(fakeroot !distcc color !ccache check !sign)
|
|||||||
# These are default values for the options=() settings
|
# These are default values for the options=() settings
|
||||||
#########################################################################
|
#########################################################################
|
||||||
#
|
#
|
||||||
# Default: OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
|
# Default: OPTIONS=(strip docs libtool staticlibs emptydirs zipman purge !upx !debug)
|
||||||
# A negated option will do the opposite of the comments below.
|
# A negated option will do the opposite of the comments below.
|
||||||
#
|
#
|
||||||
#-- strip: Strip symbols from binaries/libraries
|
#-- strip: Strip symbols from binaries/libraries
|
||||||
#-- docs: Save doc directories specified by DOC_DIRS
|
#-- docs: Save doc directories specified by DOC_DIRS
|
||||||
#-- libtool: Leave libtool (.la) files in packages
|
#-- libtool: Leave libtool (.la) files in packages
|
||||||
#-- emptydirs: Leave empty directories in packages
|
#-- staticlibs: Leave static library (.a) files in packages
|
||||||
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
|
#-- emptydirs: Leave empty directories in packages
|
||||||
#-- purge: Remove files specified by PURGE_TARGETS
|
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
|
||||||
#-- upx: Compress binary executable files using UPX
|
#-- purge: Remove files specified by PURGE_TARGETS
|
||||||
|
#-- upx: Compress binary executable files using UPX
|
||||||
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
#
|
#
|
||||||
OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
|
OPTIONS=(strip docs libtool staticlibs emptydirs zipman purge !upx !debug)
|
||||||
|
|
||||||
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
|
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
|
||||||
INTEGRITY_CHECK=(md5)
|
INTEGRITY_CHECK=(md5)
|
||||||
@@ -108,6 +114,17 @@ PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
|
|||||||
#-- Specify a key to use for package signing
|
#-- Specify a key to use for package signing
|
||||||
#GPGKEY=""
|
#GPGKEY=""
|
||||||
|
|
||||||
|
#########################################################################
|
||||||
|
# COMPRESSION DEFAULTS
|
||||||
|
#########################################################################
|
||||||
|
#
|
||||||
|
COMPRESSGZ=(gzip -c -f -n)
|
||||||
|
COMPRESSBZ2=(bzip2 -c -f)
|
||||||
|
COMPRESSXZ=(xz -c -z -)
|
||||||
|
COMPRESSLRZ=(lrzip -q)
|
||||||
|
COMPRESSLZO=(lzop -q)
|
||||||
|
COMPRESSZ=(compress -c -f)
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
# EXTENSION DEFAULTS
|
# EXTENSION DEFAULTS
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
142
mkarchroot.in
142
mkarchroot.in
@@ -10,9 +10,8 @@
|
|||||||
|
|
||||||
m4_include(lib/common.sh)
|
m4_include(lib/common.sh)
|
||||||
|
|
||||||
CHROOT_VERSION='v2'
|
CHROOT_VERSION='v3'
|
||||||
|
|
||||||
FORCE='n'
|
|
||||||
RUN=''
|
RUN=''
|
||||||
NOCOPY='n'
|
NOCOPY='n'
|
||||||
|
|
||||||
@@ -22,11 +21,10 @@ APPNAME=$(basename "${0}")
|
|||||||
|
|
||||||
# usage: usage <exitvalue>
|
# usage: usage <exitvalue>
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage ${APPNAME} [options] working-dir [package-list | app]"
|
echo "Usage: ${APPNAME} [options] working-dir [package-list | app]"
|
||||||
echo ' options:'
|
echo ' options:'
|
||||||
echo ' -r <app> Run "app" within the context of the chroot'
|
echo ' -r <app> Run "app" within the context of the chroot'
|
||||||
echo ' -u Update the chroot via pacman'
|
echo ' -u Update the chroot via pacman'
|
||||||
echo ' -f Force overwrite of files in the working-dir'
|
|
||||||
echo ' -C <file> Location of a pacman config file'
|
echo ' -C <file> Location of a pacman config file'
|
||||||
echo ' -M <file> Location of a makepkg config file'
|
echo ' -M <file> Location of a makepkg config file'
|
||||||
echo ' -n Do not copy config files into the chroot'
|
echo ' -n Do not copy config files into the chroot'
|
||||||
@@ -38,13 +36,12 @@ usage() {
|
|||||||
while getopts 'r:ufnhC:M:c:' arg; do
|
while getopts 'r:ufnhC:M:c:' arg; do
|
||||||
case "${arg}" in
|
case "${arg}" in
|
||||||
r) RUN="$OPTARG" ;;
|
r) RUN="$OPTARG" ;;
|
||||||
u) RUN='/bin/sh -c "pacman -Syu --noconfirm && (pacman -Qqu >/dev/null && pacman -Su --noconfirm || exit 0)"' ;;
|
u) RUN='pacman -Syu --noconfirm' ;;
|
||||||
f) FORCE='y' ;;
|
|
||||||
C) pac_conf="$OPTARG" ;;
|
C) pac_conf="$OPTARG" ;;
|
||||||
M) makepkg_conf="$OPTARG" ;;
|
M) makepkg_conf="$OPTARG" ;;
|
||||||
n) NOCOPY='y' ;;
|
n) NOCOPY='y' ;;
|
||||||
c) cache_dir="$OPTARG" ;;
|
c) cache_dir="$OPTARG" ;;
|
||||||
h|?) usage 0 ;;
|
h|?) usage ;;
|
||||||
*) error "invalid argument '${arg}'"; usage ;;
|
*) error "invalid argument '${arg}'"; usage ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@@ -78,66 +75,25 @@ if echo "${host_mirror}" | grep -q 'file://'; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# {{{ functions
|
# {{{ functions
|
||||||
chroot_mount() {
|
build_mount_args() {
|
||||||
[[ -e "${working_dir}/sys" ]] || mkdir "${working_dir}/sys"
|
local p
|
||||||
mount -o bind /sys "${working_dir}/sys"
|
declare -g mount_args=()
|
||||||
mount -o remount,ro,bind "${working_dir}/sys"
|
|
||||||
|
|
||||||
[[ -e "${working_dir}/proc" ]] || mkdir "${working_dir}/proc"
|
|
||||||
mount -t proc proc -o nosuid,noexec,nodev "${working_dir}/proc"
|
|
||||||
mount -o bind /proc/sys "${working_dir}/proc/sys"
|
|
||||||
mount -o remount,ro,bind "${working_dir}/proc/sys"
|
|
||||||
|
|
||||||
[[ -e "${working_dir}/dev" ]] || mkdir "${working_dir}/dev"
|
|
||||||
mount -t tmpfs dev "${working_dir}/dev" -o mode=0755,size=10M,nosuid,strictatime
|
|
||||||
mknod -m 666 "${working_dir}/dev/null" c 1 3
|
|
||||||
mknod -m 666 "${working_dir}/dev/zero" c 1 5
|
|
||||||
mknod -m 600 "${working_dir}/dev/console" c 5 1
|
|
||||||
mknod -m 644 "${working_dir}/dev/random" c 1 8
|
|
||||||
mknod -m 644 "${working_dir}/dev/urandom" c 1 9
|
|
||||||
mknod -m 666 "${working_dir}/dev/tty" c 5 0
|
|
||||||
mknod -m 666 "${working_dir}/dev/ptmx" c 5 2
|
|
||||||
mknod -m 666 "${working_dir}/dev/tty0" c 4 0
|
|
||||||
mknod -m 666 "${working_dir}/dev/full" c 1 7
|
|
||||||
mknod -m 666 "${working_dir}/dev/rtc0" c 254 0
|
|
||||||
ln -s /proc/kcore "${working_dir}/dev/core"
|
|
||||||
ln -s /proc/self/fd "${working_dir}/dev/fd"
|
|
||||||
ln -s /proc/self/fd/0 "${working_dir}/dev/stdin"
|
|
||||||
ln -s /proc/self/fd/1 "${working_dir}/dev/stdout"
|
|
||||||
ln -s /proc/self/fd/2 "${working_dir}/dev/stderr"
|
|
||||||
|
|
||||||
[[ -e "${working_dir}/dev/shm" ]] || mkdir "${working_dir}/dev/shm"
|
|
||||||
mount -t tmpfs shm "${working_dir}/dev/shm" -o nodev,nosuid,size=128M
|
|
||||||
|
|
||||||
[[ -e "${working_dir}/dev/pts" ]] || mkdir "${working_dir}/dev/pts"
|
|
||||||
mount -o bind /dev/pts "${working_dir}/dev/pts"
|
|
||||||
|
|
||||||
[[ -e "${working_dir}/run" ]] || mkdir "${working_dir}/run"
|
|
||||||
mount -t tmpfs tmpfs "${working_dir}/run" -o mode=0755,nodev,nosuid,strictatime,size=64M
|
|
||||||
|
|
||||||
if [[ -n $host_mirror_path ]]; then
|
if [[ -n $host_mirror_path ]]; then
|
||||||
[[ -e "${working_dir}/${host_mirror_path}" ]] || mkdir -p "${working_dir}/${host_mirror_path}"
|
printf -v p '%q' "$host_mirror_path"
|
||||||
mount -o bind "${host_mirror_path}" "${working_dir}/${host_mirror_path}"
|
mount_args+=(--bind-ro="$p")
|
||||||
mount -o remount,ro,bind "${working_dir}/${host_mirror_path}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local cache_dir_first=true
|
printf -v p '%q' "${cache_dirs[0]}"
|
||||||
for cache_dir in ${cache_dirs[@]}; do
|
mount_args+=(--bind="$p")
|
||||||
[[ -e $cache_dir ]] || mkdir -p "${cache_dir}"
|
|
||||||
[[ -e "${working_dir}/${cache_dir}" ]] || mkdir -p "${working_dir}/${cache_dir}"
|
|
||||||
mount -o bind "${cache_dir}" "${working_dir}/${cache_dir}"
|
|
||||||
if ! ${cache_dir_first}; then
|
|
||||||
mount -o remount,ro,bind "${working_dir}/${cache_dir}"
|
|
||||||
else
|
|
||||||
cache_dir_first=false
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
trap 'chroot_umount' EXIT INT QUIT TERM HUP
|
for cache_dir in ${cache_dirs[@]:1}; do
|
||||||
|
printf -v p '%q' "$cache_dir"
|
||||||
|
mount_args+=(--bind-ro="$p")
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
copy_hostconf () {
|
copy_hostconf () {
|
||||||
cp /etc/resolv.conf "${working_dir}/etc/resolv.conf"
|
|
||||||
cp -a /etc/pacman.d/gnupg "${working_dir}/etc/pacman.d"
|
cp -a /etc/pacman.d/gnupg "${working_dir}/etc/pacman.d"
|
||||||
echo "Server = ${host_mirror}" > ${working_dir}/etc/pacman.d/mirrorlist
|
echo "Server = ${host_mirror}" > ${working_dir}/etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
@@ -152,21 +108,6 @@ copy_hostconf () {
|
|||||||
sed -r "s|^#?\\s*CacheDir.+|CacheDir = $(echo -n ${cache_dirs[@]})|g" -i ${working_dir}/etc/pacman.conf
|
sed -r "s|^#?\\s*CacheDir.+|CacheDir = $(echo -n ${cache_dirs[@]})|g" -i ${working_dir}/etc/pacman.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
chroot_umount () {
|
|
||||||
trap - EXIT INT QUIT TERM HUP
|
|
||||||
umount "${working_dir}/proc/sys"
|
|
||||||
umount "${working_dir}/proc"
|
|
||||||
umount "${working_dir}/sys"
|
|
||||||
umount "${working_dir}/dev/pts"
|
|
||||||
umount "${working_dir}/dev/shm"
|
|
||||||
umount "${working_dir}/dev"
|
|
||||||
umount "${working_dir}/run"
|
|
||||||
for cache_dir in ${cache_dirs[@]}; do
|
|
||||||
umount "${working_dir}/${cache_dir}"
|
|
||||||
done
|
|
||||||
[[ -n $host_mirror_path ]] && umount "${working_dir}/${host_mirror_path}"
|
|
||||||
}
|
|
||||||
|
|
||||||
chroot_lock () {
|
chroot_lock () {
|
||||||
# Only reopen the FD if it wasn't handed to us
|
# Only reopen the FD if it wasn't handed to us
|
||||||
if [[ $(readlink -f /dev/fd/9) != "${working_dir}.lock" ]]; then
|
if [[ $(readlink -f /dev/fd/9) != "${working_dir}.lock" ]]; then
|
||||||
@@ -180,6 +121,13 @@ chroot_lock () {
|
|||||||
stat_done
|
stat_done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chroot_run() {
|
||||||
|
local dir=$1
|
||||||
|
shift
|
||||||
|
systemd-nspawn -D "${dir}" "${mount_args[@]}" -- ${@} 2>/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
umask 0022
|
umask 0022
|
||||||
@@ -193,53 +141,41 @@ if [[ -n $RUN ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
chroot_lock
|
chroot_lock
|
||||||
chroot_mount
|
build_mount_args
|
||||||
copy_hostconf
|
copy_hostconf
|
||||||
|
|
||||||
eval unshare -mui -- chroot "${working_dir}" ${RUN}
|
chroot_run "${working_dir}" ${RUN}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
else
|
else
|
||||||
# {{{ build chroot
|
# {{{ build chroot
|
||||||
if [[ -e $working_dir && $FORCE = 'n' ]]; then
|
if [[ -e $working_dir ]]; then
|
||||||
die "Working directory '${working_dir}' already exists - try using -f"
|
die "Working directory '${working_dir}' already exists"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if { type -P btrfs && btrfs subvolume create "${working_dir}"; } &>/dev/null; then
|
mkdir -p "${working_dir}"
|
||||||
|
|
||||||
|
if [[ "$(stat -f -c %T "${working_dir}")" == btrfs ]]; then
|
||||||
|
rmdir "${working_dir}"
|
||||||
|
if ! btrfs subvolume create "${working_dir}"; then
|
||||||
|
die "Couldn't create subvolume for '${working_dir}'"
|
||||||
|
fi
|
||||||
chmod 0755 "${working_dir}"
|
chmod 0755 "${working_dir}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "${working_dir}/var/lib/pacman/sync"
|
|
||||||
mkdir -p "${working_dir}/etc/"
|
|
||||||
|
|
||||||
chroot_lock
|
chroot_lock
|
||||||
chroot_mount
|
|
||||||
|
|
||||||
pacargs="--noconfirm --root=${working_dir} ${cache_dirs[@]/#/--cachedir=}"
|
pacargs=("${cache_dirs[@]/#/--cachedir=}")
|
||||||
if [[ -n $pac_conf ]]; then
|
if [[ -n $pac_conf ]]; then
|
||||||
pacargs="$pacargs --config=${pac_conf}"
|
pacargs+=("--config=${pac_conf}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (( $# != 0 )); then
|
if ! pacstrap -GMcd "${working_dir}" "${pacargs[@]}" "$@"; then
|
||||||
op='-Sy'
|
die 'Failed to install all packages'
|
||||||
if [[ $FORCE = 'y' ]]; then
|
|
||||||
op="${op}f"
|
|
||||||
fi
|
|
||||||
if ! pacman ${op} ${pacargs} $@; then
|
|
||||||
die 'Failed to install all packages'
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -d "${working_dir}/lib/modules" ]]; then
|
printf '%s.UTF-8 UTF-8\n' en_US de_DE > "${working_dir}/etc/locale.gen"
|
||||||
ldconfig -r "${working_dir}"
|
chroot_run "${working_dir}" locale-gen
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -e "${working_dir}/etc/locale.gen" ]]; then
|
|
||||||
sed -i 's@^#\(en_US\|de_DE\)\(\.UTF-8\)@\1\2@' "${working_dir}/etc/locale.gen"
|
|
||||||
chroot "${working_dir}" /usr/sbin/locale-gen
|
|
||||||
fi
|
|
||||||
echo 'UTC' > "${working_dir}/etc/timezone"
|
|
||||||
ln -s /usr/share/zoneinfo/UTC "${working_dir}/etc/localtime"
|
|
||||||
echo 'LANG=C' > "${working_dir}/etc/locale.conf"
|
echo 'LANG=C' > "${working_dir}/etc/locale.conf"
|
||||||
|
|
||||||
copy_hostconf
|
copy_hostconf
|
||||||
|
@@ -15,11 +15,10 @@
|
|||||||
#LogFile = /var/log/pacman.log
|
#LogFile = /var/log/pacman.log
|
||||||
#GPGDir = /etc/pacman.d/gnupg/
|
#GPGDir = /etc/pacman.d/gnupg/
|
||||||
HoldPkg = pacman glibc
|
HoldPkg = pacman glibc
|
||||||
# If upgrades are available for these packages they will be asked for first
|
|
||||||
SyncFirst = pacman
|
|
||||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||||
#CleanMethod = KeepInstalled
|
#CleanMethod = KeepInstalled
|
||||||
|
#UseDelta = 0.7
|
||||||
Architecture = auto
|
Architecture = auto
|
||||||
|
|
||||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||||
@@ -31,7 +30,7 @@ Architecture = auto
|
|||||||
|
|
||||||
# Misc options
|
# Misc options
|
||||||
#UseSyslog
|
#UseSyslog
|
||||||
#UseDelta
|
#Color
|
||||||
#TotalDownload
|
#TotalDownload
|
||||||
# We cannot check disk space from within a chroot environment
|
# We cannot check disk space from within a chroot environment
|
||||||
#CheckSpace
|
#CheckSpace
|
||||||
@@ -39,7 +38,9 @@ Architecture = auto
|
|||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
#SigLevel = Optional TrustedOnly
|
SigLevel = Required DatabaseOptional
|
||||||
|
LocalFileSigLevel = Optional
|
||||||
|
#RemoteFileSigLevel = Required
|
||||||
|
|
||||||
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||||
# keyring can then be populated with the keys of all official Arch Linux
|
# keyring can then be populated with the keys of all official Arch Linux
|
||||||
@@ -69,23 +70,18 @@ Architecture = auto
|
|||||||
# after the header, and they will be used before the default mirrors.
|
# after the header, and they will be used before the default mirrors.
|
||||||
|
|
||||||
#[testing]
|
#[testing]
|
||||||
#SigLevel = PackageRequired
|
|
||||||
#Include = /etc/pacman.d/mirrorlist
|
#Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
#[community-testing]
|
#[community-testing]
|
||||||
#SigLevel = PackageRequired
|
|
||||||
#Include = /etc/pacman.d/mirrorlist
|
#Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community]
|
[community]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
# An example of a custom package repository. See the pacman manpage for
|
# An example of a custom package repository. See the pacman manpage for
|
||||||
|
@@ -15,11 +15,10 @@
|
|||||||
#LogFile = /var/log/pacman.log
|
#LogFile = /var/log/pacman.log
|
||||||
#GPGDir = /etc/pacman.d/gnupg/
|
#GPGDir = /etc/pacman.d/gnupg/
|
||||||
HoldPkg = pacman glibc
|
HoldPkg = pacman glibc
|
||||||
# If upgrades are available for these packages they will be asked for first
|
|
||||||
SyncFirst = pacman
|
|
||||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||||
#CleanMethod = KeepInstalled
|
#CleanMethod = KeepInstalled
|
||||||
|
#UseDelta = 0.7
|
||||||
Architecture = auto
|
Architecture = auto
|
||||||
|
|
||||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||||
@@ -31,7 +30,7 @@ Architecture = auto
|
|||||||
|
|
||||||
# Misc options
|
# Misc options
|
||||||
#UseSyslog
|
#UseSyslog
|
||||||
#UseDelta
|
#Color
|
||||||
#TotalDownload
|
#TotalDownload
|
||||||
# We cannot check disk space from within a chroot environment
|
# We cannot check disk space from within a chroot environment
|
||||||
#CheckSpace
|
#CheckSpace
|
||||||
@@ -39,7 +38,9 @@ Architecture = auto
|
|||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
#SigLevel = Optional TrustedOnly
|
SigLevel = Required DatabaseOptional
|
||||||
|
LocalFileSigLevel = Optional
|
||||||
|
#RemoteFileSigLevel = Required
|
||||||
|
|
||||||
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||||
# keyring can then be populated with the keys of all official Arch Linux
|
# keyring can then be populated with the keys of all official Arch Linux
|
||||||
@@ -69,27 +70,21 @@ Architecture = auto
|
|||||||
# after the header, and they will be used before the default mirrors.
|
# after the header, and they will be used before the default mirrors.
|
||||||
|
|
||||||
[gnome-unstable]
|
[gnome-unstable]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[testing]
|
[testing]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community-testing]
|
[community-testing]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community]
|
[community]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
# An example of a custom package repository. See the pacman manpage for
|
# An example of a custom package repository. See the pacman manpage for
|
||||||
|
@@ -15,11 +15,10 @@
|
|||||||
#LogFile = /var/log/pacman.log
|
#LogFile = /var/log/pacman.log
|
||||||
#GPGDir = /etc/pacman.d/gnupg/
|
#GPGDir = /etc/pacman.d/gnupg/
|
||||||
HoldPkg = pacman glibc
|
HoldPkg = pacman glibc
|
||||||
# If upgrades are available for these packages they will be asked for first
|
|
||||||
SyncFirst = pacman
|
|
||||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||||
#CleanMethod = KeepInstalled
|
#CleanMethod = KeepInstalled
|
||||||
|
#UseDelta = 0.7
|
||||||
Architecture = auto
|
Architecture = auto
|
||||||
|
|
||||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||||
@@ -31,7 +30,7 @@ Architecture = auto
|
|||||||
|
|
||||||
# Misc options
|
# Misc options
|
||||||
#UseSyslog
|
#UseSyslog
|
||||||
#UseDelta
|
#Color
|
||||||
#TotalDownload
|
#TotalDownload
|
||||||
# We cannot check disk space from within a chroot environment
|
# We cannot check disk space from within a chroot environment
|
||||||
#CheckSpace
|
#CheckSpace
|
||||||
@@ -39,7 +38,9 @@ Architecture = auto
|
|||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
#SigLevel = Optional TrustedOnly
|
SigLevel = Required DatabaseOptional
|
||||||
|
LocalFileSigLevel = Optional
|
||||||
|
#RemoteFileSigLevel = Required
|
||||||
|
|
||||||
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||||
# keyring can then be populated with the keys of all official Arch Linux
|
# keyring can then be populated with the keys of all official Arch Linux
|
||||||
@@ -69,27 +70,21 @@ Architecture = auto
|
|||||||
# after the header, and they will be used before the default mirrors.
|
# after the header, and they will be used before the default mirrors.
|
||||||
|
|
||||||
[kde-unstable]
|
[kde-unstable]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[testing]
|
[testing]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community-testing]
|
[community-testing]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community]
|
[community]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
# An example of a custom package repository. See the pacman manpage for
|
# An example of a custom package repository. See the pacman manpage for
|
||||||
|
@@ -15,11 +15,10 @@
|
|||||||
#LogFile = /var/log/pacman.log
|
#LogFile = /var/log/pacman.log
|
||||||
#GPGDir = /etc/pacman.d/gnupg/
|
#GPGDir = /etc/pacman.d/gnupg/
|
||||||
HoldPkg = pacman glibc
|
HoldPkg = pacman glibc
|
||||||
# If upgrades are available for these packages they will be asked for first
|
|
||||||
SyncFirst = pacman
|
|
||||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||||
#CleanMethod = KeepInstalled
|
#CleanMethod = KeepInstalled
|
||||||
|
#UseDelta = 0.7
|
||||||
Architecture = auto
|
Architecture = auto
|
||||||
|
|
||||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||||
@@ -31,7 +30,7 @@ Architecture = auto
|
|||||||
|
|
||||||
# Misc options
|
# Misc options
|
||||||
#UseSyslog
|
#UseSyslog
|
||||||
#UseDelta
|
#Color
|
||||||
#TotalDownload
|
#TotalDownload
|
||||||
# We cannot check disk space from within a chroot environment
|
# We cannot check disk space from within a chroot environment
|
||||||
#CheckSpace
|
#CheckSpace
|
||||||
@@ -39,7 +38,9 @@ Architecture = auto
|
|||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
#SigLevel = Optional TrustedOnly
|
SigLevel = Required DatabaseOptional
|
||||||
|
LocalFileSigLevel = Optional
|
||||||
|
#RemoteFileSigLevel = Required
|
||||||
|
|
||||||
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||||
# keyring can then be populated with the keys of all official Arch Linux
|
# keyring can then be populated with the keys of all official Arch Linux
|
||||||
@@ -69,45 +70,35 @@ Architecture = auto
|
|||||||
# after the header, and they will be used before the default mirrors.
|
# after the header, and they will be used before the default mirrors.
|
||||||
|
|
||||||
[staging]
|
[staging]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[testing]
|
[testing]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community-staging]
|
[community-staging]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community-testing]
|
[community-testing]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community]
|
[community]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
# If you want to run 32 bit applications on your x86_64 system,
|
# If you want to run 32 bit applications on your x86_64 system,
|
||||||
# enable the multilib repositories as required here.
|
# enable the multilib repositories as required here.
|
||||||
[multilib-staging]
|
[multilib-staging]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[multilib-testing]
|
[multilib-testing]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[multilib]
|
[multilib]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
# An example of a custom package repository. See the pacman manpage for
|
# An example of a custom package repository. See the pacman manpage for
|
||||||
|
@@ -15,11 +15,10 @@
|
|||||||
#LogFile = /var/log/pacman.log
|
#LogFile = /var/log/pacman.log
|
||||||
#GPGDir = /etc/pacman.d/gnupg/
|
#GPGDir = /etc/pacman.d/gnupg/
|
||||||
HoldPkg = pacman glibc
|
HoldPkg = pacman glibc
|
||||||
# If upgrades are available for these packages they will be asked for first
|
|
||||||
SyncFirst = pacman
|
|
||||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||||
#CleanMethod = KeepInstalled
|
#CleanMethod = KeepInstalled
|
||||||
|
#UseDelta = 0.7
|
||||||
Architecture = auto
|
Architecture = auto
|
||||||
|
|
||||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||||
@@ -31,7 +30,7 @@ Architecture = auto
|
|||||||
|
|
||||||
# Misc options
|
# Misc options
|
||||||
#UseSyslog
|
#UseSyslog
|
||||||
#UseDelta
|
#Color
|
||||||
#TotalDownload
|
#TotalDownload
|
||||||
# We cannot check disk space from within a chroot environment
|
# We cannot check disk space from within a chroot environment
|
||||||
#CheckSpace
|
#CheckSpace
|
||||||
@@ -39,7 +38,9 @@ Architecture = auto
|
|||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
#SigLevel = Optional TrustedOnly
|
SigLevel = Required DatabaseOptional
|
||||||
|
LocalFileSigLevel = Optional
|
||||||
|
#RemoteFileSigLevel = Required
|
||||||
|
|
||||||
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||||
# keyring can then be populated with the keys of all official Arch Linux
|
# keyring can then be populated with the keys of all official Arch Linux
|
||||||
@@ -69,33 +70,26 @@ Architecture = auto
|
|||||||
# after the header, and they will be used before the default mirrors.
|
# after the header, and they will be used before the default mirrors.
|
||||||
|
|
||||||
[testing]
|
[testing]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community-testing]
|
[community-testing]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community]
|
[community]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
# If you want to run 32 bit applications on your x86_64 system,
|
# If you want to run 32 bit applications on your x86_64 system,
|
||||||
# enable the multilib repositories as required here.
|
# enable the multilib repositories as required here.
|
||||||
[multilib-testing]
|
[multilib-testing]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[multilib]
|
[multilib]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
# An example of a custom package repository. See the pacman manpage for
|
# An example of a custom package repository. See the pacman manpage for
|
||||||
|
@@ -15,11 +15,10 @@
|
|||||||
#LogFile = /var/log/pacman.log
|
#LogFile = /var/log/pacman.log
|
||||||
#GPGDir = /etc/pacman.d/gnupg/
|
#GPGDir = /etc/pacman.d/gnupg/
|
||||||
HoldPkg = pacman glibc
|
HoldPkg = pacman glibc
|
||||||
# If upgrades are available for these packages they will be asked for first
|
|
||||||
SyncFirst = pacman
|
|
||||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||||
#CleanMethod = KeepInstalled
|
#CleanMethod = KeepInstalled
|
||||||
|
#UseDelta = 0.7
|
||||||
Architecture = auto
|
Architecture = auto
|
||||||
|
|
||||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||||
@@ -31,7 +30,7 @@ Architecture = auto
|
|||||||
|
|
||||||
# Misc options
|
# Misc options
|
||||||
#UseSyslog
|
#UseSyslog
|
||||||
#UseDelta
|
#Color
|
||||||
#TotalDownload
|
#TotalDownload
|
||||||
# We cannot check disk space from within a chroot environment
|
# We cannot check disk space from within a chroot environment
|
||||||
#CheckSpace
|
#CheckSpace
|
||||||
@@ -39,7 +38,9 @@ Architecture = auto
|
|||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
#SigLevel = Optional TrustedOnly
|
SigLevel = Required DatabaseOptional
|
||||||
|
LocalFileSigLevel = Optional
|
||||||
|
#RemoteFileSigLevel = Required
|
||||||
|
|
||||||
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||||
# keyring can then be populated with the keys of all official Arch Linux
|
# keyring can then be populated with the keys of all official Arch Linux
|
||||||
@@ -69,34 +70,27 @@ Architecture = auto
|
|||||||
# after the header, and they will be used before the default mirrors.
|
# after the header, and they will be used before the default mirrors.
|
||||||
|
|
||||||
#[testing]
|
#[testing]
|
||||||
#SigLevel = PackageRequired
|
|
||||||
#Include = /etc/pacman.d/mirrorlist
|
#Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
#[community-testing]
|
#[community-testing]
|
||||||
#SigLevel = PackageRequired
|
|
||||||
#Include = /etc/pacman.d/mirrorlist
|
#Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community]
|
[community]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
# If you want to run 32 bit applications on your x86_64 system,
|
# If you want to run 32 bit applications on your x86_64 system,
|
||||||
# enable the multilib repositories as required here.
|
# enable the multilib repositories as required here.
|
||||||
|
|
||||||
#[multilib-testing]
|
#[multilib-testing]
|
||||||
#SigLevel = PackageRequired
|
|
||||||
#Include = /etc/pacman.d/mirrorlist
|
#Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[multilib]
|
[multilib]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
# An example of a custom package repository. See the pacman manpage for
|
# An example of a custom package repository. See the pacman manpage for
|
||||||
|
@@ -15,11 +15,10 @@
|
|||||||
#LogFile = /var/log/pacman.log
|
#LogFile = /var/log/pacman.log
|
||||||
#GPGDir = /etc/pacman.d/gnupg/
|
#GPGDir = /etc/pacman.d/gnupg/
|
||||||
HoldPkg = pacman glibc
|
HoldPkg = pacman glibc
|
||||||
# If upgrades are available for these packages they will be asked for first
|
|
||||||
SyncFirst = pacman
|
|
||||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||||
#CleanMethod = KeepInstalled
|
#CleanMethod = KeepInstalled
|
||||||
|
#UseDelta = 0.7
|
||||||
Architecture = auto
|
Architecture = auto
|
||||||
|
|
||||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||||
@@ -31,7 +30,7 @@ Architecture = auto
|
|||||||
|
|
||||||
# Misc options
|
# Misc options
|
||||||
#UseSyslog
|
#UseSyslog
|
||||||
#UseDelta
|
#Color
|
||||||
#TotalDownload
|
#TotalDownload
|
||||||
# We cannot check disk space from within a chroot environment
|
# We cannot check disk space from within a chroot environment
|
||||||
#CheckSpace
|
#CheckSpace
|
||||||
@@ -39,7 +38,9 @@ Architecture = auto
|
|||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
#SigLevel = Optional TrustedOnly
|
SigLevel = Required DatabaseOptional
|
||||||
|
LocalFileSigLevel = Optional
|
||||||
|
#RemoteFileSigLevel = Required
|
||||||
|
|
||||||
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||||
# keyring can then be populated with the keys of all official Arch Linux
|
# keyring can then be populated with the keys of all official Arch Linux
|
||||||
@@ -69,31 +70,24 @@ Architecture = auto
|
|||||||
# after the header, and they will be used before the default mirrors.
|
# after the header, and they will be used before the default mirrors.
|
||||||
|
|
||||||
[staging]
|
[staging]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[testing]
|
[testing]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community-staging]
|
[community-staging]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community-testing]
|
[community-testing]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community]
|
[community]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
# An example of a custom package repository. See the pacman manpage for
|
# An example of a custom package repository. See the pacman manpage for
|
||||||
|
@@ -15,11 +15,10 @@
|
|||||||
#LogFile = /var/log/pacman.log
|
#LogFile = /var/log/pacman.log
|
||||||
#GPGDir = /etc/pacman.d/gnupg/
|
#GPGDir = /etc/pacman.d/gnupg/
|
||||||
HoldPkg = pacman glibc
|
HoldPkg = pacman glibc
|
||||||
# If upgrades are available for these packages they will be asked for first
|
|
||||||
SyncFirst = pacman
|
|
||||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||||
#CleanMethod = KeepInstalled
|
#CleanMethod = KeepInstalled
|
||||||
|
#UseDelta = 0.7
|
||||||
Architecture = auto
|
Architecture = auto
|
||||||
|
|
||||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||||
@@ -31,7 +30,7 @@ Architecture = auto
|
|||||||
|
|
||||||
# Misc options
|
# Misc options
|
||||||
#UseSyslog
|
#UseSyslog
|
||||||
#UseDelta
|
#Color
|
||||||
#TotalDownload
|
#TotalDownload
|
||||||
# We cannot check disk space from within a chroot environment
|
# We cannot check disk space from within a chroot environment
|
||||||
#CheckSpace
|
#CheckSpace
|
||||||
@@ -39,7 +38,9 @@ Architecture = auto
|
|||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
#SigLevel = Optional TrustedOnly
|
SigLevel = Required DatabaseOptional
|
||||||
|
LocalFileSigLevel = Optional
|
||||||
|
#RemoteFileSigLevel = Required
|
||||||
|
|
||||||
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||||
# keyring can then be populated with the keys of all official Arch Linux
|
# keyring can then be populated with the keys of all official Arch Linux
|
||||||
@@ -69,23 +70,18 @@ Architecture = auto
|
|||||||
# after the header, and they will be used before the default mirrors.
|
# after the header, and they will be used before the default mirrors.
|
||||||
|
|
||||||
[testing]
|
[testing]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[extra]
|
[extra]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community-testing]
|
[community-testing]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
[community]
|
[community]
|
||||||
SigLevel = PackageRequired
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
# An example of a custom package repository. See the pacman manpage for
|
# An example of a custom package repository. See the pacman manpage for
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
m4_include(lib/common.sh)
|
m4_include(lib/common.sh)
|
||||||
|
|
||||||
if (( $# < 1 )); then
|
if (( $# < 1 )); then
|
||||||
echo "usage: $(basename $0) <chrootdir> <packages to rebuild>"
|
echo "Usage: $(basename $0) <chrootdir> <packages to rebuild>"
|
||||||
echo " example: $(basename $0) ~/chroot readline bash foo bar baz"
|
echo " example: $(basename $0) ~/chroot readline bash foo bar baz"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -47,7 +47,7 @@ pkg_from_pkgbuild() {
|
|||||||
chrootdir="$1"; shift
|
chrootdir="$1"; shift
|
||||||
pkgs="$@"
|
pkgs="$@"
|
||||||
|
|
||||||
SVNPATH='svn+ssh://gerolde.archlinux.org/srv/svn-packages'
|
SVNPATH='svn+ssh://nymeria.archlinux.org/srv/repos/svn-packages/svn'
|
||||||
|
|
||||||
msg "Work will be done in $(pwd)/rebuilds"
|
msg "Work will be done in $(pwd)/rebuilds"
|
||||||
|
|
||||||
|
@@ -42,7 +42,6 @@ _makechrootpkg_args=(
|
|||||||
_mkarchroot_args=(
|
_mkarchroot_args=(
|
||||||
'-r[Run a program within the context of the chroot]:app'
|
'-r[Run a program within the context of the chroot]:app'
|
||||||
'-u[Update the chroot via pacman]'
|
'-u[Update the chroot via pacman]'
|
||||||
'-f[Force overwrite of files in the working-dir]'
|
|
||||||
'-C[Location of a pacman config file]:pacman_config:_files'
|
'-C[Location of a pacman config file]:pacman_config:_files'
|
||||||
'-M[Location of a makepkg config file]:makepkg_config:_files'
|
'-M[Location of a makepkg config file]:makepkg_config:_files'
|
||||||
'-n[Do not copy config files into the chroot]'
|
'-n[Do not copy config files into the chroot]'
|
||||||
|
Reference in New Issue
Block a user