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

(-)/home/atslog/release/atslog/Makefile (-21 / +34 lines)
Lines 6-31 Link Here
6
#
6
#
7
7
8
PORTNAME=	atslog
8
PORTNAME=	atslog
9
PORTVERSION=	2.0.0.p4
9
PORTVERSION=	2.0.0
10
PORTREVISION=	2
11
CATEGORIES=	comms
10
CATEGORIES=	comms
12
MASTER_SITES=	${MASTER_SITE_BERLIOS}
11
MASTER_SITES=	BERLIOS
13
MASTER_SITE_SUBDIR=${PORTNAME}
14
DISTNAME=	${PORTNAME}-2.0.0pre4
15
12
16
MAINTAINER=	ports@logvinov.com
13
MAINTAINER=	ports@logvinov.com
17
COMMENT=	Software for collecting and analyzing calls from different PBX models
14
COMMENT=	Software for collecting and analyzing calls from different PBX models
18
15
19
BUILD_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
20
RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
21
22
OPTIONS=	LIBWRAP		"Enable TCP wrapper support"			on \
16
OPTIONS=	LIBWRAP		"Enable TCP wrapper support"			on \
17
		MYSQL		"Enable MySQL support"				on \
18
		PGSQL		"Enable PostgreSQL support"			off \
23
		WWW		"Install web interface"				on \
19
		WWW		"Install web interface"				on \
24
		WWWGD		"Graphic reports"				on
20
		WWWGD		"Graphic reports"				on
25
21
26
HAS_CONFIGURE=	yes
22
HAS_CONFIGURE=	yes
27
USE_PERL5=	yes
23
USE_PERL5=	yes
28
USE_MYSQL=	yes
29
USE_RC_SUBR=	${PORTNAME}d
24
USE_RC_SUBR=	${PORTNAME}d
30
PORTDOCS=	CHANGES ChangeLog DEINSTALL INSTALL LICENSE TODO UPDATING USAGE
25
PORTDOCS=	CHANGES ChangeLog DEINSTALL INSTALL LICENSE TODO UPDATING USAGE
31
SUB_FILES=	pkg-message
26
SUB_FILES=	pkg-message
Lines 36-43 Link Here
36
31
37
.include <bsd.port.pre.mk>
32
.include <bsd.port.pre.mk>
38
33
34
.if defined(WITHOUT_MYSQL) && !defined(WITH_PGSQL)
35
IGNORE= is useless without a database. Please (re)run 'make config' and choose one of PGSQL and MYSQL"
36
.endif
37
39
.if !defined(WITHOUT_WWW)
38
.if !defined(WITHOUT_WWW)
40
USE_PHP=	mysql pcre
39
USE_PHP=	pcre
41
WANT_PHP_WEB=	yes
40
WANT_PHP_WEB=	yes
42
PLIST_SUB+=	WWW=""
41
PLIST_SUB+=	WWW=""
43
.if !defined(WITHOUT_WWWGD)
42
.if !defined(WITHOUT_WWWGD)
Lines 48-64 Link Here
48
PLIST_SUB+=	WWW="@comment "
47
PLIST_SUB+=	WWW="@comment "
49
.endif
48
.endif
50
49
50
.if !defined(WITHOUT_MYSQL)
51
USE_MYSQL=	yes
52
BUILD_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
53
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
54
.if !defined(WITHOUT_WWW)
55
USE_PHP+=	mysql
56
.endif
57
.endif
58
59
.if defined(WITH_PGSQL)
60
USE_PGSQL=	yes
61
BUILD_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
62
RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
63
.if !defined(WITHOUT_WWW)
64
USE_PHP+=	pgsql
65
.endif
66
.endif
67
51
post-patch:
68
post-patch:
52
.if defined(WITHOUT_LIBWRAP)
69
.if defined(WITHOUT_LIBWRAP)
53
	@${REINPLACE_CMD} -e 's|LIBWRAP=|#LIBWRAP=|' ${WRKSRC}/${USE_RC_SUBR}/Makefile
70
	@${REINPLACE_CMD} -e 's|LIBWRAP=|#LIBWRAP=|' ${WRKSRC}/${USE_RC_SUBR}/Makefile
