head	1.19;
access;
symbols
	RELEASE_8_3_0:1.13
	RELEASE_9_0_0:1.13
	RELEASE_7_4_0:1.11
	RELEASE_8_2_0:1.11
	RELEASE_6_EOL:1.11
	RELEASE_8_1_0:1.10
	RELEASE_7_3_0:1.10
	RELEASE_8_0_0:1.9
	RELEASE_7_2_0:1.8
	RELEASE_7_1_0:1.6
	RELEASE_6_4_0:1.6
	RELEASE_5_EOL:1.5
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2;
locks; strict;
comment	@# @;


1.19
date	2013.03.22.15.52.26;	author svnexp;	state Exp;
branches;
next	1.18;

1.18
date	2012.11.17.06.02.28;	author svnexp;	state Exp;
branches;
next	1.17;

1.17
date	2012.08.03.15.54.35;	author cs;	state Exp;
branches;
next	1.16;

1.16
date	2012.06.13.16.36.03;	author flo;	state Exp;
branches;
next	1.15;

1.15
date	2012.06.09.11.10.50;	author scheidell;	state Exp;
branches;
next	1.14;

1.14
date	2012.06.01.05.24.48;	author dinoex;	state Exp;
branches;
next	1.13;

1.13
date	2011.09.14.21.42.04;	author flo;	state Exp;
branches;
next	1.12;

1.12
date	2011.02.25.01.32.08;	author delphij;	state Exp;
branches;
next	1.11;

1.11
date	2010.11.23.02.31.16;	author fjoe;	state Exp;
branches;
next	1.10;

1.10
date	2010.01.10.23.40.08;	author pgollucci;	state Exp;
branches;
next	1.9;

1.9
date	2009.07.31.13.56.23;	author dinoex;	state Exp;
branches;
next	1.8;

1.8
date	2009.02.08.03.14.13;	author pgollucci;	state Exp;
branches;
next	1.7;

1.7
date	2009.01.05.19.04.36;	author delphij;	state Exp;
branches;
next	1.6;

1.6
date	2008.06.06.14.06.47;	author edwin;	state Exp;
branches;
next	1.5;

1.5
date	2008.05.24.06.12.54;	author edwin;	state Exp;
branches;
next	1.4;

1.4
date	2008.05.24.06.12.11;	author edwin;	state Exp;
branches;
next	1.3;

1.3
date	2008.03.27.10.58.30;	author kuriyama;	state Exp;
branches;
next	1.2;

1.2
date	2007.10.02.18.51.44;	author lwhsu;	state Exp;
branches;
next	1.1;

1.1
date	2007.07.28.09.21.14;	author lwhsu;	state Exp;
branches;
next	;


desc
@@


1.19
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314915
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Fumihiko Kimura <jfkimura@@yahoo.com>
# $FreeBSD: head/www/asterisk-stat/Makefile 314915 2013-03-22 11:53:34Z bapt $

PORTNAME=	asterisk-stat
PORTVERSION=	2.0.1
PORTREVISION=	13
CATEGORIES=	www
MASTER_SITES=	http://www.areski.net/${SITE_SUBDIR}/
DISTNAME=	${PORTNAME}-v${PORTVERSION:S/./_/g}

MAINTAINER=	jfkimura@@yahoo.co.jp
COMMENT=	ASTERISK call detail records analyzer

LIB_DEPENDS=	gd.[4-9]:${PORTSDIR}/graphics/gd

NO_BUILD=	yes
USE_PHP=	session gd pcre
WANT_PHP_WEB=	yes
ASTERISKDIR?=	${WWWDIR}
SITE_SUBDIR=	asterisk-stat-v2
WRKSRC=		${WRKDIR}/${SITE_SUBDIR}
SUB_FILES=	pkg-message
SUB_LIST+=	ASTERISKDIR=${ASTERISKDIR}

OPTIONS_DEFINE=	PGSQL
PGSQL_DESC=	Use PostgreSQL instead of MySQL

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MGSQL}
ASTERISKSTATDB=	pgsql
EXTRA_PATCHES+=	${FILESDIR}/pgsql__patch-call.log.php
.else
ASTERISKSTATDB=	mysql
.endif

USE_PHP+=	${ASTERISKSTATDB}
EXTRA_PATCHES+=	${FILESDIR}/${ASTERISKSTATDB}__patch-cdr.php \
		${FILESDIR}/${ASTERISKSTATDB}__patch-defines.php
