Subject: pkg/32026: shells/zsh doesn't respect PKG_SYSCONFDIR
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Geert Hendrickx <ghen@telenet.be>
List: pkgsrc-bugs
Date: 11/09/2005 13:42:00
>Number:         32026
>Category:       pkg
>Synopsis:       shells/zsh doesn't respect PKG_SYSCONFDIR
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 09 13:42:00 +0000 2005
>Originator:     Geert Hendrickx
>Release:        NetBSD 3.0_BETA
>Organization:
>Environment:
System: NetBSD lori.mine.nu 3.0_BETA NetBSD 3.0_BETA (LORI) #0: Sat Oct 8 13:42:03 CEST 2005 geert@lori.mine.nu:/cvs/obj/sys/arch/i386/compile/LORI i386
Architecture: i386
Machine: i386
>Description:
zsh looks for its config files (zshrc, zprofile, zlogin, ...) in /etc instead
of ${PKG_SYSCONFDIR}.  

Its ./configure script has a nice --enable-etcdir flag for this, so we should
set it to ${PKG_SYSCONFDIR}.  
>How-To-Repeat:
>Fix:
Index: Makefile.common
===================================================================
RCS file: /pub/NetBSD-CVS/pkgsrc/shells/zsh/Makefile.common,v
retrieving revision 1.29
diff -u -r1.29 Makefile.common
--- Makefile.common	26 Oct 2005 00:04:54 -0000	1.29
+++ Makefile.common	9 Nov 2005 13:38:04 -0000
@@ -16,6 +16,8 @@
 USE_PKGINSTALL=		yes
 GNU_CONFIGURE=		yes
 
+CONFIGURE_ARGS+=	--enable-etcdir=${PKG_SYSCONFDIR}
+
 USE_MAKEINFO=		yes
 INFO_FILES=		zsh.info
 TEXINFO_REQD=		4.0