ports/151635: dns/bind97 binary package does not install symlinks in /var/named
Benjamin Lee
ben at b1c1l1.com
Fri Oct 22 01:00:21 UTC 2010
>Number: 151635
>Category: ports
>Synopsis: dns/bind97 binary package does not install symlinks in /var/named
>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: Fri Oct 22 01:00:21 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Benjamin Lee
>Release: 8.1-RELEASE
>Organization:
>Environment:
FreeBSD eclipse.b1c1l1.com 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
When installing the dns/bind97 port using "make install", it creates a set of symlinks in /var/named${PREFIX}/etc:
blee at eclipse ~ $ ls -l /var/named/usr/local/etc
total 0K
lrwxr-xr-x 1 root wheel 22 Oct 21 17:51 named.conf -> /etc/namedb/named.conf
lrwxr-xr-x 1 root wheel 20 Oct 21 17:51 rndc.key -> /etc/namedb/rndc.key
However, these symlinks are created by the "post-install" Makefile target:
.if !defined(WITHOUT_LINKS) && !defined(WITH_REPLACE_BASE)
${MKDIR} /var/named${PREFIX}/etc
.for DIR in ${PREFIX}/etc /var/named${PREFIX}/etc
.for FILE in named.conf rndc.key
${LN} -sf /etc/namedb/${FILE} ${DIR}/${FILE}
.endfor
.endfor
.endif
Therefore, the symlinks are not created when creating a binary package using "make package" and using pkg_add(1).
The dns/bind97 port should provide a pkg-install file so that these symlinks are also created when using binary packages.
>How-To-Repeat:
Create a binary package:
make -C /usr/ports/dns/bind97 package clean
Then use pkg_add(1) to install the binary package.
>Fix:
Add a pkg-install script to the dns/bind97 port that creates the relevant symlinks.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list