#!/bin/sh
# postinst script for pagekite
#
# see: dh_installdeb(1)

set -e

case "$1" in
    configure|upgrade|install)
        S=/usr/share/pyshared/sockschain/
        for D in /usr/lib/python2.*/dist-packages/; do
            [ -e "$D/sockschain" ] || [ -e "$D" ] && ln -vs "$S" "$D" || true
        done
        rm -f "$S/*.pyc" || true
    ;;

    abort-*)
    ;;

    *)
        echo "WARNING: postinst called with unknown argument \`$1'" >&2
    ;;

esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
