pakur.sh 665 B

1234567891011121314151617181920212223242526
  1. make BUILDROOT="$PKG" install
  2. cd "$PKG"
  3. # These no longer works since CUPS >= 1.6 (http://www.cups.org/str.php?L4120).
  4. rm -rf usr/share/cups/banners/* usr/share/cups/data/testprint
  5. install -D -m 644 "$SRC"/cups.logrotate etc/logrotate.d/cups
  6. if [ -e usr/share/applications/cups.desktop ] ; then
  7. sed -i 's|^Exec=htmlview http://localhost:631/|Exec=xdg-open http://localhost:631/|g' \
  8. usr/share/applications/cups.desktop
  9. fi
  10. find usr/share/cups/model -name "*.ppd" | xargs gzip -n9f
  11. cat > $PKG/etc/pam.d/cups << "EOF"
  12. # Begin /etc/pam.d/cups
  13. auth include system-auth
  14. account include system-account
  15. session include system-session
  16. # End /etc/pam.d/cups
  17. EOF