Magellan Linux

Annotation of /branches/magellan-0_10_0/core/cups/cups-1.3.10-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1298 - (hide annotations) (download)
Tue Apr 28 17:21:28 2009 UTC (15 years, 1 month ago) by niro
Original Path: trunk/core/cups/cups-1.3.10-r1.smage2
File size: 3654 byte(s)
auto added: ver bump to 1.3.10-r1
1 niro 1298 # $Id$
2    
3     PNAME="cups"
4     PVER="1.3.10"
5     PBUILD="r1"
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.35
16     >= media-libs/libtiff-3.8
17     >= media-libs/libjpeg-6b
18     >= sys-libs/pam-0.99
19     >= sys-apps/dbus-1.2
20     >= app-text/libpaper-1.1.23
21     >= app-text/poppler-0.10
22     >= net-dns/avahi-0.6.25"
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}-1.3.7-backend-https.patch
39     mirror://${PNAME}/${PNAME}-1.3.7-CVE-2008-1722.patch
40     )
41    
42     UP2DATE="updatecmd ${HOMEPAGE} | grep 'Download CUPS' | grep v[0-9] | sed 's/.*v\([0-9].*\)\ (.*/\1/'"
43    
44     src_prepare()
45     {
46     munpack ${SRCFILE} || die
47    
48     # fix hardcoded /usr/lib in cups-directories.m4 to respect 64bit arches
49     mpatch ${PNAME}-1.2.11-multilib.patch || die
50    
51     # create a missing symlink to allow https printing via IPP, bug #217293
52     mpatch ${PNAME}-1.3.7-backend-https.patch || die
53    
54     # security fix for CVE-2008-1722
55     mpatch ${PNAME}-1.3.8-CVE-2008-1722.patch || die
56    
57     # non standard configure
58     all-abis aclocal -I config-scripts || die
59     all-abis autoconf || die
60     }
61    
62     src_compile()
63     {
64     cd ${SRCDIR}
65    
66     mconfigure \
67     --localstatedir=/var \
68     --with-docdir=/usr/share/cups/html \
69     --with-cups-user=lp \
70     --with-cups-group=lp \
71     --with-system-groups=lpadmin \
72     --enable-threads \
73     --enable-pam \
74     --enable-nls \
75     --enable-dbus \
76     --enable-png \
77     --enable-jpeg \
78     --enable-tiff \
79     --enable-libpaper \
80     --enable-dnssd \
81     --disable-slp \
82     --disable-php \
83     --disable-ldap \
84     || die
85    
86     mmake || die
87     }
88    
89     src_install()
90     {
91     cd ${SRCDIR}
92     mmake BUILDROOT=${BINDIR} install || die
93    
94     # gzip *all* ppd's not just few
95     find ${BINDIR}/usr/share/cups/model -name "*.ppd" | xargs gzip -n9f || die
96    
97     # remove 32bit serverbins and co on 64bit multilib systems
98     if [[ ${ARCH} = x86_64 ]]
99     then
100     [[ -d ${BINDIR}/usr/lib/cups ]] && ( rm -rf ${BINDIR}/usr/lib/cups || die; )
101     fi
102    
103     # remove possible installed backup configs
104     find ${BINDIR}/etc -name "*.O" | xargs rm -f || die
105     find ${BINDIR}/etc -name "*.N" | xargs rm -f || die
106    
107     # removing cups created init-scripts
108     rm -rf ${BINDIR}/etc/rc*.d || die
109    
110     # remove /etc/init.d too
111     rm -rf ${BINDIR}/etc/init.d || die
112    
113     # install our initscript
114     minstallrc cups.rc cups || die
115    
116     # install logrotate config
117     minstalllog cups.logrotate cups || die
118    
119     # ship some config files to keep many apps happy (javapps nxnode etc)
120     memptyfile /etc/cups/printers.conf || die
121     memptyfile /etc/cups/classes.conf || die
122     memptyfile /etc/cups/client.conf || die
123     memptyfile /etc/cups/subscriptions.conf || die
124    
125     # prevents uninstall from prior versions
126     mkeepdir /usr/share/cups/profiles || die
127     mkeepdir /usr/$(mlibdir)/cups/driver || die
128     mkeepdir /var/log/cups || die
129     mkeepdir /var/run/cups/certs || die
130     mkeepdir /var/spool/cups || die
131     mkeepdir /var/spool/cups/tmp || die
132    
133     # create a rss feed directory
134     mkeepdir /var/cache/cups/rss || die
135     mchown lp.lp /var/cache/cups/rss || die
136     mchmod 0740 /var/cache/cups/rss || die
137    
138     # install missing docs
139     minstalldocs CHANGES* CREDITS* LICENSE* README* || die
140     }
141    
142     preinstall()
143     {
144     ${MLIBDIR}/mgroupadd -o "-g 106" lpadmin
145     ${MLIBDIR}/mgroupadd -o "-g 9" lp
146     ${MLIBDIR}/museradd -o "-u 9 -g lp -d /var/spool/lpd -s /bin/false" lp
147     }

Properties

Name Value
svn:keywords Id