1
0
forked from ports/opt
opt/cups/Pkgfile
2005-11-16 17:20:24 +00:00

32 lines
945 B
Plaintext

# Description: CUPS - Common UNIX Printing System
# URL: http://www.cups.org
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
# Depends on: openssl
name=cups
version=1.1.23
release=2
source=(ftp://ftp3.easysw.com/pub/cups/$version/$name-$version-source.tar.bz2 \
cups)
build () {
cd $name-$version
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-docdir=/usr/share/cups/doc \
--with-logdir=/var/log/cups \
--with-cups-user=daemon \
--with-cups-group=daemon \
--enable-ssl=yes \
--enable-pam=no
make
make BUILDROOT=$PKG install
rm -r $PKG/usr/man/{fr,cat?,es}
rm -r $PKG/etc/rc.d/*
rm -r $PKG/usr/share/cups/{doc/*.pdf,{doc,templates}/{fr,de,es,be}}
find $PKG/usr/share/locale/* -type d ! -name "C" ! -name "en" | xargs rm -r
chmod 0755 $PKG/{var/spool,etc}
install -m 755 ../cups $PKG/etc/rc.d
}