Magellan Linux

Annotation of /trunk/core/cups/cups-1.3.10-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id