This file is indexed.

postrm is in apt-cacher-ng 0.7.2-1ubuntu1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh -e

NAME=apt-cacher-ng
CDIR=/var/cache/$NAME
LDIR=/var/log/$NAME

if [ "$1" = "purge" ]; then

   rm -rf $CDIR
   rm -f $LDIR/apt-cacher.err $LDIR/apt-cacher.log $LDIR/apt-cacher.log.* $LDIR/maint_*.log
   rmdir $LDIR 2>/dev/null || true
   rm -rf /var/lib/apt-cacher-ng

   dpkg-statoverride --remove /etc/apt-cacher-ng/security.conf 2>/dev/null || true

   if [ -x "$(command -v deluser)" -a -x "$(command -v delgroup)" ]; then
      deluser --quiet --system $NAME || true
      delgroup --quiet --system $NAME || true
   else
      echo "Not removing apt-cacher-ng user and group: adduser package not found." >&2 
   fi
fi

# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_purge
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = "purge" ] ; then
	update-rc.d apt-cacher-ng remove >/dev/null
fi
# End automatically added section