Contents of /smage/trunk/core/lprng/lprng-3.8.28-r5.smage2
Parent Directory | Revision Log
Revision 159 -
(show annotations)
(download)
Mon Apr 26 19:51:44 2010 UTC (14 years, 5 months ago) by niro
File size: 2288 byte(s)
Mon Apr 26 19:51:44 2010 UTC (14 years, 5 months ago) by niro
File size: 2288 byte(s)
auto added: ver 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 | MCORE_ONLY_KEEP="etc usr/bin usr/sbin usr/$(mlibdir)/filters usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*" |
19 | sminclude mtools mcore-split |
20 | |
21 | # lprng.rc cvs revision |
22 | CVS_REV=1.2 |
23 | |
24 | SRC_URI=( |
25 | http://www.lprng.com/DISTRIB/LPRng/${SRCFILE} |
26 | # ftp://ftp.lprng.com/pub/LPRng/LPRng/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/lprng.rc-${CVS_REV} |
29 | mirror://${PNAME}/printcap |
30 | mirror://${PNAME}/${PNAME}-${PVER}-make.patch |
31 | ) |
32 | |
33 | # fake |
34 | UP2DATE="echo ${PVER}" |
35 | |
36 | src_prepare() |
37 | { |
38 | # warn about /proc in chroot environments |
39 | [[ ! -d /proc/sys ]] && die "Please make sure /proc is mounted in chroot-environments." |
40 | |
41 | munpack ${SRCFILE} || die |
42 | cd ${SRCDIR} |
43 | |
44 | # fixes a compilation issue with make |
45 | mpatch ${PNAME}-${PVER}-make.patch || die |
46 | } |
47 | |
48 | src_compile() |
49 | { |
50 | cd ${SRCDIR} |
51 | |
52 | mconfigure \ |
53 | --libexecdir=/usr/$(mlibdir)/lprng \ |
54 | --sysconfdir=/etc/lprng \ |
55 | --with-lpd_conf_path=/etc/lprng/lpd.conf \ |
56 | --with-lpd_perms_path=/etc/lprng/lpd.perms \ |
57 | --with-userid=lp \ |
58 | --with-groupid=lp \ |
59 | --enable-shared \ |
60 | --disable-kerberos \ |
61 | --disable-ssl \ |
62 | --disable-setuid \ |
63 | --disable-strip \ |
64 | --disable-werror \ |
65 | || die |
66 | |
67 | mmake -j1 || die |
68 | } |
69 | |
70 | mcore_generic_src_install() |
71 | { |
72 | cd ${SRCDIR} |
73 | mmake DESTDIR=${BINDIR} POSTINSTALL=NO \ |
74 | gnulocaledir=${BINDIR}/usr/share/locale install || die |
75 | |
76 | # install our initscript |
77 | minstallrc lprng.rc-${CVS_REV} lprng || die |
78 | |
79 | # ship some config files |
80 | minstallfile lpd.conf /etc/lprng || die |
81 | minstallfile lpd.perms /etc/lprng || die |
82 | minstallfile -s printcap /etc/lprng || die |
83 | mlink lprng/printcap /etc/printcap || die |
84 | |
85 | # install spooling directories with the right permissions |
86 | minstalldir /var/spool/lpd || die |
87 | minstalldir /var/spool/lpd/lp || die |
88 | mchown lp:lp /var/spool/lpd/lp || die |
89 | mchmod 0700 /var/spool/lpd/lp || die |
90 | |
91 | # install missing docs |
92 | minstalldocs ChangeLog CHANGES CONTRIBUTORS COPYRIGHT LICENSE README TODO || die |
93 | } |
94 | |
95 | preinstall() |
96 | { |
97 | ${MLIBDIR}/mgroupadd -o "-g 9" lp |
98 | ${MLIBDIR}/museradd -o "-u 9 -g lp -d /var/spool/lpd -s /bin/false" lp |
99 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |