make BUILDROOT="$PKG" install

cd "$PKG"

# These no longer works since CUPS >= 1.6 (http://www.cups.org/str.php?L4120).
rm -rf usr/share/cups/banners/* usr/share/cups/data/testprint

install -D -m 644 "$SRC"/cups.logrotate etc/logrotate.d/cups

if [ -e usr/share/applications/cups.desktop ] ; then
	sed -i 's|^Exec=htmlview http://localhost:631/|Exec=xdg-open http://localhost:631/|g' \
	usr/share/applications/cups.desktop
fi
find usr/share/cups/model -name "*.ppd" | xargs gzip -n9f


cat > $PKG/etc/pam.d/cups << "EOF"
# Begin /etc/pam.d/cups

auth    include system-auth
account include system-account
session include system-session

# End /etc/pam.d/cups
EOF
