2006-02-23 15:26:10 +00:00
|
|
|
# Description: CUPS - Common UNIX Printing System
|
|
|
|
# URL: http://www.cups.org
|
2011-02-02 13:44:37 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2015-06-27 17:49:37 +02:00
|
|
|
# Depends on: acl libusb zlib
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=cups
|
2015-08-04 12:09:18 +02:00
|
|
|
version=2.0.4
|
|
|
|
release=1
|
2013-05-18 10:45:04 +02:00
|
|
|
source=(http://www.cups.org/software/$version/$name-$version-source.tar.bz2
|
2015-08-04 12:09:18 +02:00
|
|
|
cups)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-$version
|
2009-09-17 13:40:05 +02:00
|
|
|
|
2015-08-04 20:37:30 +02:00
|
|
|
CC=cc CXX=c++ \
|
2006-02-23 15:26:10 +00:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
2011-08-03 11:13:39 +02:00
|
|
|
--libdir=/usr/lib \
|
2007-07-13 11:17:09 +02:00
|
|
|
--mandir=/usr/man \
|
2006-02-23 15:26:10 +00:00
|
|
|
--localstatedir=/var \
|
2006-05-18 16:48:04 +00:00
|
|
|
--with-docdir=/usr/share/cups/doc \
|
|
|
|
--with-logdir=/var/log/cups \
|
|
|
|
--with-cups-user=daemon \
|
|
|
|
--with-cups-group=lp \
|
2006-05-14 12:07:48 +00:00
|
|
|
--with-languages="" \
|
2006-11-20 15:57:50 +01:00
|
|
|
--without-{java,perl,php,python} \
|
2014-10-20 18:20:21 +02:00
|
|
|
--without-rcdir \
|
2010-06-19 10:24:04 +02:00
|
|
|
--with-optim="$CFLAGS" \
|
2015-06-27 17:49:37 +02:00
|
|
|
--disable-tcp-wrappers \
|
2011-07-27 10:17:30 +02:00
|
|
|
--enable-acl \
|
2014-12-10 18:06:32 +01:00
|
|
|
--disable-{pam,dbus,avahi,systemd}
|
2006-05-14 12:07:48 +00:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
make
|
2012-10-27 16:09:30 +02:00
|
|
|
make BUILDROOT=$PKG install
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2012-10-27 16:09:30 +02:00
|
|
|
# conflict with cups-filters
|
|
|
|
rm -r $PKG/usr/share/cups/{banners,data}
|
|
|
|
|
|
|
|
# cleanup
|
2014-10-20 18:20:21 +02:00
|
|
|
rm -rf $PKG/usr/share/{applications,icons}
|
2006-10-14 08:56:58 +00:00
|
|
|
chmod 0755 $PKG/var/{cache,spool}
|
2009-09-17 13:40:05 +02:00
|
|
|
chmod -R +w $PKG
|
2012-10-27 16:09:30 +02:00
|
|
|
|
|
|
|
# start script
|
2006-05-18 16:48:04 +00:00
|
|
|
install -D -m 755 $SRC/cups $PKG/etc/rc.d/cups
|
2012-01-15 16:33:02 +01:00
|
|
|
|
|
|
|
# blacklist usblp kernel module
|
|
|
|
install -d $PKG/etc/modprobe.d
|
|
|
|
echo 'blacklist usblp' > $PKG/etc/modprobe.d/cups.conf
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|