aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2007-07-09 16:20:00 +0800
committerrafan <rafan@FreeBSD.org>2007-07-09 16:20:00 +0800
commitd1d6c1eea94d8c43023469d4e313647f3a6d23b7 (patch)
tree94d41d520df7b1053c48d350379b66a86bce77be /net-p2p
parentd80c222c5d4bf93f9c3e77095b92e9f0150dface (diff)
downloadfreebsd-ports-gnome-d1d6c1eea94d8c43023469d4e313647f3a6d23b7.tar.gz
freebsd-ports-gnome-d1d6c1eea94d8c43023469d4e313647f3a6d23b7.tar.zst
freebsd-ports-gnome-d1d6c1eea94d8c43023469d4e313647f3a6d23b7.zip
- Make pkg-message shared between these plugin ports
- Share COMMENT setting Suggested by: sat Reviewed by: sat Approved by: Mikle Davidkin (maintainer)
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/verlihub-plugins-chatroom/Makefile3
-rw-r--r--net-p2p/verlihub-plugins-floodprotect/Makefile2
-rw-r--r--net-p2p/verlihub-plugins-floodprotect/pkg-message10
-rw-r--r--net-p2p/verlihub-plugins-forbid/Makefile3
-rw-r--r--net-p2p/verlihub-plugins-forbid/pkg-message10
-rw-r--r--net-p2p/verlihub-plugins-iplog/Makefile3
-rw-r--r--net-p2p/verlihub-plugins-iplog/pkg-message10
-rw-r--r--net-p2p/verlihub-plugins-isp/Makefile3
-rw-r--r--net-p2p/verlihub-plugins-isp/pkg-message10
-rw-r--r--net-p2p/verlihub-plugins-luascript/Makefile2
-rw-r--r--net-p2p/verlihub-plugins-luascript/pkg-message10
-rw-r--r--net-p2p/verlihub-plugins-messanger/Makefile3
-rw-r--r--net-p2p/verlihub-plugins-messanger/pkg-message10
-rw-r--r--net-p2p/verlihub-plugins-stats/Makefile3
-rw-r--r--net-p2p/verlihub-plugins-stats/pkg-message10
-rw-r--r--net-p2p/verlihub-plugins/Makefile.plugins9
-rw-r--r--net-p2p/verlihub-plugins/pkg-message.plugins (renamed from net-p2p/verlihub-plugins-chatroom/pkg-message)2
17 files changed, 24 insertions, 79 deletions
diff --git a/net-p2p/verlihub-plugins-chatroom/Makefile b/net-p2p/verlihub-plugins-chatroom/Makefile
index 902769fb91c9..89cc39c14c17 100644
--- a/net-p2p/verlihub-plugins-chatroom/Makefile
+++ b/net-p2p/verlihub-plugins-chatroom/Makefile
@@ -10,7 +10,8 @@ PORTVERSION= 1.1
CATEGORIES= net-p2p
MAINTAINER= skylord@vt.net.ru
-COMMENT= Chatroom plugin for the VerliHub - a Direct Connect protocol server
+
+PLUGIN_DESC= Chatroom
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/net-p2p/verlihub-plugins/Makefile.plugins"
diff --git a/net-p2p/verlihub-plugins-floodprotect/Makefile b/net-p2p/verlihub-plugins-floodprotect/Makefile
index 65af8ed9d8ff..385ae8a31e39 100644
--- a/net-p2p/verlihub-plugins-floodprotect/Makefile
+++ b/net-p2p/verlihub-plugins-floodprotect/Makefile
@@ -10,9 +10,9 @@ PORTVERSION= 1.6
CATEGORIES= net-p2p
MAINTAINER= skylord@vt.net.ru
-COMMENT= Floodprotect plugin for the VerliHub - a Direct Connect protocol server
PLUGIN_NAME= floodprot
+PLUGIN_DESC= Floodprotect
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/net-p2p/verlihub-plugins/Makefile.plugins"
diff --git a/net-p2p/verlihub-plugins-floodprotect/pkg-message b/net-p2p/verlihub-plugins-floodprotect/pkg-message
deleted file mode 100644
index 22cc335547af..000000000000
--- a/net-p2p/verlihub-plugins-floodprotect/pkg-message
+++ /dev/null
@@ -1,10 +0,0 @@
---------------------------------------------------------------------
-
-This port installs the Floodprotect VerliHub plugin.
-You need to restart your hub or manually load plugin with
-plugman commands.
-
-Visit http://www.verlihub-project.org/ for online manuals or
-http://www.verlihubforums.com/ for the project's forums.
-
--------------------------------------------------------------------
diff --git a/net-p2p/verlihub-plugins-forbid/Makefile b/net-p2p/verlihub-plugins-forbid/Makefile
index de93dc69b82b..688207585ac5 100644
--- a/net-p2p/verlihub-plugins-forbid/Makefile
+++ b/net-p2p/verlihub-plugins-forbid/Makefile
@@ -10,7 +10,8 @@ PORTVERSION= 1.3
CATEGORIES= net-p2p
MAINTAINER= skylord@vt.net.ru
-COMMENT= ForbiddenWords plugin for the VerliHub - a Direct Connect protocol server
+
+PLUGIN_DESC= ForbiddenWords
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/net-p2p/verlihub-plugins/Makefile.plugins"
diff --git a/net-p2p/verlihub-plugins-forbid/pkg-message b/net-p2p/verlihub-plugins-forbid/pkg-message
deleted file mode 100644
index ce2b00cf4c86..000000000000
--- a/net-p2p/verlihub-plugins-forbid/pkg-message
+++ /dev/null
@@ -1,10 +0,0 @@
---------------------------------------------------------------------
-
-This port installs the ForbiddenWords VerliHub plugin.
-You need to restart your hub or manually load plugin with
-plugman commands.
-
-Visit http://www.verlihub-project.org/ for online manuals or
-http://www.verlihubforums.com/ for the project's forums.
-
--------------------------------------------------------------------
diff --git a/net-p2p/verlihub-plugins-iplog/Makefile b/net-p2p/verlihub-plugins-iplog/Makefile
index 4e8cd5db32a9..6f6f790d2d93 100644
--- a/net-p2p/verlihub-plugins-iplog/Makefile
+++ b/net-p2p/verlihub-plugins-iplog/Makefile
@@ -10,7 +10,8 @@ PORTVERSION= 1.1
CATEGORIES= net-p2p
MAINTAINER= skylord@vt.net.ru
-COMMENT= IPLog plugin for the VerliHub - a Direct Connect protocol server
+
+PLUGIN_DESC= IPLog
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/net-p2p/verlihub-plugins/Makefile.plugins"
diff --git a/net-p2p/verlihub-plugins-iplog/pkg-message b/net-p2p/verlihub-plugins-iplog/pkg-message
deleted file mode 100644
index 2436f6fe0128..000000000000
--- a/net-p2p/verlihub-plugins-iplog/pkg-message
+++ /dev/null
@@ -1,10 +0,0 @@
---------------------------------------------------------------------
-
-This port installs the IPLog VerliHub plugin.
-You need to restart your hub or manually load plugin with
-plugman commands.
-
-Visit http://www.verlihub-project.org/ for online manuals or
-http://www.verlihubforums.com/ for the project's forums.
-
--------------------------------------------------------------------
diff --git a/net-p2p/verlihub-plugins-isp/Makefile b/net-p2p/verlihub-plugins-isp/Makefile
index 115957901a70..57f7221dd75e 100644
--- a/net-p2p/verlihub-plugins-isp/Makefile
+++ b/net-p2p/verlihub-plugins-isp/Makefile
@@ -10,7 +10,8 @@ PORTVERSION= 0.9
CATEGORIES= net-p2p
MAINTAINER= skylord@vt.net.ru
-COMMENT= ISP plugin for the VerliHub - a Direct Connect protocol server
+
+PLUGIN_DESC= ISP
PLIST_FILES= share/verlihub/default_pi_isp.sql
diff --git a/net-p2p/verlihub-plugins-isp/pkg-message b/net-p2p/verlihub-plugins-isp/pkg-message
deleted file mode 100644
index c569bc4954f3..000000000000
--- a/net-p2p/verlihub-plugins-isp/pkg-message
+++ /dev/null
@@ -1,10 +0,0 @@
---------------------------------------------------------------------
-
-This port installs the ISP VerliHub plugin.
-You need to restart your hub or manually load plugin with
-plugman commands.
-
-Visit http://www.verlihub-project.org/ for online manuals or
-http://www.verlihubforums.com/ for the project's forums.
-
--------------------------------------------------------------------
diff --git a/net-p2p/verlihub-plugins-luascript/Makefile b/net-p2p/verlihub-plugins-luascript/Makefile
index f32a38dbd5e2..4a998a4d79a4 100644
--- a/net-p2p/verlihub-plugins-luascript/Makefile
+++ b/net-p2p/verlihub-plugins-luascript/Makefile
@@ -10,9 +10,9 @@ PORTVERSION= 1.6
CATEGORIES= net-p2p
MAINTAINER= skylord@vt.net.ru
-COMMENT= LuaScript plugin for the VerliHub - a Direct Connect protocol server (Hub)
PLUGIN_NAME= lua
+PLUGIN_DESC= LuaScript
USE_LUA= 5.1
CONFIGURE_ENV= CXXFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"
diff --git a/net-p2p/verlihub-plugins-luascript/pkg-message b/net-p2p/verlihub-plugins-luascript/pkg-message
deleted file mode 100644
index 381660802e95..000000000000
--- a/net-p2p/verlihub-plugins-luascript/pkg-message
+++ /dev/null
@@ -1,10 +0,0 @@
---------------------------------------------------------------------
-
-This port installs the LuaScript VerliHub plugin.
-You need to restart your hub or manually load plugin with
-plugman commands.
-
-Visit http://www.verlihub-project.org/ for online manuals or
-http://www.verlihubforums.com/ for the project's forums.
-
--------------------------------------------------------------------
diff --git a/net-p2p/verlihub-plugins-messanger/Makefile b/net-p2p/verlihub-plugins-messanger/Makefile
index ed2066c6192f..418ec9a7cbf7 100644
--- a/net-p2p/verlihub-plugins-messanger/Makefile
+++ b/net-p2p/verlihub-plugins-messanger/Makefile
@@ -10,7 +10,8 @@ PORTVERSION= 1.2
CATEGORIES= net-p2p
MAINTAINER= skylord@vt.net.ru
-COMMENT= Messanger plugin for the VerliHub - a Direct Connect protocol server
+
+PLUGIN_DESC= Messanger
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/net-p2p/verlihub-plugins/Makefile.plugins"
diff --git a/net-p2p/verlihub-plugins-messanger/pkg-message b/net-p2p/verlihub-plugins-messanger/pkg-message
deleted file mode 100644
index 8f9f0bc64ca8..000000000000
--- a/net-p2p/verlihub-plugins-messanger/pkg-message
+++ /dev/null
@@ -1,10 +0,0 @@
---------------------------------------------------------------------
-
-This port installs the Messanger VerliHub plugin.
-You need to restart your hub or manually load plugin with
-plugman commands.
-
-Visit http://www.verlihub-project.org/ for online manuals or
-http://www.verlihubforums.com/ for the project's forums.
-
--------------------------------------------------------------------
diff --git a/net-p2p/verlihub-plugins-stats/Makefile b/net-p2p/verlihub-plugins-stats/Makefile
index 1d9a7d310a36..96085e7b070e 100644
--- a/net-p2p/verlihub-plugins-stats/Makefile
+++ b/net-p2p/verlihub-plugins-stats/Makefile
@@ -10,7 +10,8 @@ PORTVERSION= 1.1
CATEGORIES= net-p2p
MAINTAINER= skylord@vt.net.ru
-COMMENT= Statistics plugin for the VerliHub - a Direct Connect protocol server
+
+PLUGIN_DESC= Statistics
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/net-p2p/verlihub-plugins/Makefile.plugins"
diff --git a/net-p2p/verlihub-plugins-stats/pkg-message b/net-p2p/verlihub-plugins-stats/pkg-message
deleted file mode 100644
index 69fdae1b3966..000000000000
--- a/net-p2p/verlihub-plugins-stats/pkg-message
+++ /dev/null
@@ -1,10 +0,0 @@
---------------------------------------------------------------------
-
-This port installs the Statistics VerliHub plugin.
-You need to restart your hub or manually load plugin with
-plugman commands.
-
-Visit http://www.verlihub-project.org/ for online manuals or
-http://www.verlihubforums.com/ for the project's forums.
-
--------------------------------------------------------------------
diff --git a/net-p2p/verlihub-plugins/Makefile.plugins b/net-p2p/verlihub-plugins/Makefile.plugins
index 8bde69bfbeb5..11bb8cd016fe 100644
--- a/net-p2p/verlihub-plugins/Makefile.plugins
+++ b/net-p2p/verlihub-plugins/Makefile.plugins
@@ -10,6 +10,8 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= verlihub
DISTNAME= ${PLUGIN_NAME}
+COMMENT?= ${PLUGIN_DESC} plugin for the VerliHub - a Direct Connect protocol server
+
BUILD_DEPENDS+= ${LOCALBASE}/bin/verlihub:${PORTSDIR}/net-p2p/verlihub
RUN_DEPENDS+= ${LOCALBASE}/bin/verlihub:${PORTSDIR}/net-p2p/verlihub
@@ -21,6 +23,13 @@ PLIST_FILES+= lib/lib${PLUGIN_NAME}_pi.a \
lib/lib${PLUGIN_NAME}_pi.so.0 \
etc/verlihub/plugins/lib${PLUGIN_NAME}_pi.so
+PKGMESSAGE= ${WRKDIR}/pkg-message
+PKGMESSAGE_TEMPLATE= ${PORTSDIR}/net-p2p/verlihub-plugins/pkg-message.plugins
+
+post-build::
+ @${SED} -e 's,%%PLUGIN_DESC%%,${PLUGIN_DESC},' < ${PKGMESSAGE_TEMPLATE} \
+ > ${PKGMESSAGE}
+
post-install::
@${MKDIR} ${PREFIX}/etc/verlihub/plugins
@${LN} -sf ${PREFIX}/lib/lib${PLUGIN_NAME}_pi.so \
diff --git a/net-p2p/verlihub-plugins-chatroom/pkg-message b/net-p2p/verlihub-plugins/pkg-message.plugins
index 7be3e7493966..f072803beb0a 100644
--- a/net-p2p/verlihub-plugins-chatroom/pkg-message
+++ b/net-p2p/verlihub-plugins/pkg-message.plugins
@@ -1,6 +1,6 @@
--------------------------------------------------------------------
-This port installs the Chatroom VerliHub plugin.
+This port installs the %%PLUGIN_DESC%% VerliHub plugin.
You need to restart your hub or manually load plugin with
plugman commands.