talimat 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Description: CUPS yazdırma sistemi
  2. # URL: http://www.cups.org
  3. # Packager: milisarge
  4. # Depends on: avahi python gnutls xdg-utils gtk-update-icon-cache
  5. name=cups
  6. version=2.1.3
  7. release=1
  8. source=( http://cups.org/software/$version/cups-$version-source.tar.gz)
  9. build() {
  10. source /etc/blfs-bootscripts
  11. wget http://www.linuxfromscratch.org/blfs/downloads/svn/blfs-bootscripts-$scriptsversion.tar.bz2
  12. tar xvf $scripts-$scriptsversion.tar.bz2
  13. cd $name-$version
  14. sed -i 's:555:755:g;s:444:644:g' Makedefs.in
  15. sed -i '/MAN.*.EXT/s:.gz::g' \
  16. configure config-scripts/cups-manpages.m4
  17. sed -i '/LIBGCRYPTCONFIG/d' config-scripts/cups-ssl.m4
  18. aclocal -I config-scripts
  19. autoconf -I config-scripts
  20. ./configure --libdir=/usr/lib \
  21. --disable-systemd \
  22. --with-rcdir=/tmp/cupsinit \
  23. --with-system-groups=lpadmin \
  24. --with-docdir=/usr/share/cups/doc-$version
  25. make
  26. make BUILDROOT=$PKG install
  27. rm -rf $PKG/tmp/cupsinit
  28. mkdir -p $PKG/usr/share/doc
  29. ln -svnf ../cups/doc-$version $PKG/usr/share/doc/cups-$version
  30. # Lanceur
  31. if [ ! -f $PKG/usr/share/applications/cups.desktop ]; then
  32. mkdir -p $PKG/usr/share/applications
  33. install -m644 desktop/cups.desktop \
  34. $PKG/usr/share/applications/cups.desktop
  35. fi
  36. # Startup Script
  37. cd ../$scripts-$scriptsversion
  38. make DESTDIR=$PKG install-$name
  39. # Supprimer les filtres faisant parti de cups-filters
  40. rm -rf $PKG/usr/share/cups/banners
  41. rm -rf $PKG/usr/share/cups/data/testprint
  42. # Mechant bug
  43. rm -r $PKG/tmp
  44. chmod 755 $PKG/etc
  45. # PAM
  46. cat > $PKG/etc/pam.d/cups << "EOF"
  47. # Begin /etc/pam.d/cups
  48. auth include system-auth
  49. account include system-account
  50. session include system-session
  51. # End /etc/pam.d/cups
  52. EOF
  53. }