Index: head/misc/wmweather+/Makefile =================================================================== --- head/misc/wmweather+/Makefile (revision 461115) +++ head/misc/wmweather+/Makefile (revision 461116) @@ -1,79 +1,83 @@ # Created by: Harald Wille # $FreeBSD$ PORTNAME= wmweather+ PORTVERSION= 2.17 +PORTREVISION= 1 CATEGORIES= misc windowmaker geography MASTER_SITES= SF/wmweatherplus/wmweather%2B/ \ SF/nemysisfreebsdp/misc/:icons DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \ ${PORTNAME}.png:icons EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} MAINTAINER= rhurlin@gwdg.de COMMENT= Displays current conditions and forecasts with icons and text LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libcurl.so:ftp/curl \ libpcre.so:devel/pcre \ libtiff.so:graphics/tiff \ libHermes.so:graphics/Hermes \ libpng.so:graphics/png \ libgif.so:graphics/giflib WRKSRC= ${WRKDIR}/wmweather+-${PORTVERSION} USES= iconv jpeg GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-libwraster=${LOCALBASE} \ --with-libpcre=${LOCALBASE} \ --with-libcurl=${LOCALBASE} \ --with-xpm-includes=${LOCALBASE} \ --with-xpm-libraries=${LOCALBASE} USE_XORG= x11 xext xpm sm ice LDFLAGS+= -lm SUB_FILES= pkg-message PLIST_FILES= bin/${PORTNAME} \ man/man1/${PORTNAME}.1.gz \ share/pixmaps/${PORTNAME}.png PORTDOCS= ChangeLog README PORTEXAMPLES= HINTS example.conf DESKTOP_ENTRIES="${PORTNAME}" "" "${PORTNAME}" \ "${PORTNAME}" "System;Monitor;" "" OPTIONS_DEFINE= DOCS EXAMPLES WM WM_DESC= Depend on Window Maker port (otherwise only libwraster) 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: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 \ ${STAGEDIR}${MAN1PREFIX}/man/man1/ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/ do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR} .include Index: head/misc/wmweather+/files/pkg-message.in =================================================================== --- head/misc/wmweather+/files/pkg-message.in (revision 461115) +++ head/misc/wmweather+/files/pkg-message.in (revision 461116) @@ -1,19 +1,22 @@ =============================================================================== wmweather+ has been installed. 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! ===============================================================================