Binary files pacman-2.9.8/convertdb and pacman-2.9.8-pred/convertdb differ diff -Nurp pacman-2.9.8/doc/makepkg.8.in pacman-2.9.8-pred/doc/makepkg.8.in --- pacman-2.9.8/doc/makepkg.8.in 2006-02-02 18:39:53.000000000 -0500 +++ pacman-2.9.8-pred/doc/makepkg.8.in 2006-10-22 02:36:37.000000000 -0400 @@ -392,6 +392,9 @@ Output syntax and commandline options. .B "\-i, \-\-install" Install/Upgrade the package after a successful build. .TP +.B "\-I, \-\-\sudoinstall" +Install/upgrade the package after a successful build with pacman and sudo. +.TP .B "\-j " Sets MAKEFLAGS="-j" before building the package. This is useful for overriding the MAKEFLAGS setting in /etc/makepkg.conf. Binary files pacman-2.9.8/pacman and pacman-2.9.8-pred/pacman differ Binary files pacman-2.9.8/pacman.static and pacman-2.9.8-pred/pacman.static differ diff -Nurp pacman-2.9.8/scripts/makepkg pacman-2.9.8-pred/scripts/makepkg --- pacman-2.9.8/scripts/makepkg 2006-01-30 19:25:03.000000000 -0500 +++ pacman-2.9.8-pred/scripts/makepkg 2006-10-22 02:35:37.000000000 -0400 @@ -240,6 +240,7 @@ usage() { echo " -g, --genmd5 Generate MD5sums for source files" echo " -h, --help This help" echo " -i, --install Install package after successful build" + echo " -I, --sudoinstall Install package after successful build with pacman and sudo" echo " -j Set MAKEFLAGS to \"-j\" before building" echo " -m, --nocolor Disable colorized output messages" echo " -n, --nostrip Do not strip binaries/libraries" @@ -276,6 +277,7 @@ while [ "$#" -ne "0" ]; do --nodeps) NODEPS=1 ;; --noextract) NOEXTRACT=1 ;; --install) INSTALL=1 ;; + --sudoinstall) INSTALL_SUDO=1 ;; --force) FORCE=1 ;; --nostrip) NOSTRIP=1 ;; --nobuild) NOBUILD=1 ;; @@ -291,7 +293,7 @@ while [ "$#" -ne "0" ]; do exit 1 ;; -*) - while getopts "bBcCdefghij:mnop:rsSw:-" opt; do + while getopts "bBcCdefghiIj:mnop:rsSw:-" opt; do case $opt in b) DEP_SRC=1 ;; B) NOCCACHE=1 ;; @@ -306,6 +308,7 @@ while [ "$#" -ne "0" ]; do exit 0 ;; i) INSTALL=1 ;; + I) INSTALL_SUDO=1 ;; j) export MAKEFLAGS="-j$OPTARG" ;; m) USE_COLOR="n" ;; n) NOSTRIP=1 ;; @@ -802,6 +805,17 @@ if [ "$INSTALL" = "1" -a "`id -u`" = "0" msg "Installing package with pacman -U..." pacman $PACMAN_OPTS -U $PKGDEST/${pkgname}-${pkgver}-${pkgrel}.pkg.tar.gz exit $? +elif [ "$INSTALL_SUDO" = "1" ]; then + msg "Installing package with sudo pacman -U..." + if [ "$INFAKEROOT" = "1" ]; then + FAKEROOTKEY2=$FAKEROOTKEY + unset FAKEROOTKEY + fi + sudo pacman $PACMAN_OPTS -U $PKGDEST/${pkgname}-${pkgver}-${pkgrel}.pkg.tar.gz + if [ "$INFAKEROOT" = "1" ]; then + export FAKEROOTKEY=$FAKEROOTKEY2 + unset FAKEROOTKEY2 + fi fi exit 0