Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3469 - (hide annotations) (download)
Wed Oct 21 22:07:42 2009 UTC (14 years, 8 months ago) by niro
File size: 3544 byte(s)
auto added: ver bump to 1.4.1-r1
1 niro 3466 # $Id$
2    
3     PNAME="cups"
4     PVER="1.4.1"
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.40
16     >= media-libs/libtiff-3.8
17     >= media-libs/libjpeg-7
18     >= sys-libs/pam-1.1
19     >= sys-apps/dbus-1.3
20 niro 3469 >= dev-libs/dbus-glib-0.82
21 niro 3466 >= app-text/libpaper-1.1.23
22     >= app-text/poppler-0.12
23     >= net-dns/avahi-0.6.25"
24    
25     SDEPEND=">= sys-dev/automake-4
26     >= sys-dev/autoconf-5"
27    
28     SRCFILE="${PNAME}-${PVER}-source.tar.bz2"
29     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
30    
31     sminclude mbuild mtools multilib
32    
33     SRC_URI=(
34     http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/${PNAME}/${PVER}/${SRCFILE}
35     mirror://${PNAME}/${SRCFILE}
36     mirror://${PNAME}/cups.rc
37     mirror://${PNAME}/cups.logrotate
38     mirror://${PNAME}/${PNAME}-1.2.11-multilib.patch
39 niro 3467 mirror://${PNAME}/${PNAME}-${PVER}-backend-https.patch
40 niro 3466 )
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 niro 3467 mpatch ${PNAME}-${PVER}-backend-https.patch || die
53 niro 3466
54     # non standard configure
55     all-abis aclocal -I config-scripts || die
56     all-abis autoconf || die
57     }
58    
59     src_compile()
60     {
61     cd ${SRCDIR}
62    
63     mconfigure \
64     --localstatedir=/var \
65     --with-docdir=/usr/share/cups/html \
66     --with-cups-user=lp \
67     --with-cups-group=lp \
68     --with-system-groups=lpadmin \
69     --enable-threads \
70     --enable-pam \
71     --enable-nls \
72     --enable-dbus \
73     --enable-png \
74     --enable-jpeg \
75     --enable-tiff \
76     --enable-libpaper \
77     --enable-dnssd \
78     --disable-slp \
79     --disable-php \
80     --disable-ldap \
81     || die
82    
83     mmake || die
84     }
85    
86     src_install()
87     {
88     cd ${SRCDIR}
89     mmake BUILDROOT=${BINDIR} install || die
90    
91     # gzip *all* ppd's not just few
92     find ${BINDIR}/usr/share/cups/model -name "*.ppd" | xargs gzip -n9f || die
93    
94     # remove 32bit serverbins and co on 64bit multilib systems
95     if [[ ${ARCH} = x86_64 ]]
96     then
97     [[ -d ${BINDIR}/usr/lib/cups ]] && ( rm -rf ${BINDIR}/usr/lib/cups || die; )
98     fi
99    
100     # remove possible installed backup configs
101     find ${BINDIR}/etc -name "*.O" | xargs rm -f || die
102     find ${BINDIR}/etc -name "*.N" | xargs rm -f || die
103    
104     # removing cups created init-scripts
105     rm -rf ${BINDIR}/etc/rc*.d || die
106    
107     # remove /etc/init.d too
108     rm -rf ${BINDIR}/etc/init.d || die
109    
110     # install our initscript
111     minstallrc cups.rc cups || die
112    
113     # install logrotate config
114     minstalllog cups.logrotate cups || die
115    
116     # ship some config files to keep many apps happy (javapps nxnode etc)
117     memptyfile /etc/cups/printers.conf || die
118     memptyfile /etc/cups/classes.conf || die
119     memptyfile /etc/cups/client.conf || die
120     memptyfile /etc/cups/subscriptions.conf || die
121    
122     # prevents uninstall from prior versions
123     mkeepdir /usr/share/cups/profiles || die
124     mkeepdir /usr/$(mlibdir)/cups/driver || die
125     mkeepdir /var/log/cups || die
126     mkeepdir /var/run/cups/certs || die
127     mkeepdir /var/spool/cups || die
128     mkeepdir /var/spool/cups/tmp || die
129    
130     # create a rss feed directory
131     mkeepdir /var/cache/cups/rss || die
132     mchown lp.lp /var/cache/cups/rss || die
133     mchmod 0740 /var/cache/cups/rss || die
134    
135     # install missing docs
136     minstalldocs CHANGES* CREDITS* LICENSE* README* || die
137     }
138    
139     preinstall()
140     {
141     ${MLIBDIR}/mgroupadd -o "-g 106" lpadmin
142     ${MLIBDIR}/mgroupadd -o "-g 9" lp
143     ${MLIBDIR}/museradd -o "-u 9 -g lp -d /var/spool/lpd -s /bin/false" lp
144     }

Properties

Name Value
svn:keywords Id