Date: Fri, 22 Oct 2010 00:54:02 GMT From: Benjamin Lee <ben@b1c1l1.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/151635: dns/bind97 binary package does not install symlinks in /var/named Message-ID: <201010220054.o9M0s2Pm027479@www.freebsd.org> Resent-Message-ID: <201010220100.o9M10LBs067468@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010220054.o9M0s2Pm027479>