View | Details | Raw Unified | Return to bug 87560
Collapse All | Expand All

(-)sulci/Makefile (-7 / +10 lines)
Lines 6-15 Link Here
6
#
6
#
7
7
8
PORTNAME=	sulci
8
PORTNAME=	sulci
9
PORTVERSION=	0.5.a.20050723
9
PORTVERSION=	0.5.a.20050918
10
PORTEPOCH=	1
10
PORTEPOCH=	1
11
CATEGORIES=	net
11
CATEGORIES=	net
12
MASTER_SITES=	http://neva.vlink.ru/distfiles/
12
MASTER_SITES=	http://www.jabber.ru/files/sulci/
13
DISTNAME=	${PORTNAME}-${PORTVERSION:S/.a./-alpha-/}
13
14
14
MAINTAINER=	dsh@vlink.ru
15
MAINTAINER=	dsh@vlink.ru
15
COMMENT=	A Jabber bot
16
COMMENT=	A Jabber bot
Lines 19-38 Link Here
19
		${OCAML_SITELIBDIR}/ulex/ulexing.a:${PORTSDIR}/devel/ocaml-ulex \
20
		${OCAML_SITELIBDIR}/ulex/ulexing.a:${PORTSDIR}/devel/ocaml-ulex \
20
		ocamlfind:${PORTSDIR}/devel/ocaml-findlib \
21
		ocamlfind:${PORTSDIR}/devel/ocaml-findlib \
21
		${OCAML_SITELIBDIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net \
22
		${OCAML_SITELIBDIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net \
23
		${OCAML_SITELIBDIR}/netclient/netclient.a:${PORTSDIR}/net/ocaml-netclient \
22
		${OCAML_SITELIBDIR}/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre
24
		${OCAML_SITELIBDIR}/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre
23
LIB_DEPENDS=	sqlite.2:${PORTSDIR}/databases/sqlite2 \
25
LIB_DEPENDS=	sqlite.2:${PORTSDIR}/databases/sqlite2 \
24
		pcre.0:${PORTSDIR}/devel/pcre-utf8
26
		pcre.0:${PORTSDIR}/devel/pcre-utf8
25
RUN_DEPENDS=	${OCAML_SITELIBDIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net \
27
RUN_DEPENDS=	${OCAML_SITELIBDIR}/netstring/netstring.a:${PORTSDIR}/www/ocaml-net \
26
		${OCAML_SITELIBDIR}/pcre/pcre.a:${PORTSDIR}/devel/ocaml-pcre \
27
		mueller:${PORTSDIR}/russian/mueller-dic
28
		mueller:${PORTSDIR}/russian/mueller-dic
28
29
29
OCAML_SITELIBDIR=	${LOCALBASE}/lib/ocaml/site-lib
30
31
USE_BZIP2=	yes
30
USE_BZIP2=	yes
32
USE_GMAKE=	yes
31
USE_GMAKE=	yes
33
USE_RC_SUBR=	${PORTNAME}.sh
32
USE_RC_SUBR=	${PORTNAME}.sh
34
33
35
ALL_TARGET=	subdirs
34
ALL_TARGET=	subdirs
35
PKGMESSAGE=	${WRKDIR}/pkg-message
36
SUB_FILES=	pkg-message
37
38
OCAML_SITELIBDIR=	${LOCALBASE}/lib/ocaml/site-lib
36
39
37
do-install:
40
do-install:
38
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}/${PORTNAME} ${PREFIX}/sbin
41
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}/${PORTNAME} ${PREFIX}/sbin
Lines 47-58 Link Here
47
.if !defined(NOPORTDOCS)
50
.if !defined(NOPORTDOCS)
48
	${MKDIR} ${DOCSDIR}
51
	${MKDIR} ${DOCSDIR}
49
52
50
.  for i in COPYING ChangeLog
53
.  for i in COPYING
51
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
54
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
52
.  endfor
55
.  endfor
53
56
54
.  for i in cmdlist.en.txt cmdlist.ru.txt
57
.  for i in cmdlist.en.txt cmdlist.ru.txt
55
	${INSTALL_DATA} ${WRKSRC}/doc/sulci/${i} ${DOCSDIR}
58
	${INSTALL_DATA} ${WRKSRC}/docs/sulci/${i} ${DOCSDIR}
56
.  endfor
59
.  endfor
57
.endif
60
.endif
58
61
(-)sulci/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (sulci-0.5.a.20050723.tar.bz2) = 5aec17e5dea265c25e0819d19bc96ad0
1
MD5 (sulci-0.5-alpha-20050918.tar.bz2) = cfcb70be47815ebb54e9722469d5403d
2
SIZE (sulci-0.5.a.20050723.tar.bz2) = 156778
2
SIZE (sulci-0.5-alpha-20050918.tar.bz2) = 351692
(-)sulci/files/patch-doc-sulci-cmdlist.en.txt (+20 lines)
Line 0 Link Here
1
--- docs/sulci/cmdlist.en.txt.orig	Thu Aug  4 17:10:21 2005
2
+++ docs/sulci/cmdlist.en.txt	Fri Aug  5 12:17:58 2005
3
@@ -157,3 +157,17 @@
4
 
5
   Show wheater status from http://weather.noaa.gov/ for city by given
6
   4 symbols code.
7
+
8
+
9
+* tr list
10
+
11
+  Show list of language codes for translating.
12
+
13
+* tr lang text
14
+
15
+  Translate text via http://www.translate.ru/ as language code say.
16
+
17
+
18
+* vcard nick
19
+
20
+  Show nick's vCard, if any.
(-)sulci/files/patch-doc-sulci-cmdlist.ru.txt (+21 lines)
Line 0 Link Here
1
--- docs/sulci/cmdlist.ru.txt.orig	Thu Aug  4 17:10:22 2005
2
+++ docs/sulci/cmdlist.ru.txt	Fri Aug  5 12:17:27 2005
3
@@ -169,3 +169,18 @@
4
 
5
   ÷Ù×ÏÄÉÔ ÐÒÏÇÎÏÚ ÐÏÇÏÄÙ Ó http://weather.noaa.gov/ ÄÌÑ ÇÏÒÏÄÁ,
6
   ÏÂÏÚÎÁÞÅÎÎÏÇÏ 4-È ÂÕË×ÅÎÎÙÍ ËÏÄÏÍ code.
7
+
8
+
9
+* tr list
10
+
11
+  ÷Ù×ÏÄÉÔ ÓÐÉÓÏË ËÏÄÏ× ÑÚÙËÏ×, ÄÌÑ ÐÅÒÅ×ÏÄÁ.
12
+
13
+* tr lang text
14
+
15
+  ðÅÒÅ×ÏÄÉÔ ÕËÁÚÁÎÎÙÊ ÔÅËÓÔ ÞÅÒÅÚ http://www.translate.ru/ ×
16
+  ÓÏÏÔ×ÅÔÓÔ×ÉÉ Ó ËÏÄÏÍ ÑÚÙËÁ.
17
+
18
+
19
+* vcard nick
20
+
21
+  ÷Ù×ÏÄÉÔ vCard ÕËÁÚÁÎÎÏÇÏ ÎÉËÁ, ÅÓÌÉ ÅÓÔØ.
(-)sulci/files/patch-sulci-plugin_cerberus.ml (+20 lines)
Line 0 Link Here
1
--- sulci/plugin_cerberus.ml.orig	Sun Sep 18 16:10:16 2005
2
+++ sulci/plugin_cerberus.ml	Tue Sep 20 16:23:52 2005
3
@@ -10,7 +10,7 @@
4
 open Hooks
5
 
6
 let regexp ca          = 0x430 | 0x410 | 'a' | 'A'
7
-let regexp cb          = 0x431 | 0x411 | '6'
8
+let regexp cb          = 0x431 | 0x411
9
 let regexp cv          = 0x432 | 0x412 | 'B' 
10
 let regexp cg          = 0x433 | 0x413
11
 let regexp cd          = 0x434 | 0x414
12
@@ -45,7 +45,7 @@
13
 
14
 let regexp cyrillic = [0x410-0x44F 0x451 0x401 '0' '3' 'a''A' 'e' 'E' 'H' 
15
 			  'o' 'O' 'c' 'C' 'k' 'K' 'T' 'x' 'X' 'y' 'Y' 'p' 
16
-			  'P' '6' '0'] | "|/|" | "bl" | "bI"
17
+			  'P' '0'] | "|/|" | "bl" | "bI"
18
 
