修订版 | cfdfcc99067145fcfd4070b45bb8ec335ad28fea (tree) |
---|---|
时间 | 2021-12-22 15:16:22 |
作者 | matsuand <30614168+matsuand@user...> |
Commiter | matsuand |
[BLFS] Update cups-2.4.0.
@@ -3,17 +3,18 @@ | ||
3 | 3 | . ./_blfsset.sh |
4 | 4 | |
5 | 5 | APPNAME=cups |
6 | -VER=2.1.0 | |
6 | +VER=2.4.0 | |
7 | 7 | TARGET=$APPNAME-$VER |
8 | -TARGETBALL=$DLD/${TARGET}-source.tar.bz2 | |
8 | +TARGETBALL=$DLD/${TARGET}-source.tar.gz | |
9 | 9 | TARGETDIR=$TARGET |
10 | 10 | |
11 | 11 | echo $TARGET |
12 | 12 | |
13 | -. $WRK/_checkRequired.sh "" | |
13 | +. $WRK/_checkRequired.sh \ | |
14 | + gnutls | |
14 | 15 | . $WRK/_checkOptions.sh \ |
15 | 16 | libjpeg-turbo libpng tiff tcp_wrappers dbus libusb \ |
16 | - acl Linux-PAM openldap gnutls openssl heimdal \ | |
17 | + acl Linux-PAM openldap openssl heimdal \ | |
17 | 18 | php python jdk xdg-utils openslp libpaper \ |
18 | 19 | valgrind |
19 | 20 | . $WRK/_checkTarball.sh |
@@ -36,22 +37,14 @@ cd $TARGETDIR | ||
36 | 37 | #patch -Np1 -i $DLD/cups-$VER-blfs-1.patch \ |
37 | 38 | # 1>> $LOG/$TARGET.0_patch.log 2>&1 || exit 1 |
38 | 39 | |
39 | -sed -i 's:555:755:g;s:444:644:g' Makedefs.in | |
40 | -sed -i '/MAN.*.EXT/s:.gz::g' \ | |
41 | - configure config-scripts/cups-manpages.m4 | |
42 | -sed -i '/LIBGCRYPTCONFIG/d' config-scripts/cups-ssl.m4 | |
43 | -sed -i 's@else /\* HAVE_AVAHI \*/@elif defined(HAVE_AVAHI)@' test/ippserver.c | |
40 | +sed -i 's#@CUPS_HTMLVIEW@#firefox#' desktop/cups.desktop.in | |
44 | 41 | |
45 | -echo Autoconfing... | |
46 | -aclocal -I config-scripts \ | |
47 | - 1> $LOG/$TARGET.1_auto.log 2>&1 || exit 1 | |
48 | -autoconf -I config-scripts \ | |
49 | - 1>> $LOG/$TARGET.1_auto.log 2>&1 || exit 1 | |
42 | +sed -e "s/format-truncation//" \ | |
43 | + -i configure \ | |
44 | + config-scripts/cups-compiler.m4 | |
50 | 45 | |
51 | 46 | Configuring |
52 | 47 | ./configure --libdir=/usr/lib \ |
53 | - --disable-systemd \ | |
54 | - --with-rcdir=/tmp/cupsinit \ | |
55 | 48 | --with-system-groups=lpadmin \ |
56 | 49 | --with-docdir=/usr/share/cups/doc-$VER \ |
57 | 50 | 1> $LOG/$TARGET.1_conf.log 2>&1 || exit 1 |
@@ -64,20 +57,14 @@ Installing | ||
64 | 57 | porg -lp $TARGET "make install" \ |
65 | 58 | 1> $LOG/$TARGET.3_install.log 2>&1 || exit 1 |
66 | 59 | |
67 | -rm -rf /tmp/cupsinit | |
68 | -porg -lp+ $TARGET "\ | |
69 | -ln -sv ../cups/doc-$VER /usr/share/doc/cups-$VER" \ | |
70 | - 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
60 | +#porg -lp+ $TARGET "\ | |
61 | +#ln -sv ../cups/doc-$VER /usr/share/doc/cups-$VER" \ | |
62 | +# 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
71 | 63 | |
72 | 64 | echo "ServerName /var/run/cups/cups.sock" > /etc/cups/client.conf |
73 | 65 | porg -lp+ $TARGET "\ |
74 | 66 | touch /etc/cups/client.conf" |
75 | 67 | |
76 | -porg -lp+ $TARGET "\ | |
77 | -rm -rf /usr/share/cups/banners" | |
78 | -porg -lp+ $TARGET "\ | |
79 | -rm -rf /usr/share/cups/data/testprint" | |
80 | - | |
81 | 68 | cat > /etc/pam.d/cups << "EOF" |
82 | 69 | # Begin /etc/pam.d/cups |
83 | 70 |