summaryrefslogtreecommitdiffstats
path: root/source/ap/cups/cups.SlackBuild
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2019-09-01 19:03:23 +0000
committer Eric Hameleers <alien@slackware.com>2019-09-02 08:59:46 +0200
commit6fe328cf8e5085a87987583d7cc3c3261859625b (patch)
treeb055a3aa8bc6e1a29c30c509dd2d083e44623918 /source/ap/cups/cups.SlackBuild
parentbfb7494122bbe72a83747ff11d0f7497e9b50e1e (diff)
downloadcurrent-6fe328cf8e5085a87987583d7cc3c3261859625b.tar.gz
current-6fe328cf8e5085a87987583d7cc3c3261859625b.tar.xz
Sun Sep 1 19:03:23 UTC 201920190901190323
ap/cups-2.3.0-x86_64-2.txz: Rebuilt. Fixed manpages. Thanks to TurboBlaze. Quit renaming/symlinking binaries for LPRng compatibility. ap/cups-filters-1.25.4-x86_64-1.txz: Upgraded. Compiled against qpdf-9.0.0. ap/qpdf-9.0.0-x86_64-1.txz: Upgraded. Shared library .so-version bump. l/imagemagick-6.9.10_63-x86_64-1.txz: Upgraded. l/libogg-1.3.4-x86_64-1.txz: Upgraded. l/mozilla-nss-3.46-x86_64-1.txz: Upgraded. Upgraded to nss-3.46 and nspr-4.22.
Diffstat (limited to 'source/ap/cups/cups.SlackBuild')
-rwxr-xr-xsource/ap/cups/cups.SlackBuild45
1 files changed, 8 insertions, 37 deletions
diff --git a/source/ap/cups/cups.SlackBuild b/source/ap/cups/cups.SlackBuild
index 4f9444c66..462851e89 100755
--- a/source/ap/cups/cups.SlackBuild
+++ b/source/ap/cups/cups.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=cups
VERSION=${VERSION:-$(echo $PKGNAM-*-source.tar.?z | cut -f 2 -d -)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -89,7 +89,6 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-gnutls=yes \
--enable-cdsassl=no \
--docdir=/usr/doc \
- --without-php \
--disable-pam \
--disable-avahi \
--disable-dnssd \
@@ -159,6 +158,13 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
mv man ..
)
+# Compress manual pages:
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do
+ ln -s $( readlink $i ).gz $i.gz
+ rm $i
+done
+
# Adjust/expand docs:
( mkdir -p $PKG/usr/doc
mv $PKG/usr/share/doc/cups $PKG/usr/doc/cups-$VERSION
@@ -193,41 +199,6 @@ fi
find $PKG | xargs file | grep -e "executable" -e "shared object" \
| grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-# Use symlinks to certain binaries so that CUPS and LPRng can coexist:
-SUFFIX=cups
-for file in \
-usr/bin/cancel \
-usr/bin/lp \
-usr/bin/lpq \
-usr/bin/lpr \
-usr/bin/lprm \
-usr/bin/lpstat \
-usr/sbin/lpc ; do
- ( cd $PKG
- mv ${file} ${file}-${SUFFIX}
- ( cd `dirname ${file}` ; ln -sf `basename ${file}`-${SUFFIX} `basename ${file}` )
- )
-done
-# Now fix the associated man pages:
-mv $PKG/usr/man/man1/cancel.1.gz $PKG/usr/man/man1/cancel-${SUFFIX}.1.gz
-mv $PKG/usr/man/man1/lp.1.gz $PKG/usr/man/man1/lp-${SUFFIX}.1.gz
-mv $PKG/usr/man/man1/lpq.1.gz $PKG/usr/man/man1/lpq-${SUFFIX}.1.gz
-mv $PKG/usr/man/man1/lpr.1.gz $PKG/usr/man/man1/lpr-${SUFFIX}.1.gz
-mv $PKG/usr/man/man1/lprm.1.gz $PKG/usr/man/man1/lprm-${SUFFIX}.1.gz
-mv $PKG/usr/man/man1/lpstat.1.gz $PKG/usr/man/man1/lpstat-${SUFFIX}.1.gz
-mv $PKG/usr/man/man8/lpc.8.gz $PKG/usr/man/man8/lpc-${SUFFIX}.8.gz
-( cd $PKG/usr/man/man1
- ln -sf cancel-${SUFFIX}.1.gz cancel.1.gz
- ln -sf lp-${SUFFIX}.1.gz lp.1.gz
- ln -sf lpq-${SUFFIX}.1.gz lpq.1.gz
- ln -sf lpr-${SUFFIX}.1.gz lpr.1.gz
- ln -sf lprm-${SUFFIX}.1.gz lprm.1.gz
- ln -sf lpstat-${SUFFIX}.1.gz lpstat.1.gz
-)
-( cd $PKG/usr/man/man8
- ln -sf lpc-${SUFFIX}.8.gz lpc.8.gz
-)
-
# Add the doinst.sh that installs the .new conffiles:
zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh