mirror of
https://github.com/dslm4515/BMLFS.git
synced 2026-01-14 00:33:30 +00:00
39 lines
1.4 KiB
Bash
Executable File
39 lines
1.4 KiB
Bash
Executable File
#! /bin/bash
|
|
|
|
# source: https://github.com/apple/cups/releases/download/v2.2.8/cups-2.2.8-source.tar.gz
|
|
|
|
sudo -S useradd -c "Print Service User" -d /var/spool/cups -g lp -s /bin/false -u 9 lp
|
|
sudo -S groupadd -g 17 lpadmin
|
|
|
|
patch -Np1 -i ../cups-no-export-ssllibs.patch
|
|
patch -Np1 -i ../cups-no-gzip-man.patch
|
|
|
|
#sed -i 's:444:644:' Makedefs.in &&
|
|
#sed -i '/MAN.EXT/s:.gz::' configure config-scripts/cups-manpages.m4 &&
|
|
|
|
aclocal -I config-scripts &&
|
|
autoconf -I config-scripts &&
|
|
|
|
CC=gcc \
|
|
./configure --libdir=/usr/lib \
|
|
--disable-systemd \
|
|
--with-rcdir=/tmp/cupsinit \
|
|
--with-system-groups=lpadmin \
|
|
--with-docdir=/usr/share/cups/doc-2.2.8 \
|
|
--enable-acl --enable-dbus --enable-raw-printing \
|
|
--enable-threads --enable-libpaper --enable-pam --enable-ssl \
|
|
--disable-systemd --disable-launchd --without-rcdir \
|
|
--without-java --without-perl --without-php --without-python
|
|
|
|
sed -e '/.\/genstrings.*/d' -i ppdc/Makefile
|
|
sed -e "s,./mantohtml,${wrksrc}/cross-tools/mantohtml,g" -i man/Makefile
|
|
|
|
read -p "Compile? " && make -j4 &&
|
|
|
|
read -p "Install?" && sudo -S porg -lD "make -j1 install" &&
|
|
|
|
sudo -S rm -rf /tmp/cupsinit &&
|
|
sudo -S porg -lD+ "ln -svnf ../cups/doc-2.2.8 /usr/share/doc/cups-2.2.8"
|
|
|
|
#echo "ServerName /var/run/cups/cups.sock" > /etc/cups/client.conf
|