Date: Wed, 26 Oct 2011 07:35:15 GMT From: bf <bf@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/162023: [PATCH]x11-toolkits/fltk: avoid creation of preference directories in /etc Message-ID: <201110260735.p9Q7ZFtE064317@red.freebsd.org> Resent-Message-ID: <201110260740.p9Q7e4g5077438@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 162023 >Category: ports >Synopsis: [PATCH]x11-toolkits/fltk: avoid creation of preference directories in /etc >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 26 07:40:03 UTC 2011 >Closed-Date: >Last-Modified: >Originator: bf >Release: 10-CURRENT amd64 >Organization: - >Environment: >Description: fltk 1.3 creates preference directories in /etc at runtime; relocate these to ${PREFIX}/etc and attempt to remove the directories when removing the package >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== RCS file: /home/pcvs/ports/x11-toolkits/fltk/Makefile,v retrieving revision 1.57 diff -u -r1.57 Makefile --- Makefile 24 Oct 2011 13:12:23 -0000 1.57 +++ Makefile 26 Oct 2011 07:18:19 -0000 @@ -7,6 +7,7 @@ PORTNAME= fltk PORTVERSION= 1.3.0 +PORTREVISION= 1 CATEGORIES= x11-toolkits MASTER_SITES= ${MASTER_SITE_EASYSW} MASTER_SITE_SUBDIR= fltk/${PORTVERSION} @@ -35,6 +36,9 @@ post-patch: ${REINPLACE_CMD} -e '30s/test //' ${WRKSRC}/Makefile + prefix="${PREFIX}" ; plength=$$(($${#prefix}+10)) ; \ + ${REINPLACE_CMD} -e "\|/etc/fltk|{s||${PREFIX}&|;s|10|$${plength}|;}" \ + ${WRKSRC}/src/Fl_Preferences.cxx .if !defined(NOPORTDOCS) PORTDOCS= * Index: pkg-plist =================================================================== RCS file: /home/pcvs/ports/x11-toolkits/fltk/pkg-plist,v retrieving revision 1.13 diff -u -r1.13 pkg-plist --- pkg-plist 24 Oct 2011 13:12:23 -0000 1.13 +++ pkg-plist 26 Oct 2011 07:23:25 -0000 @@ -158,4 +158,6 @@ lib/libfltk_images.so lib/libfltk_images.so.1 lib/libfltk_images.so.1.3 +@dirrmtry etc/fltk/fltk.org +@dirrmtry etc/fltk @dirrm include/FL >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110260735.p9Q7ZFtE064317>