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 |