3 # wnppalert -- check for orphaned or put up for adoption, installed packages
5 # get a list of packages with bugnumbers. I tried with LDAP, but this is _much_
8 INSTALLED=`mktemp ${TMPDIR:-/tmp}/wnppalert-installed.XXXXXX`
9 WNPP=`mktemp ${TMPDIR:-/tmp}/wnppalert-wnpp.XXXXXX`
10 WNPP_PACKAGES=`mktemp ${TMPDIR:-/tmp}/wnppalert-wnpp_packages.XXXXXX`
12 wget -qO - http://www.debian.org/devel/wnpp/orphaned| \
13 egrep '^<li><a href="http://bugs.debian.org/'| \
14 sed 's/<li><a href="http:\/\/bugs.debian.org\/\([0-9]*\)">\([^:]*\): \([^<]*\)<\/a>.*/O \1 \2 -- \3/'\
17 wget -qO - http://www.debian.org/devel/wnpp/rfa_bypackage| \
18 egrep '^<li><a href="http://bugs.debian.org/'| \
19 sed 's/<li><a href="http:\/\/bugs.debian.org\/\([0-9]*\)">\([^:]*\): \([^<]*\)<\/a>.*/RFA \1 \2 -- \3/'\
22 cut -f3 -d' ' $WNPP | sort > $WNPP_PACKAGES
24 # A list of installed files. This shouldn't use /var/lib/dpkg/status directly, but speed ...
26 grep -B1 'Status: install ok installed' /var/lib/dpkg/status| \
33 comm -12 $WNPP_PACKAGES $INSTALLED | xargs -i grep {} $WNPP
35 echo "Yours obediently, $0"
38 rm $WNPP $WNPP_PACKAGES $INSTALLED