Magellan Linux

Contents of /smage/trunk/core/lprng/lprng-3.8.28-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1529 - (show annotations) (download)
Sat Jan 2 11:39:08 2010 UTC (14 years, 5 months ago) by niro
File size: 2131 byte(s)
-fixed SRC_URI
1 # $Id$
2
3 PNAME="lprng"
4 PVER="3.8.28"
5 PBUILD="r5"
6
7 PCATEGORIE="net-print"
8 STATE="unstable"
9
10 DESCRIPTION="LPRng is an enhanced implementation of the Berkeley LPR print spooler."
11 HOMEPAGE="http://www.lprng.com/"
12
13 DEPEND=">= virtual/glibc"
14
15 SRCFILE="LPRng-${PVER}.tgz"
16 SRCDIR="${BUILDDIR}/LPRng-${PVER}"
17
18 sminclude mtools alx
19
20 # lprng.rc cvs revision
21 CVS_REV=1.2
22
23 SRC_URI=(
24 http://www.lprng.com/DISTRIB/LPRng/${SRCFILE}
25 # ftp://ftp.lprng.com/pub/LPRng/LPRng/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 mirror://${PNAME}/lprng.rc-${CVS_REV}
28 mirror://${PNAME}/printcap
29 mirror://${PNAME}/${PNAME}-${PVER}-make.patch
30 )
31
32 src_prepare()
33 {
34 # warn about /proc in chroot environments
35 [[ ! -d /proc/sys ]] && die "Please make sure /proc is mounted in chroot-environments."
36
37 munpack ${SRCFILE} || die
38 cd ${SRCDIR}
39
40 # fixes a compilation issue with make
41 mpatch ${PNAME}-${PVER}-make.patch || die
42 }
43
44 src_compile()
45 {
46 cd ${SRCDIR}
47
48 mconfigure \
49 --libexecdir=/usr/$(mlibdir)/lprng \
50 --sysconfdir=/etc/lprng \
51 --with-lpd_conf_path=/etc/lprng/lpd.conf \
52 --with-lpd_perms_path=/etc/lprng/lpd.perms \
53 --with-userid=lp \
54 --with-groupid=lp \
55 --enable-shared \
56 --disable-kerberos \
57 --disable-ssl \
58 --disable-setuid \
59 --disable-strip \
60 --disable-werror \
61 || die
62
63 mmake -j1 || die
64 }
65
66 src_install()
67 {
68 cd ${SRCDIR}
69 mmake DESTDIR=${BINDIR} POSTINSTALL=NO \
70 gnulocaledir=${BINDIR}/usr/share/locale install || die
71
72 # install our initscript
73 minstallrc lprng.rc-${CVS_REV} lprng || die
74
75 # ship some config files
76 minstallfile lpd.conf /etc/lprng || die
77 minstallfile lpd.perms /etc/lprng || die
78 minstallfile -s printcap /etc/lprng || die
79 mlink lprng/printcap /etc/printcap || die
80
81 # install spooling directories with the right permissions
82 minstalldir /var/spool/lpd || die
83 minstalldir /var/spool/lpd/lp || die
84 mchown lp:lp /var/spool/lpd/lp || die
85 mchmod 0700 /var/spool/lpd/lp || die
86
87 # install missing docs
88 minstalldocs ChangeLog CHANGES CONTRIBUTORS COPYRIGHT LICENSE README TODO || die
89 }
90
91 preinstall()
92 {
93 ${MLIBDIR}/mgroupadd -o "-g 9" lp
94 ${MLIBDIR}/museradd -o "-u 9 -g lp -d /var/spool/lpd -s /bin/false" lp
95 }

Properties

Name Value
svn:keywords Id