milis/talimatname/genel/c/cups/talimat

63 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: CUPS yazdırma sistemi
# URL: http://www.cups.org
# Paketçi: milisarge
# Gerekler: avahi python gnutls xdg-utils gtk-update-icon-cache
isim=cups
surum=2.1.3
devir=1
kaynak=( http://cups.org/software/$surum/cups-$surum-source.tar.gz)
derle() {
source /etc/blfs-bootscripts
wget http://www.linuxfromscratch.org/blfs/downloads/svn/blfs-bootscripts-$scriptsversion.tar.bz2
tar xvf $scripts-$scriptsversion.tar.bz2
cd $isim-$surum
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 \
--with-docdir=/usr/share/cups/doc-$surum
make
make BUILDROOT=$PKG install
rm -rf $PKG/tmp/cupsinit
mkdir -p $PKG/usr/share/doc
ln -svnf ../cups/doc-$surum $PKG/usr/share/doc/cups-$surum
# 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
# Startup Script
cd ../$scripts-$scriptsversion
make DESTDIR=$PKG install-$isim
# 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
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
}