From melanhit@gmail.com  Sun May 27 10:34:14 2012
Return-Path: <melanhit@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 5C31D106564A
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 May 2012 10:34:14 +0000 (UTC)
	(envelope-from melanhit@gmail.com)
Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50])
	by mx1.freebsd.org (Postfix) with ESMTP id E161D8FC14
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 May 2012 10:34:13 +0000 (UTC)
Received: by wgbds11 with SMTP id ds11so2134175wgb.31
        for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 May 2012 03:34:12 -0700 (PDT)
Received: by 10.216.131.150 with SMTP id m22mr2341239wei.111.1338114852837;
        Sun, 27 May 2012 03:34:12 -0700 (PDT)
Received: from amazon.troya.bsd ([46.211.123.115])
        by mx.google.com with ESMTPS id du4sm19402661wib.10.2012.05.27.03.34.10
        (version=SSLv3 cipher=OTHER);
        Sun, 27 May 2012 03:34:12 -0700 (PDT)
Received: by amazon.troya.bsd (sSMTP sendmail emulation); Sun, 27 May 2012 13:34:06 +0300
Message-Id: <4fc20324.c460b40a.6ceb.3de4@mx.google.com>
Date: Sun, 27 May 2012 13:34:06 +0300
From: "Andrew Romero" <melanhit@gmail.com>
Reply-To: Andrew Romero <melanhit@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Move lynx conf files form ${LOCALBASE}/etc to ${LOCALBASE}/lynx/etc
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         168366
>Category:       ports
>Synopsis:       port www/lynx Move lynx conf files form ${LOCALBASE}/etc to ${LOCALBASE}/lynx/etc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 27 10:40:01 UTC 2012
>Closed-Date:    Tue Jun 12 14:46:29 UTC 2012
>Last-Modified:  Tue Jun 12 14:46:29 UTC 2012
>Originator:     Andrew Romero
>Release:        FreeBSD 9.0-STABLE i386
>Organization:
Troya BSD
>Environment:
System: FreeBSD amazon.troya.bsd 9.0-STABLE FreeBSD 9.0-STABLE #0: Sat May 26 17:35:45 EEST 2012 root@troya.bsd:/usr/obj/usr/src/sys/TROYA i386

>Description:
	Change default place of lynx config files to ${LOCALBASE}/lynx/etc

>How-To-Repeat:

>Fix:


--- patch-Makefile begins here ---
--- Makefile.orig	2012-05-23 12:20:22.000000000 +0300
+++ Makefile	2012-05-23 12:21:17.000000000 +0300
@@ -21,7 +21,7 @@
 USE_OPENSSL=	yes
 WRKSRC=		${WRKDIR}/${PORTNAME}2-8-7
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS+=--with-zlib --libdir="${L_LIB}" \
+CONFIGURE_ARGS+=--with-zlib --libdir="${L_LIB}" --sysconfdir="${L_LIB}" \
 		--enable-nsl-fork --enable-persistent-cookies \
 		--enable-nested-tables --enable-gzip-help \
 		--with-screen=ncursesw
@@ -73,7 +73,7 @@
 MAKEFILE=	makefile
 MAN1=		lynx.1
 
-L_LIB=		${PREFIX}/etc
+L_LIB=		${PREFIX}/etc/lynx
 
 SUB_FILES=	pkg-message
 
--- patch-Makefile ends here ---

--- patch-pkg-plist begins here ---
--- pkg-plist.orig	2012-05-23 12:21:34.000000000 +0300
+++ pkg-plist	2012-05-23 12:23:53.000000000 +0300
@@ -1,10 +1,11 @@
 bin/lynx
-@unexec if cmp -s %D/etc/lynx.cfg %D/etc/lynx.cfg.sample; then rm -f %D/etc/lynx.cfg; fi
-etc/lynx.cfg.sample
+@unexec if cmp -s %D/etc/lynx/lynx.cfg %D/etc/lynx/lynx.cfg.sample; then rm -f %D/etc/lynx/lynx.cfg; fi
+etc/lynx/lynx.cfg.sample
 @exec if [ ! -f %B/lynx.cfg ]; then cp -p %D/%F %B/lynx.cfg; fi
-@unexec if cmp -s %D/etc/lynx.lss %D/etc/lynx.lss.sample; then rm -f %D/etc/lynx.lss; fi
-etc/lynx.lss.sample
+@unexec if cmp -s %D/etc/lynx/lynx.lss %D/etc/lynx/lynx.lss.sample; then rm -f %D/etc/lynx/lynx.lss; fi
+etc/lynx/lynx.lss.sample
 @exec if [ ! -f %B/lynx.lss ]; then cp -p %D/%F %B/lynx.lss; fi
+@dirrmtry etc/lynx
 @exec mkdir -p %D/%%PORTDOCS%%/share/lynx_help
 %%PORTDOCS%%%%DOCSDIR%%/CHANGES
 %%PORTDOCS%%%%DOCSDIR%%/COPYHEADER
--- patch-pkg-plist ends here ---


>Release-Note:
>Audit-Trail:
Class-Changed-From-To: update->change-request 
Class-Changed-By: scheidell 
Class-Changed-When: Sun May 27 13:05:53 UTC 2012 
Class-Changed-Why:  
Class of 'update' not correct. 
Change synopsys to www/lynx so that maintainer is notified. 
Note to submitter: 
you have not stated why you want lynx conf files changed to add a subdirectory. 
Is there a bug? (so, class should be sw-bug), or just something you want changed? 
This 'fix' is not upward compatible and can cause problems with existing users. 
Note, and a fyi, current MACRO has ETCDIR set for /usr/local/etc/lynx 
'make -C /usr/ports/www/lynx -V ETCDIR 

and, plist sub already has %% equivlent. 
make -V PLIST_SUB 
NLS='' OSREL=9.0 PREFIX=%D LOCALBASE=/usr/local PORTDOCS="" PORTEXAMPLES="" PORTDATA="" LIB32DIR=lib XAWVER=8  
PERL_VERSION=5.14.2  PERL_VER=5.14.2  PERL_ARCH=mach  SITE_PERL=lib/perl5/site_perl/5.14.2 DOCSDIR="share/doc/lynx"   
EXAMPLESDIR="share/examples/lynx"  DATADIR="share/lynx"  WWWDIR="www/lynx"  ETCDIR="etc/lynx" 

Suggest you create a patch that is upward compatible with existing installs (keeps conf in ../etc) but allows YOU and only YOU  
to change it to etc/lynx. 

If you have questions on this, you should join and send an email to the mailing list freebsd-ports 


http://www.freebsd.org/cgi/query-pr.cgi?pr=168366 
State-Changed-From-To: open->closed 
State-Changed-By: scheidell 
State-Changed-When: Tue Jun 12 14:46:28 UTC 2012 
State-Changed-Why:  
Feedback timout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=168366 
>Unformatted:
