mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-13 18:06:19 +02:00
Compare commits
21 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
eebfd9a30f | ||
![]() |
5085cfcdf9 | ||
![]() |
6caad191c1 | ||
![]() |
092fe2ffde | ||
![]() |
71b15aafb6 | ||
![]() |
4bcafd9768 | ||
![]() |
1f0374d8a6 | ||
![]() |
f03086a0e1 | ||
![]() |
35dc7485fb | ||
![]() |
89bda9217d | ||
![]() |
0dc2550af3 | ||
![]() |
0c62649b64 | ||
![]() |
b807c51102 | ||
![]() |
280d5501b0 | ||
![]() |
dee4d05b1e | ||
![]() |
10eba28151 | ||
![]() |
9cef7e0a9e | ||
![]() |
cb3a6ce1e8 | ||
![]() |
fb71ad1e7f | ||
![]() |
828143751b | ||
![]() |
890baf6891 |
4
Makefile
4
Makefile
@@ -1,4 +1,4 @@
|
|||||||
V=20121115
|
V=20130406
|
||||||
|
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
|
|
||||||
@@ -115,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
|
||||||
|
22
archbuild.in
22
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>&-
|
||||||
@@ -71,4 +81,4 @@ else
|
|||||||
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,7 +11,7 @@ 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://svn-community@nymeria.archlinux.org/srv/repos/svn-community/svn";;
|
SVNURL="svn+ssh://svn-community@nymeria.archlinux.org/srv/repos/svn-community/svn";;
|
||||||
*)
|
*)
|
||||||
|
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='nymeria.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://svn-community@nymeria.archlinux.org/srv/repos/svn-community/svn'
|
|
||||||
community_server='nymeria.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
|
||||||
@@ -73,22 +70,11 @@ pushd "target_checkout/${pkgbase}/trunk" >/dev/null
|
|||||||
archrelease "${arch[@]/#/$target_repo-}" || die
|
archrelease "${arch[@]/#/$target_repo-}" || die
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
|
|
||||||
if [[ "${target_server}" == "${community_server}" ]]; then
|
ssh "${server}" "${target_dbscripts}/db-update" || die
|
||||||
dbscripts_path='/srv/repos/svn-community/dbscripts'
|
|
||||||
else
|
|
||||||
dbscripts_path='/arch'
|
|
||||||
fi
|
|
||||||
|
|
||||||
ssh "${target_server}" "${dbscripts_path}/db-update" || die
|
|
||||||
|
|
||||||
msg "Removing ${pkgbase} from ${source_repo}"
|
msg "Removing ${pkgbase} from ${source_repo}"
|
||||||
if [[ "${source_server}" == "${community_server}" ]]; then
|
|
||||||
dbscripts_path='/srv/repos/svn-community/dbscripts'
|
|
||||||
else
|
|
||||||
dbscripts_path='/arch'
|
|
||||||
fi
|
|
||||||
for _arch in ${arch[@]}; do
|
for _arch in ${arch[@]}; do
|
||||||
ssh "${source_server}" "${dbscripts_path}/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.'
|
||||||
|
@@ -21,6 +21,8 @@ add_to_db=false
|
|||||||
run_namcap=false
|
run_namcap=false
|
||||||
chrootdir=
|
chrootdir=
|
||||||
passeddir=
|
passeddir=
|
||||||
|
declare -a install_pkgs
|
||||||
|
declare -i ret=0
|
||||||
|
|
||||||
default_copy=$USER
|
default_copy=$USER
|
||||||
[[ -n $SUDO_USER ]] && default_copy=$SUDO_USER
|
[[ -n $SUDO_USER ]] && default_copy=$SUDO_USER
|
||||||
@@ -28,7 +30,7 @@ default_copy=$USER
|
|||||||
src_owner=${SUDO_USER:-$USER}
|
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.'
|
||||||
@@ -39,7 +41,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 ''
|
||||||
@@ -66,7 +68,7 @@ while getopts 'hcudr:I:l:n' arg; do
|
|||||||
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" ;;
|
||||||
*) makepkg_args="$makepkg_args -$arg $OPTARG" ;;
|
*) makepkg_args="$makepkg_args -$arg $OPTARG" ;;
|
||||||
@@ -98,7 +100,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
|
||||||
|
|
||||||
@@ -107,16 +109,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
|
||||||
@@ -132,17 +137,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
|
||||||
@@ -152,17 +155,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"
|
||||||
@@ -267,9 +272,7 @@ 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
|
||||||
@@ -303,7 +306,7 @@ if mkarchroot -r "/chrootbuild" "$copydir"; then
|
|||||||
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
|
||||||
@@ -311,7 +314,6 @@ for f in "$copydir"/srcdest/*; do
|
|||||||
mv "$f" "$SRCDEST"
|
mv "$f" "$SRCDEST"
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ -e $copydir/build/BUILD_FAILED ]]; then
|
if (( ret != 0 )); then
|
||||||
rm "$copydir/build/BUILD_FAILED"
|
|
||||||
die "Build failed, check $copydir/build"
|
die "Build failed, check $copydir/build"
|
||||||
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
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
147
mkarchroot.in
147
mkarchroot.in
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
m4_include(lib/common.sh)
|
m4_include(lib/common.sh)
|
||||||
|
|
||||||
CHROOT_VERSION='v2'
|
CHROOT_VERSION='v3'
|
||||||
|
|
||||||
FORCE='n'
|
FORCE='n'
|
||||||
RUN=''
|
RUN=''
|
||||||
@@ -22,7 +22,7 @@ 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'
|
||||||
@@ -38,7 +38,7 @@ 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' ;;
|
f) FORCE='y' ;;
|
||||||
C) pac_conf="$OPTARG" ;;
|
C) pac_conf="$OPTARG" ;;
|
||||||
M) makepkg_conf="$OPTARG" ;;
|
M) makepkg_conf="$OPTARG" ;;
|
||||||
@@ -78,69 +78,21 @@ if echo "${host_mirror}" | grep -q 'file://'; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# {{{ functions
|
# {{{ functions
|
||||||
bind_mount() {
|
build_mount_args() {
|
||||||
local mode="${2:-rw}"
|
local p
|
||||||
local target="${working_dir}${1}"
|
declare -g mount_args=()
|
||||||
|
|
||||||
if [[ ! -e "$target" ]]; then
|
if [[ -n $host_mirror_path ]]; then
|
||||||
if [[ -d "$1" ]]; then
|
printf -v p '%q' "$host_mirror_path"
|
||||||
install -d "$target"
|
mount_args+=(--bind-ro="$p")
|
||||||
else
|
|
||||||
install -D /dev/null "$target"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mount -o bind "$1" "$target"
|
printf -v p '%q' "${cache_dirs[0]}"
|
||||||
mount -o remount,${mode},bind "$target"
|
mount_args+=(--bind="$p")
|
||||||
mount --make-slave "$target"
|
|
||||||
}
|
|
||||||
|
|
||||||
chroot_mount() {
|
|
||||||
trap 'trap_chroot_umount' EXIT INT QUIT TERM HUP
|
|
||||||
|
|
||||||
if (( ! have_nspawn )); then
|
|
||||||
bind_mount /sys ro
|
|
||||||
|
|
||||||
[[ -e "${working_dir}/proc" ]] || mkdir "${working_dir}/proc"
|
|
||||||
mount -t proc proc -o nosuid,noexec,nodev "${working_dir}/proc"
|
|
||||||
bind_mount /proc/sys ro
|
|
||||||
|
|
||||||
[[ -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
|
|
||||||
|
|
||||||
bind_mount /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
|
|
||||||
|
|
||||||
for host_config in resolv.conf localtime; do
|
|
||||||
bind_mount /etc/$host_config ro
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
[[ -n $host_mirror_path ]] && bind_mount "$host_mirror_path" ro
|
|
||||||
|
|
||||||
bind_mount "${cache_dirs[0]}"
|
|
||||||
for cache_dir in ${cache_dirs[@]:1}; do
|
for cache_dir in ${cache_dirs[@]:1}; do
|
||||||
bind_mount "$cache_dir" ro
|
printf -v p '%q' "$cache_dir"
|
||||||
|
mount_args+=(--bind-ro="$p")
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -159,29 +111,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
|
||||||
}
|
}
|
||||||
|
|
||||||
trap_chroot_umount () {
|
|
||||||
trap 'trap_abort' INT QUIT TERM HUP
|
|
||||||
trap 'trap_exit' EXIT
|
|
||||||
|
|
||||||
for cache_dir in ${cache_dirs[@]}; do
|
|
||||||
umount "${working_dir}/${cache_dir}"
|
|
||||||
done
|
|
||||||
[[ -n $host_mirror_path ]] && umount "${working_dir}/${host_mirror_path}"
|
|
||||||
|
|
||||||
if (( ! have_nspawn )); then
|
|
||||||
for host_config in resolv.conf localtime; do
|
|
||||||
umount "${working_dir}/etc/${host_config}"
|
|
||||||
done
|
|
||||||
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"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
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
|
||||||
@@ -199,20 +128,11 @@ chroot_lock () {
|
|||||||
chroot_run() {
|
chroot_run() {
|
||||||
local dir=$1
|
local dir=$1
|
||||||
shift
|
shift
|
||||||
if (( have_nspawn)); then
|
systemd-nspawn -D "${dir}" "${mount_args[@]}" -- ${@} 2>/dev/null
|
||||||
eval systemd-nspawn -D "${dir}" -- ${@} 2>/dev/null
|
|
||||||
else
|
|
||||||
eval unshare -mui -- chroot "${dir}" ${@}
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# use systemd-nspawn if we have it available and systemd is running
|
|
||||||
if type -P systemd-nspawn >/dev/null && mountpoint -q /sys/fs/cgroup/systemd; then
|
|
||||||
have_nspawn=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
umask 0022
|
umask 0022
|
||||||
if [[ -n $RUN ]]; then
|
if [[ -n $RUN ]]; then
|
||||||
# run chroot {{{
|
# run chroot {{{
|
||||||
@@ -224,7 +144,7 @@ if [[ -n $RUN ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
chroot_lock
|
chroot_lock
|
||||||
chroot_mount
|
build_mount_args
|
||||||
copy_hostconf
|
copy_hostconf
|
||||||
|
|
||||||
chroot_run "${working_dir}" ${RUN}
|
chroot_run "${working_dir}" ${RUN}
|
||||||
@@ -236,35 +156,32 @@ else
|
|||||||
die "Working directory '${working_dir}' already exists - try using -f"
|
die "Working directory '${working_dir}' already exists - try using -f"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if { type -P btrfs && btrfs subvolume create "${working_dir}"; } &>/dev/null; then
|
if [[ ! -d "${working_dir}" ]]; then
|
||||||
chmod 0755 "${working_dir}"
|
mkdir -p "${working_dir}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$(stat -f -c %T "${working_dir}")" == btrfs ]]; then
|
||||||
|
if { type -P btrfs && btrfs subvolume create "${working_dir}"; } &>/dev/null; then
|
||||||
|
chmod 0755 "${working_dir}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chroot_lock
|
chroot_lock
|
||||||
chroot_mount
|
|
||||||
|
|
||||||
pacargs="${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 [[ $FORCE = 'y' ]]; then
|
||||||
if [[ $FORCE = 'y' ]]; then
|
pacargs+=("--force")
|
||||||
pacargs="$pacargs --force"
|
fi
|
||||||
fi
|
if ! pacstrap -GMcd "${working_dir}" "${pacargs[@]}" "$@"; then
|
||||||
if ! pacstrap -GMcd "${working_dir}" ${pacargs} $@; then
|
die 'Failed to install all packages'
|
||||||
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"
|
||||||
chroot_run "${working_dir}" ldconfig
|
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_run "${working_dir}" locale-gen
|
|
||||||
fi
|
|
||||||
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"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user