www/videocache: support stage and minor fixes

PR:		190966
Submitted by:	joe thrallingpenguin com
This commit is contained in:
William Grzybowski 2014-06-16 14:44:44 +00:00
parent 16f1ee1859
commit d8135e893c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358008
3 changed files with 19 additions and 33 deletions

View file

@ -4,10 +4,12 @@
PORTNAME= videocache PORTNAME= videocache
PORTVERSION= 1.9.2 PORTVERSION= 1.9.2
CATEGORIES= www CATEGORIES= www
MASTER_SITES= http://cachevideos.com/sites/default/files/pub/videocache/ MASTER_SITES= http://secure.thrallingpenguin.com/hosting_files/ \
http://distcache.freebsd.org/ports-distfiles/ \
http://old.cachevideos.com/sites/default/files/pub/videocache/
MAINTAINER= mopsfelder@gmail.com MAINTAINER= mopsfelder@gmail.com
COMMENT= A Squid URL rewriter for bandwidth optimization COMMENT= Squid URL rewriter for bandwidth optimization
RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid \ RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid \
${PYTHON_SITELIBDIR}/urlgrabber/grabber.py:${PORTSDIR}/www/py-urlgrabber \ ${PYTHON_SITELIBDIR}/urlgrabber/grabber.py:${PORTSDIR}/www/py-urlgrabber \
@ -16,36 +18,21 @@ RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid \
NO_BUILD= yes NO_BUILD= yes
USE_PYTHON= yes USE_PYTHON= yes
MAN8= videocache.8.gz
PORTDOCS= CHANGELOG COPYING Readme PORTDOCS= CHANGELOG COPYING Readme
PORTEXAMPLES= squid.conf PORTEXAMPLES= squid.conf
SUB_FILES= pkg-message SUB_FILES= pkg-message
NO_STAGE= yes
.include <bsd.port.pre.mk>
do-install: do-install:
${INSTALL_SCRIPT} ${WRKSRC}/update-vc ${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/update-vc ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/videocache.8.gz ${MAN1PREFIX}/man/man8 ${INSTALL_MAN} ${WRKSRC}/videocache.8.gz ${STAGEDIR}${MAN1PREFIX}/man/man8
${INSTALL_DATA} ${WRKSRC}/videocache-sysconfig.conf ${PREFIX}/etc/videocache.conf.default ${INSTALL_DATA} ${WRKSRC}/videocache-sysconfig.conf ${STAGEDIR}${PREFIX}/etc/videocache.conf.sample
@[ -f ${PREFIX}/etc/videocache.conf ] || \ @${MKDIR} ${STAGEDIR}${DATADIR}
${CP} -v ${PREFIX}/etc/videocache.conf.default ${PREFIX}/etc/videocache.conf ${INSTALL_DATA} ${WRKSRC}/videocache/*.py ${STAGEDIR}${DATADIR}
${MKDIR} ${DATADIR} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/videocache/*.py ${DATADIR} ${INSTALL_DATA} ${FILESDIR}/squid.conf.example ${STAGEDIR}${EXAMPLESDIR}/squid.conf
.if !defined(NOPORTEXAMPLES) @${MKDIR} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${EXAMPLESDIR} .for doc in ${PORTDOCS}
${INSTALL_DATA} ${FILESDIR}/squid.conf.example ${EXAMPLESDIR}/squid.conf ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endif .endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
. for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
. endfor
.endif
post-install: .include <bsd.port.mk>
.if !defined(NOPORTEXAMPLES)
${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>

View file

@ -4,4 +4,4 @@ sharing portals/websites like Youtube, Metacafe etc.
It helps you save bandwidth when a particular video is It helps you save bandwidth when a particular video is
requested more than once from the same network/machine. requested more than once from the same network/machine.
WWW: http://www.cachevideos.com/ WWW: http://www.cachevideos.com/

View file

@ -1,10 +1,9 @@
bin/update-vc bin/update-vc
@unexec if cmp -s %D/etc/videocache.conf %D/etc/videocache.conf.default; then rm -f %D/etc/videocache.conf; fi @sample etc/videocache.conf.sample
etc/videocache.conf.default
@exec [ -f %B/videocache.conf ] || cp %B/%f %B/videocache.conf
%%DATADIR%%/Errors.py %%DATADIR%%/Errors.py
%%DATADIR%%/__init__.py %%DATADIR%%/__init__.py
%%DATADIR%%/config.py %%DATADIR%%/config.py
%%DATADIR%%/parser.py %%DATADIR%%/parser.py
%%DATADIR%%/videocache.py %%DATADIR%%/videocache.py
man/man8/videocache.8.gz
@dirrm %%DATADIR%% @dirrm %%DATADIR%%