mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-13 01:46:19 +02:00
Compare commits
94 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ab5eb2e4de | ||
![]() |
a1a6a8eaca | ||
![]() |
6d4367de35 | ||
![]() |
5df1f9bd6d | ||
![]() |
9b33a29ea5 | ||
![]() |
3985129c3d | ||
![]() |
e197f6d34c | ||
![]() |
c45e5bbf22 | ||
![]() |
e380f396cf | ||
![]() |
d187cdbc38 | ||
![]() |
fee49075f0 | ||
![]() |
39ae6e23d6 | ||
![]() |
61cc1f3504 | ||
![]() |
7037948b65 | ||
![]() |
0e6780f2c8 | ||
![]() |
45c8269441 | ||
![]() |
7e3013b2ae | ||
![]() |
c16e7c25c9 | ||
![]() |
c955ecf35d | ||
![]() |
160e936bba | ||
![]() |
69f9e64aa3 | ||
![]() |
71efb148df | ||
![]() |
48ccc1c7fb | ||
![]() |
563ffa7be8 | ||
![]() |
f01097f22c | ||
![]() |
ad593b8b61 | ||
![]() |
e23c94675e | ||
![]() |
96a11523e5 | ||
![]() |
bdde6e5a35 | ||
![]() |
38f85d654a | ||
![]() |
2ed8ef1185 | ||
![]() |
aa06caf31c | ||
![]() |
08a68bb4a0 | ||
![]() |
3bc5f6b5c9 | ||
![]() |
2fa8fdec47 | ||
![]() |
0af05a48ab | ||
![]() |
174ff59dba | ||
![]() |
5434d3991c | ||
![]() |
36dc5d8792 | ||
![]() |
96f22cfede | ||
![]() |
8b9733661d | ||
![]() |
dbdb237519 | ||
![]() |
2ff5c45d14 | ||
![]() |
80168e7e1c | ||
![]() |
f72297a639 | ||
![]() |
ba7cc139c4 | ||
![]() |
3491ea5d79 | ||
![]() |
d1304a3f1d | ||
![]() |
bcf8cd7eb1 | ||
![]() |
95afa2e495 | ||
![]() |
1094111559 | ||
![]() |
62860de113 | ||
![]() |
14ba11dcdf | ||
![]() |
be5505a54a | ||
![]() |
d09d34d77a | ||
![]() |
5815d639f3 | ||
![]() |
f804be7bbb | ||
![]() |
397f4cb04b | ||
![]() |
f98eaebd1b | ||
![]() |
7a369b3c35 | ||
![]() |
a17eaf3be8 | ||
![]() |
962d84c708 | ||
![]() |
e06a4a7243 | ||
![]() |
d6792db31c | ||
![]() |
372fb4e7d1 | ||
![]() |
25133fcd17 | ||
![]() |
e3d2f1a020 | ||
![]() |
8440133032 | ||
![]() |
0adf83fadf | ||
![]() |
ecc3fcf86d | ||
![]() |
394d9c8b54 | ||
![]() |
7a3550c903 | ||
![]() |
c290215aa6 | ||
![]() |
32b55d1587 | ||
![]() |
6201853f52 | ||
![]() |
fbc3929ec0 | ||
![]() |
8cb3bcc17b | ||
![]() |
db7a90ccd2 | ||
![]() |
a9bfd8d2c9 | ||
![]() |
0d0e1a9079 | ||
![]() |
b9ea05789d | ||
![]() |
79ac757e7f | ||
![]() |
a4eabcceaa | ||
![]() |
b591e69541 | ||
![]() |
2f18ca1836 | ||
![]() |
0ebc0b4b4b | ||
![]() |
9b001033ae | ||
![]() |
ae5083fc11 | ||
![]() |
6f4e865ff9 | ||
![]() |
000d68f7c6 | ||
![]() |
fc6efdc38a | ||
![]() |
87f5eb6300 | ||
![]() |
1a419e7974 | ||
![]() |
1418bfbf42 |
109
Makefile
109
Makefile
@@ -1,51 +1,76 @@
|
||||
V=0.9.8
|
||||
V=0.9.23
|
||||
|
||||
BINPROGS = \
|
||||
checkpkg \
|
||||
commitpkg \
|
||||
archco \
|
||||
communityco \
|
||||
archrelease \
|
||||
archrm \
|
||||
archbuild \
|
||||
lddd \
|
||||
finddeps \
|
||||
rebuildpkgs
|
||||
|
||||
SBINPROGS = \
|
||||
mkarchroot \
|
||||
makechrootpkg
|
||||
|
||||
CONFIGFILES = \
|
||||
makepkg-i686.conf \
|
||||
makepkg-x86_64.conf \
|
||||
pacman-extra.conf \
|
||||
pacman-testing.conf \
|
||||
pacman-staging.conf \
|
||||
pacman-multilib.conf \
|
||||
pacman-multilib-testing.conf
|
||||
|
||||
COMMITPKG_LINKS = \
|
||||
extrapkg \
|
||||
corepkg \
|
||||
testingpkg \
|
||||
stagingpkg \
|
||||
communitypkg \
|
||||
community-testingpkg \
|
||||
community-stagingpkg \
|
||||
multilibpkg \
|
||||
multilib-testingpkg
|
||||
|
||||
ARCHBUILD_LINKS = \
|
||||
extra-i686-build \
|
||||
extra-x86_64-build \
|
||||
testing-i686-build \
|
||||
testing-x86_64-build \
|
||||
staging-i686-build \
|
||||
staging-x86_64-build \
|
||||
multilib-build \
|
||||
multilib-testing-build
|
||||
|
||||
all:
|
||||
|
||||
install:
|
||||
# commitpkg/checkpkg and friends
|
||||
mkdir -p $(DESTDIR)/usr/bin
|
||||
install -m 755 checkpkg $(DESTDIR)/usr/bin
|
||||
install -m 755 commitpkg $(DESTDIR)/usr/bin
|
||||
ln -sf commitpkg $(DESTDIR)/usr/bin/extrapkg
|
||||
ln -sf commitpkg $(DESTDIR)/usr/bin/corepkg
|
||||
ln -sf commitpkg $(DESTDIR)/usr/bin/testingpkg
|
||||
ln -sf commitpkg $(DESTDIR)/usr/bin/stagingpkg
|
||||
ln -sf commitpkg $(DESTDIR)/usr/bin/communitypkg
|
||||
ln -sf commitpkg $(DESTDIR)/usr/bin/community-testingpkg
|
||||
# arch{co,release,rm}
|
||||
install -m 755 archco $(DESTDIR)/usr/bin
|
||||
install -m 755 communityco $(DESTDIR)/usr/bin
|
||||
install -m 755 archrelease $(DESTDIR)/usr/bin
|
||||
install -m 755 archrm $(DESTDIR)/usr/bin
|
||||
# new chroot tools, only usable by root
|
||||
mkdir -p $(DESTDIR)/usr/sbin
|
||||
install -m 755 mkarchroot $(DESTDIR)/usr/sbin
|
||||
install -m 755 makechrootpkg $(DESTDIR)/usr/sbin
|
||||
#Additional packaging helper scripts
|
||||
install -m 755 lddd $(DESTDIR)/usr/bin
|
||||
install -m 755 finddeps $(DESTDIR)/usr/bin
|
||||
install -m 755 rebuildpkgs $(DESTDIR)/usr/bin
|
||||
install -dm0755 $(DESTDIR)/usr/bin
|
||||
install -dm0755 $(DESTDIR)/usr/sbin
|
||||
install -dm0755 $(DESTDIR)/usr/share/devtools
|
||||
install -m0755 ${BINPROGS} $(DESTDIR)/usr/bin
|
||||
install -m0755 ${SBINPROGS} $(DESTDIR)/usr/sbin
|
||||
install -m0644 ${CONFIGFILES} $(DESTDIR)/usr/share/devtools
|
||||
for l in ${COMMITPKG_LINKS}; do ln -sf commitpkg $(DESTDIR)/usr/bin/$$l; done
|
||||
for l in ${ARCHBUILD_LINKS}; do ln -sf archbuild $(DESTDIR)/usr/bin/$$l; done
|
||||
install -Dm0644 bash_completion $(DESTDIR)/etc/bash_completion.d/devtools
|
||||
|
||||
uninstall:
|
||||
# remove all files we installed
|
||||
rm $(DESTDIR)/usr/bin/checkpkg
|
||||
rm $(DESTDIR)/usr/bin/commitpkg
|
||||
rm $(DESTDIR)/usr/bin/extrapkg
|
||||
rm $(DESTDIR)/usr/bin/corepkg
|
||||
rm $(DESTDIR)/usr/bin/testingpkg
|
||||
rm $(DESTDIR)/usr/bin/stagingpkg
|
||||
rm $(DESTDIR)/usr/bin/communitypkg
|
||||
rm $(DESTDIR)/usr/bin/community-testingpkg
|
||||
rm $(DESTDIR)/usr/sbin/mkarchroot
|
||||
rm $(DESTDIR)/usr/sbin/makechrootpkg
|
||||
rm $(DESTDIR)/usr/bin/lddd
|
||||
rm $(DESTDIR)/usr/bin/finddeps
|
||||
rm $(DESTDIR)/usr/bin/archco
|
||||
rm $(DESTDIR)/usr/bin/archrelease
|
||||
rm $(DESTDIR)/usr/bin/archrm
|
||||
rm $(DESTDIR)/usr/bin/communityco
|
||||
rm $(DESTDIR)/usr/bin/rebuildpkgs
|
||||
for f in ${BINPROGS}; do rm -f $(DESTDIR)/usr/bin/$$f; done
|
||||
for f in ${SBINPROGS}; do rm -f $(DESTDIR)/usr/sbin/$$f; done
|
||||
for f in ${CONFIGFILES}; do rm -f $(DESTDIR)/usr/share/devtools/$$f; done
|
||||
for l in ${COMMITPKG_LINKS}; do rm -f $(DESTDIR)/usr/bin/$$l; done
|
||||
for l in ${ARCHBUILD_LINKS}; do rm -f $(DESTDIR)/usr/bin/$$l; done
|
||||
rm $(DESTDIR)/etc/bash_completion.d/devtools
|
||||
|
||||
dist:
|
||||
git archive --format=tar --prefix=devtools-$(V)/ $(V) | gzip -9 > devtools-$(V).tar.gz
|
||||
|
||||
upload:
|
||||
scp devtools-$(V).tar.gz gerolde.archlinux.org:/srv/ftp/other/devtools/
|
||||
|
||||
.PHONY: all install uninstall dist upload
|
||||
|
67
archbuild
Executable file
67
archbuild
Executable file
@@ -0,0 +1,67 @@
|
||||
#!/bin/bash
|
||||
|
||||
base_packages='base base-devel sudo'
|
||||
|
||||
cmd="$(basename "${0%-build}")"
|
||||
if [ "${cmd%-*}" == 'multilib' ]; then
|
||||
repo="${cmd}"
|
||||
arch='x86_64'
|
||||
base_packages+=' multilib-devel'
|
||||
else
|
||||
repo=${cmd%-*}
|
||||
arch=${cmd##*-}
|
||||
fi
|
||||
chroots='/var/tmp/archbuild'
|
||||
clean_first=false
|
||||
|
||||
usage() {
|
||||
echo "usage $(basename "$0")"
|
||||
echo ' -c Recreate the chroot before building'
|
||||
echo ' -r <dir> Create chroots in this directory'
|
||||
exit 1
|
||||
}
|
||||
|
||||
while getopts 'cr:' arg; do
|
||||
case "${arg}" in
|
||||
c) clean_first=true ;;
|
||||
r) chroots="$OPTARG" ;;
|
||||
*) usage ;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ "$EUID" != '0' ]; then
|
||||
echo 'This script must be run as root.'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ${clean_first} || [ ! -d "${chroots}/${repo}-${arch}" ]; then
|
||||
echo "Creating chroot for [${repo}] (${arch})..."
|
||||
|
||||
for copy in ${chroots}/${repo}-${arch}/*; do
|
||||
[[ -d $copy ]] || continue
|
||||
echo "Deleting chroot copy '$(basename "${copy}")'..."
|
||||
|
||||
# Lock the copy
|
||||
exec 9>${copy}.lock
|
||||
flock 9
|
||||
|
||||
{ type -P btrfs && btrfs subvolume delete ${copy}; } &>/dev/null
|
||||
rm -rf ${copy}
|
||||
done
|
||||
exec 9>&-
|
||||
|
||||
rm -rf ${chroots}/${repo}-${arch}
|
||||
mkdir -p ${chroots}/${repo}-${arch}
|
||||
setarch ${arch} mkarchroot \
|
||||
-C /usr/share/devtools/pacman-${repo}.conf \
|
||||
-M /usr/share/devtools/makepkg-${arch}.conf \
|
||||
${chroots}/${repo}-${arch}/root \
|
||||
${base_packages}
|
||||
else
|
||||
setarch ${arch} mkarchroot \
|
||||
-u \
|
||||
${chroots}/${repo}-${arch}/root
|
||||
fi
|
||||
|
||||
echo "Building in chroot for [${repo}] (${arch})..."
|
||||
setarch ${arch} makechrootpkg -c -r ${chroots}/${repo}-${arch}
|
10
archrelease
10
archrelease
@@ -13,7 +13,9 @@ if [ ! -f PKGBUILD ]; then
|
||||
abort 'archrelease: PKGBUILD not found'
|
||||
fi
|
||||
|
||||
if [ "$(basename $(readlink -f .))" != 'trunk' ]; then
|
||||
trunk=$(basename $(pwd))
|
||||
|
||||
if [ "$(basename $(dirname $(pwd)))" == "repos" ]; then
|
||||
abort 'archrelease: Not in a package trunk dir'
|
||||
fi
|
||||
|
||||
@@ -21,13 +23,13 @@ if [ ! -z "$(svn status -q)" ]; then
|
||||
abort 'archrelease: You have not committed your changes yet!'
|
||||
fi
|
||||
|
||||
echo -n 'releasing package...'
|
||||
echo -n "releasing package to ${1}..."
|
||||
pushd .. >/dev/null
|
||||
if [ -d "repos/${1}" ]; then
|
||||
svn rm --force -q "repos/${1}"
|
||||
svn commit -q -m "archrelease: remove ${1}" || abort
|
||||
fi
|
||||
svn copy -q -r HEAD trunk "repos/${1}"
|
||||
svn commit -q -m "archrelease: copy trunk to ${1}" || abort
|
||||
svn copy -q -r HEAD "${trunk}" "repos/${1}"
|
||||
svn commit -q -m "archrelease: copy ${trunk} to ${1}" || abort
|
||||
popd >/dev/null
|
||||
echo 'done'
|
||||
|
69
bash_completion
Normal file
69
bash_completion
Normal file
@@ -0,0 +1,69 @@
|
||||
_devtools_compgen() {
|
||||
local i r
|
||||
COMPREPLY=($(compgen -W '$*' -- "$cur"))
|
||||
for ((i=1; i < ${#COMP_WORDS[@]}-1; i++)); do
|
||||
for r in ${!COMPREPLY[@]}; do
|
||||
if [[ ${COMP_WORDS[i]} = ${COMPREPLY[r]} ]]; then
|
||||
unset 'COMPREPLY[r]'; break
|
||||
fi
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
_archco_pkg() {
|
||||
_devtools_compgen "$(
|
||||
\pacman -$1
|
||||
)"
|
||||
}
|
||||
|
||||
_archco() {
|
||||
local cur prev
|
||||
COMPREPLY=()
|
||||
cur=$(_get_cword)
|
||||
prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
|
||||
_archco_pkg Slq
|
||||
true
|
||||
} &&
|
||||
complete -F _archco archco communityco
|
||||
|
||||
_makechrootpkg() {
|
||||
local cur
|
||||
COMPREPLY=()
|
||||
_get_comp_words_by_ref cur
|
||||
|
||||
case $cur in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W '-I -c -d -h -l -r -u' -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
_filedir
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
true
|
||||
} &&
|
||||
complete -F _makechrootpkg makechrootpkg
|
||||
|
||||
_mkarchroot() {
|
||||
local cur
|
||||
COMPREPLY=()
|
||||
_get_comp_words_by_ref cur
|
||||
|
||||
case $cur in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W '-C -M -c -f -h -n -r -u' -- "$cur" ) )
|
||||
;;
|
||||
*)
|
||||
_filedir
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
true
|
||||
} &&
|
||||
complete -F _mkarchroot mkarchroot
|
||||
|
||||
|
||||
# ex:et ts=2 sw=2 ft=sh
|
31
checkpkg
31
checkpkg
@@ -27,27 +27,27 @@ if [ "$arch" == 'any' ]; then
|
||||
CARCH='any'
|
||||
fi
|
||||
|
||||
STARTDIR=$(pwd)
|
||||
TEMPDIR=$(mktemp -d /tmp/checkpkg-script.XXXX)
|
||||
cd $TEMPDIR
|
||||
|
||||
for _pkgname in ${pkgname[@]}; do
|
||||
pkgfile=${_pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT}
|
||||
oldstylepkgfile=${_pkgname}-${pkgver}-${pkgrel}${PKGEXT}
|
||||
if [ -z ${epoch} ] ; then
|
||||
pkgfile=${_pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT}
|
||||
else
|
||||
pkgfile=${_pkgname}-${epoch}:${pkgver}-${pkgrel}-${CARCH}${PKGEXT}
|
||||
fi
|
||||
|
||||
if [ -f "$(pwd)/$pkgfile" ]; then
|
||||
pkgfile=$(pwd)/$pkgfile
|
||||
if [ -f "$STARTDIR/$pkgfile" ]; then
|
||||
cp "$STARTDIR/$pkgfile" .
|
||||
elif [ -f "$PKGDEST/$pkgfile" ]; then
|
||||
pkgfile=$PKGDEST/$pkgfile
|
||||
elif [ -f "$(pwd)/$oldstylepkgfile" ]; then
|
||||
pkgfile=$(pwd)/$oldstylepkgfile
|
||||
elif [ -f "$PKGDEST/$oldstylepkgfile" ]; then
|
||||
pkgfile=$PKGDEST/$oldstylepkgfile
|
||||
cp "$PKGDEST/$pkgfile" .
|
||||
else
|
||||
echo "File \"$pkgfile\" doesn't exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
tmp=`pacman -Spd --noconfirm $_pkgname`
|
||||
tmp=`pacman -Spdd --noconfirm $_pkgname`
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Couldn't download previous package for $_pkgname."
|
||||
@@ -68,6 +68,8 @@ for _pkgname in ${pkgname[@]}; do
|
||||
cp `echo $pkgurl | sed 's#^file://##'` .
|
||||
elif [ -f $PKGDEST/$oldpkg ]; then
|
||||
cp $PKGDEST/$oldpkg .
|
||||
elif [ -f $STARTDIR/$oldpkg ]; then
|
||||
cp $STARTDIR/$oldpkg .
|
||||
else
|
||||
wget --quiet $pkgurl
|
||||
fi
|
||||
@@ -79,16 +81,17 @@ for _pkgname in ${pkgname[@]}; do
|
||||
sort -o filelist-$_pkgname filelist-$_pkgname
|
||||
sort -o filelist-$_pkgname-old filelist-$_pkgname-old
|
||||
|
||||
diff filelist-$_pkgname-old filelist-$_pkgname
|
||||
sdiff -s filelist-$_pkgname-old filelist-$_pkgname
|
||||
|
||||
if diff filelist-$_pkgname-old filelist-$_pkgname | grep '\.so\.' > /dev/null 2>&1; then
|
||||
if diff filelist-$_pkgname-old filelist-$_pkgname | grep '\.so' > /dev/null 2>&1; then
|
||||
mkdir -p pkg
|
||||
cd pkg
|
||||
bsdtar xf "$pkgfile" > /dev/null
|
||||
for i in `diff ../filelist-$_pkgname-old ../filelist-$_pkgname | grep \> | grep \.so\. | awk '{print $2}'`; do
|
||||
bsdtar xf ../"$pkgfile" > /dev/null
|
||||
for i in `diff ../filelist-$_pkgname-old ../filelist-$_pkgname | grep \> | grep \.so | awk '{print $2}'`; do
|
||||
echo -n "${i}: "
|
||||
objdump -p $i | grep SONAME
|
||||
done
|
||||
cd ..
|
||||
else
|
||||
echo "No soname differences for $_pkgname."
|
||||
fi
|
||||
|
137
commitpkg
137
commitpkg
@@ -17,6 +17,19 @@ getpkgfile() {
|
||||
echo ${1}
|
||||
}
|
||||
|
||||
##
|
||||
# usage : get_full_version( $epoch, $pkgver, $pkgrel )
|
||||
# return : full version spec, including epoch (if necessary), pkgver, pkgrel
|
||||
##
|
||||
get_full_version() {
|
||||
if [[ $1 -eq 0 ]]; then
|
||||
# zero epoch case, don't include it in version
|
||||
echo $2-$3
|
||||
else
|
||||
echo $1:$2-$3
|
||||
fi
|
||||
}
|
||||
|
||||
# Source makepkg.conf; fail if it is not found
|
||||
if [ -r '/etc/makepkg.conf' ]; then
|
||||
source '/etc/makepkg.conf'
|
||||
@@ -38,53 +51,60 @@ fi
|
||||
. PKGBUILD
|
||||
pkgbase=${pkgbase:-$pkgname}
|
||||
|
||||
# set up repo-specific opts depending on how we were called
|
||||
server='gerolde.archlinux.org'
|
||||
if [ "$cmd" == 'extrapkg' ]; then
|
||||
repo='extra'
|
||||
elif [ "$cmd" == 'corepkg' ]; then
|
||||
repo='core'
|
||||
elif [ "$cmd" == 'testingpkg' ]; then
|
||||
repo='testing'
|
||||
elif [ "$cmd" == 'stagingpkg' ]; then
|
||||
repo='staging'
|
||||
elif [ "$cmd" == 'communitypkg' ]; then
|
||||
repo='community'
|
||||
server='aur.archlinux.org'
|
||||
elif [ "$cmd" == 'community-testingpkg' ]; then
|
||||
repo='community-testing'
|
||||
server='aur.archlinux.org'
|
||||
else
|
||||
if [ $# -eq 0 ]; then
|
||||
abort 'usage: commitpkg <reponame> [-l limit] [commit message]'
|
||||
fi
|
||||
repo="$1"
|
||||
shift
|
||||
fi
|
||||
case "$cmd" in
|
||||
commitpkg)
|
||||
if [ $# -eq 0 ]; then
|
||||
abort 'usage: commitpkg <reponame> [-l limit] [-a arch] [commit message]'
|
||||
fi
|
||||
repo="$1"
|
||||
shift
|
||||
;;
|
||||
*pkg)
|
||||
repo="${cmd%pkg}"
|
||||
;;
|
||||
*)
|
||||
abort 'usage: commitpkg <reponame> [-l limit] [-a arch] [commit message]'
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$repo" in
|
||||
core|extra|testing|staging)
|
||||
server='gerolde.archlinux.org' ;;
|
||||
community*|multilib*)
|
||||
server='aur.archlinux.org' ;;
|
||||
*)
|
||||
server='gerolde.archlinux.org'
|
||||
echo "Non-standard repository $repo in use, defaulting to server $server" ;;
|
||||
esac
|
||||
|
||||
# check if all local source files are under version control
|
||||
(for s in ${source[@]}; do
|
||||
echo $s | grep -vq '://' && \
|
||||
svn status $s | grep -q '?' && \
|
||||
for s in ${source[@]}; do
|
||||
echo $s | grep -Fvq '://' && \
|
||||
svn status $s | grep -q '^\?' && \
|
||||
abort "$s is not under version control"
|
||||
done) || true
|
||||
done
|
||||
|
||||
# check if changelog and install files are under version control
|
||||
(for i in 'changelog' 'install'; do
|
||||
for i in 'changelog' 'install'; do
|
||||
filelist=$(sed -n "s/^[[:space:]]*$i=//p" PKGBUILD)
|
||||
for file in $filelist; do
|
||||
# evaluate any bash variables used
|
||||
eval file=${file}
|
||||
if svn status ${file} | grep -q '?'; then
|
||||
if svn status ${file} | grep -q '^\?'; then
|
||||
abort "${file} is not under version control"
|
||||
fi
|
||||
done
|
||||
done) || true
|
||||
done
|
||||
|
||||
# see if any limit options were passed, we'll send them to rsync
|
||||
unset rsyncopts
|
||||
rsyncopts='-e ssh -p --chmod=ug=rw,o=r -c -h -L --progress --partial -y'
|
||||
if [ "$1" = '-l' ]; then
|
||||
rsyncopts="--bwlimit=$2"
|
||||
rsyncopts="$rsyncopts --bwlimit=$2"
|
||||
shift 2
|
||||
fi
|
||||
|
||||
if [ "$1" = "-a" ]; then
|
||||
commit_arch=$2
|
||||
shift 2
|
||||
fi
|
||||
|
||||
@@ -97,24 +117,52 @@ else
|
||||
fi
|
||||
echo 'done'
|
||||
|
||||
for _arch in ${arch[@]}; do
|
||||
for _pkgname in ${pkgname[@]}; do
|
||||
pkgfile=$(getpkgfile "$_pkgname-$pkgver-$pkgrel-${_arch}".pkg.tar.* 2>/dev/null)
|
||||
pkgdestfile=$(getpkgfile "$PKGDEST/$_pkgname-$pkgver-$pkgrel-${_arch}".pkg.tar.* 2>/dev/null)
|
||||
declare -a uploads
|
||||
|
||||
if [ ! -f "$pkgfile" -a -f "$pkgdestfile" ]; then
|
||||
for _arch in ${arch[@]}; do
|
||||
if [ -n "$commit_arch" ] && [ "${_arch}" != "$commit_arch" ]; then
|
||||
echo "skipping ${_arch}"
|
||||
continue
|
||||
fi
|
||||
|
||||
for _pkgname in ${pkgname[@]}; do
|
||||
fullver=$(get_full_version ${epoch:-0} $pkgver $pkgrel)
|
||||
pkgfile=$(getpkgfile "$_pkgname-$fullver-${_arch}".pkg.tar.?z 2>/dev/null)
|
||||
pkgdestfile=$(getpkgfile "$PKGDEST/$_pkgname-$fullver-${_arch}".pkg.tar.?z 2>/dev/null)
|
||||
|
||||
if [ -f "$pkgfile" ]; then
|
||||
pkgfile="./$pkgfile"
|
||||
elif [ -f "$pkgdestfile" ]; then
|
||||
pkgfile="$pkgdestfile"
|
||||
elif [ ! -f "$pkgfile" ]; then
|
||||
else
|
||||
echo "skipping ${_arch}"
|
||||
continue 2
|
||||
fi
|
||||
uploads+=("$pkgfile")
|
||||
|
||||
echo -n 'uploading '
|
||||
rsync -p --chmod 'ug=rw,o=r' -c -h -L --progress $rsyncopts --partial "${pkgfile}" -e ssh $server:staging/$repo || abort
|
||||
if [[ $SIGNPKG == 'y' ]]; then
|
||||
echo "Signing package ${pkgfile}..."
|
||||
if [[ -n $GPGKEY ]]; then
|
||||
SIGNWITHKEY="-u ${GPGKEY}"
|
||||
fi
|
||||
gpg --detach-sign --use-agent ${SIGNWITHKEY} "${pkgfile}" || abort
|
||||
fi
|
||||
|
||||
sigfile="${pkgfile}.sig"
|
||||
if [ -f "${sigfile}" ]; then
|
||||
uploads+=("$sigfile")
|
||||
elif [[ $SIGNPKG == 'y' ]]; then
|
||||
abort "Signature ${pkgfile}.sig was not found"
|
||||
fi
|
||||
done
|
||||
archrelease $repo-${_arch} || abort
|
||||
done
|
||||
|
||||
if [[ ${#uploads[*]} -gt 0 ]]; then
|
||||
echo 'uploading all package and signature files'
|
||||
rsync $rsyncopts "${uploads[@]}" "$server:staging/$repo/" || abort
|
||||
fi
|
||||
|
||||
if [ "${arch[*]}" == 'any' ]; then
|
||||
if [ -d ../repos/$repo-i686 -a -d ../repos/$repo-x86_64 ]; then
|
||||
pushd ../repos/ >/dev/null
|
||||
@@ -125,4 +173,13 @@ if [ "${arch[*]}" == 'any' ]; then
|
||||
echo 'done'
|
||||
popd >/dev/null
|
||||
fi
|
||||
else
|
||||
if [ -d ../repos/$repo-any ]; then
|
||||
pushd ../repos/ >/dev/null
|
||||
echo "removing $repo-any..."
|
||||
svn rm $repo-any
|
||||
svn commit -q -m "removed $repo-any for $pkgname"
|
||||
echo 'done'
|
||||
popd >/dev/null
|
||||
fi
|
||||
fi
|
||||
|
11
finddeps
11
finddeps
@@ -21,19 +21,26 @@ for d in $(find . -type d); do
|
||||
unset pkgname depends makedepends
|
||||
. PKGBUILD
|
||||
for dep in "${depends[@]}"; do
|
||||
# lose the version comaparator, if any
|
||||
# lose the version comparator, if any
|
||||
depname=${dep%%[<>=]*}
|
||||
if [ "$depname" = "$match" ]; then
|
||||
echo "$d (depends)"
|
||||
fi
|
||||
done
|
||||
for dep in "${makedepends[@]}"; do
|
||||
# lose the version comaparator, if any
|
||||
# lose the version comparator, if any
|
||||
depname=${dep%%[<>=]*}
|
||||
if [ "$depname" = "$match" ]; then
|
||||
echo "$d (makedepends)"
|
||||
fi
|
||||
done
|
||||
for dep in "${optdepends[@]/:*}"; do
|
||||
# lose the version comaparator, if any
|
||||
depname=${dep%%[<>=]*}
|
||||
if [ "$depname" = "$match" ]; then
|
||||
echo "$d (optdepends)"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
cd $tld
|
||||
done
|
||||
|
125
makechrootpkg
125
makechrootpkg
@@ -10,9 +10,8 @@
|
||||
|
||||
FORCE='n'
|
||||
RUN=''
|
||||
MAKEPKG_ARGS='-sr'
|
||||
MAKEPKG_ARGS='-s --noconfirm'
|
||||
REPACK=''
|
||||
COPY='copy'
|
||||
WORKDIR=$PWD
|
||||
|
||||
update_first='0'
|
||||
@@ -24,6 +23,10 @@ chrootdir=''
|
||||
|
||||
APPNAME=$(basename "${0}")
|
||||
|
||||
default_copy=$USER
|
||||
[[ -n $SUDO_USER ]] && default_copy=$SUDO_USER
|
||||
[[ -z $default_copy || $default_copy = root ]] && default_copy=copy
|
||||
|
||||
usage() {
|
||||
echo "usage ${APPNAME} [options] -r <chrootdir> [--] [makepkg args]"
|
||||
echo ' Run this script in a PKGBUILD dir to build a package inside a'
|
||||
@@ -50,7 +53,8 @@ usage() {
|
||||
echo '-r <dir> The chroot dir to use'
|
||||
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 ' Useful for maintain multiple copies Default: copy'
|
||||
echo ' Useful for maintaining multiple copies.'
|
||||
echo " Default: $default_copy"
|
||||
exit 1
|
||||
}
|
||||
|
||||
@@ -62,14 +66,16 @@ while getopts 'hcudr:I:l:' arg; do
|
||||
d) add_to_db=1 ;;
|
||||
r) chrootdir="$OPTARG" ;;
|
||||
I) install_pkg="$OPTARG" ;;
|
||||
l) COPY="$OPTARG" ;;
|
||||
l) copy="$OPTARG" ;;
|
||||
*) MAKEPKG_ARGS="$MAKEPKG_ARGS -$arg $OPTARG" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
#Get rid of trailing / in chrootdir
|
||||
[ "$chrootdir" != "/" ] && chrootdir=$(echo $chrootdir | sed 's#/$##')
|
||||
copydir="$chrootdir/$COPY"
|
||||
# Canonicalize chrootdir, getting rid of trailing /
|
||||
chrootdir=$(readlink -e "$chrootdir")
|
||||
|
||||
[[ -z $copy ]] && copy=$default_copy
|
||||
copydir="$chrootdir/$copy"
|
||||
|
||||
# Pass all arguments after -- right to makepkg
|
||||
MAKEPKG_ARGS="$MAKEPKG_ARGS ${*:$OPTIND}"
|
||||
@@ -87,7 +93,7 @@ if [ "$EUID" != '0' ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f PKGBUILD ]; then
|
||||
if [ ! -f PKGBUILD -a -z "$install_pkg" ]; then
|
||||
echo 'This must be run in a directory containing a PKGBUILD.'
|
||||
exit 1
|
||||
fi
|
||||
@@ -104,11 +110,44 @@ if [ ! -d "$chrootdir/root" ]; then
|
||||
fi
|
||||
|
||||
umask 0022
|
||||
|
||||
# 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
|
||||
exec 9>"$copydir.lock"
|
||||
if ! flock -n 9; then
|
||||
echo -n "locking chroot copy '$copy'..."
|
||||
flock 9
|
||||
echo "done"
|
||||
fi
|
||||
|
||||
if [ ! -d "$copydir" -o "$clean_first" -eq "1" ]; then
|
||||
# Get a read lock on the root chroot to make
|
||||
# sure we don't clone a half-updated chroot
|
||||
exec 8>"$chrootdir/root.lock"
|
||||
|
||||
if ! flock -sn 8; then
|
||||
echo -n "locking clean chroot..."
|
||||
flock -s 8
|
||||
echo "done"
|
||||
fi
|
||||
|
||||
echo -n 'creating clean working copy...'
|
||||
mkdir -p "$copydir"
|
||||
rsync -a --delete -q -W -x "$chrootdir/root/" "$copydir"
|
||||
use_rsync=false
|
||||
if type -P btrfs >/dev/null; then
|
||||
[ -d $copydir ] && btrfs subvolume delete "$copydir" &>/dev/null
|
||||
btrfs subvolume snapshot "$chrootdir/root" "$copydir" &>/dev/null || use_rsync=true
|
||||
else
|
||||
use_rsync=true
|
||||
fi
|
||||
|
||||
if $use_rsync; then
|
||||
mkdir -p "$copydir"
|
||||
rsync -a --delete -q -W -x "$chrootdir/root/" "$copydir"
|
||||
fi
|
||||
echo 'done'
|
||||
|
||||
# Drop the read lock again
|
||||
exec 8>&-
|
||||
fi
|
||||
|
||||
if [ -n "$install_pkg" ]; then
|
||||
@@ -117,43 +156,64 @@ if [ -n "$install_pkg" ]; then
|
||||
mkarchroot -r "pacman -U /$pkgname" "$copydir"
|
||||
ret=$?
|
||||
rm "$copydir/$pkgname"
|
||||
#exit early, we've done all we need to
|
||||
# Exit early, we've done all we need to
|
||||
exit $ret
|
||||
fi
|
||||
|
||||
if [ $update_first -eq 1 ]; then
|
||||
mkarchroot -r 'pacman -Syu --noconfirm' "$copydir"
|
||||
mkarchroot -u "$copydir"
|
||||
fi
|
||||
|
||||
[ -d "$copydir/build" ] || mkdir "$copydir/build"
|
||||
|
||||
if [ "$REPACK" != "1" ]; then
|
||||
#Remove anything in there UNLESS -R (repack) was passed to makepkg
|
||||
# Remove anything in there UNLESS -R (repack) was passed to makepkg
|
||||
rm -rf "$copydir/build/"*
|
||||
fi
|
||||
|
||||
# Get SRC/PKGDEST from makepkg.conf
|
||||
if [ -f ~/.makepkg.conf ]; then
|
||||
SRCDEST=$(grep '^SRCDEST=' ~/.makepkg.conf | cut -d= -f2)
|
||||
PKGDEST=$(grep '^PKGDEST=' ~/.makepkg.conf | cut -d= -f2)
|
||||
# Read .makepkg.conf even if called via sudo
|
||||
if [ -n "${SUDO_USER}" ]; then
|
||||
makepkg_conf="/$(eval echo ~${SUDO_USER})/.makepkg.conf"
|
||||
else
|
||||
makepkg_conf="~/.makepkg.conf"
|
||||
fi
|
||||
[ -z ${SRCDEST} ] && SRCDEST=$(grep '^SRCDEST=' /etc/makepkg.conf | cut -d= -f2)
|
||||
[ -z ${PKGDEST} ] && PKGDEST=$(grep '^PKGDEST=' /etc/makepkg.conf | cut -d= -f2)
|
||||
|
||||
# Get SRC/PKGDEST from makepkg.conf
|
||||
if [ -f "${makepkg_conf}" ]; then
|
||||
eval $(grep '^SRCDEST=' "${makepkg_conf}")
|
||||
eval $(grep '^PKGDEST=' "${makepkg_conf}")
|
||||
|
||||
eval $(grep '^MAKEFLAGS=' "${makepkg_conf}")
|
||||
eval $(grep '^PACKAGER=' "${makepkg_conf}")
|
||||
fi
|
||||
[ -z "${SRCDEST}" ] && eval $(grep '^SRCDEST=' /etc/makepkg.conf)
|
||||
[ -z "${PKGDEST}" ] && eval $(grep '^PKGDEST=' /etc/makepkg.conf)
|
||||
|
||||
[ -d "$copydir/pkgdest" ] || mkdir "$copydir/pkgdest"
|
||||
if ! grep 'PKGDEST=/pkgdest' "$copydir/etc/makepkg.conf" >/dev/null 2>&1; then
|
||||
echo 'PKGDEST=/pkgdest' >> "$copydir/etc/makepkg.conf"
|
||||
if ! grep 'PKGDEST="/pkgdest"' "$copydir/etc/makepkg.conf" >/dev/null 2>&1; then
|
||||
echo 'PKGDEST="/pkgdest"' >> "$copydir/etc/makepkg.conf"
|
||||
fi
|
||||
|
||||
[ -d "$copydir/srcdest" ] || mkdir "$copydir/srcdest"
|
||||
if ! grep 'SRCDEST=/srcdest' "$copydir/etc/makepkg.conf" >/dev/null 2>&1; then
|
||||
echo 'SRCDEST=/srcdest' >> "$copydir/etc/makepkg.conf"
|
||||
if ! grep 'SRCDEST="/srcdest"' "$copydir/etc/makepkg.conf" >/dev/null 2>&1; then
|
||||
echo 'SRCDEST="/srcdest"' >> "$copydir/etc/makepkg.conf"
|
||||
fi
|
||||
[ -z "${MAKEFLAGS}" ] && eval $(grep '^MAKEFLAGS=' /etc/makepkg.conf)
|
||||
if [ -n "${MAKEFLAGS}" ]; then
|
||||
sed -i '/^MAKEFLAGS=/d' "$copydir/etc/makepkg.conf"
|
||||
echo "MAKEFLAGS='${MAKEFLAGS}'" >> "$copydir/etc/makepkg.conf"
|
||||
fi
|
||||
[ -z "${PACKAGER}" ] && eval $(grep '^PACKAGER=' /etc/makepkg.conf)
|
||||
if [ -n "${PACKAGER}" ]; then
|
||||
sed -i '/^PACKAGER=/d' "$copydir/etc/makepkg.conf"
|
||||
echo "PACKAGER='${PACKAGER}'" >> "$copydir/etc/makepkg.conf"
|
||||
fi
|
||||
|
||||
# Set target CARCH as it might be used within the PKGBUILD to select correct sources
|
||||
CARCH=$(eval $(grep '^CARCH=' "$copydir/etc/makepkg.conf"))
|
||||
eval $(grep '^CARCH=' "$copydir/etc/makepkg.conf")
|
||||
export CARCH
|
||||
# Copy PKGBUILD and sources
|
||||
source PKGBUILD
|
||||
source=($(. PKGBUILD; echo ${source[@]}))
|
||||
cp PKGBUILD "$copydir/build/"
|
||||
for f in ${source[@]}; do
|
||||
basef=$(echo $f | sed 's|::.*||' | sed 's|^.*://.*/||g')
|
||||
@@ -164,6 +224,7 @@ for f in ${source[@]}; do
|
||||
fi
|
||||
done
|
||||
|
||||
( . PKGBUILD
|
||||
for i in 'changelog' 'install'; do
|
||||
filelist=$(sed -n "s/^[[:space:]]*$i=//p" PKGBUILD)
|
||||
for file in $filelist; do
|
||||
@@ -174,22 +235,20 @@ for i in 'changelog' 'install'; do
|
||||
fi
|
||||
done
|
||||
done
|
||||
)
|
||||
|
||||
chown -R nobody "$copydir/build"
|
||||
chown -R nobody "$copydir/srcdest"
|
||||
chown -R nobody "$copydir/pkgdest"
|
||||
|
||||
if ! grep "^nobody" "$copydir/etc/sudoers" >/dev/null 2>&1; then
|
||||
touch "$copydir/etc/sudoers"
|
||||
echo 'nobody ALL=(ALL) NOPASSWD: ALL' >> "$copydir/etc/sudoers"
|
||||
chmod 440 "$copydir/etc/sudoers"
|
||||
fi
|
||||
echo 'nobody ALL = NOPASSWD: /usr/bin/pacman' > "$copydir/etc/sudoers.d/nobody-pacman"
|
||||
chmod 440 "$copydir/etc/sudoers.d/nobody-pacman"
|
||||
|
||||
#This is a little gross, but this way the script is recreated every time in the
|
||||
#working copy
|
||||
(cat <<EOF
|
||||
#!/bin/bash
|
||||
export LANG=$LOCALE
|
||||
export LANG=C
|
||||
cd /build
|
||||
export HOME=/build
|
||||
sudo -u nobody makepkg $MAKEPKG_ARGS || touch BUILD_FAILED
|
||||
@@ -218,7 +277,7 @@ if mkarchroot -r "/chrootbuild" "$copydir"; then
|
||||
fi
|
||||
done
|
||||
|
||||
for l in "${copydir}"/build/{namcap,*-{build,package}}.log; do
|
||||
for l in "${copydir}"/build/{namcap,*-{build,check,package,package_*}}.log; do
|
||||
[ -f "$l" ] && mv "$l" "${WORKDIR}"
|
||||
done
|
||||
else
|
||||
@@ -239,6 +298,4 @@ if [ -e "${copydir}/build/BUILD_FAILED" ]; then
|
||||
echo "Build failed, check $copydir/build"
|
||||
rm "${copydir}/build/BUILD_FAILED"
|
||||
exit 1
|
||||
else
|
||||
rm -rf "${copydir}"/build/*
|
||||
fi
|
||||
|
114
makepkg-i686.conf
Normal file
114
makepkg-i686.conf
Normal file
@@ -0,0 +1,114 @@
|
||||
#
|
||||
# /etc/makepkg.conf
|
||||
#
|
||||
|
||||
#########################################################################
|
||||
# SOURCE ACQUISITION
|
||||
#########################################################################
|
||||
#
|
||||
#-- The download utilities that makepkg should use to acquire sources
|
||||
# Format: 'protocol::agent'
|
||||
DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
|
||||
'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
|
||||
'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
|
||||
'rsync::/usr/bin/rsync -z %u %o'
|
||||
'scp::/usr/bin/scp -C %u %o')
|
||||
|
||||
# Other common tools:
|
||||
# /usr/bin/snarf
|
||||
# /usr/bin/lftpget -c
|
||||
# /usr/bin/curl
|
||||
|
||||
#########################################################################
|
||||
# ARCHITECTURE, COMPILE FLAGS
|
||||
#########################################################################
|
||||
#
|
||||
CARCH="i686"
|
||||
CHOST="i686-pc-linux-gnu"
|
||||
|
||||
#-- Exclusive: will only run on i686
|
||||
# -march (or -mcpu) builds exclusively for an architecture
|
||||
# -mtune optimizes for an architecture, but builds for whole processor family
|
||||
CFLAGS="-march=i686 -mtune=generic -O2 -pipe"
|
||||
CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe"
|
||||
LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
|
||||
#-- Make Flags: change this for DistCC/SMP systems
|
||||
#MAKEFLAGS="-j2"
|
||||
|
||||
#########################################################################
|
||||
# BUILD ENVIRONMENT
|
||||
#########################################################################
|
||||
#
|
||||
# Defaults: BUILDENV=(fakeroot !distcc color !ccache check)
|
||||
# A negated environment option will do the opposite of the comments below.
|
||||
#
|
||||
#-- fakeroot: Allow building packages as a non-root user
|
||||
#-- distcc: Use the Distributed C/C++/ObjC compiler
|
||||
#-- color: Colorize output messages
|
||||
#-- ccache: Use ccache to cache compilation
|
||||
#-- check: Run the check() function if present in the PKGBUILD
|
||||
#
|
||||
BUILDENV=(fakeroot !distcc color !ccache check)
|
||||
#
|
||||
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
|
||||
#-- specify a space-delimited list of hosts running in the DistCC cluster.
|
||||
#DISTCC_HOSTS=""
|
||||
|
||||
#########################################################################
|
||||
# GLOBAL PACKAGE OPTIONS
|
||||
# These are default values for the options=() settings
|
||||
#########################################################################
|
||||
#
|
||||
# Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
|
||||
# A negated option will do the opposite of the comments below.
|
||||
#
|
||||
#-- strip: Strip symbols from binaries/libraries
|
||||
#-- docs: Save doc directories specified by DOC_DIRS
|
||||
#-- libtool: Leave libtool (.la) files in packages
|
||||
#-- emptydirs: Leave empty directories in packages
|
||||
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
|
||||
#-- purge: Remove files specified by PURGE_TARGETS
|
||||
#
|
||||
OPTIONS=(strip docs libtool emptydirs zipman purge)
|
||||
|
||||
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
|
||||
INTEGRITY_CHECK=(md5)
|
||||
#-- Options to be used when stripping binaries. See `man strip' for details.
|
||||
STRIP_BINARIES="--strip-all"
|
||||
#-- Options to be used when stripping shared libraries. See `man strip' for details.
|
||||
STRIP_SHARED="--strip-unneeded"
|
||||
#-- Options to be used when stripping static libraries. See `man strip' for details.
|
||||
STRIP_STATIC="--strip-debug"
|
||||
#-- Manual (man and info) directories to compress (if zipman is specified)
|
||||
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
|
||||
#-- Doc directories to remove (if !docs is specified)
|
||||
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
|
||||
#-- Files to be removed from all packages (if purge is specified)
|
||||
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
|
||||
|
||||
#########################################################################
|
||||
# PACKAGE OUTPUT
|
||||
#########################################################################
|
||||
#
|
||||
# Default: put built package and cached source in build directory
|
||||
#
|
||||
#-- Destination: specify a fixed directory where all packages will be placed
|
||||
#PKGDEST=/home/packages
|
||||
#-- Source cache: specify a fixed directory where source files will be cached
|
||||
#SRCDEST=/home/sources
|
||||
#-- Source packages: specify a fixed directory where all src packages will be placed
|
||||
#SRCPKGDEST=/home/srcpackages
|
||||
#-- Packager: name/email of the person or organization building packages
|
||||
#PACKAGER="John Doe <john@doe.com>"
|
||||
|
||||
#########################################################################
|
||||
# EXTENSION DEFAULTS
|
||||
#########################################################################
|
||||
#
|
||||
# WARNING: Do NOT modify these variables unless you know what you are
|
||||
# doing.
|
||||
#
|
||||
PKGEXT='.pkg.tar.xz'
|
||||
SRCEXT='.src.tar.gz'
|
||||
|
||||
# vim: set ft=sh ts=2 sw=2 et:
|
114
makepkg-x86_64.conf
Normal file
114
makepkg-x86_64.conf
Normal file
@@ -0,0 +1,114 @@
|
||||
#
|
||||
# /etc/makepkg.conf
|
||||
#
|
||||
|
||||
#########################################################################
|
||||
# SOURCE ACQUISITION
|
||||
#########################################################################
|
||||
#
|
||||
#-- The download utilities that makepkg should use to acquire sources
|
||||
# Format: 'protocol::agent'
|
||||
DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
|
||||
'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
|
||||
'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
|
||||
'rsync::/usr/bin/rsync -z %u %o'
|
||||
'scp::/usr/bin/scp -C %u %o')
|
||||
|
||||
# Other common tools:
|
||||
# /usr/bin/snarf
|
||||
# /usr/bin/lftpget -c
|
||||
# /usr/bin/curl
|
||||
|
||||
#########################################################################
|
||||
# ARCHITECTURE, COMPILE FLAGS
|
||||
#########################################################################
|
||||
#
|
||||
CARCH="x86_64"
|
||||
CHOST="x86_64-unknown-linux-gnu"
|
||||
|
||||
#-- Exclusive: will only run on x86_64
|
||||
# -march (or -mcpu) builds exclusively for an architecture
|
||||
# -mtune optimizes for an architecture, but builds for whole processor family
|
||||
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
|
||||
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
|
||||
LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
|
||||
#-- Make Flags: change this for DistCC/SMP systems
|
||||
#MAKEFLAGS="-j2"
|
||||
|
||||
#########################################################################
|
||||
# BUILD ENVIRONMENT
|
||||
#########################################################################
|
||||
#
|
||||
# Defaults: BUILDENV=(fakeroot !distcc color !ccache check)
|
||||
# A negated environment option will do the opposite of the comments below.
|
||||
#
|
||||
#-- fakeroot: Allow building packages as a non-root user
|
||||
#-- distcc: Use the Distributed C/C++/ObjC compiler
|
||||
#-- color: Colorize output messages
|
||||
#-- ccache: Use ccache to cache compilation
|
||||
#-- check: Run the check() function if present in the PKGBUILD
|
||||
#
|
||||
BUILDENV=(fakeroot !distcc color !ccache check)
|
||||
#
|
||||
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
|
||||
#-- specify a space-delimited list of hosts running in the DistCC cluster.
|
||||
#DISTCC_HOSTS=""
|
||||
|
||||
#########################################################################
|
||||
# GLOBAL PACKAGE OPTIONS
|
||||
# These are default values for the options=() settings
|
||||
#########################################################################
|
||||
#
|
||||
# Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
|
||||
# A negated option will do the opposite of the comments below.
|
||||
#
|
||||
#-- strip: Strip symbols from binaries/libraries
|
||||
#-- docs: Save doc directories specified by DOC_DIRS
|
||||
#-- libtool: Leave libtool (.la) files in packages
|
||||
#-- emptydirs: Leave empty directories in packages
|
||||
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
|
||||
#-- purge: Remove files specified by PURGE_TARGETS
|
||||
#
|
||||
OPTIONS=(strip docs libtool emptydirs zipman purge)
|
||||
|
||||
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
|
||||
INTEGRITY_CHECK=(md5)
|
||||
#-- Options to be used when stripping binaries. See `man strip' for details.
|
||||
STRIP_BINARIES="--strip-all"
|
||||
#-- Options to be used when stripping shared libraries. See `man strip' for details.
|
||||
STRIP_SHARED="--strip-unneeded"
|
||||
#-- Options to be used when stripping static libraries. See `man strip' for details.
|
||||
STRIP_STATIC="--strip-debug"
|
||||
#-- Manual (man and info) directories to compress (if zipman is specified)
|
||||
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
|
||||
#-- Doc directories to remove (if !docs is specified)
|
||||
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
|
||||
#-- Files to be removed from all packages (if purge is specified)
|
||||
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
|
||||
|
||||
#########################################################################
|
||||
# PACKAGE OUTPUT
|
||||
#########################################################################
|
||||
#
|
||||
# Default: put built package and cached source in build directory
|
||||
#
|
||||
#-- Destination: specify a fixed directory where all packages will be placed
|
||||
#PKGDEST=/home/packages
|
||||
#-- Source cache: specify a fixed directory where source files will be cached
|
||||
#SRCDEST=/home/sources
|
||||
#-- Source packages: specify a fixed directory where all src packages will be placed
|
||||
#SRCPKGDEST=/home/srcpackages
|
||||
#-- Packager: name/email of the person or organization building packages
|
||||
#PACKAGER="John Doe <john@doe.com>"
|
||||
|
||||
#########################################################################
|
||||
# EXTENSION DEFAULTS
|
||||
#########################################################################
|
||||
#
|
||||
# WARNING: Do NOT modify these variables unless you know what you are
|
||||
# doing.
|
||||
#
|
||||
PKGEXT='.pkg.tar.xz'
|
||||
SRCEXT='.src.tar.gz'
|
||||
|
||||
# vim: set ft=sh ts=2 sw=2 et:
|
82
mkarchroot
82
mkarchroot
@@ -26,7 +26,7 @@ usage() {
|
||||
echo ' -C <file> Location of a pacman config file'
|
||||
echo ' -M <file> Location of a makepkg config file'
|
||||
echo ' -n Do not copy config files into the chroot'
|
||||
echo " -c <dir> Set pacman cache. Default: /var/cache/pacman/pkg"
|
||||
echo ' -c <dir> Set pacman cache. Default: /var/cache/pacman/pkg'
|
||||
echo ' -h This message'
|
||||
exit $1
|
||||
}
|
||||
@@ -34,7 +34,7 @@ usage() {
|
||||
while getopts 'r:ufnhC:M:c:' arg; do
|
||||
case "${arg}" in
|
||||
r) RUN="$OPTARG" ;;
|
||||
u) RUN='pacman -Syu' ;;
|
||||
u) RUN='/bin/sh -c "pacman -Syu --noconfirm && (pacman -Qqu >/dev/null && pacman -Su --noconfirm || exit 0)"' ;;
|
||||
f) FORCE='y' ;;
|
||||
C) pac_conf="$OPTARG" ;;
|
||||
M) makepkg_conf="$OPTARG" ;;
|
||||
@@ -68,12 +68,21 @@ shift 1
|
||||
if [ -z "$cache_dir" ]; then
|
||||
cache_conf=${working_dir}/etc/pacman.conf
|
||||
[ ! -f $cache_conf ] && cache_conf=${pac_conf:-/etc/pacman.conf}
|
||||
cache_dir=$((grep -m 1 '^CacheDir' $cache_conf || echo 'CacheDir = /var/cache/pacman/pkg') | sed 's/CacheDir\s*=\s*//')
|
||||
cache_dir=$( (grep -m 1 '^CacheDir' $cache_conf || echo 'CacheDir = /var/cache/pacman/pkg') | sed 's/CacheDir\s*=\s*//')
|
||||
unset cache_conf
|
||||
fi
|
||||
|
||||
# {{{ functions
|
||||
if [ -f /etc/pacman.d/mirrorlist ]; then
|
||||
host_mirror=$(pacman -Sddp extra/devtools 2>/dev/null | sed -E 's#(.*/)extra/os/.*#\1$repo/os/$arch#')
|
||||
fi
|
||||
if [ -z "${host_mirror}" ]; then
|
||||
host_mirror='http://mirrors.kernel.org/archlinux/$repo/os/$arch'
|
||||
fi
|
||||
if echo "${host_mirror}" | grep -q 'file://'; then
|
||||
host_mirror_path=$(echo "${host_mirror}" | sed -E 's#file://(/.*)/\$repo/os/\$arch#\1#g')
|
||||
fi
|
||||
|
||||
# {{{ functions
|
||||
chroot_mount() {
|
||||
[ -e "${working_dir}/sys" ] || mkdir "${working_dir}/sys"
|
||||
mount -t sysfs sysfs "${working_dir}/sys"
|
||||
@@ -82,24 +91,45 @@ chroot_mount() {
|
||||
mount -t proc proc "${working_dir}/proc"
|
||||
|
||||
[ -e "${working_dir}/dev" ] || mkdir "${working_dir}/dev"
|
||||
mount -o bind /dev "${working_dir}/dev"
|
||||
mount -t tmpfs dev "${working_dir}/dev" -o mode=0755,size=10M,nosuid
|
||||
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/tty0" c 4 0
|
||||
mknod -m 666 "${working_dir}/dev/full" c 1 7
|
||||
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"
|
||||
mount -t tmpfs shm "${working_dir}/dev/shm" -o nodev,nosuid,size=128M
|
||||
|
||||
[ -e "${working_dir}/dev/pts" ] || mkdir "${working_dir}/dev/pts"
|
||||
mount -t devpts devpts "${working_dir}/dev/pts"
|
||||
mount -t devpts devpts "${working_dir}/dev/pts" -o newinstance,ptmxmode=666
|
||||
ln -s pts/ptmx "${working_dir}/dev/ptmx"
|
||||
|
||||
[ -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}"
|
||||
|
||||
trap 'chroot_umount' 0 1 2 15
|
||||
if [ -n "${host_mirror_path}" ]; then
|
||||
[ -e "${working_dir}/${host_mirror_path}" ] || mkdir -p "${working_dir}/${host_mirror_path}"
|
||||
mount -o bind "${host_mirror_path}" "${working_dir}/${host_mirror_path}"
|
||||
mount -o remount,ro,bind "${host_mirror_path}" "${working_dir}/${host_mirror_path}"
|
||||
fi
|
||||
|
||||
trap 'chroot_umount' EXIT INT QUIT TERM HUP
|
||||
}
|
||||
|
||||
copy_hostconf () {
|
||||
cp /etc/mtab "${working_dir}/etc/mtab"
|
||||
chroot "${working_dir}" /bin/findmnt -rnu -o SOURCE,TARGET,FSTYPE,OPTIONS > "${working_dir}/etc/mtab"
|
||||
cp /etc/resolv.conf "${working_dir}/etc/resolv.conf"
|
||||
echo "Server = ${host_mirror}" > ${working_dir}/etc/pacman.d/mirrorlist
|
||||
}
|
||||
|
||||
chroot_umount () {
|
||||
@@ -109,6 +139,21 @@ chroot_umount () {
|
||||
umount "${working_dir}/dev/shm"
|
||||
umount "${working_dir}/dev"
|
||||
umount "${working_dir}/${cache_dir}"
|
||||
[ -n "${host_mirror_path}" ] && umount "${working_dir}/${host_mirror_path}"
|
||||
}
|
||||
|
||||
chroot_lock () {
|
||||
# Only reopen the FD if it wasn't handed to us
|
||||
if [ "$(readlink -f /dev/fd/9)" != "${working_dir}.lock" ]; then
|
||||
exec 9>"${working_dir}.lock"
|
||||
fi
|
||||
|
||||
# Lock the chroot. Take note of the FD number.
|
||||
if ! flock -n 9; then
|
||||
echo -n "locking chroot..."
|
||||
flock 9
|
||||
echo "done"
|
||||
fi
|
||||
}
|
||||
# }}}
|
||||
|
||||
@@ -122,28 +167,31 @@ if [ "$RUN" != "" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
chroot_lock
|
||||
chroot_mount
|
||||
copy_hostconf
|
||||
|
||||
chroot "${working_dir}" ${RUN}
|
||||
eval chroot "${working_dir}" ${RUN}
|
||||
|
||||
# }}}
|
||||
else
|
||||
else
|
||||
# {{{ build chroot
|
||||
if [ -e "${working_dir}" -a "${FORCE}" = "n" ]; then
|
||||
echo "error: working dir '${working_dir}' already exists - try using -f"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p "${working_dir}/var/lib/pacman/"
|
||||
if { type -P btrfs && btrfs subvolume create "${working_dir}"; } &>/dev/null; then
|
||||
chmod 0755 "${working_dir}"
|
||||
fi
|
||||
|
||||
mkdir -p "${working_dir}/var/lib/pacman/sync"
|
||||
mkdir -p "${working_dir}/etc/"
|
||||
|
||||
chroot_lock
|
||||
chroot_mount
|
||||
|
||||
pacargs='--noconfirm -v ' #--noprogressbar -v
|
||||
pacargs="$pacargs --root=${working_dir}"
|
||||
# pacman takes these as relative to the given root
|
||||
pacargs="$pacargs --cachedir=${cache_dir}"
|
||||
pacargs="--noconfirm --root=${working_dir} --cachedir=${cache_dir}"
|
||||
if [ "$pac_conf" != "" ]; then
|
||||
pacargs="$pacargs --config=${pac_conf}"
|
||||
fi
|
||||
@@ -172,7 +220,7 @@ if [ "$RUN" != "" ]; then
|
||||
fi
|
||||
|
||||
if [ -e "${working_dir}/etc/locale.gen" ]; then
|
||||
cp /etc/locale.gen "${working_dir}/etc/locale.gen"
|
||||
echo -e 'en_US.UTF-8 UTF-8\nde_DE.UTF-8 UTF-8' > "${working_dir}/etc/locale.gen"
|
||||
chroot "${working_dir}" locale-gen
|
||||
fi
|
||||
|
||||
|
80
pacman-extra.conf
Normal file
80
pacman-extra.conf
Normal file
@@ -0,0 +1,80 @@
|
||||
#
|
||||
# /etc/pacman.conf
|
||||
#
|
||||
# See the pacman.conf(5) manpage for option and repository directives
|
||||
|
||||
#
|
||||
# GENERAL OPTIONS
|
||||
#
|
||||
[options]
|
||||
# The following paths are commented out with their default values listed.
|
||||
# If you wish to use different paths, uncomment and update the paths.
|
||||
#RootDir = /
|
||||
#DBPath = /var/lib/pacman/
|
||||
#CacheDir = /var/cache/pacman/pkg/
|
||||
#LogFile = /var/log/pacman.log
|
||||
HoldPkg = pacman glibc
|
||||
# If upgrades are available for these packages they will be asked for first
|
||||
SyncFirst = pacman
|
||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||
#CleanMethod = KeepInstalled
|
||||
Architecture = auto
|
||||
|
||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||
#IgnorePkg =
|
||||
#IgnoreGroup =
|
||||
|
||||
#NoUpgrade =
|
||||
#NoExtract =
|
||||
|
||||
# Misc options (all disabled by default)
|
||||
#UseSyslog
|
||||
#ShowSize
|
||||
#UseDelta
|
||||
#TotalDownload
|
||||
#CheckSpace
|
||||
|
||||
#
|
||||
# REPOSITORIES
|
||||
# - can be defined here or included from another file
|
||||
# - pacman will search repositories in the order defined here
|
||||
# - local/custom mirrors can be added here or in separate files
|
||||
# - repositories listed first will take precedence when packages
|
||||
# have identical names, regardless of version number
|
||||
# - URLs will have $repo replaced by the name of the current repo
|
||||
# - URLs will have $arch replaced by the name of the architecture
|
||||
#
|
||||
# Repository entries are of the format:
|
||||
# [repo-name]
|
||||
# Server = ServerName
|
||||
# Include = IncludePath
|
||||
#
|
||||
# The header [repo-name] is crucial - it must be present and
|
||||
# uncommented to enable the repo.
|
||||
#
|
||||
|
||||
# The testing repositories are disabled by default. To enable, uncomment the
|
||||
# repo name header and Include lines. You can add preferred servers immediately
|
||||
# after the header, and they will be used before the default mirrors.
|
||||
|
||||
#[testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[core]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[extra]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
#[community-testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# An example of a custom package repository. See the pacman manpage for
|
||||
# tips on creating your own repositories.
|
||||
#[custom]
|
||||
#Server = file:///home/custompkgs
|
||||
|
88
pacman-multilib-testing.conf
Normal file
88
pacman-multilib-testing.conf
Normal file
@@ -0,0 +1,88 @@
|
||||
#
|
||||
# /etc/pacman.conf
|
||||
#
|
||||
# See the pacman.conf(5) manpage for option and repository directives
|
||||
|
||||
#
|
||||
# GENERAL OPTIONS
|
||||
#
|
||||
[options]
|
||||
# The following paths are commented out with their default values listed.
|
||||
# If you wish to use different paths, uncomment and update the paths.
|
||||
#RootDir = /
|
||||
#DBPath = /var/lib/pacman/
|
||||
#CacheDir = /var/cache/pacman/pkg/
|
||||
#LogFile = /var/log/pacman.log
|
||||
HoldPkg = pacman glibc
|
||||
# If upgrades are available for these packages they will be asked for first
|
||||
SyncFirst = pacman
|
||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||
#CleanMethod = KeepInstalled
|
||||
Architecture = auto
|
||||
|
||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||
#IgnorePkg =
|
||||
#IgnoreGroup =
|
||||
|
||||
#NoUpgrade =
|
||||
#NoExtract =
|
||||
|
||||
# Misc options (all disabled by default)
|
||||
#UseSyslog
|
||||
#ShowSize
|
||||
#UseDelta
|
||||
#TotalDownload
|
||||
#CheckSpace
|
||||
|
||||
#
|
||||
# REPOSITORIES
|
||||
# - can be defined here or included from another file
|
||||
# - pacman will search repositories in the order defined here
|
||||
# - local/custom mirrors can be added here or in separate files
|
||||
# - repositories listed first will take precedence when packages
|
||||
# have identical names, regardless of version number
|
||||
# - URLs will have $repo replaced by the name of the current repo
|
||||
# - URLs will have $arch replaced by the name of the architecture
|
||||
#
|
||||
# Repository entries are of the format:
|
||||
# [repo-name]
|
||||
# Server = ServerName
|
||||
# Include = IncludePath
|
||||
#
|
||||
# The header [repo-name] is crucial - it must be present and
|
||||
# uncommented to enable the repo.
|
||||
#
|
||||
|
||||
# The testing repositories are disabled by default. To enable, uncomment the
|
||||
# repo name header and Include lines. You can add preferred servers immediately
|
||||
# after the header, and they will be used before the default mirrors.
|
||||
|
||||
[testing]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[core]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[extra]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community-testing]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# If you want to run 32 bit applications on your x86_64 system,
|
||||
# enable the multilib repository here.
|
||||
[multilib-testing]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[multilib]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# An example of a custom package repository. See the pacman manpage for
|
||||
# tips on creating your own repositories.
|
||||
#[custom]
|
||||
#Server = file:///home/custompkgs
|
||||
|
85
pacman-multilib.conf
Normal file
85
pacman-multilib.conf
Normal file
@@ -0,0 +1,85 @@
|
||||
#
|
||||
# /etc/pacman.conf
|
||||
#
|
||||
# See the pacman.conf(5) manpage for option and repository directives
|
||||
|
||||
#
|
||||
# GENERAL OPTIONS
|
||||
#
|
||||
[options]
|
||||
# The following paths are commented out with their default values listed.
|
||||
# If you wish to use different paths, uncomment and update the paths.
|
||||
#RootDir = /
|
||||
#DBPath = /var/lib/pacman/
|
||||
#CacheDir = /var/cache/pacman/pkg/
|
||||
#LogFile = /var/log/pacman.log
|
||||
HoldPkg = pacman glibc
|
||||
# If upgrades are available for these packages they will be asked for first
|
||||
SyncFirst = pacman
|
||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||
#CleanMethod = KeepInstalled
|
||||
Architecture = auto
|
||||
|
||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||
#IgnorePkg =
|
||||
#IgnoreGroup =
|
||||
|
||||
#NoUpgrade =
|
||||
#NoExtract =
|
||||
|
||||
# Misc options (all disabled by default)
|
||||
#UseSyslog
|
||||
#ShowSize
|
||||
#UseDelta
|
||||
#TotalDownload
|
||||
#CheckSpace
|
||||
|
||||
#
|
||||
# REPOSITORIES
|
||||
# - can be defined here or included from another file
|
||||
# - pacman will search repositories in the order defined here
|
||||
# - local/custom mirrors can be added here or in separate files
|
||||
# - repositories listed first will take precedence when packages
|
||||
# have identical names, regardless of version number
|
||||
# - URLs will have $repo replaced by the name of the current repo
|
||||
# - URLs will have $arch replaced by the name of the architecture
|
||||
#
|
||||
# Repository entries are of the format:
|
||||
# [repo-name]
|
||||
# Server = ServerName
|
||||
# Include = IncludePath
|
||||
#
|
||||
# The header [repo-name] is crucial - it must be present and
|
||||
# uncommented to enable the repo.
|
||||
#
|
||||
|
||||
# The testing repositories are disabled by default. To enable, uncomment the
|
||||
# repo name header and Include lines. You can add preferred servers immediately
|
||||
# after the header, and they will be used before the default mirrors.
|
||||
|
||||
#[testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[core]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[extra]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
#[community-testing]
|
||||
#Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# If you want to run 32 bit applications on your x86_64 system,
|
||||
# enable the multilib repository here.
|
||||
[multilib]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# An example of a custom package repository. See the pacman manpage for
|
||||
# tips on creating your own repositories.
|
||||
#[custom]
|
||||
#Server = file:///home/custompkgs
|
||||
|
86
pacman-staging.conf
Normal file
86
pacman-staging.conf
Normal file
@@ -0,0 +1,86 @@
|
||||
#
|
||||
# /etc/pacman.conf
|
||||
#
|
||||
# See the pacman.conf(5) manpage for option and repository directives
|
||||
|
||||
#
|
||||
# GENERAL OPTIONS
|
||||
#
|
||||
[options]
|
||||
# The following paths are commented out with their default values listed.
|
||||
# If you wish to use different paths, uncomment and update the paths.
|
||||
#RootDir = /
|
||||
#DBPath = /var/lib/pacman/
|
||||
#CacheDir = /var/cache/pacman/pkg/
|
||||
#LogFile = /var/log/pacman.log
|
||||
HoldPkg = pacman glibc
|
||||
# If upgrades are available for these packages they will be asked for first
|
||||
SyncFirst = pacman
|
||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||
#CleanMethod = KeepInstalled
|
||||
Architecture = auto
|
||||
|
||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||
#IgnorePkg =
|
||||
#IgnoreGroup =
|
||||
|
||||
#NoUpgrade =
|
||||
#NoExtract =
|
||||
|
||||
# Misc options (all disabled by default)
|
||||
#UseSyslog
|
||||
#ShowSize
|
||||
#UseDelta
|
||||
#TotalDownload
|
||||
#CheckSpace
|
||||
|
||||
#
|
||||
# REPOSITORIES
|
||||
# - can be defined here or included from another file
|
||||
# - pacman will search repositories in the order defined here
|
||||
# - local/custom mirrors can be added here or in separate files
|
||||
# - repositories listed first will take precedence when packages
|
||||
# have identical names, regardless of version number
|
||||
# - URLs will have $repo replaced by the name of the current repo
|
||||
# - URLs will have $arch replaced by the name of the architecture
|
||||
#
|
||||
# Repository entries are of the format:
|
||||
# [repo-name]
|
||||
# Server = ServerName
|
||||
# Include = IncludePath
|
||||
#
|
||||
# The header [repo-name] is crucial - it must be present and
|
||||
# uncommented to enable the repo.
|
||||
#
|
||||
|
||||
# The testing repositories are disabled by default. To enable, uncomment the
|
||||
# repo name header and Include lines. You can add preferred servers immediately
|
||||
# after the header, and they will be used before the default mirrors.
|
||||
|
||||
[staging]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[testing]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[core]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[extra]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community-staging]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community-testing]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# An example of a custom package repository. See the pacman manpage for
|
||||
# tips on creating your own repositories.
|
||||
#[custom]
|
||||
#Server = file:///home/custompkgs
|
||||
|
80
pacman-testing.conf
Normal file
80
pacman-testing.conf
Normal file
@@ -0,0 +1,80 @@
|
||||
#
|
||||
# /etc/pacman.conf
|
||||
#
|
||||
# See the pacman.conf(5) manpage for option and repository directives
|
||||
|
||||
#
|
||||
# GENERAL OPTIONS
|
||||
#
|
||||
[options]
|
||||
# The following paths are commented out with their default values listed.
|
||||
# If you wish to use different paths, uncomment and update the paths.
|
||||
#RootDir = /
|
||||
#DBPath = /var/lib/pacman/
|
||||
#CacheDir = /var/cache/pacman/pkg/
|
||||
#LogFile = /var/log/pacman.log
|
||||
HoldPkg = pacman glibc
|
||||
# If upgrades are available for these packages they will be asked for first
|
||||
SyncFirst = pacman
|
||||
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||
#XferCommand = /usr/bin/curl -C - -f %u > %o
|
||||
#CleanMethod = KeepInstalled
|
||||
Architecture = auto
|
||||
|
||||
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||
#IgnorePkg =
|
||||
#IgnoreGroup =
|
||||
|
||||
#NoUpgrade =
|
||||
#NoExtract =
|
||||
|
||||
# Misc options (all disabled by default)
|
||||
#UseSyslog
|
||||
#ShowSize
|
||||
#UseDelta
|
||||
#TotalDownload
|
||||
#CheckSpace
|
||||
|
||||
#
|
||||
# REPOSITORIES
|
||||
# - can be defined here or included from another file
|
||||
# - pacman will search repositories in the order defined here
|
||||
# - local/custom mirrors can be added here or in separate files
|
||||
# - repositories listed first will take precedence when packages
|
||||
# have identical names, regardless of version number
|
||||
# - URLs will have $repo replaced by the name of the current repo
|
||||
# - URLs will have $arch replaced by the name of the architecture
|
||||
#
|
||||
# Repository entries are of the format:
|
||||
# [repo-name]
|
||||
# Server = ServerName
|
||||
# Include = IncludePath
|
||||
#
|
||||
# The header [repo-name] is crucial - it must be present and
|
||||
# uncommented to enable the repo.
|
||||
#
|
||||
|
||||
# The testing repositories are disabled by default. To enable, uncomment the
|
||||
# repo name header and Include lines. You can add preferred servers immediately
|
||||
# after the header, and they will be used before the default mirrors.
|
||||
|
||||
[testing]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[core]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[extra]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community-testing]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
[community]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
|
||||
# An example of a custom package repository. See the pacman manpage for
|
||||
# tips on creating your own repositories.
|
||||
#[custom]
|
||||
#Server = file:///home/custompkgs
|
||||
|
Reference in New Issue
Block a user