diff -urN wmweather+.orig/Makefile wmweather+/Makefile --- wmweather+.orig/Makefile 2018-01-24 19:42:19.053828000 +0100 +++ wmweather+/Makefile 2018-02-05 13:29:53.686153000 +0100 @@ -55,10 +55,12 @@ post-patch: @${REINPLACE_CMD} -e 's| __THROW __attribute__ ((__noreturn__))|| ; \ + s|"/etc/wmweather+.conf"|"/usr/local/etc/wmweather+.conf"| ; \ s|http://www.nws.noaa.gov/tg/siteloc.shtml|http://www.nws.noaa.gov/tg/siteloc.php|' \ ${WRKSRC}/${PORTNAME}.c @${REINPLACE_CMD} -e \ - 's|http://www.nws.noaa.gov/tg/siteloc.shtml|http://www.nws.noaa.gov/tg/siteloc.php|' \ + 's|/etc/wmweather+.conf|/usr/local/etc/wmweather+.conf| ; \ + s|http://www.nws.noaa.gov/tg/siteloc.shtml|http://www.nws.noaa.gov/tg/siteloc.php|' \ ${WRKSRC}/${PORTNAME}.1.in do-install: diff -urN wmweather+.orig/files/pkg-message.in wmweather+/files/pkg-message.in --- wmweather+.orig/files/pkg-message.in 2014-01-17 10:12:18.000000000 +0100 +++ wmweather+/files/pkg-message.in 2018-02-05 13:33:24.026491000 +0100 @@ -7,11 +7,14 @@ 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 /usr/local/etc/wmweather+.conf exit Have fun!