mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 08:03:51 +02:00
parent
8ebbfdfa21
commit
bece58e55a
2 changed files with 15 additions and 44 deletions
|
@ -1,11 +0,0 @@
|
||||||
--- a/config-scripts/cups-ssl.m4.no-export-ssllibs 2011-05-11 02:52:08.000000000 +0200
|
|
||||||
+++ b/config-scripts/cups-ssl.m4 2011-05-23 17:47:27.000000000 +0200
|
|
||||||
@@ -180,7 +180,7 @@
|
|
||||||
AC_SUBST(SSLFLAGS)
|
|
||||||
AC_SUBST(SSLLIBS)
|
|
||||||
|
|
||||||
-EXPORT_SSLLIBS="$SSLLIBS"
|
|
||||||
+EXPORT_SSLLIBS=""
|
|
||||||
AC_SUBST(EXPORT_SSLLIBS)
|
|
||||||
|
|
||||||
dnl
|
|
|
@ -1,22 +1,20 @@
|
||||||
# Template file for 'cups'
|
# Template file for 'cups'
|
||||||
pkgname=cups
|
pkgname=cups
|
||||||
version=2.3.3op2
|
version=2.4.1
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
make_install_args="BUILDROOT=${DESTDIR}"
|
make_install_args="BUILDROOT=${DESTDIR}"
|
||||||
hostmakedepends="automake $(vopt_if avahi avahi-libs-devel)
|
hostmakedepends="gnutls-devel pkg-config
|
||||||
gnutls-devel perl pkg-config poppler-utils"
|
$(vopt_if avahi avahi-libs-devel)"
|
||||||
makedepends="acl-devel gnutls-devel libpaper-devel libpng-devel
|
makedepends="acl-devel gnutls-devel libpaper-devel libusb-devel pam-devel
|
||||||
libusb-devel pam-devel poppler-devel tiff-devel
|
zlib-devel $(vopt_if avahi avahi-libs-devel) $(vopt_if gssapi mit-krb5-devel)"
|
||||||
$(vopt_if avahi avahi-libs-devel)
|
|
||||||
$(vopt_if gssapi 'mit-krb5-devel')"
|
|
||||||
depends="xdg-utils"
|
depends="xdg-utils"
|
||||||
short_desc="Common Unix Printing System"
|
short_desc="Common Unix Printing System"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
homepage="https://github.com/OpenPrinting/cups"
|
homepage="https://github.com/OpenPrinting/cups"
|
||||||
distfiles="https://github.com/OpenPrinting/cups/releases/download/v${version}/cups-${version}-source.tar.gz"
|
distfiles="https://github.com/OpenPrinting/cups/releases/download/v${version}/cups-${version}-source.tar.gz"
|
||||||
checksum=deb3575bbe79c0ae963402787f265bfcf8d804a71fc2c94318a74efec86f96df
|
checksum=c7339f75f8d4f2dec50c673341a45fc06b6885bb6d4366d6bf59a4e6c10ae178
|
||||||
|
|
||||||
conf_files="/etc/pam.d/cups /etc/cups/*.conf /etc/xinetd.d/cups-lpd"
|
conf_files="/etc/pam.d/cups /etc/cups/*.conf /etc/xinetd.d/cups-lpd"
|
||||||
make_dirs="
|
make_dirs="
|
||||||
|
@ -34,40 +32,24 @@ system_groups=lpadmin
|
||||||
cups_pgroup=lp
|
cups_pgroup=lp
|
||||||
cups_homedir=/var/spool/cups
|
cups_homedir=/var/spool/cups
|
||||||
|
|
||||||
pre_configure() {
|
|
||||||
aclocal -I config-scripts
|
|
||||||
autoconf -I config-scripts
|
|
||||||
}
|
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
./configure ${configure_args} --sbindir=/usr/bin --libdir=/usr/lib \
|
./configure ${configure_args} --sbindir=/usr/bin --libdir=/usr/lib \
|
||||||
--enable-acl --enable-dbus --enable-raw-printing \
|
--enable-acl --with-logdir=/var/log/cups \
|
||||||
--enable-threads --with-logdir=/var/log/cups \
|
--docdir=/usr/share/cups/doc --with-rundir=/run/cups \
|
||||||
--with-docdir=/usr/share/cups/doc --with-rundir=/run/cups \
|
--with-cups-user=cups --with-cups-group=lp \
|
||||||
--with-cups-user=cups --with-cups-group=lp --with-system-groups="lpadmin sys root" --enable-relro \
|
--with-system-groups="lpadmin sys root" --enable-relro \
|
||||||
--enable-libpaper --enable-pam --enable-ssl \
|
--enable-libpaper --with-menudir=/usr/share/applications \
|
||||||
--with-menudir=/usr/share/applications --with-xinetd=/etc/xinetd.d \
|
--with-xinetd=/etc/xinetd.d --with-optim="${CFLAGS}" \
|
||||||
--with-optim="${CFLAGS}" --disable-systemd --disable-launchd \
|
--with-rcdir=no \
|
||||||
--without-rcdir --without-java --without-perl --without-php \
|
$(vopt_if avahi '--with-dnssd=avahi') $(vopt_enable gssapi)
|
||||||
--without-python \
|
|
||||||
$(vopt_enable avahi) $(vopt_enable gssapi)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# compress some driver files, adopted from Fedora
|
|
||||||
find ${DESTDIR}/usr/share/cups/model -name "*.ppd"|xargs gzip -n9f
|
|
||||||
# install some more configuration files that will get filled by cupsd
|
# install some more configuration files that will get filled by cupsd
|
||||||
for f in printers classes client subscriptions; do
|
for f in printers classes client subscriptions; do
|
||||||
touch ${DESTDIR}/etc/cups/${f}.conf
|
touch ${DESTDIR}/etc/cups/${f}.conf
|
||||||
done
|
done
|
||||||
|
|
||||||
# Remove files provided by cups-filters.
|
|
||||||
rm -f ${DESTDIR}/usr/share/cups/banners/*
|
|
||||||
rm -f ${DESTDIR}/usr/share/cups/data/testprint
|
|
||||||
# comment out all conversion rules which use any of the removed filters
|
|
||||||
perl -p -i -e 's:^(.*\s+bannertops\s*)$:#\1:' \
|
|
||||||
${DESTDIR}/usr/share/cups/mime/mime.convs
|
|
||||||
|
|
||||||
# remove unnecessary PageLogFormat entry
|
# remove unnecessary PageLogFormat entry
|
||||||
vsed -i -e 's:PageLogFormat:#PageLogFormat:' ${DESTDIR}/etc/cups/cupsd.conf*
|
vsed -i -e 's:PageLogFormat:#PageLogFormat:' ${DESTDIR}/etc/cups/cupsd.conf*
|
||||||
|
|
||||||
|
@ -92,7 +74,7 @@ libcups_package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
cups-devel_package() {
|
cups-devel_package() {
|
||||||
depends="zlib-devel libcups>=${version}_${revision}"
|
depends="libcups>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
|
|
Loading…
Add table
Reference in a new issue