milis/talimatname/genel/c/cups/talimat

63 lines
1.5 KiB
Plaintext
Raw Normal View History

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
2018-08-17 13:29:36 +02:00
# Grup: sistem
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=cups
2017-12-29 19:31:37 +01:00
surum=2.2.6
2017-10-28 14:10:23 +02:00
devir=1
2017-12-29 19:31:37 +01:00
kaynak=(https://github.com/apple/cups/archive/v$surum.tar.gz::$isim-$surum.tar.gz)
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2017-12-29 19:31:37 +01:00
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
2017-12-29 19:31:37 +01:00
autoconf -I config-scripts
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
2016-02-24 01:27:23 +01:00
make
make BUILDROOT=$PKG install
2017-12-29 19:31:37 +01:00
rm -rf $PKG/tmp
2016-02-24 01:27:23 +01:00
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
2017-12-29 19:31:37 +01:00
# masaüstü
2016-02-24 01:27:23 +01:00
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-12-29 19:31:37 +01:00
# servis
cd /sources/milis.git/ayarlar/servisler
make DESTDIR=$PKG kur-cups
2016-02-24 01:27:23 +01:00
rm -rf $PKG/usr/share/cups/banners
rm -rf $PKG/usr/share/cups/data/testprint
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
}