Magellan Linux

Contents of /trunk/extras/cups/cups-1.3.7-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 3649 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/cups/cups-1.3.7-r3.smage2,v 1.2 2008/04/20 13:37:52 niro Exp $
2
3 PNAME="cups"
4 PVER="1.3.7"
5 PBUILD="r3"
6
7 PCATEGORIE="net-print"
8 STATE="unstable"
9
10 DESCRIPTION="cups: common unix printing system."
11 HOMEPAGE="http://www.cups.org/"
12
13 DEPEND=">= virtual/glibc
14 >= dev-libs/openssl-0.9.8
15 >= media-libs/libpng-1.2.24
16 >= media-libs/libtiff-3.8
17 >= media-libs/libjpeg-6b
18 >= sys-libs/pam-0.99
19 >= sys-apps/dbus-1.1
20 >= app-text/libpaper-1.1.21
21 >= app-text/poppler-0.6
22 >= net-misc/mdnsresponder-108"
23
24 SDEPEND=">= sys-dev/automake-3
25 >= sys-dev/autoconf-4"
26
27 SRCFILE="${PNAME}-${PVER}-source.tar.bz2"
28 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
29
30 sminclude mbuild mtools multilib
31
32 SRC_URI=(
33 http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/${PNAME}/${PVER}/${SRCFILE}
34 mirror://${PNAME}/${SRCFILE}
35 mirror://${PNAME}/cups.rc
36 mirror://${PNAME}/cups.logrotate
37 mirror://${PNAME}/${PNAME}-1.2.11-multilib.patch
38 mirror://${PNAME}/${PNAME}-${PVER}-backend-https.patch
39 mirror://${PNAME}/${PNAME}-${PVER}-CVE-2008-1722.patch
40 )
41
42 src_prepare()
43 {
44 munpack ${SRCFILE} || die
45
46 # fix hardcoded /usr/lib in cups-directories.m4 to respect 64bit arches
47 mpatch ${PNAME}-1.2.11-multilib.patch || die
48
49 # create a missing symlink to allow https printing via IPP, bug #217293
50 mpatch ${PNAME}-${PVER}-backend-https.patch || die
51
52 # security fix for CVE-2008-1722
53 mpatch ${PNAME}-${PVER}-CVE-2008-1722.patch || die
54
55 # non standard configure
56 all-abis aclocal -I config-scripts || die
57 all-abis autoconf || die
58 }
59
60 src_compile()
61 {
62 cd ${SRCDIR}
63
64 mconfigure \
65 --localstatedir=/var \
66 --with-docdir=/usr/share/cups/html \
67 --with-cups-user=lp \
68 --with-cups-group=lp \
69 --with-system-groups=lpadmin \
70 --enable-threads \
71 --enable-pam \
72 --enable-nls \
73 --enable-dbus \
74 --enable-png \
75 --enable-jpeg \
76 --enable-tiff \
77 --enable-libpaper \
78 --enable-dnssd \
79 --disable-slp \
80 --disable-php \
81 --disable-ldap \
82 || die
83
84 mmake || die
85 }
86
87 src_install()
88 {
89 cd ${SRCDIR}
90 mmake BUILDROOT=${BINDIR} install || die
91
92 # gzip *all* ppd's not just few
93 find ${BINDIR}/usr/share/cups/model -name "*.ppd" | xargs gzip -n9f || die
94
95 # remove 32bit serverbins and co on 64bit multilib systems
96 if [[ ${ARCH} = x86_64 ]]
97 then
98 [[ -d ${BINDIR}/usr/lib/cups ]] && ( rm -rf ${BINDIR}/usr/lib/cups || die; )
99 fi
100
101 # remove possible installed backup configs
102 find ${BINDIR}/etc -name "*.O" | xargs rm -f || die
103 find ${BINDIR}/etc -name "*.N" | xargs rm -f || die
104
105 # removing cups created init-scripts
106 rm -rf ${BINDIR}/etc/rc*.d || die
107
108 # remove /etc/init.d too
109 rm -rf ${BINDIR}/etc/init.d || die
110
111 # install our initscript
112 minstallrc cups.rc cups || die
113
114 # install logrotate config
115 minstalllog cups.logrotate cups || die
116
117 # ship some config files to keep many apps happy (javapps nxnode etc)
118 memptyfile /etc/cups/printers.conf || die
119 memptyfile /etc/cups/classes.conf || die
120 memptyfile /etc/cups/client.conf || die
121 memptyfile /etc/cups/subscriptions.conf || die
122
123 # prevents uninstall from prior versions
124 mkeepdir /usr/share/cups/profiles || die
125 mkeepdir /usr/$(mlibdir)/cups/driver || die
126 mkeepdir /var/log/cups || die
127 mkeepdir /var/run/cups/certs || die
128 mkeepdir /var/spool/cups || die
129 mkeepdir /var/spool/cups/tmp || die
130
131 # create a rss feed directory
132 mkeepdir /var/cache/cups/rss || die
133 mchown lp.lp /var/cache/cups/rss || die
134 mchmod 0740 /var/cache/cups/rss || die
135
136 # install missing docs
137 minstalldocs CHANGES* CREDITS* LICENSE* README* || die
138 }
139
140 preinstall()
141 {
142 ${MLIBDIR}/mgroupadd -o "-g 106" lpadmin
143 ${MLIBDIR}/mgroupadd -o "-g 9" lp
144 ${MLIBDIR}/museradd -o "-u 9 -g lp -d /var/spool/lpd -s /bin/false" lp
145 }

Properties

Name Value
svn:keywords Id