mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-13 18:06:19 +02:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f1c05d870b | ||
![]() |
2e6d542220 | ||
![]() |
cfddde22be | ||
![]() |
f7b67c25ff | ||
![]() |
65d654a9d7 | ||
![]() |
cfdfbd99f8 | ||
![]() |
a01ed3869c | ||
![]() |
e656ec7052 |
4
Makefile
4
Makefile
@@ -1,4 +1,4 @@
|
||||
V=0.9.7
|
||||
V=0.9.8
|
||||
|
||||
all:
|
||||
|
||||
@@ -10,6 +10,7 @@ install:
|
||||
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}
|
||||
@@ -33,6 +34,7 @@ uninstall:
|
||||
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
|
||||
|
7
checkpkg
7
checkpkg
@@ -27,6 +27,9 @@ if [ "$arch" == 'any' ]; then
|
||||
CARCH='any'
|
||||
fi
|
||||
|
||||
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}
|
||||
@@ -87,6 +90,8 @@ for _pkgname in ${pkgname[@]}; do
|
||||
objdump -p $i | grep SONAME
|
||||
done
|
||||
else
|
||||
echo "No filename differences for $_pkgname."
|
||||
echo "No soname differences for $_pkgname."
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Files saved to $TEMPDIR"
|
||||
|
@@ -46,6 +46,8 @@ 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'
|
||||
|
4
lddd
4
lddd
@@ -9,9 +9,7 @@ IFS=':'
|
||||
libdirs='/lib:/usr/lib:/opt/qt/lib:/opt/kde/lib:/usr/lib/libfakeroot:/opt/NX/lib'
|
||||
extras=
|
||||
|
||||
TEMPDIR=$(mktemp /tmp/lddd-script.XXXX)
|
||||
rm $TEMPDIR
|
||||
mkdir -p $TEMPDIR
|
||||
TEMPDIR=$(mktemp -d /tmp/lddd-script.XXXX)
|
||||
|
||||
echo 'Go out and drink some tea, this will take a while :) ...'
|
||||
# Check ELF binaries in the PATH and specified dir trees.
|
||||
|
@@ -133,9 +133,11 @@ if [ "$REPACK" != "1" ]; then
|
||||
fi
|
||||
|
||||
# Get SRC/PKGDEST from makepkg.conf
|
||||
SRCDEST=$(grep '^SRCDEST=' ~/.makepkg.conf | cut -d= -f2)
|
||||
if [ -f ~/.makepkg.conf ]; then
|
||||
SRCDEST=$(grep '^SRCDEST=' ~/.makepkg.conf | cut -d= -f2)
|
||||
PKGDEST=$(grep '^PKGDEST=' ~/.makepkg.conf | cut -d= -f2)
|
||||
fi
|
||||
[ -z ${SRCDEST} ] && SRCDEST=$(grep '^SRCDEST=' /etc/makepkg.conf | cut -d= -f2)
|
||||
PKGDEST=$(grep '^PKGDEST=' ~/.makepkg.conf | cut -d= -f2)
|
||||
[ -z ${PKGDEST} ] && PKGDEST=$(grep '^PKGDEST=' /etc/makepkg.conf | cut -d= -f2)
|
||||
|
||||
[ -d "$copydir/pkgdest" ] || mkdir "$copydir/pkgdest"
|
||||
|
@@ -84,6 +84,12 @@ chroot_mount() {
|
||||
[ -e "${working_dir}/dev" ] || mkdir "${working_dir}/dev"
|
||||
mount -o bind /dev "${working_dir}/dev"
|
||||
|
||||
[ -e "${working_dir}/dev/shm" ] || mkdir "${working_dir}/dev/shm"
|
||||
mount -t tmpfs shm "${working_dir}/dev/shm"
|
||||
|
||||
[ -e "${working_dir}/dev/pts" ] || mkdir "${working_dir}/dev/pts"
|
||||
mount -t devpts devpts "${working_dir}/dev/pts"
|
||||
|
||||
[ -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}"
|
||||
@@ -99,6 +105,8 @@ copy_hostconf () {
|
||||
chroot_umount () {
|
||||
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}/${cache_dir}"
|
||||
}
|
||||
|
Reference in New Issue
Block a user