19
 let regexp ci_ie_io = ci | cie | cio
20
 let regexp cie_io = cie | cio
(-)sulci/files/patch-sulci-sulci.conf.example (-25 / +10 lines)
Lines 1-5 Link Here
1
--- sulci/sulci.conf.example.orig	Mon Jul 25 12:52:33 2005
1
--- sulci/sulci.conf.example.orig	Sun Sep 18 18:32:13 2005
2
+++ sulci/sulci.conf.example	Mon Jul 25 14:34:06 2005
2
+++ sulci/sulci.conf.example	Tue Sep 20 16:02:07 2005
3
@@ -1,6 +1,6 @@
3
@@ -1,6 +1,6 @@
4
 <sulci>
4
 <sulci>
5
  <jabber>
5
  <jabber>
Lines 8-16 Link Here
8
   <port>5222</port>
8
   <port>5222</port>
9
   <user>sxxxx</user>
9
   <user>sxxxx</user>
10
   <resource>Ocaml</resource>
10
   <resource>Ocaml</resource>
11
@@ -14,20 +14,22 @@
11
@@ -15,13 +15,13 @@
12
  -->
12
 
13
  <reconnect interval='10' count='3' />
13
  <lifelog>./sulci_life.log</lifelog>
14
 
14
 
15
- <lang dir="./lang" default="ru"/>
15
- <lang dir="./lang" default="ru"/>
16
+ <lang dir="/usr/local/share/sulci/lang" default="ru"/>
16
+ <lang dir="/usr/local/share/sulci/lang" default="ru"/>
Lines 25-54 Link Here
25
 
25
 
26
   <chatlogs>./chatlogs</chatlogs>