54
	@${REINPLACE_CMD} -e 's|#define|//#define|' ${WRKSRC}/${USE_RC_SUBR}/${USE_RC_SUBR}.h
71
	@${REINPLACE_CMD} -e 's|#define|//#define|' ${WRKSRC}/${USE_RC_SUBR}/${USE_RC_SUBR}.h
55
.endif
72
.endif
56
	@${REINPLACE_CMD} -e 's|createsqltables.mysql.sql|${DATADIR}/sql/createsqltables.mysql.sql|' \
73
	@${REINPLACE_CMD} -e 's|createsqltables.|${DATADIR}/sql/createsqltables.|g' \
57
	    -e 's|data.sql|${DATADIR}/sql/data.sql|' ${WRKSRC}/data/sql/install-sql.pl
74
	    -e 's|data.sql|${DATADIR}/sql/data.sql|' ${WRKSRC}/data/sql/install-sql.pl
58
.for i in ${CONFIGS}
59
	@${REINPLACE_CMD} -e 's|/log|/log/atslog|' ${WRKSRC}/include/${i}.in
60
.endfor
61
	@${MV} ${WRKSRC}/www/include/set/conf.inc.php ${WRKSRC}/www/include/set/conf.inc.default.php
62
75
63
do-install:
76
do-install:
64
	@${INSTALL_PROGRAM} ${WRKSRC}/${USE_RC_SUBR}/${USE_RC_SUBR} ${PREFIX}/bin
77
	@${INSTALL_PROGRAM} ${WRKSRC}/${USE_RC_SUBR}/${USE_RC_SUBR} ${PREFIX}/bin
Lines 96-113 Link Here
96
	${INSTALL_SCRIPT} ${WRKSRC}/data/sql/install-sql.pl ${DATADIR}/sql
109
	${INSTALL_SCRIPT} ${WRKSRC}/data/sql/install-sql.pl ${DATADIR}/sql
97
	${MKDIR} ${PREFIX}/libexec/${PORTNAME}
110
	${MKDIR} ${PREFIX}/libexec/${PORTNAME}
98
	cd ${WRKSRC}/libexec && \
111
	cd ${WRKSRC}/libexec && \
99
	${FIND} * -type f -exec \
112
	${FIND} . -type f -exec \
100
		${INSTALL_DATA} "{}" "${PREFIX}/libexec/${PORTNAME}/{}" \;
113
		${INSTALL_DATA} "{}" "${PREFIX}/libexec/${PORTNAME}/{}" \;
101
.if !defined(WITHOUT_WWW)
114
.if !defined(WITHOUT_WWW)
102
	${MKDIR} ${PREFIX}/www/${PORTNAME}
115
	${MKDIR} ${PREFIX}/www/${PORTNAME}
103
	cd ${WRKSRC}/www && \
116
	cd ${WRKSRC}/www && \
104
	${FIND} * -type d ! -empty -exec \
117
	${FIND} . -type d ! -empty -exec \
105
		${MKDIR} "${PREFIX}/www/${PORTNAME}/{}" \; && \
118
		${MKDIR} "${PREFIX}/www/${PORTNAME}/{}" \; && \
106
	${FIND} -E * -type f ! -iregex ".*Makefile" -exec \
119
	${FIND} -E . -type f ! -iregex "(.*Makefile|.*\.orig)" -exec \
107
		${INSTALL_DATA} "{}" "${PREFIX}/www/${PORTNAME}/{}" \;
120
		${INSTALL_DATA} "{}" "${PREFIX}/www/${PORTNAME}/{}" \;
108
.if !exists(${PREFIX}/www/${PORTNAME}/include/set/conf.inc.php)
121
.if !exists(${PREFIX}/www/${PORTNAME}/include/config.inc.php)
109
	${INSTALL_DATA} ${WRKSRC}/www/include/set/conf.inc.default.php \
122
	${INSTALL_DATA} ${WRKSRC}/www/include/config.inc.php.default \
110
		${PREFIX}/www/${PORTNAME}/include/set/conf.inc.php
123
		${PREFIX}/www/${PORTNAME}/include/config.inc.php
111
.endif
124
.endif
112
	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/www/${PORTNAME}
