2005-07-13 11:17:14 +02:00
|
|
|
# New ports collection makefile for: podcastamatic
|
|
|
|
# Date created: 12 July 2005
|
|
|
|
# Whom: lars.eggert@gmx.net
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= podcastamatic
|
|
|
|
PORTVERSION= 1.2
|
2005-07-18 23:01:48 +02:00
|
|
|
PORTREVISION= 1
|
2005-07-13 11:17:14 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://bradley.chicago.il.us/projects/podcastamatic/
|
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION:S/./_/}
|
|
|
|
|
|
|
|
MAINTAINER= lars.eggert@gmx.net
|
|
|
|
COMMENT= Automates creation of webpage and RSS feed for a podcast
|
|
|
|
|
|
|
|
RUN_DEPENDS= ${SITE_PERL}/MP3/Info.pm:${PORTSDIR}/audio/p5-MP3-Info
|
|
|
|
|
|
|
|
USE_ZIP= yes
|
|
|
|
USE_PERL5_RUN= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
do-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s|${PORTNAME}.conf|${PREFIX}/etc/${PORTNAME}.conf|"\
|
|
|
|
${WRKSRC}/${PORTNAME}.pl
|
2005-07-18 23:01:48 +02:00
|
|
|
@${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
|
2005-07-13 11:17:14 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME}
|
2005-07-18 23:01:48 +02:00
|
|
|
@${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
|
2005-07-13 11:17:14 +02:00
|
|
|
@${MKDIR} ${PREFIX}/share/${PORTNAME}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/style.css ${PREFIX}/share/${PORTNAME}/
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/readme.html ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "Edit ${PREFIX}/etc/${PORTNAME}.conf"
|
|
|
|
@${ECHO} "CSS in ${PREFIX}/share/${PORTNAME}/style.css"
|
|
|
|
@${ECHO}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|