diff options
author | dbaio <dbaio@FreeBSD.org> | 2018-02-07 07:49:44 +0800 |
---|---|---|
committer | dbaio <dbaio@FreeBSD.org> | 2018-02-07 07:49:44 +0800 |
commit | 6cb5ad8a902803bce8f45b68e69dfccee4f5a088 (patch) | |
tree | 023335c76aaeaabd93ede01d564b874ad21b4938 /misc | |
parent | 7e71a2e96c4609788b565f3568efcc4d6669fac6 (diff) | |
download | freebsd-ports-gnome-6cb5ad8a902803bce8f45b68e69dfccee4f5a088.tar.gz freebsd-ports-gnome-6cb5ad8a902803bce8f45b68e69dfccee4f5a088.tar.zst freebsd-ports-gnome-6cb5ad8a902803bce8f45b68e69dfccee4f5a088.zip |
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)
Diffstat (limited to 'misc')
-rw-r--r-- | misc/wmweather+/Makefile | 12 | ||||
-rw-r--r-- | misc/wmweather+/files/pkg-message.in | 7 |
2 files changed, 13 insertions, 6 deletions
diff --git a/misc/wmweather+/Makefile b/misc/wmweather+/Makefile index 81248b9aa2ed..4b09f288cd5d 100644 --- a/misc/wmweather+/Makefile +++ b/misc/wmweather+/Makefile @@ -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: diff --git a/misc/wmweather+/files/pkg-message.in b/misc/wmweather+/files/pkg-message.in index 0d6b7f1420c4..d8009cd6dbc0 100644 --- a/misc/wmweather+/files/pkg-message.in +++ b/misc/wmweather+/files/pkg-message.in @@ -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! |