cups.gunc

This commit is contained in:
milisbir 2017-12-29 20:31:37 +02:00
parent 2069b8b3c8
commit 03da276a77
2 changed files with 18 additions and 23 deletions

View File

@ -1,11 +1,7 @@
si necessaire faire en root:
useradd -c "Print Service User" -d /var/spool/cups -g lp -s /bin/false -u 9 lp
groupadd -g 19 lpadmin
usermod -a -G lpadmin <username>
Une fois installé:
Créez le fichier de configuration de base du client Cups en lançant la commande suivante:
echo "ServerName /var/run/cups/cups.sock" > /etc/cups/client.conf

View File

@ -4,14 +4,12 @@
# Gerekler: avahi python gnutls xdg-utils gtk-update-icon-cache
isim=cups
surum=2.1.3
surum=2.2.6
devir=1
kaynak=( http://cups.org/software/$surum/cups-$surum-source.tar.gz)
kaynak=(https://github.com/apple/cups/archive/v$surum.tar.gz::$isim-$surum.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' \
@ -19,33 +17,34 @@ derle() {
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
sed -i -e "\$aName[tr]=Yazıcı Yönetimi \nComment[tr]=CUPS için web arayüzü" desktop/cups.desktop.in
./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
rm -rf $PKG/tmp
mkdir -p $PKG/usr/share/doc
ln -svnf ../cups/doc-$surum $PKG/usr/share/doc/cups-$surum
# Lanceur
# masaüstü
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
# servis
cd /sources/milis.git/ayarlar/servisler
make DESTDIR=$PKG kur-cups
# 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