26
   <chatlogs>./chatlogs</chatlogs>
27
  </muc>
27
  </muc>
28
 
28
@@ -40,9 +40,9 @@
29
+ <!--
30
  <debug>
31
   <logfile>log.log</logfile>
32
  </debug>
33
+ -->
34
 
35
  <plugins>
36
 
37
@@ -37,7 +39,7 @@
38
 
29
 
39
   <vocabulary name="vocabulary"/>
30
   <vocabulary name="vocabulary"/>
40
 
31
 
41
-  <mueller file="/path/to/Mueller24.koi" hashext=".hash" />
32
-  <mueller file="/path/to/Mueller24.koi" hashext=".hash" />
42
+  <mueller file="/usr/local/share/mueller-dic/Mueller7accentGPL.koi" hashext=".h" />
33
+  <mueller file="/usr/local/share/mueller-dic/Mueller7accentGPL.koi" hashext=".h" />
43
 
34
 
44
   <markov dir="./markov_db" msg_limit="20" />
35
-  <markov dir="./markov_db" msg_limit="20" />
45
 
36
+  <markov dir="./markov_db/" msg_limit="20" />
46
@@ -59,7 +61,7 @@
47
   -->
48
 
49
   <cerberus kick="true">
50
-   <notify jid="jid@jabber.server"/>
51
+   <notify jid="admin@localhost"/>
52
   </cerberus>
53
 
37
 
54
  </plugins>
38
   <!-- it used on http://ejabberd.jabber.ru/ to display total registered users 
39
        and users online using ejabberd -->
(-)sulci/files/pkg-message.in (+23 lines)
Line 0 Link Here
1
You have to do something like bellow before starting up the bot.
2
3
  # mkdir home/of/the/sulci/the/bot
4
  # cd    home/of/the/sulci/the/bot
5
  # cp %%PREFIX%%/share/examples/sulci/sulci.conf.example sulci.conf
6
  # vi sulci.conf
7
  # ln -s %%PREFIX%%/share/sulci/tlds.db .
8
9
  # echo sulci_enable=\"YES\" >> /etc/rc.conf
10
  # echo sulci_chdir=\"home/of/the/sulci/the/bot\" >> /etc/rc.conf
11
12
13
Also, you could add rc.subr's vars like this:
14
15
  sulci_user="sulci"
16
  sulci_nice="20"
17
  sulci_precmd="eval `/usr/bin/limits -U sulci -e`"
18
19
and don't forget to chown home/of/the/sulci/the/bot
20
21
22
Note: you have to get the key from Google before using the "google"
23
plug-in. See http://api.google.com/ for how to.
(-)sulci/files/sulci.sh.in (-1 / +1 lines)
Lines 21-27 Link Here
21
name="sulci"
21
name="sulci"
22
rcvar=`set_rcvar`
22
rcvar=`set_rcvar`
23
command="%%PREFIX%%/sbin/sulci"
23
command="%%PREFIX%%/sbin/sulci"
24
command_args="> /dev/null 2>&1 &"
24
command_args="&"
25
25
26
load_rc_config $name
26
load_rc_config $name
27
27
(-)sulci/pkg-message (-23 lines)
Lines 1-23 Link Here
1
You have to do something like bellow before starting up the bot.
2
3
  # mkdir home/of/the/sulci/the/bot
4
  # cd    home/of/the/sulci/the/bot
5
  # cp ${PREFIX}/share/examples/sulci/sulci.conf.example sulci.conf
6
  # vi sulci.conf
7
  # ln -s ${PREFIX}/share/sulci/tlds.db .
8
9
  # echo sulci_enable=\"YES"\ >> /etc/rc.conf
10
  # echo sulci_chdir=\"home/of/the/sulci/the/bot\" >> /etc/rc.conf
11
12
13
Also, you could add rc.subr's vars like this:
14
15
  sulci_user="sulci"
16
  sulci_nice="20"
17
  sulci_precmd="eval `/usr/bin/limits -U sulci -e`"
18
19
and don't forget to chown home/of/the/sulci/the/bot
20
21
22
Note: you have to get the key from Google before using the "google"
23
plug-in. See http://api.google.com/ for how to.
(-)sulci/pkg-plist (-1 lines)
Lines 13-19 Link Here
13
%%DATADIR%%/lang/ru_time.ml
13
%%DATADIR%%/lang/ru_time.ml
14
%%EXAMPLESDIR%%/sulci.conf.example
14
%%EXAMPLESDIR%%/sulci.conf.example
15
%%PORTDOCS%%%%DOCSDIR%%/COPYING
15
%%PORTDOCS%%%%DOCSDIR%%/COPYING
16
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
17
%%PORTDOCS%%%%DOCSDIR%%/cmdlist.en.txt
16
%%PORTDOCS%%%%DOCSDIR%%/cmdlist.en.txt
18
%%PORTDOCS%%%%DOCSDIR%%/cmdlist.ru.txt
17
%%PORTDOCS%%%%DOCSDIR%%/cmdlist.ru.txt
19
%%PORTDOCS%%@dirrm %%DOCSDIR%%
18
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 87560