2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: CUPS yazdırma sistemi
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# URL: http://www.cups.org
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: avahi python gnutls xdg-utils gtk-update-icon-cache
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=cups
|
|
|
|
|
surum=2.1.3
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=( http://cups.org/software/$surum/cups-$surum-source.tar.gz)
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2016-02-24 01:27:23 +01:00
|
|
|
|
source /etc/blfs-bootscripts
|
|
|
|
|
wget http://www.linuxfromscratch.org/blfs/downloads/svn/blfs-bootscripts-$scriptsversion.tar.bz2
|
|
|
|
|
tar xvf $scripts-$scriptsversion.tar.bz2
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd $isim-$surum
|
2016-02-24 01:27:23 +01:00
|
|
|
|
sed -i 's:555:755:g;s:444:644:g' Makedefs.in
|
|
|
|
|
sed -i '/MAN.*.EXT/s:.gz::g' \
|
|
|
|
|
configure config-scripts/cups-manpages.m4
|
|
|
|
|
sed -i '/LIBGCRYPTCONFIG/d' config-scripts/cups-ssl.m4
|
|
|
|
|
aclocal -I config-scripts
|
|
|
|
|
autoconf -I config-scripts
|
|
|
|
|
./configure --libdir=/usr/lib \
|
|
|
|
|
--disable-systemd \
|
|
|
|
|
--with-rcdir=/tmp/cupsinit \
|
|
|
|
|
--with-system-groups=lpadmin \
|
2017-10-28 14:10:23 +02:00
|
|
|
|
--with-docdir=/usr/share/cups/doc-$surum
|
2016-02-24 01:27:23 +01:00
|
|
|
|
make
|
|
|
|
|
make BUILDROOT=$PKG install
|
|
|
|
|
|
|
|
|
|
rm -rf $PKG/tmp/cupsinit
|
|
|
|
|
mkdir -p $PKG/usr/share/doc
|
2017-10-28 14:10:23 +02:00
|
|
|
|
ln -svnf ../cups/doc-$surum $PKG/usr/share/doc/cups-$surum
|
2017-01-30 23:55:06 +01:00
|
|
|
|
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# Lanceur
|
|
|
|
|
if [ ! -f $PKG/usr/share/applications/cups.desktop ]; then
|
|
|
|
|
mkdir -p $PKG/usr/share/applications
|
|
|
|
|
install -m644 desktop/cups.desktop \
|
|
|
|
|
$PKG/usr/share/applications/cups.desktop
|
|
|
|
|
fi
|
2017-01-30 23:55:06 +01:00
|
|
|
|
# Startup Script
|
2016-02-24 01:27:23 +01:00
|
|
|
|
cd ../$scripts-$scriptsversion
|
2017-10-28 14:10:23 +02:00
|
|
|
|
make DESTDIR=$PKG install-$isim
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
# Supprimer les filtres faisant parti de cups-filters
|
|
|
|
|
rm -rf $PKG/usr/share/cups/banners
|
|
|
|
|
rm -rf $PKG/usr/share/cups/data/testprint
|
|
|
|
|
# Mechant bug
|
|
|
|
|
rm -r $PKG/tmp
|
2017-01-30 23:55:06 +01:00
|
|
|
|
|
2016-02-24 01:27:23 +01:00
|
|
|
|
chmod 755 $PKG/etc
|
|
|
|
|
|
|
|
|
|
# PAM
|
|
|
|
|
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
|
|
|
|
|
}
|