PLIST_SUB+=	ASTERISKDIR=${ASTERISKDIR:S,^${PREFIX}/,,} \
		ASTERISKSTATDB=${ASTERISKSTATDB}

post-patch:
	@@${MV} ${WRKSRC}/images/print.css ${WRKSRC}/css
	@@${CP} ${WRKSRC}/images/spacer.gif ${WRKSRC}/images/clear.gif
	@@${CP} ${WRKSRC}/css/images/*png ${WRKSRC}/images
	@@${RM} ${WRKSRC}/about.php \
		${WRKSRC}/lib/defines.php.orig \
		${WRKSRC}/cdr.php.orig \
		${WRKSRC}/export_pdf.php.orig

do-install:
	@@${MKDIR} ${ASTERISKDIR}
	@@${MV} ${WRKSRC}/lib/defines.php ${WRKSRC}/lib/defines.php-dist
	(cd ${WRKSRC}/ && ${COPYTREE_SHARE} \* ${ASTERISKDIR})
	${MKDIR} ${PREFIX}/etc/asterisk
	${INSTALL_DATA} ${FILESDIR}/cdr_${ASTERISKSTATDB}.tbl ${PREFIX}/etc/asterisk
	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${ASTERISKDIR}

.include <bsd.port.mk>
@


1.18
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	www/asterisk-stat
# Date created:				16 June 2007
# Whom:					Fumihiko Kimura <jfkimura@@yahoo.com>
#
# $FreeBSD: head/www/asterisk-stat/Makefile 301960 2012-08-03 15:54:35Z cs $
#
d25 2
a26 1
OPTIONS=	PGSQL "Use PostgreSQL instead of MySQL" off
d28 1
a28 1
.include <bsd.port.pre.mk>
d30 1
a30 1
.if defined(WITH_PGSQL)
d60 1
a60 1
.include <bsd.port.post.mk>
@


1.17
log
@SVN rev 301960 on 2012-08-03 15:54:35Z by cs

Fix typos and make small modifications in COMMENT (according to Porter's
Handbook)

Approved by:	portmgr@@ (implicit)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.16
log
@do not depend on a specific version of asterisk, it works with any version of
asterisk

Submitted by:	jfkimura@@yahoo.co.jp (maintainer)
@
text
@d16 1
a16 1
COMMENT=	ASTERISK Call Detail Records Analizer
@


1.15
log
@- Fix pgsql select substring() problem
- pet portlint (gd.4 to gd.[4-9] in LIB_DEPENDS)
- Bump PORTREVISION

PR:		ports/166662
Submitted by:	Veselin Slavov <vess@@slavof.net>
Reviewed by:	scheidell@@ (me)
Approved by:	F. Kimura <jfkimura@@yahoo.co.jp> (maintainer)
@
text
@d10 1
a10 1
PORTREVISION=	12
a37 1
RUN_DEPENDS+=	${LOCALBASE}/lib/asterisk/modules/cdr_addon_mysql.so:${PORTSDIR}/net/asterisk16-addons
@


1.14
log
@- update png to 1.5.10
@
text
@d10 1
a10 1
PORTREVISION=	11
d18 1
a18 1
LIB_DEPENDS=	gd.4:${PORTSDIR}/graphics/gd
d35 1
@


1.13
log
@- make this port usable again by depending on asterisk16-addons instead of
  asterisk14-addons as asterisk14 has been marked vulnerable for > 8 months
- fix WWW in pkg-descr

PR:		ports/157620
Submitted by:	Fumihiko Kimura <jfkimura@@yahoo.co.jp>
@
text
@d10 1
a10 1
PORTREVISION=	10
@


1.12
log
@Chase after net/openldap24-server update.

Reminded by:	miwi
@
text
@d10 1
a10 1
PORTREVISION=	9
d37 1
a37 1
RUN_DEPENDS+=	${LOCALBASE}/lib/asterisk/modules/cdr_addon_mysql.so:${PORTSDIR}/net/asterisk14-addons
@


1.11
log
@Fix depends on asterisk 1.4 ports.
@
text
@d10 1
a10 1
PORTREVISION=	8
@


1.10
log
@- Update to 0.5.11 [1]
- sort pkg-plist
- bump PORTREVISION for SHLIB bump

Submitted by:   mi (via e-mail) [1] with minor changes
@
text
@d37 1
a37 1
RUN_DEPENDS+=	${LOCALBASE}/lib/asterisk/modules/cdr_addon_mysql.so:${PORTSDIR}/net/asterisk-addons
@


1.9
log
@- bump all port that indirectly depends on libjpeg and have not yet been bumped or updated
Requested by:	edwin
@
text
@d10 1
a10 1
PORTREVISION=	7
@


1.8
log
@- devel/libslang2 has completely replaced devel/libslang which has not been
  released in ~5yrs.

- WITH_SLANG2 is now no longer a valid ports knob
- WITH_SLANG implies devel/libslang2 now
- devel/libslang -> devel/libslang2 is a SHARED LIB bump
  so bump PORTREVISION for affected ports

- Take MAINTAINER for most unmaintained ports in this chain
- some SF macro conversions

- BROKEN with devel/libslang2 and DEPRECATE
    math/slsc (abandoned upstream)
- BROKEN with devel/libslang2
    japanese/slirc

PR:             ports/125255
Reviewed by:    garga (libslang maintainer), portmgr (pav)
Exp Run by:     pav
@
text
@d10 1
a10 1
PORTREVISION=	6
@


1.7
log
@Bump PORTREVISION's after OpenLDAP update.

Suggested by:	rafan
@
text
@d10 1
a10 1
PORTREVISION=	5
@


1.6
log
@Bump portrevision due to upgrade of devel/gettext.

The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@@
Approved by:    portmgr (pav)
@
text
@d10 1
a10 1
PORTREVISION=	4
@


1.5
log
@Dependency is buildable again on FreeBSD 7.0

PR:		ports/123898
Submitted by:	Fumihiko Kimura <jfkimura@@yahoo.co.jp>
@
text
@d10 1
a10 1
PORTREVISION=	3
@


1.4
log
@Dependency is buildable again on 7.0
@
text
@@


1.3
log
@- Chase shlib version of net-mgmt/net-snmp.
- Bump PORTREVISIONs.
@
text
@d10 1
a10 1
PORTREVISION=	2
a35 3
.	if ${OSVERSION} >= 700000
BROKEN=	Depends on net/asterisk-addons which does not build on 7-CURRENT
.	endif
@


1.2
log
@- Change maintainer's email
- Remove dependence on apache
- Mark BROKEN on ${OSVERSION} >= 700000 only when using mysql
- Use ${COPYTREE_SHARE}, ${INSTALL_DATA} to replace ${CP} -r
- Use explicit pkg-plist
- Tweak pgsql cdr template
- Bump PORTREVISION

Approved by:	maintainer
Pointed out by:	sat
Suggested by:	dougb, pav, rafan, danfe
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.1
log
@Add asterisk-stat 2.0.1, ASTERISK Call Detail Records Analizer.

PR:		ports/113738
Submitted by:	Fumihiko Kimura <jfkimura at yahoo.com>
@
text
@d10 1
d15 1
a15 1
MAINTAINER=	jfkimura@@yahoo.com
a20 1
USE_APACHE=	yes
a32 4
.if ${OSVERSION} >= 700000
BROKEN=	Depends on net/asterisk-addons which does not build on 7-CURRENT
.endif

d36 3
a39 1
# net/asterisk-addons
d46 2
d61 3
a63 2
	${CP} -r ${WRKSRC}/ ${ASTERISKDIR}
	${CP} ${FILESDIR}/cdr_${ASTERISKSTATDB}.tbl ${PREFIX}/etc/asterisk
a65 8
post-install:
	@@${FIND} ${WRKSRC}/${file} -not -type d \
		| ${SED} -ne 's,^${WRKSRC},${ASTERISKDIR:S,^${TARGETDIR}/,,},p' >> ${TMPPLIST}
	@@${FIND} -d ${WRKSRC}/${file} -type d \
		| ${SED} -ne 's,^${WRKSRC},@@dirrm ${ASTERISKDIR:S,^${TARGETDIR}/,,},p' >> ${TMPPLIST}
	@@${ECHO} etc/asterisk/cdr_${ASTERISKSTATDB}.tbl >> ${TMPPLIST}
	@@${CAT} ${PKGMESSAGE}

@

