Date: Mon, 18 Jul 2005 16:52:20 +0200 (CEST) From: Lars Eggert <lars.eggert@gmx.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/83674: [MAINTAINER] www/podcastamatic: better conf file handling Message-ID: <200507181452.j6IEqKwb009923@kobe.netlab.nec.de> Resent-Message-ID: <200507181500.j6IF0XMp032205@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 83674 >Category: ports >Synopsis: [MAINTAINER] www/podcastamatic: better conf file handling >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Jul 18 15:00:33 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Lars Eggert >Release: FreeBSD 5.4-STABLE i386 >Organization: >Environment: System: FreeBSD kobe.netlab.nec.de 5.4-STABLE FreeBSD 5.4-STABLE #23: Fri Jun 17 10:28:19 CEST 2005 >Description: No longer overwrite conf file on reinstall. Use sane FreeBSD defaults. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- podcastamatic-1.2_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/www/podcastamatic--/Makefile /usr/ports/www/podcastamatic/Makefile --- /usr/ports/www/podcastamatic--/Makefile Mon Jul 18 16:14:44 2005 +++ /usr/ports/www/podcastamatic/Makefile Mon Jul 18 16:38:33 2005 @@ -7,6 +7,7 @@ PORTNAME= podcastamatic PORTVERSION= 1.2 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://bradley.chicago.il.us/projects/podcastamatic/ DISTNAME= ${PORTNAME}${PORTVERSION:S/./_/} @@ -25,10 +26,20 @@ do-patch: @${REINPLACE_CMD} -e "s|${PORTNAME}.conf|${PREFIX}/etc/${PORTNAME}.conf|"\ ${WRKSRC}/${PORTNAME}.pl + @${REINPLACE_CMD} -e "s|podcastamatic.log|/var/log/${PORTNAME}.log|"\ + ${WRKSRC}/${PORTNAME}.conf + @${REINPLACE_CMD} -e "s|/projects/podcastamatic|/podcast|"\ + ${WRKSRC}/${PORTNAME}.conf + @${REINPLACE_CMD} -e "s|style.css|${PREFIX}/share/${PORTNAME}/style.css|"\ + ${WRKSRC}/${PORTNAME}.conf + @${REINPLACE_CMD} -e "s|/testpodcast||" ${WRKSRC}/${PORTNAME}.conf + @${REINPLACE_CMD} -e "s|/audio||" ${WRKSRC}/${PORTNAME}.conf + @${REINPLACE_CMD} -e "s|[wW]:|${PREFIX}/www|" ${WRKSRC}/${PORTNAME}.conf do-install: @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME} - @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/ + @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample + test \! -f ${PREFIX}/etc/${PORTNAME}.conf && ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf || true @${MKDIR} ${PREFIX}/share/${PORTNAME} @${INSTALL_DATA} ${WRKSRC}/style.css ${PREFIX}/share/${PORTNAME}/ .if !defined(NOPORTDOCS) diff -ruN --exclude=CVS /usr/ports/www/podcastamatic--/pkg-plist /usr/ports/www/podcastamatic/pkg-plist --- /usr/ports/www/podcastamatic--/pkg-plist Mon Jul 18 16:14:44 2005 +++ /usr/ports/www/podcastamatic/pkg-plist Mon Jul 18 16:24:11 2005 @@ -1,5 +1,6 @@ +@unexec cmp %D/etc/podcastamatic.conf.sample %D/etc/podcastamatic.conf && rm %D/etc/podcastamatic.conf || true bin/podcastamatic -etc/podcastamatic.conf +etc/podcastamatic.conf.sample %%PORTDOCS%%%%DOCSDIR%%/readme.html %%DATADIR%%/style.css @dirrm %%DATADIR%% --- podcastamatic-1.2_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507181452.j6IEqKwb009923>