summaryrefslogtreecommitdiff
path: root/chat/kgb-bot
diff options
context:
space:
mode:
authortonnerre <tonnerre@pkgsrc.org>2013-10-20 14:16:16 +0000
committertonnerre <tonnerre@pkgsrc.org>2013-10-20 14:16:16 +0000
commit207f75b8d3a3a77cd592d4ce2673e84f889f21c0 (patch)
tree0d6351f0960bf29833da4f643066899abd906694 /chat/kgb-bot
parent93835e8f7b3a1177ceb32ed8e99db73753431e6b (diff)
downloadpkgsrc-207f75b8d3a3a77cd592d4ce2673e84f889f21c0.tar.gz
Add the KGB IRC bot, version 1.31, to pkgsrc.
KGB is a system that provides notifications on IRC for commits made to Git, Subversion and CVS repositories. It uses two components: a server, which runs the IRC bot, and a client, which is hooked into the repositories and sends the notifications to the server.
Diffstat (limited to 'chat/kgb-bot')
-rw-r--r--chat/kgb-bot/DESCR4
-rw-r--r--chat/kgb-bot/Makefile39
-rw-r--r--chat/kgb-bot/distinfo6
-rw-r--r--chat/kgb-bot/patches/patch-Build.PL41
4 files changed, 90 insertions, 0 deletions
diff --git a/chat/kgb-bot/DESCR b/chat/kgb-bot/DESCR
new file mode 100644
index 00000000000..e8e14a282f2
--- /dev/null
+++ b/chat/kgb-bot/DESCR
@@ -0,0 +1,4 @@
+KGB is a system that provides notifications on IRC for commits made to Git,
+Subversion and CVS repositories. It uses two components: a server, which
+runs the IRC bot, and a client, which is hooked into the repositories and
+sends the notifications to the server.
diff --git a/chat/kgb-bot/Makefile b/chat/kgb-bot/Makefile
new file mode 100644
index 00000000000..f1812277bab
--- /dev/null
+++ b/chat/kgb-bot/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1.1.1 2013/10/20 14:16:16 tonnerre Exp $
+#
+
+PKGNAME= kgb-bot-1.31
+DISTNAME= ${PKGNAME:S/kgb-bot/App-KGB/}
+
+CATEGORIES= chat perl5 scm
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=App/}
+
+MAINTAINER= tonnerre@NetBSD.org
+HOMEPAGE= https://alioth.debian.org/projects/kgb/
+COMMENT= Notify about VCS commits on IRC
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+USE_TOOLS+= perl:run
+
+DEPENDS+= p5-Class-Accessor-[0-9]*:../../devel/p5-Class-Accessor
+DEPENDS+= p5-JSON-XS-[0-9]*:../../converters/p5-JSON-XS
+DEPENDS+= p5-SOAP-Lite-[0-9]*:../../net/p5-SOAP-Lite
+DEPENDS+= p5-subversion-[0-9]*:../../devel/p5-subversion
+DEPENDS+= p5-YAML-[0-9]*:../../textproc/p5-YAML
+DEPENDS+= p5-File-Touch-[0-9]*:../../devel/p5-File-Touch
+DEPENDS+= p5-WWW-Shorten-[0-9]*:../../www/p5-WWW-Shorten
+DEPENDS+= p5-JSON-RPC-[0-9]*:../../www/p5-JSON-RPC
+
+REPLACE_INTERPRETER+= perl
+REPLACE.perl.old= /usr/bin/perl
+REPLACE.perl.new= ${TOOLS_PATH.perl}
+REPLACE_FILES.perl= script/kgb-add-project script/kgb-bot
+REPLACE_FILES.perl+= script/kgb-split-config script/kgb-client
+REPLACE_FILES.perl+= eg/simple-soap-client eg/simple-soap-server
+
+MAKE_ENV+= PERL=${TOOLS_PATH.perl}
+
+PERL5_PACKLIST= auto/App/KGB/.packlist
+PERL5_MODULE_TYPE= Module::Build
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/chat/kgb-bot/distinfo b/chat/kgb-bot/distinfo
new file mode 100644
index 00000000000..e0bab8f5df5
--- /dev/null
+++ b/chat/kgb-bot/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2013/10/20 14:16:16 tonnerre Exp $
+
+SHA1 (App-KGB-1.31.tar.gz) = 9cfffc64a6698faa2330f807de67e4e318310811
+RMD160 (App-KGB-1.31.tar.gz) = 981c5109c941a8da120df005ce41009af6b0df8b
+Size (App-KGB-1.31.tar.gz) = 97753 bytes
+SHA1 (patch-Build.PL) = 5e49e8c654448da10c4116da8a799e4c12d56380
diff --git a/chat/kgb-bot/patches/patch-Build.PL b/chat/kgb-bot/patches/patch-Build.PL
new file mode 100644
index 00000000000..44ca12c9aae
--- /dev/null
+++ b/chat/kgb-bot/patches/patch-Build.PL
@@ -0,0 +1,41 @@
+$NetBSD: patch-Build.PL,v 1.1.1.1 2013/10/20 14:16:16 tonnerre Exp $
+
+Install into the appropriate directories.
+
+--- Build.PL.orig 2013-08-17 07:41:14.000000000 +0000
++++ Build.PL
+@@ -60,8 +60,13 @@ my $builder = My::Builder->new(
+ },
+ bindoc_dirs => [qw(script sbin)],
+ install_path => {
+- sbin => '/usr/sbin',
+- etc => 'etc'
++ bin => $ENV{PREFIX} . '/bin',
++ sbin => $ENV{PREFIX} . '/sbin',
++ man5 => $ENV{PREFIX} . '/' . $ENV{PKGMANDIR} . '/man5/',
++ man7 => $ENV{PREFIX} . '/' . $ENV{PKGMANDIR} . '/man7/'
++ },
++ bin_files => {
++ 'script/kgb-client' => 'bin/kgb-client'
+ },
+ sbin_files => {
+ 'script/kgb-bot' => 'sbin/kgb-bot',
+@@ -69,13 +74,16 @@ my $builder = My::Builder->new(
+ 'script/kgb-split-config' => 'sbin/kgb-split-config',
+ },
+ etc_files => { 'etc/kgb.conf' => 'etc/kgb-bot/kgb.conf' },
+- man_files => { 'man5/*' => 'man5/' },
+- script_files => [ 'script/kgb-client' ],
++ man_files => {
++ 'man5/*' => 'man5/',
++ 'man7/*' => 'man7/'
++ },
+ no_index => {
+ directory => [ 'privinc' ],
+ },
+ );
+
++$builder->add_build_element('bin');
+ $builder->add_build_element('sbin');
+ $builder->add_build_element('etc');
+ $builder->add_build_element('man');