125
	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/www/${PORTNAME}
113
.endif
126
.endif
(-)/home/atslog/release/atslog/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (atslog-2.0.0pre4.tar.gz) = 2b6a76f6af5bbd5a2eefd61fc48e784d
1
MD5 (atslog-2.0.0.tar.gz) = 441c1fef1fae4a4a56a7de1f2841df94
2
SHA256 (atslog-2.0.0pre4.tar.gz) = bf639ed98784d6e1c24fefbed29b830016275374c75eb32b3c90c0a14bbeb5d7
2
SHA256 (atslog-2.0.0.tar.gz) = 33dea90446f9dec22c9aaa6b2e59e21868574300cbf317a16b50ab265d75ce18
3
SIZE (atslog-2.0.0pre4.tar.gz) = 589398
3
SIZE (atslog-2.0.0.tar.gz) = 596792
(-)/home/atslog/release/atslog/files/atslogd.in (-1 / +1 lines)
Lines 3-9 Link Here
3
# $FreeBSD: ports/comms/atslog/files/atslogd.in,v 1.1 2006/12/27 15:14:32 miwi Exp $
3
# $FreeBSD: ports/comms/atslog/files/atslogd.in,v 1.1 2006/12/27 15:14:32 miwi Exp $
4
#
4
#
5
# PROVIDE: atslogd
5
# PROVIDE: atslogd
6
# REQUIRE: mysql
6
# REQUIRE: mysql postgresql
7
# KEYWORD: shutdown 
7
# KEYWORD: shutdown 
8
8
9
#
9
#
(-)/home/atslog/release/atslog/files/patch-diagram_bars.php (+26 lines)
Line 0 Link Here
1
--- www/diagram/diagram_bars_dur.php.orig	Thu Jan 11 05:43:48 2007
2
+++ www/diagram/diagram_bars_dur.php		Thu Jan 11 20:22:30 2007
3
@@ -107,23 +107,7 @@
4
 	$prevDay=$mkday;
5
 	$prevDOfMonth=$DayOfMonth;
6
     }
7
-    $Columns = sizeof($allDays);
8
-    if($Columns > 30){
9
-	$delta = ceil($Columns/30);
10
 
11
-	$giveDelta=0;
12
-	while (list($key, $val) = each($allDays)) {
13
-	    if($giveDelta == $key){
14
-		$giveDelta+=$delta;
15
-	    }else{
16
-	        $allDays[$key][0]='';
17
-	    }
18
-	    if($val[1] > $maxValue){
19
-		$maxValue=$val[1];
20
-	    }
21
-	}
22
-    }
23
-    
24
 //if($debug) print_r($allDays);
25
 //if($debug) print("I".$maxValue."I");
26
 
(-)/home/atslog/release/atslog/files/patch-diagram_bars_dur.php (+26 lines)
Line 0 Link Here
1
--- www/diagram/diagram_bars.php.orig	Thu Jan 11 05:43:48 2007
2
+++ www/diagram/diagram_bars.php	Thu Jan 11 20:22:30 2007
3
@@ -105,23 +105,6 @@
4
 	$prevDOfMonth=$DayOfMonth;
5
     }
6
 
7
-    $Columns = sizeof($allDays);
8
-    if($Columns > 30){                             
9
-	$delta = ceil($Columns/30);                
10
-                                                   
11
-	$giveDelta=0;                              
12
-	while (list($key, $val) = each($allDays)) {
13
-    	    if($giveDelta == $key){                
14
-        	$giveDelta+=$delta;                
15
-    	    }else{                                 
16
-        	$allDays[$key][0]='';              
17
-    	    }                                      
18
-    	    if($val[1] > $maxValue){               
19
-        	$maxValue=$val[1];                 
20
-    	    }
21
-	}                                          
22
-    }
23
-
24
 if($debug) print_r($allDays);
25
 if($debug) print("I".$maxValue."I");
26
 
(-)/home/atslog/release/atslog/files/patch-include__atslogmaster.in (-11 lines)
Lines 1-11 Link Here
1
--- ./include/atslogmaster.in.orig	Sat Dec 30 06:04:56 2006
2
+++ ./include/atslogmaster.in	Sat Dec 30 06:05:08 2006
3
@@ -45,6 +45,8 @@
4
     ;;
