#!/bin/sh

OKLIST="a2ps
        abiword
	acidbase
        adun.app
	advi
	agistudio
	aide
	alexandria
	amavis
	amule
	am-utils
	analog
	anjuta
	annoyance-filter
	ant
	apache
	apache2
	apcalc
	apsfilter
	aptitude
        arb
	ardour
	armagetron
	aspell
	aspseek
	atlas2
	atlas3
	auctex
        audacity
	autobook
	autoclass
	autoconf2.13
	autoconf
	autoinstall
        autodocktools
	automake1.9
	awstats
	backuppc
	bacula
	balsa
	bash
	bastille
	bb
	bbdb
	beep
	beneath
	billard
        biomaj
	bioperl
	bison
	binutils
	blender
	blt
	bluefish
        boa-constructor
	bochs
	brickos
	bugsx
	bugzilla
        calibre
	capplets
	cdbs
	cdd-doc
	cdrecord
	cfengine
	cfengine2
        chromium
        cimg
        circos
	classpath
	console
	coreutils
	cpp
	ctn
	ctsim
	cupsys
	dbconfig-common
	debhelper
        debian-edu
        debian-handbook
        debian-keyring
	debtags
	debtags-edit
	desktop
        dict-de-en
        dict-gcide
        dict-moby-thesaurus
        dict-wn
        digikam
        dosemu
	dpkg
	e2fsprogs
	egroupware
	emacs
        emboss
        emscripten
	extremetuxracer
	festival
	fetchmail
        ffdiaporama
	fftw3
	findutils
	flashplayer
	foomatic
	freecad
        freeciv
        freecol
        freevo
        frozen-bubble
        games-thumbnails
        gcompris
	ghemical
	gimp
        gnome
	gnulib
	gnumed-client
	gnumed-plugincommon
        gnumeric
        goldendict-wordnet
	grip
	groff
	groff-base
	grub
	gsfonts
        ho22bus
        icedove
        igv
        inkscape
        invesalius
        jitsi
	k3b
	kdelibs
	konqueror
	lapack
	lincity-ng
	linux-source
	lmodern
	login
	lsof
        man
        mayavi2
        mediawiki
	menu
	mgltools
	mkisofs
	mongodb
	mplayer
	multi
	nvidia-cuda-toolkit
        openoffice.org
        passwd
        php4
	prosper
	pymol
        python
	slang1
	ssh
        synaptic
        w3m
	wdg
	xmms
        xplanet
	xprt
        xulrunner
        zope"
rawlist="/tmp/bigraw"
biglist="/tmp/pkglist"
rm -f $biglist

find . -size +10M -printf "%f#%b\n" | sort | \
     sed -e "s/_[0-9%a+.~]\+[-.][-.0-9a-v%+]*-[.0-9a-z+]\+_[ia].*\.deb//" \
	 -e "s/_[.0-9a-zA-Z~]\+[-+][-.0-9+a-zA-Z]\+_[ali386]\{3,4\}.deb//" \
         -e "s/_[-.0-9+~a-z]\+_[amdli3864]\{3,5\}\.deb//" | \
cat > $rawlist

for pkgsize in `grep -v "^lib" $rawlist | grep -v kde` ; do 
   pkg=`echo $pkgsize | sed "s/#.*//"`
   if echo $OKLIST | grep -q "`echo $pkg | sed "s/[-_].*//"`" ; then continue ; fi
   size=`echo $pkgsize | sed "s/.*#//"`
   echo "$pkg: $size"  >> $biglist
   apt-cache --no-all-versions show $pkg | grep -A3 "^Description:" >> $biglist
   echo . >> $biglist
done

rm -f $rawlist

[ -s $biglist ] && less $biglist

