ports/157157: Fix port: net/iet uses CONF_FILES internally

Chris Rees utisoft at gmail.com
Wed May 18 19:50:11 UTC 2011


>Number:         157157
>Category:       ports
>Synopsis:       Fix port: net/iet uses CONF_FILES internally
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 18 19:50:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Chris Rees
>Release:        
>Organization:
>Environment:
>Description:
As discussed on ports@ and with bapt, new variables CONF_FILES and CONF_DIRS are to be introduced to bsd.port.mk.

This causes problems in some ports, of which this is one.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: Makefile
===================================================================
RCS file: /exports/cvsroot-freebsd/ports/net/iet/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	1 Apr 2011 17:34:44 -0000	1.6
+++ Makefile	18 May 2011 19:03:18 -0000
@@ -35,8 +35,7 @@
 PLIST_SUB+=	KMODDIR=${KMODDIR}
 MAKE_ENV+=	KMODDIR=${KMODDIR} DATADIR=${DATADIR} SYSDIR="${SRC_BASE}/sys"
 
-CONFDIR=	${PREFIX}/etc/iet
-CONF_FILES=	ietd.conf initiators.allow initiators.deny targets.allow
+IET_CONF_FILES=	ietd.conf initiators.allow initiators.deny targets.allow
 
 .if !exists(${SRC_BASE}/sys/Makefile)
 IGNORE=		requires kernel sources to build
@@ -49,11 +48,11 @@
 .endif
 
 pre-install:
-	${MKDIR} ${DATADIR} ${KMODDIR} ${CONFDIR}
+	${MKDIR} ${DATADIR} ${KMODDIR} ${ETCDIR}
 
 post-install:
-.for f in ${CONF_FILES}
-	@[ -f ${CONFDIR}/${f} ] || ${CP} ${DATADIR}/${f} ${CONFDIR}/
+.for f in ${IET_CONF_FILES}
+	@[ -f ${ETCDIR}/${f} ] || ${CP} ${DATADIR}/${f} ${ETCDIR}/
 .endfor
 
 .include <bsd.port.post.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list