Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1500 - (show annotations) (download)
Wed Dec 30 10:07:13 2009 UTC (14 years, 9 months ago) by niro
File size: 2083 byte(s)
-rev bump to 3.8.28-r5
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 ftp://ftp.lprng.com/pub/LPRng/LPRng/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 mirror://${PNAME}/lprng.rc-${CVS_REV}
27 mirror://${PNAME}/printcap
28 mirror://${PNAME}/${PNAME}-${PVER}-make.patch
29 )
30
31 src_prepare()
32 {
33 # warn about /proc in chroot environments
34 [[ ! -d /proc/sys ]] && die "Please make sure /proc is mounted in chroot-environments."
35
36 munpack ${SRCFILE} || die
37 cd ${SRCDIR}
38
39 # fixes a compilation issue with make
40 mpatch ${PNAME}-${PVER}-make.patch || die
41 }
42
43 src_compile()
44 {
45 cd ${SRCDIR}
46
47 mconfigure \
48 --libexecdir=/usr/$(mlibdir)/lprng \
49 --sysconfdir=/etc/lprng \
50 --with-lpd_conf_path=/etc/lprng/lpd.conf \
51 --with-lpd_perms_path=/etc/lprng/lpd.perms \
52 --with-userid=lp \
53 --with-groupid=lp \
54 --enable-shared \
55 --disable-kerberos \
56 --disable-ssl \
57 --disable-setuid \
58 --disable-strip \
59 --disable-werror \
60 || die
61
62 mmake -j1 || die
63 }
64
65 src_install()
66 {
67 cd ${SRCDIR}
68 mmake DESTDIR=${BINDIR} POSTINSTALL=NO \
69 gnulocaledir=${BINDIR}/usr/share/locale install || die
70
71 # install our initscript
72 minstallrc lprng.rc-${CVS_REV} lprng || die
73
74 # ship some config files
75 minstallfile lpd.conf /etc/lprng || die
76 minstallfile lpd.perms /etc/lprng || die
77 minstallfile -s printcap /etc/lprng || die
78 mlink lprng/printcap /etc/printcap || die
79
80 # install spooling directories with the right permissions
81 minstalldir /var/spool/lpd || die
82 minstalldir /var/spool/lpd/lp || die
83 mchown lp:lp /var/spool/lpd/lp || die
84 mchmod 0700 /var/spool/lpd/lp || die
85
86 # install missing docs
87 minstalldocs ChangeLog CHANGES CONTRIBUTORS COPYRIGHT LICENSE README TODO || die
88 }
89
90 preinstall()
91 {
92 ${MLIBDIR}/mgroupadd -o "-g 9" lp
93 ${MLIBDIR}/museradd -o "-u 9 -g lp -d /var/spool/lpd -s /bin/false" lp
94 }

Properties

Name Value
svn:keywords Id