pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/kgb-bot Fix the dependencies of the kgb-bot packa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ad6773ef93b7
branches:  trunk
changeset: 626233:ad6773ef93b7
user:      tonnerre <tonnerre%pkgsrc.org@localhost>
date:      Tue Nov 05 02:13:42 2013 +0000

description:
Fix the dependencies of the kgb-bot package and add an init script. Bump
pkg_revision.

diffstat:

 chat/kgb-bot/Makefile         |  21 ++++++++++++++++++---
 chat/kgb-bot/PLIST            |   1 +
 chat/kgb-bot/files/kgb_bot.sh |  16 ++++++++++++++++
 3 files changed, 35 insertions(+), 3 deletions(-)

diffs (69 lines):

diff -r 050c9b75ecb7 -r ad6773ef93b7 chat/kgb-bot/Makefile
--- a/chat/kgb-bot/Makefile     Tue Nov 05 01:50:46 2013 +0000
+++ b/chat/kgb-bot/Makefile     Tue Nov 05 02:13:42 2013 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.1.1.1 2013/10/20 14:16:16 tonnerre Exp $
+# $NetBSD: Makefile,v 1.2 2013/11/05 02:13:42 tonnerre Exp $
 #
 
-PKGNAME=       kgb-bot-1.31
-DISTNAME=      ${PKGNAME:S/kgb-bot/App-KGB/}
+DISTNAME=      App-KGB-1.31
+PKGNAME=       ${DISTNAME:S/App-KGB/kgb-bot/}
+PKGREVISION=   1
 
 CATEGORIES=    chat perl5 scm
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=App/}
@@ -22,6 +23,14 @@
 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
+DEPENDS+=              p5-POE-[0-9]*:../../devel/p5-POE
+DEPENDS+=              p5-POE-Component-IRC-[0-9]*:../../chat/p5-POE-Component-IRC
+DEPENDS+=              p5-POE-Component-Server-SOAP-[0-9]*:../../www/p5-POE-Component-Server-SOAP
+DEPENDS+=              p5-Proc-PID-File-[0-9]*:../../devel/p5-Proc-PID-File
+DEPENDS+=              p5-Schedule-RateLimiter-[0-9]*:../../devel/p5-Schedule-RateLimiter
+
+RCD_SCRIPTS=           kgb_bot
+RCD_SCRIPT_SRC.kgb_bot=        files/kgb_bot.sh
 
 REPLACE_INTERPRETER+=  perl
 REPLACE.perl.old=      /usr/bin/perl
@@ -30,6 +39,12 @@
 REPLACE_FILES.perl+=   script/kgb-split-config script/kgb-client
 REPLACE_FILES.perl+=   eg/simple-soap-client eg/simple-soap-server
 
+SUBST_CLASSES+=                configs
+SUBST_STAGE.configs=   pre-configure
+SUBST_FILES.configs=   script/kgb-add-project script/kgb-bot
+SUBST_FILES.configs+=  script/kgb-split-config
+SUBST_SED.configs=     -e "s,/etc/,${PKG_SYSCONFDIR}/,g"
+
 MAKE_ENV+=             PERL=${TOOLS_PATH.perl}
 
 PERL5_PACKLIST=                auto/App/KGB/.packlist
diff -r 050c9b75ecb7 -r ad6773ef93b7 chat/kgb-bot/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/kgb-bot/PLIST        Tue Nov 05 02:13:42 2013 +0000
@@ -0,0 +1,1 @@
+share/examples/rc.d/kgb_bot
diff -r 050c9b75ecb7 -r ad6773ef93b7 chat/kgb-bot/files/kgb_bot.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/kgb-bot/files/kgb_bot.sh     Tue Nov 05 02:13:42 2013 +0000
@@ -0,0 +1,16 @@
+#!/bin/sh
+#
+# $NetBSD: kgb_bot.sh,v 1.1 2013/11/05 02:13:42 tonnerre Exp $
+#
+# PROVIDE: kgb_bot
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="kgb_bot"
+rcvar=$name
+command="@PREFIX@/sbin/kgb-bot"
+required_files="@PKG_SYSCONFDIR@/kgb-bot/kgb.conf"
+
+load_rc_config $name
+run_rc_command "$1"



Home | Main Index | Thread Index | Old Index