blob: 9a676bd9f77a7167d6d9f5ec527ba9194d7de186 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cups
pkgver=2.2.3
pkgrel=1
pkgdesc="The CUPS Printing System"
url="http://www.cups.org/"
arch="all"
license="GPL LGPL2+"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs ipptool $pkgname-client
$pkgname-lang"
depends_dev="libgcrypt-dev gnutls-dev zlib-dev"
makedepends="$depends_dev libpaper-dev dbus-dev libjpeg-turbo-dev avahi-dev
linux-headers"
depends="cups-client poppler-utils libressl dbus"
install="cups.pre-install"
pkggroups="lp lpadmin"
pkgusers="lp"
source="https://github.com/apple/cups/releases/download/v$pkgver/cups-$pkgver-source.tar.gz
$pkgname.logrotate
cupsd.initd
cups-no-export-ssllibs.patch
default-config-no-gssapi.patch
"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--libdir=/usr/lib \
--sysconfdir=/etc \
--localstatedir=/var \
--with-logdir=/var/log/cups \
--with-docdir=/usr/share/cups \
--with-rundir=/run/cups \
--with-cupsd-file-perm=0755 \
--with-cups-user=lp \
--with-cups-group=lp \
--with-system-groups=lpadmin \
--with-domainsocket=/run/cups/cups.sock \
--without-rcdir \
--without-php \
--disable-pam \
--enable-raw-printing \
--enable-dbus \
--with-dbusdir=/etc/dbus-1 \
--enable-libpaper \
--enable-ssl=yes \
--enable-gnutls \
--disable-launchd \
--with-optim="$CFLAGS"
make
}
package() {
cd "$builddir"
make BUILDROOT="$pkgdir" install
cd "$pkgdir"
# These no longer works since CUPS >= 1.6 (http://www.cups.org/str.php?L4120).
rm -rf usr/share/cups/banners/* \
usr/share/cups/data/testprint
install -D -m 644 "$srcdir"/cups.logrotate etc/logrotate.d/cups
install -D -m 755 "$srcdir"/cupsd.initd etc/init.d/cupsd
if [ -e usr/share/applications/cups.desktop ] ; then
sed -i 's|^Exec=htmlview http://localhost:631/|Exec=xdg-open http://localhost:631/|g' \
usr/share/applications/cups.desktop
fi
find usr/share/cups/model -name "*.ppd" | xargs gzip -n9f
}
libs() {
pkgdesc="CUPS libraries"
depends=""
replaces="libcups"
cd "$pkgdir"
_mv usr/lib/*.so*
install -d "$pkgdir"/etc/cups
}
ipptool() {
pkgdesc="Perform internet printing protocol requests"
depends=""
cd "$pkgdir"
_mv usr/bin/ipptool \
usr/share/cups/ipptool
}
client() {
pkgdesc="CUPS command-line client programs"
depends=""
cd "$pkgdir"
_mv usr/bin \
usr/sbin/accept \
usr/sbin/cupsaccept \
usr/sbin/cupsaddsmb \
usr/sbin/cupsctl \
usr/sbin/cupsdisable \
usr/sbin/cupsenable \
usr/sbin/lpadmin \
usr/sbin/lpc \
usr/sbin/lpinfo \
usr/sbin/lpmove \
usr/sbin/reject
}
_mv() {
local i; for i in "$@"; do
mkdir -p "$subpkgdir"/${i%/*}
mv "$pkgdir"/$i "$subpkgdir"/${i%/*}/
done
}
sha512sums="0f3e2aa8e514dad056b4878b0657491d35796b62021092cd5dd480b67a8423fc0fdb822ccb4bc72a454c3ced20c160c8631d44c182c87a3993b882df904aaec7 cups-2.2.3-source.tar.gz
162fe69ee46962f7ce07a9a2a75154682088895c4749c9bcfc54bb2aa861f48d7d1a8e3223f78a197319a3a405626ffe996615f6eb23168afcefabab343d5be0 cups.logrotate
b5c6cec757457773904d47b06fb3a3d70c316e5abac7e35164261f9d98d7275140c6f14337a848eb4c15034d91e4c859af93865531f26bd97defe3ec21ca90a8 cupsd.initd
7a8cd9ac33b0dd4627c72df4275db8ccd7cf8e201bce3833719b42f532f526bb347b842e3ea1ef0d61855b5c6e1088b5d20b68942f2c2c0acf504d8d9728efd3 cups-no-export-ssllibs.patch
98bb97f4af69ea286fc3d398b8e57c32440e6b2d49fb7f79b418a4fe7f13441f3a610f65d3433d10d971ade808233c0b29b4d66160623ccaae919179384be918 default-config-no-gssapi.patch"
|