blob: a4610613a65f247669ef9b23d3acca1ebec0a3a6 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cups
pkgver=1.4.7
pkgrel=0
pkgdesc="The CUPS Printing System"
url="http://www.cups.org/"
arch="all"
license="GPL"
subpackages="$pkgname-dev $pkgname-doc libcups $pkgname-client"
makedepends="openssl-dev libpaper-dev dbus-dev jpeg-dev>=8 zlib-dev"
depends="cups-client poppler-utils"
install=
pkggroups="lp lpadmin"
pkgusers="lp"
source="ftp://ftp.easysw.com/pub/$pkgname/$pkgver/$pkgname-$pkgver-source.tar.bz2
$pkgname.logrotate
cupsd.initd
"
depends_dev="openssl-dev zlib-dev"
build ()
{
cd "$srcdir"/$pkgname-$pkgver
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-logdir=/var/log/cups \
--with-docdir=/usr/share/cups/doc \
--with-cups-user=lp \
--with-cups-group=lp \
--with-system-groups=lpadmin \
--without-php \
--disable-pam \
--disable-ldap \
--libdir=/usr/lib \
--enable-raw-printing \
--enable-dbus \
--with-dbusdir=/etc/dbus-1 \
--enable-libpaper \
--enable-ssl=yes \
--enable-gnutls \
--enable-pdftops \
--with-pdftops=pdftops \
--with-optim="$CFLAGS"
make || return 1
}
package() {
cd "$srcdir"/$pkgname-$pkgver
make BUILDROOT="$pkgdir" install
rm -rf "$pkgdir"/etc/init.d "$pkgdir"/etc/rc*
install -D -m644 ../cups.logrotate "$pkgdir"/etc/logrotate.d/cups
install -D -m755 ../cupsd.initd "$pkgdir"/etc/init.d/cupsd
sed -i 's|^Exec=htmlview http://localhost:631/|Exec=xdg-open http://localhost:631/|g' "$pkgdir"/usr/share/applications/cups.desktop
find "$pkgdir"/usr/share/cups/model -name "*.ppd" | xargs gzip -n9f
}
_mv() {
for i in "$@"; do
mkdir -p "$subpkgdir"/${i%/*}
mv "$pkgdir"/$i "$subpkgdir"/${i%/*}/ || return 1
done
}
libcups() {
pkgdesc="CUPS libraries"
depends=
_mv usr/lib/*.so*
install -d "$pkgdir"/etc/cups
}
client() {
pkgdesc="CUPS client"
depends=
_mv usr/bin \
usr/share/cups/charsets \
usr/share/cups/charmaps \
usr/sbin/accept \
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
touch "$subpkgdir"/usr/share/cups/charmaps/us-ascii.txt
}
md5sums="1590033ab4c739b859aeb672fe849089 cups-1.4.7-source.tar.bz2
f861b18f4446c43918c8643dcbbd7f6d cups.logrotate
1154ed66fdcfa0523f929a369079f43c cupsd.initd"
|