abinfo "Installing UFW ..."
python3 setup.py install \
    --root="$PKGDIR"

abinfo "Moving the ufw executable to /usr/bin ..."
mv -v "$PKGDIR"/usr/{s,}bin

abinfo "Moving /lib => /usr/lib ..."
mv -v "$PKGDIR"/lib/* \
    "$PKGDIR"/usr/lib/
rm -rv "$PKGDIR"/lib

abinfo "Dropping executable bits from data files ..."
chmod -v -x \
    "$PKGDIR"/etc/ufw/*.rules \
    "$PKGDIR"/usr/lib/ufw/*.rules

abinfo "Fixing up permission for UFW configurations ..."
chmod g-w "$PKGDIR"/etc/default/ufw
chmod -R g-w "$PKGDIR"/etc/ufw/*
chmod g-w "$PKGDIR"/usr/lib/ufw/*
