]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/cups/cups.nm
cups: Add systemd unit file.
[people/ms/ipfire-3.x.git] / pkgs / cups / cups.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
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. #
10 # #
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. #
15 # #
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/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include $(PKGROOT)/Include
26
27 PKG_NAME = cups
28 PKG_VER = 1.4.5
29 PKG_REL = 4
30
31 PKG_MAINTAINER =
32 PKG_GROUPS = Applications/Printing
33 PKG_URL = http://cups.org/software.php
34 PKG_LICENSE = GPLv2+
35 PKG_SUMMARY = The common UNIX printing system.
36
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 \
40 python zlib-devel
41 PKG_DEPS += ghostscript
42
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.
46 endef
47
48 PKG_TARBALL = $(THISAPP)-source.tar.bz2
49
50 PKG_PACKAGES += $(PKG_NAME)-devel $(PKG_NAME)-libs
51
52 CONFIGURE_OPTIONS += \
53 --sysconfdir=/etc \
54 --localstatedir=/var \
55 --with-log-file-perm=0600 \
56 --enable-pie \
57 --enable-relro \
58 --enable-avahi \
59 --enable-lspp \
60 --enable-threads \
61 --enable-gnutls
62
63 define STAGE_PREPARE_CMDS
64 cd $(DIR_APP) && aclocal -I config-scripts
65 cd $(DIR_APP) && autoconf -I config-scripts
66 endef
67
68 define STAGE_INSTALL
69 cd $(DIR_APP) && make install BUILDROOT=$(BUILDROOT)
70
71 # Remove sysvinit scripts
72 rm -vfr $(BUILDROOT)/etc/init.d/cups $(BUILDROOT)/etc/rc*.d
73
74 -mkdir -pv $(BUILDROOT)/etc/cups
75 cp -vf $(DIR_APP)/conf/cupsd.conf $(BUILDROOT)/etc/cups/
76
77 # Logrotate
78 -mkdir -pv $(BUILDROOT)/etc/logrotate.d/
79 cp -vf $(DIR_SOURCE)/cups.logrotate $(BUILDROOT)/etc/logrotate.d/cups
80 endef
81
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"
85