1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
25 include $(PKGROOT)/Include
32 PKG_GROUPS = Applications/Printing
33 PKG_URL = http://cups.org/software.php
35 PKG_SUMMARY = The common UNIX printing system.
37 PKG_BUILD_DEPS+= audit-devel autoconf automake avahi-devel cyrus-sasl-devel \
38 gcc-c++ ghostscript gnutls-devel libgcrypt-devel libjpeg-devel libpng-devel \
39 libselinux-devel libtiff-devel openldap-devel pam-devel perl pkg-config \
41 PKG_DEPS += ghostscript
43 define PKG_DESCRIPTION
44 CUPS is the standards-based, open source printing system developed \
45 by Apple Inc. for Mac OS(R) X and other UNIX(R)-like operating systems.
48 PKG_TARBALL = $(THISAPP)-source.tar.bz2
50 PKG_PACKAGES += $(PKG_NAME)-devel $(PKG_NAME)-libs
52 CONFIGURE_OPTIONS += \
54 --localstatedir=/var \
55 --with-log-file-perm=0600 \
63 define STAGE_PREPARE_CMDS
64 cd $(DIR_APP) && aclocal -I config-scripts
65 cd $(DIR_APP) && autoconf -I config-scripts
69 cd $(DIR_APP) && make install BUILDROOT=$(BUILDROOT)
71 # Remove sysvinit scripts
72 rm -vfr $(BUILDROOT)/etc/init.d/cups $(BUILDROOT)/etc/rc*.d
74 -mkdir -pv $(BUILDROOT)/etc/cups
75 cp -vf $(DIR_APP)/conf/cupsd.conf $(BUILDROOT)/etc/cups/
78 -mkdir -pv $(BUILDROOT)/etc/logrotate.d/
79 cp -vf $(DIR_SOURCE)/cups.logrotate $(BUILDROOT)/etc/logrotate.d/cups
82 # This line has to be added at the installation of cups.
83 # File: /lib/udev/rules.d/99-systemd.rules
84 # Line: SUBSYSTEM=="usb", ATTR{serial}=="AL01077498", TAG+="systemd", ENV{SYSTEMD_WANTS}="cups.service"