From d66ff1b317439939cb5e498efd7a2dbd2c4ab408 Mon Sep 17 00:00:00 2001 From: Rong-En Fan Date: Thu, 5 Jul 2007 07:07:28 +0000 Subject: This is a "meta-port" to install the plugins for verlihub. WWW: http://www.verlihub-project.org/ PR: ports/112393 Submitted by: Mikle Davidkin --- net-p2p/Makefile | 1 + net-p2p/verlihub-plugins/Makefile | 32 +++++++++++++++++++++++++++++++ net-p2p/verlihub-plugins/Makefile.plugins | 32 +++++++++++++++++++++++++++++++ net-p2p/verlihub-plugins/pkg-descr | 3 +++ 4 files changed, 68 insertions(+) create mode 100644 net-p2p/verlihub-plugins/Makefile create mode 100644 net-p2p/verlihub-plugins/Makefile.plugins create mode 100644 net-p2p/verlihub-plugins/pkg-descr diff --git a/net-p2p/Makefile b/net-p2p/Makefile index 4551d834091f..09e6698ee20d 100644 --- a/net-p2p/Makefile +++ b/net-p2p/Makefile @@ -126,6 +126,7 @@ SUBDIR += tvrss SUBDIR += valknut SUBDIR += verlihub + SUBDIR += verlihub-plugins SUBDIR += verlihub-plugins-floodprotect SUBDIR += verlihub-plugins-forbid SUBDIR += verlihub-plugins-iplog diff --git a/net-p2p/verlihub-plugins/Makefile b/net-p2p/verlihub-plugins/Makefile new file mode 100644 index 000000000000..68c1efea5290 --- /dev/null +++ b/net-p2p/verlihub-plugins/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: verlihub-plugins +# Date created: 3 April 2004 +# Whom: Skylord +# +# $FreeBSD$ +# + +PORTNAME= verlihub +PORTVERSION= 1.0 +CATEGORIES= net-p2p +MASTER_SITES= # empty +PKGNAMESUFFIX= -plugins +DISTFILES= # empty +EXTRACT_ONLY= # empty + +MAINTAINER= skylord@vt.net.ru +COMMENT= Meta-port for VerliHub plugins + +RUN_DEPENDS= \ + ${LOCALBASE}/lib/libchatroom_pi.so:${PORTSDIR}/net-p2p/verlihub-plugins-chatroom \ + ${LOCALBASE}/lib/libfloodprot_pi.so:${PORTSDIR}/net-p2p/verlihub-plugins-floodprotect \ + ${LOCALBASE}/lib/libforbid_pi.so:${PORTSDIR}/net-p2p/verlihub-plugins-forbid \ + ${LOCALBASE}/lib/libiplog_pi.so:${PORTSDIR}/net-p2p/verlihub-plugins-iplog \ + ${LOCALBASE}/lib/libisp_pi.so:${PORTSDIR}/net-p2p/verlihub-plugins-isp \ + ${LOCALBASE}/lib/liblua_pi.so:${PORTSDIR}/net-p2p/verlihub-plugins-luascript \ + ${LOCALBASE}/lib/libmessanger_pi.so:${PORTSDIR}/net-p2p/verlihub-plugins-messanger \ + ${LOCALBASE}/lib/libstats_pi.so:${PORTSDIR}/net-p2p/verlihub-plugins-stats + +NO_BUILD= yes +NO_INSTALL= yes + +.include diff --git a/net-p2p/verlihub-plugins/Makefile.plugins b/net-p2p/verlihub-plugins/Makefile.plugins new file mode 100644 index 000000000000..8bde69bfbeb5 --- /dev/null +++ b/net-p2p/verlihub-plugins/Makefile.plugins @@ -0,0 +1,32 @@ +# $FreeBSD$ + +# common bits for verlihub plugins + +# this controls DISTNAME +PLUGIN_NAME?= ${PORTNAME} + +PKGNAMEPREFIX= verlihub-plugins- +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= verlihub +DISTNAME= ${PLUGIN_NAME} + +BUILD_DEPENDS+= ${LOCALBASE}/bin/verlihub:${PORTSDIR}/net-p2p/verlihub +RUN_DEPENDS+= ${LOCALBASE}/bin/verlihub:${PORTSDIR}/net-p2p/verlihub + +GNU_CONFIGURE= yes + +PLIST_FILES+= lib/lib${PLUGIN_NAME}_pi.a \ + lib/lib${PLUGIN_NAME}_pi.la \ + lib/lib${PLUGIN_NAME}_pi.so \ + lib/lib${PLUGIN_NAME}_pi.so.0 \ + etc/verlihub/plugins/lib${PLUGIN_NAME}_pi.so + +post-install:: + @${MKDIR} ${PREFIX}/etc/verlihub/plugins + @${LN} -sf ${PREFIX}/lib/lib${PLUGIN_NAME}_pi.so \ + ${PREFIX}/etc/verlihub/plugins/lib${PLUGIN_NAME}_pi.so + @if [ -f ${PKGMESSAGE} ]; then \ + ${CAT} ${PKGMESSAGE}; \ + fi + @${ECHO_CMD} '@unexec rmdir %D/etc/verlihub/plugins 2>/dev/null || true' >> ${TMPPLIST} + @${ECHO_CMD} '@unexec rmdir %D/etc/verlihub 2>/dev/null || true' >> ${TMPPLIST} diff --git a/net-p2p/verlihub-plugins/pkg-descr b/net-p2p/verlihub-plugins/pkg-descr new file mode 100644 index 000000000000..a28b62ec5f26 --- /dev/null +++ b/net-p2p/verlihub-plugins/pkg-descr @@ -0,0 +1,3 @@ +This is a "meta-port" to install the plugins for verlihub. + +WWW: http://www.verlihub-project.org/ -- cgit v1.2.3