From owner-svn-ports-head@freebsd.org Tue Feb 6 23:49:45 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2C865F1384E; Tue, 6 Feb 2018 23:49:45 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D41D86A4A3; Tue, 6 Feb 2018 23:49:44 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CF1C51EFBE; Tue, 6 Feb 2018 23:49:44 +0000 (UTC) (envelope-from dbaio@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w16NniNB085263; Tue, 6 Feb 2018 23:49:44 GMT (envelope-from dbaio@FreeBSD.org) Received: (from dbaio@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w16Nnim3085261; Tue, 6 Feb 2018 23:49:44 GMT (envelope-from dbaio@FreeBSD.org) Message-Id: <201802062349.w16Nnim3085261@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dbaio set sender to dbaio@FreeBSD.org using -f From: "Danilo G. Baio" Date: Tue, 6 Feb 2018 23:49:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r461116 - in head/misc/wmweather+: . files X-SVN-Group: ports-head X-SVN-Commit-Author: dbaio X-SVN-Commit-Paths: in head/misc/wmweather+: . files X-SVN-Commit-Revision: 461116 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Feb 2018 23:49:45 -0000 Author: dbaio Date: Tue Feb 6 23:49:44 2018 New Revision: 461116 URL: https://svnweb.freebsd.org/changeset/ports/461116 Log: misc/wmweather+: Change location of config file Update pkg-message to also inform the possibility of use a global config file. PR: 225681 Submitted by: Rainer Hurling (maintainer) Modified: head/misc/wmweather+/Makefile head/misc/wmweather+/files/pkg-message.in Modified: head/misc/wmweather+/Makefile ============================================================================== --- head/misc/wmweather+/Makefile Tue Feb 6 23:13:54 2018 (r461115) +++ head/misc/wmweather+/Makefile Tue Feb 6 23:49:44 2018 (r461116) @@ -3,6 +3,7 @@ PORTNAME= wmweather+ PORTVERSION= 2.17 +PORTREVISION= 1 CATEGORIES= misc windowmaker geography MASTER_SITES= SF/wmweatherplus/wmweather%2B/ \ SF/nemysisfreebsdp/misc/:icons @@ -54,11 +55,14 @@ WM_LIB_DEPENDS= libWMaker.so:x11-wm/windowmaker WM_LIB_DEPENDS_OFF= libwraster.so:x11-wm/libwraster post-patch: - @${REINPLACE_CMD} -e 's| __THROW __attribute__ ((__noreturn__))|| ; \ - s|http://www.nws.noaa.gov/tg/siteloc.shtml|http://www.nws.noaa.gov/tg/siteloc.php|' \ + @${REINPLACE_CMD} \ + -e 's| __THROW __attribute__ ((__noreturn__))||' \ + -e 's|http://www.nws.noaa.gov/tg/siteloc.shtml|http://www.nws.noaa.gov/tg/siteloc.php|' \ + -e 's|"/etc/wmweather+.conf"|"${PREFIX}/etc/wmweather+.conf"|' \ ${WRKSRC}/${PORTNAME}.c - @${REINPLACE_CMD} -e \ - 's|http://www.nws.noaa.gov/tg/siteloc.shtml|http://www.nws.noaa.gov/tg/siteloc.php|' \ + @${REINPLACE_CMD} \ + -e 's|http://www.nws.noaa.gov/tg/siteloc.shtml|http://www.nws.noaa.gov/tg/siteloc.php|' \ + -e 's|/etc/wmweather+.conf|${PREFIX}/etc/wmweather+.conf|' \ ${WRKSRC}/${PORTNAME}.1.in do-install: Modified: head/misc/wmweather+/files/pkg-message.in ============================================================================== --- head/misc/wmweather+/files/pkg-message.in Tue Feb 6 23:13:54 2018 (r461115) +++ head/misc/wmweather+/files/pkg-message.in Tue Feb 6 23:49:44 2018 (r461116) @@ -7,11 +7,14 @@ All options are given in the config file and in comman Please copy example.conf to yours home directory and adjust it to your needs! su user - mkdir ~/.wmweather+ - cp -a %%EXAMPLESDIR%%/example.conf ~/.wmweather+/conf + exit +If you prefer a global configuration file, do + + su root + cp -a %%EXAMPLESDIR%%/example.conf %%PREFIX%%/etc/wmweather+.conf exit Have fun!