ports/93032: LPRng uses incorrect paths to config files when compiled with PORT_REPLACES_BASE_LPR=yes
Dmitry Kazarov
kazarov at mcm.ru
Wed Feb 8 12:20:07 UTC 2006
>Number: 93032
>Category: ports
>Synopsis: LPRng uses incorrect paths to config files when compiled with PORT_REPLACES_BASE_LPR=yes
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Feb 08 12:20:06 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Dmitry Kazarov
>Release: FreeBSD 6.0
>Organization:
Multicom Ltd, Moscow
>Environment:
FreeBSD CE.multicom.ru 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #1: Thu Feb 2 17:20:15 MSK 2006 root at CE.multicom.ru:/var/tmp/obj/usr/src/sys/CE i386
>Description:
When PORT_REPLACES_BASE_LPR=yes is defined ${PREFIX} set to /usr
and LPRng commands expect config file to be /usr/etc/lpd.conf due to
these lines in /usr/ports/sysutils/LPRng/Makefile
--with-lpd_conf_path=${PREFIX}/etc/lpd.conf \
--with-lpd_perms_path=${PREFIX}/etc/lpd.perms \
Workaround could be a softlink of /etc to /usr/etc.
>How-To-Repeat:
>Fix:
--- Makefile.orig Wed Feb 1 11:52:10 2006
+++ Makefile Wed Feb 8 13:40:34 2006
@@ -35,8 +35,8 @@
--with-sbindir=${PREFIX}/sbin \
--with-filterdir=${PREFIX}/libexec/filters \
--with-filter_path="${PREFIX}/bin:/bin:/usr/bin:${PREFIX}/sbin:/sbin:/usr/sbin" \
- --with-lpd_conf_path=${PREFIX}/etc/lpd.conf \
- --with-lpd_perms_path=${PREFIX}/etc/lpd.perms \
+ --with-lpd_conf_path=${SYSCONFDIR}/lpd.conf \
+ --with-lpd_perms_path=${SYSCONFDIR}/lpd.perms \
--with-printcap_path=/etc/printcap \
--with-ld_library_path="${PREFIX}/lib:/lib:/usr/lib:/${LOCALBASE}/lib" \
--enable-gdbm=${LOCALBASE}
@@ -90,8 +90,8 @@
@${INSTALL_DATA} ${WRKSRC}/lpd.conf ${SYSCONFDIR}/lpd.conf.sample
@${INSTALL_DATA} ${WRKSRC}/lpd.perms ${SYSCONFDIR}/lpd.perms.sample
@${INSTALL_DATA} ${WRKSRC}/printcap ${SYSCONFDIR}/printcap.sample
- @${MKDIR} ${PREFIX}/etc/rc.d
- @${INSTALL_DATA} ${WRKSRC}/init.freebsd ${PREFIX}/etc/rc.d/lprng.sh
+ @${MKDIR} /usr/local/etc/rc.d
+ @${INSTALL_DATA} ${WRKSRC}/init.freebsd /usr/local/etc/rc.d/lprng.sh
.if !defined(NOPORTDOCS)
@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0555 ${DOCSDIR}
@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0555 ${DOCSDIR}/Reference
This patch also places startup script to /usr/local/etc/rc.d - since /usr/sbin/mergemaster warns about "stale" file lprng.sh in /etc/rc.d
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list