diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-07-18 21:01:48 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-07-18 21:01:48 +0000 |
commit | 5ca26fcd25450328283d193955d30e8e5b51616e (patch) | |
tree | 55cfa6168354ba347ae134f459206fd7a3878602 /www/podcastamatic | |
parent | ea99a484345535a464a374dff9df4f53ca956dd0 (diff) | |
download | ports-5ca26fcd25450328283d193955d30e8e5b51616e.tar.gz ports-5ca26fcd25450328283d193955d30e8e5b51616e.zip |
Notes
Diffstat (limited to 'www/podcastamatic')
-rw-r--r-- | www/podcastamatic/Makefile | 13 | ||||
-rw-r--r-- | www/podcastamatic/pkg-plist | 3 |
2 files changed, 14 insertions, 2 deletions
diff --git a/www/podcastamatic/Makefile b/www/podcastamatic/Makefile index 9dea6827f69d..71a14d178d96 100644 --- a/www/podcastamatic/Makefile +++ b/www/podcastamatic/Makefile @@ -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 @@ NO_BUILD= yes 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 --git a/www/podcastamatic/pkg-plist b/www/podcastamatic/pkg-plist index 9eeb3b363161..b93cbd943dfb 100644 --- a/www/podcastamatic/pkg-plist +++ b/www/podcastamatic/pkg-plist @@ -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%% |