# $Id$ PNAME="lprng" PVER="3.8.28" PBUILD="r5" PCATEGORIE="net-print" STATE="unstable" DESCRIPTION="LPRng is an enhanced implementation of the Berkeley LPR print spooler." HOMEPAGE="http://www.lprng.com/" DEPEND=">= virtual/glibc" SRCFILE="LPRng-${PVER}.tgz" SRCDIR="${BUILDDIR}/LPRng-${PVER}" MCORE_ONLY_KEEP="etc usr/bin usr/sbin usr/$(mlibdir)/filters usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*" sminclude mtools mcore-split # lprng.rc cvs revision CVS_REV=1.2 SRC_URI=( http://www.lprng.com/DISTRIB/LPRng/${SRCFILE} # ftp://ftp.lprng.com/pub/LPRng/LPRng/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/lprng.rc-${CVS_REV} mirror://${PNAME}/printcap mirror://${PNAME}/${PNAME}-${PVER}-make.patch ) # fake UP2DATE="echo ${PVER}" src_prepare() { # warn about /proc in chroot environments [[ ! -d /proc/sys ]] && die "Please make sure /proc is mounted in chroot-environments." munpack ${SRCFILE} || die cd ${SRCDIR} # fixes a compilation issue with make mpatch ${PNAME}-${PVER}-make.patch || die } src_compile() { cd ${SRCDIR} mconfigure \ --libexecdir=/usr/$(mlibdir)/lprng \ --sysconfdir=/etc/lprng \ --with-lpd_conf_path=/etc/lprng/lpd.conf \ --with-lpd_perms_path=/etc/lprng/lpd.perms \ --with-userid=lp \ --with-groupid=lp \ --enable-shared \ --disable-kerberos \ --disable-ssl \ --disable-setuid \ --disable-strip \ --disable-werror \ || die mmake -j1 || die } mcore_generic_src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} POSTINSTALL=NO \ gnulocaledir=${BINDIR}/usr/share/locale install || die # install our initscript minstallrc lprng.rc-${CVS_REV} lprng || die # ship some config files minstallfile lpd.conf /etc/lprng || die minstallfile lpd.perms /etc/lprng || die minstallfile -s printcap /etc/lprng || die mlink lprng/printcap /etc/printcap || die # install spooling directories with the right permissions minstalldir /var/spool/lpd || die minstalldir /var/spool/lpd/lp || die mchown lp:lp /var/spool/lpd/lp || die mchmod 0700 /var/spool/lpd/lp || die # install missing docs minstalldocs ChangeLog CHANGES CONTRIBUTORS COPYRIGHT LICENSE README TODO || die } preinstall() { ${MLIBDIR}/mgroupadd -o "-g 9" lp ${MLIBDIR}/museradd -o "-u 9 -g lp -d /var/spool/lpd -s /bin/false" lp }