Contents of /smage/branches/branch_0.9.0/lprng/lprng-3.8.28-r2.smage2
Parent Directory | Revision Log
Revision 4 -
(show annotations)
(download)
Sun Jan 11 00:50:17 2009 UTC (15 years, 8 months ago) by niro
File size: 2042 byte(s)
Sun Jan 11 00:50:17 2009 UTC (15 years, 8 months ago) by niro
File size: 2042 byte(s)
"copied"
1 | # $Header: /alx-cvs/smage-eglibc/lprng/lprng-3.8.28-r2.smage2,v 1.1 2008/06/10 22:28:38 niro Exp $ |
2 | |
3 | PNAME="lprng" |
4 | PVER="3.8.28" |
5 | PBUILD="r2" |
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 | munpack ${SRCFILE} || die |
34 | cd ${SRCDIR} |
35 | |
36 | # fixes a compilation issue with make |
37 | mpatch ${PNAME}-${PVER}-make.patch || die |
38 | } |
39 | |
40 | src_compile() |
41 | { |
42 | cd ${SRCDIR} |
43 | |
44 | mconfigure \ |
45 | --libexecdir=/usr/$(mlibdir)/lprng \ |
46 | --sysconfdir=/etc/lprng \ |
47 | --with-lpd_conf_path=/etc/lprng/lpd.conf \ |
48 | --with-lpd_perms_path=/etc/lprng/lpd.perms \ |
49 | --with-userid=lp \ |
50 | --with-groupid=lp \ |
51 | --enable-shared \ |
52 | --disable-kerberos \ |
53 | --disable-ssl \ |
54 | --disable-setuid \ |
55 | --disable-strip \ |
56 | --disable-werror \ |
57 | || die |
58 | |
59 | mmake -j1 || die |
60 | } |
61 | |
62 | src_install() |
63 | { |
64 | cd ${SRCDIR} |
65 | mmake DESTDIR=${BINDIR} POSTINSTALL=NO \ |
66 | gnulocaledir=${BINDIR}/usr/share/locale install || die |
67 | |
68 | # install our initscript |
69 | minstallrc lprng.rc-${CVS_REV} lprng || die |
70 | |
71 | # ship some config files |
72 | minstallfile lpd.conf /etc/lprng || die |
73 | minstallfile lpd.perms /etc/lprng || die |
74 | minstallfile -s printcap /etc/lprng || die |
75 | mlink lprng/printcap /etc/printcap || die |
76 | |
77 | # install spooling directories with the right permissions |
78 | minstalldir /var/spool/lpd || die |
79 | minstalldir /var/spool/lpd/lp || die |
80 | mchown lp:lp /var/spool/lpd/lp || die |
81 | mchmod 0700 /var/spool/lpd/lp || die |
82 | |
83 | # install missing docs |
84 | minstalldocs ChangeLog CHANGES CONTRIBUTORS COPYRIGHT LICENSE README TODO || die |
85 | } |
86 | |
87 | preinstall() |
88 | { |
89 | ${MLIBDIR}/mgroupadd -o "-g 9" lp |
90 | ${MLIBDIR}/museradd -o "-u 9 -g lp -d /var/spool/lpd -s /bin/false" lp |
91 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |