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 <rhurlin@gwdg.de> (maintainer)
This commit is contained in:
Danilo G. Baio 2018-02-06 23:49:44 +00:00
parent 30e0aa204f
commit d30bfa4a3b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=461116
2 changed files with 13 additions and 6 deletions

View File

@ -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:

View File

@ -7,11 +7,14 @@ All options are given in the config file and in command line (CLI)
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!