blob: ffdf4a7d23b9d76c7379caa102596d65b0b7fcdc (
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
|
# Description: Serveur et programmes pour Common UNIX Printing System, le système d'impression pour Linux
# URL: http://www.cups.org
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: libcups, dbus-glib, libusb, hicolor-icon-theme
name=cups
version=1.4.5
release=1
source=( http://ftp.easysw.com/pub/$name/$version/$name-$version-source.tar.bz2\
cups)
build() {
source /etc/blfs-bootscripts
wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
tar xvf $scripts-$scriptsversion.tar.bz2
cd $name-$version
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-logdir=/var/log/cups \
--with-docdir=/usr/share/doc/cups \
--enable-raw-printing \
--enable-pdftops \
--with-pdftops=pdftops \
--mandir=/usr/share/man \
--enable-threads \
--enable-ssl \
--enable-gnutls=no \
--infodir=/usr/share/info
make
make BUILDROOT=$PKG install-data install-exec
# Appartient à libcups
rm -f $PKG/usr/bin/cups-config
# Startup Script
cd ../$scripts-$scriptsversion
make DESTDIR=$PKG install-$name
sed -i 's|^Exec=htmlview http://localhost:631/|Exec=xdg-open http://localhost:631/|g' \
$PKG/usr/share/applications/cups.desktop
install -m754 ../cups $PKG/etc/rc.d/init.d/
chmod 755 $PKG/var/spool
chmod 755 $PKG/etc
}
|