ports/115307: s/TARGETDIR/PREFIX

Michael Nottebrock lofi at lofi.dyndns.org
Wed Aug 8 13:20:02 UTC 2007


>Number:         115307
>Category:       ports
>Synopsis:       s/TARGETDIR/PREFIX
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 08 13:20:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Michael Nottebrock
>Release:        FreeBSD 6.2-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD lofi.dyndns.org 6.2-RELEASE-p2 FreeBSD 6.2-RELEASE-p2 #8: Tue Mar 6 13:58:27 CET 2007 root at lofi.dyndns.org:/usr/obj/usr/src/sys/LOFI.4BSD i386


	
>Description:
	The jabberd Makefile uses an undefined variable TARGETDIR. As a result
	JABBER_ETCDIR ends up being /etc/jabberd (probably not intended) and
	USE_LDCONFIG ends up being /lib/jabberd (wrong unless PREFIX is /).
	
	The attached patch changes TARGETDIR to PREFIX.
>How-To-Repeat:
	
>Fix:

	

--- jabberd.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net-im/jabberd/Makefile,v
retrieving revision 1.43
diff -u -r1.43 Makefile
--- Makefile	2 Aug 2007 08:34:42 -0000	1.43
+++ Makefile	8 Aug 2007 10:25:12 -0000
@@ -32,7 +32,7 @@
 USE_OPENSSL=	yes
 USE_ICONV=	yes
 USE_RC_SUBR=	jabberd
-USE_LDCONFIG=	${TARGETDIR}/lib/jabberd
+USE_LDCONFIG=	${PREFIX}/lib/jabberd
 CONFIGURE_ARGS+=	--localstatedir=/var \
 		--sysconfdir=${PREFIX}/etc/jabberd \
 		--enable-ssl --enable-mio=poll \
@@ -44,7 +44,7 @@
 JABBER_UID=	93
 JABBER_GROUP=	${JABBER_USER}
 JABBER_GID=	${JABBER_UID}
-JABBER_ETCDIR=	"${TARGETDIR}/etc/jabberd"
+JABBER_ETCDIR=	"${PREFIX}/etc/jabberd"
 JABBER_RUNDIR=	"/var/jabberd"
 
 SUB_LIST+=	JABBER_USER=${JABBER_USER} JABBER_UID=${JABBER_UID} \
--- jabberd.diff ends here ---


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



More information about the freebsd-ports-bugs mailing list