2004-03-07 23:19:13 +00:00
|
|
|
# New ports collection makefile for: callid
|
|
|
|
# Date created: 19 February 2004
|
|
|
|
# Whom: M. Possamai
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= callid
|
2004-04-17 19:45:44 +00:00
|
|
|
PORTVERSION= 1.2
|
2006-02-11 14:42:50 +00:00
|
|
|
PORTREVISION= 1
|
2004-03-07 23:19:13 +00:00
|
|
|
CATEGORIES= misc
|
|
|
|
MASTER_SITES= http://www.xs4all.nl/~possamai/callid/
|
|
|
|
|
|
|
|
MAINTAINER= possamai@xs4all.nl
|
|
|
|
COMMENT= Utility to log incoming calls using ISDN and output to mysql/php
|
|
|
|
|
|
|
|
USE_MYSQL= yes
|
|
|
|
USE_PHP= yes
|
|
|
|
WANT_PHP_WEB= yes
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2004-04-17 19:45:44 +00:00
|
|
|
PORTDOCS= CHANGES README TODO make-db.mysql
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PERL_LEVEL} < 500600
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
|
|
|
|
.else
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
|
|
|
.endif
|
2004-03-07 23:19:13 +00:00
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "You have to configure PHP with MYSQL support."
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "If you have already compiled PHP without MYSQL,"
|
|
|
|
@${ECHO} "press CTRL+C now and rebuild it before installing callid."
|
|
|
|
@${ECHO} ""
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${PREFIX}/www/callid
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/src/*.php ${PREFIX}/www/callid
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/src/*.html ${PREFIX}/www/callid
|
|
|
|
@${MKDIR} ${PREFIX}/www/callid/images
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/src/images/*.jpg ${PREFIX}/www/callid/images
|
|
|
|
@${INSTALL_DATA} -m 550 ${WRKSRC}/sbin/call-logd ${PREFIX}/sbin
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for f in ${PORTDOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/callid.sh ]; then \
|
|
|
|
${ECHO} "Installing ${PREFIX}/etc/rc.d/callid.sh startup file."; \
|
|
|
|
${INSTALL_SCRIPT} -m 751 ${WRKSRC}/etc/rc.d/callid.sh ${PREFIX}/etc/rc.d/callid.sh; \
|
|
|
|
fi
|
|
|
|
|
2004-04-17 19:45:44 +00:00
|
|
|
.include <bsd.port.post.mk>
|