FreeBSD Bugzilla – Attachment 190336 Details for
Bug 225681
misc/wmweather+: Change location of config file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to change location of global config file
patch-misc_wmweather+_2.17_change-location-of-config.diff (text/plain), 1.34 KB, created by
Rainer Hurling
on 2018-02-05 12:47:11 UTC
(
hide
)
Description:
patch to change location of global config file
Filename:
MIME Type:
Creator:
Rainer Hurling
Created:
2018-02-05 12:47:11 UTC
Size:
1.34 KB
patch
obsolete
>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!
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
rhurlin
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 225681
: 190336
Working