From 94d2f727da23cbb065a8adb8a3ea36011868739a Mon Sep 17 00:00:00 2001 From: "Philip M. Gollucci" Date: Tue, 23 Jun 2009 20:00:35 +0000 Subject: Verlihub Contro Panel is a tool for the administration of your hubsoft VerliHub 0.9.7 (or higher). It's written in PHP so you can use it on every OS that runs Apache Web Server with PHP support. WWW: http://vhcp.verlihub-project.org/viewforum.php?f=32 PR: ports/135886 Submitted by: Maxim Ignatenko --- net-p2p/Makefile | 1 + net-p2p/vhcp/Makefile | 57 +++++++++++++++++++++++++++++++++++++++ net-p2p/vhcp/distinfo | 3 +++ net-p2p/vhcp/files/pkg-message.in | 4 +++ net-p2p/vhcp/pkg-descr | 5 ++++ 5 files changed, 70 insertions(+) create mode 100644 net-p2p/vhcp/Makefile create mode 100644 net-p2p/vhcp/distinfo create mode 100644 net-p2p/vhcp/files/pkg-message.in create mode 100644 net-p2p/vhcp/pkg-descr diff --git a/net-p2p/Makefile b/net-p2p/Makefile index c21fb96d2eee..4388b1940adc 100644 --- a/net-p2p/Makefile +++ b/net-p2p/Makefile @@ -138,6 +138,7 @@ SUBDIR += verlihub-plugins-luascript SUBDIR += verlihub-plugins-messanger SUBDIR += verlihub-plugins-stats + SUBDIR += vhcp SUBDIR += vuze SUBDIR += xnap diff --git a/net-p2p/vhcp/Makefile b/net-p2p/vhcp/Makefile new file mode 100644 index 000000000000..17b4de0ace41 --- /dev/null +++ b/net-p2p/vhcp/Makefile @@ -0,0 +1,57 @@ +# New ports collection makefile for: vhcp +# Date created: 20 June 2009 +# Whom: Maxim Ignatenko +# +# $FreeBSD$ +# + +PORTNAME= vhcp +PORTVERSION= 1.7g2 +CATEGORIES= net-p2p www +MASTER_SITES= SF +DISTNAME= vhcp_v${PORTVERSION} + +MAINTAINER= gelraen.ua@gmail.com +COMMENT= Verlihub control panel + +WRKSRC= ${WRKDIR}/${PORTNAME} + +USE_PHP= mysql gd +NO_BUILD= YES +WANT_PHP_WEB= YES +DEFAULT_PHP_VER= 5 +VHCPDIR?= www/vhcp +SUB_FILES= pkg-message +SUB_LIST+= VHCPDIR=${VHCPDIR} +PLIST= ${WRKDIR}/pkg-plist + +pre-install: + @if [ -f ${WRKSRC}/config.php ]; then \ + ${MV} ${WRKSRC}/config.php ${WRKSRC}/config.php.dist ; fi + @cd ${WRKSRC} && \ + ${ECHO_CMD} "@unexec if cmp -s %D/${VHCPDIR}/config.php.dist \ + %D/${VHCPDIR}/config.php; then \ + ${RM} -f %D/${VHCPDIR}/config.php; fi" > ${PLIST} && \ + ${FIND} -s * -type f | \ + ${SED} -e 's|^|${VHCPDIR}/|g' >> ${PLIST} && \ + ${ECHO_CMD} "@exec if [ ! -f %D/${VHCPDIR}/config.php ] ; then \ + ${CP} -p %D/${VHCPDIR}/config.php.dist \ + %D/${VHCPDIR}/config.php; fi" >> ${PLIST} && \ + ${FIND} -d * -type d | \ + ${SED} -e 's|^|@dirrm ${VHCPDIR}/|g' >> ${PLIST} && \ + ${ECHO_CMD} @dirrm ${VHCPDIR} >> ${PLIST} + +do-install: + -@${MKDIR} ${PREFIX}/${VHCPDIR} + @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${VHCPDIR} + @${CHMOD} 755 ${PREFIX}/${VHCPDIR} + @${CP} -R ${WRKSRC}/ ${PREFIX}/${VHCPDIR} + if [ ! -f ${PREFIX}/${VHCPDIR}/config.php ]; then \ + ${CP} ${PREFIX}/${VHCPDIR}/config.php.dist \ + ${PREFIX}/${VHCPDIR}/config.php ; \ + fi + +post-install: + @${CAT} ${PKGMESSAGE} + +.include diff --git a/net-p2p/vhcp/distinfo b/net-p2p/vhcp/distinfo new file mode 100644 index 000000000000..1cc093f79940 --- /dev/null +++ b/net-p2p/vhcp/distinfo @@ -0,0 +1,3 @@ +MD5 (vhcp_v1.7g2.tar.gz) = 4583f1fc0578f2b85620eaa8cdd79723 +SHA256 (vhcp_v1.7g2.tar.gz) = 2e366a428009952b8d7b4358a143d5125a35258ae3a8007dd4b00309380b6462 +SIZE (vhcp_v1.7g2.tar.gz) = 235611 diff --git a/net-p2p/vhcp/files/pkg-message.in b/net-p2p/vhcp/files/pkg-message.in new file mode 100644 index 000000000000..ec8f6c418fff --- /dev/null +++ b/net-p2p/vhcp/files/pkg-message.in @@ -0,0 +1,4 @@ + +Don't forget to edit %%PREFIX%%/%%VHCPDIR%%/config.php to point to your +existing verlihub config database + diff --git a/net-p2p/vhcp/pkg-descr b/net-p2p/vhcp/pkg-descr new file mode 100644 index 000000000000..b5bfe2f74326 --- /dev/null +++ b/net-p2p/vhcp/pkg-descr @@ -0,0 +1,5 @@ +Verlihub Contro Panel is a tool for the administration of your hubsoft +VerliHub 0.9.7 (or higher). It's written in PHP so you can use it on +every OS that runs Apache Web Server with PHP support. + +WWW: http://vhcp.verlihub-project.org/viewforum.php?f=32 -- cgit v1.3