summaryrefslogtreecommitdiff
path: root/prt-utils/prt-utils.patch
blob: 3b41abd3c78939d5581393a5be3a9323121163f0 (plain)
    1 --- pkgfoster	2006-12-19 17:52:33.000000000 +0100
    2 +++ /home/simone/crux/tools/prt-utils/pkgfoster	2007-05-15 18:05:12.464471239 +0200
    3 @@ -12,9 +12,22 @@
    4  #
    5  
    6  PRT_GET=prt-cache
    7 -PKGRM="sudo pkgrm"
    8 -BASE="autoconf automake bash bc bin86 bindutils binutils bison bzip2 coreutils cpio curl db dcron dhcpcd diffutils e2fsprogs ed expat file filesystem findutils flex gawk gcc gdbm gettext glibc grep groff grub gzip hdparm hotplug httpup iptables jfsutils kbd less libstdc++-compat libtool libusb lilo m4 make man man-pages mktemp module-init-tools nasm ncurses netkit-base netkit-ftp netkit-telnet net-tools nfs-utils openssh openssl patch pciutils perl pkg-config pkgutils portmap ports ppp procps prt-get psmisc rc rdate readline reiserfsprogs rpm2targz rsync sed sendmail shadow slocate strace sysfsutils sysklogd sysvinit tar tcp_wrappers tcsh time traceroute udev unzip usbutils util-linux vim wget which xfsprogs zip zlib"
    9  
   10 +function PKGRM
   11 +{
   12 +	if [ $UID -ne 0 ]; then
   13 +		SUDO="`which sudo 2>/dev/null`"
   14 +		if [ -z "$SUDO" ]; then
   15 +			su -c "pkgrm $1"
   16 +		else
   17 +			sudo pkgrm $1
   18 +		fi
   19 +	else
   20 +		pkgrm $1
   21 +	fi
   22 +}
   23 +
   24 +BASE=$(ls $(awk '/^[[:space:]]*prtdir.*\/core/ {print $2}' /etc/prt-get.conf))
   25  touch ~/.keepers
   26  
   27  echo "Checking packages for orphans..."
   28 @@ -37,7 +50,7 @@
   29  			read ANSWER
   30  
   31  			if [ "$ANSWER" == "y" ] ; then
   32 -				$PKGRM $PACKAGE
   33 +				PKGRM $PACKAGE
   34  				RECHECK=1
   35  			else
   36  				echo $PACKAGE >> ~/.keepers

Generated by cgit