5
 esac
6
 
7
+mkdir -p $logdir
8
+
9
 # ðÒÏ×ÅÒÉÍ, ÉÓÐÏÌØÚÕÅÔÓÑ tcp ÐÏÒÔ, ÉÌÉ ÐÏÒÔ × /dev/
10
 TCPPORT=$(expr $port : ".*tcp:.*\$")
11
 if [ $TCPPORT = 0 ];then
(-)/home/atslog/release/atslog/files/pkg-message.in (-1 / +1 lines)
Lines 17-20 Link Here
17
	Allow from 127.0.0.1 .example.com
17
	Allow from 127.0.0.1 .example.com
18
    </Directory>
18
    </Directory>
19
19
20
and then edit  %%PREFIX%%/www/atslog/include/set/conf.inc.php
20
and then edit  %%PREFIX%%/www/atslog/include/config.inc.php
(-)/home/atslog/release/atslog/pkg-descr (-1 / +1 lines)
Lines 3-6 Link Here
3
models. At present, the program operates successfully with Panasonic, Samsung,
3
models. At present, the program operates successfully with Panasonic, Samsung,
4
Hybrex, Siemens, LG, and Alcatel PBX models.
4
Hybrex, Siemens, LG, and Alcatel PBX models.
5
5
6
WWW: http://www.atslog.dp.ua/en/about/
6
WWW: http://www.atslog.com/en/about/
(-)/home/atslog/release/atslog/pkg-plist (-5 / +10 lines)
Lines 1-5 Link Here
1
@unexec if cmp -s %D/etc/atslog.conf %D/etc/atslog.conf.default; then rm -f %D/etc/atslog.conf; fi
1
@unexec if cmp -s %D/etc/atslog.conf %D/etc/atslog.conf.default; then rm -f %D/etc/atslog.conf; fi
2
%%WWW%%@unexec if cmp -s %D/www/atslog/include/set/conf.inc.php %D/www/atslog/include/set/conf.inc.default.php; then rm -f %D/www/atslog/include/set/conf.inc.php; fi
2
%%WWW%%@unexec if cmp -s %D/www/atslog/include/config.inc.php %D/www/atslog/include/config.inc.php.default; then rm -f %D/www/atslog/include/config.inc.php; fi
3
bin/atslogcleardb.pl
3
bin/atslogcleardb.pl
4
bin/atslogd
4
bin/atslogd
5
bin/atslogdaily
5
bin/atslogdaily
Lines 22-37 Link Here
22
libexec/atslog/kx-td1232.lib
22
libexec/atslog/kx-td1232.lib
23
libexec/atslog/kx-td500.lib
23
libexec/atslog/kx-td500.lib
24
libexec/atslog/kx-td816ru.lib
24
libexec/atslog/kx-td816ru.lib
25
libexec/atslog/kx-tda100.lib
25
libexec/atslog/ldk-300.lib
26
libexec/atslog/ldk-300.lib
26
libexec/atslog/nx-820.lib
27
libexec/atslog/nx-820.lib
28
libexec/atslog/officeserv-7200.lib
27
libexec/atslog/skp-816.lib
29
libexec/atslog/skp-816.lib
28
%%DATADIR%%/lang/en_US
30
%%DATADIR%%/lang/en_US
29
%%DATADIR%%/lang/ru_RU.CP1251
31
%%DATADIR%%/lang/ru_RU.CP1251
30
%%DATADIR%%/lang/ru_RU.KOI8-R
32
%%DATADIR%%/lang/ru_RU.KOI8-R
31
%%DATADIR%%/lang/ru_RU.UTF-8
33
%%DATADIR%%/lang/ru_RU.UTF-8
34
%%DATADIR%%/sql/createsqltables.Pg.sql
32
%%DATADIR%%/sql/createsqltables.mysql.sql
35
%%DATADIR%%/sql/createsqltables.mysql.sql
33
%%DATADIR%%/sql/createsqltables.pgsql.sql
34
%%DATADIR%%/sql/createuser.pgsql.sql
35
%%DATADIR%%/sql/data.sql
36
%%DATADIR%%/sql/data.sql
36
%%DATADIR%%/sql/install-sql.pl
37
%%DATADIR%%/sql/install-sql.pl
37
%%EXAMPLESDIR%%/textlogs/Alcatel 4200.txt
38
%%EXAMPLESDIR%%/textlogs/Alcatel 4200.txt
Lines 74-85 Link Here
74
%%EXAMPLESDIR%%/textlogs/Panasonic KX-TD500 Type C.txt
75
%%EXAMPLESDIR%%/textlogs/Panasonic KX-TD500 Type C.txt
75
%%EXAMPLESDIR%%/textlogs/Panasonic KX-TD500 Type D.txt
76
%%EXAMPLESDIR%%/textlogs/Panasonic KX-TD500 Type D.txt
76
%%EXAMPLESDIR%%/textlogs/Panasonic KX-TD816RU.txt
77
%%EXAMPLESDIR%%/textlogs/Panasonic KX-TD816RU.txt
78
%%EXAMPLESDIR%%/textlogs/Panasonic KX-TDA100 A.txt
79
%%EXAMPLESDIR%%/textlogs/Panasonic KX-TDA100 B.txt
80
%%EXAMPLESDIR%%/textlogs/Panasonic KX-TDA100 C.txt
77
%%EXAMPLESDIR%%/textlogs/Panasonic KX-TEM824.txt
81
%%EXAMPLESDIR%%/textlogs/Panasonic KX-TEM824.txt
78
%%EXAMPLESDIR%%/textlogs/Samsung DCS Compact II.txt
82
%%EXAMPLESDIR%%/textlogs/Samsung DCS Compact II.txt
79
%%EXAMPLESDIR%%/textlogs/Samsung DCS.txt
83
%%EXAMPLESDIR%%/textlogs/Samsung DCS.txt
80
%%EXAMPLESDIR%%/textlogs/Samsung NX-1232.txt
84
%%EXAMPLESDIR%%/textlogs/Samsung NX-1232.txt
81
%%EXAMPLESDIR%%/textlogs/Samsung NX-820(variant 1).txt
85
%%EXAMPLESDIR%%/textlogs/Samsung NX-820(variant 1).txt
82
%%EXAMPLESDIR%%/textlogs/Samsung NX-820(variant 2).txt
86
%%EXAMPLESDIR%%/textlogs/Samsung NX-820(variant 2).txt
87
%%EXAMPLESDIR%%/textlogs/Samsung OfficeServ 7200.txt
83
%%EXAMPLESDIR%%/textlogs/Samsung SKP 56_120.txt
88
%%EXAMPLESDIR%%/textlogs/Samsung SKP 56_120.txt
84
%%EXAMPLESDIR%%/textlogs/Samsung SKP-36HX.txt
89
%%EXAMPLESDIR%%/textlogs/Samsung SKP-36HX.txt
85
%%EXAMPLESDIR%%/textlogs/Samsung SKP-816.txt
90
%%EXAMPLESDIR%%/textlogs/Samsung SKP-816.txt
Lines 208-215 Link Here
208
%%WWW%%www/atslog/include/set/printfooter.html
213
%%WWW%%www/atslog/include/set/printfooter.html
209
%%WWW%%www/atslog/include/set/menuTable.html
214
%%WWW%%www/atslog/include/set/menuTable.html
210
%%WWW%%www/atslog/include/set/footer.html
215
%%WWW%%www/atslog/include/set/footer.html
211
%%WWW%%www/atslog/include/set/conf.inc.default.php
216
%%WWW%%www/atslog/include/config.inc.php.default
212
%%WWW%%@exec [ -f %B/conf.inc.php ] || cp %B/%f %B/conf.inc.php
217
%%WWW%%@exec [ -f %B/config.inc.php ] || cp %B/%f %B/config.inc.php
213
%%WWW%%www/atslog/include/set/functions.js
218
%%WWW%%www/atslog/include/set/functions.js
214
%%WWW%%www/atslog/include/set/commonData.php
219
%%WWW%%www/atslog/include/set/commonData.php
215
%%WWW%%www/atslog/include/set/.htaccess
220
%%WWW%%www/atslog/include/set/.htaccess

Return to bug 107820