1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/misc/callid/Makefile
Emanuel Haupt 5005b67362 According to the Porter's Handbook (5.12.2.3.) default options must be added to
OPTIONS_DEFINE. This policy has been implemented only recently that's why we
have many ports violating this policy.

This patch adds the default options specified in the Porter's Handbook to
OPTIONS_DEFINE where they are being used. Ports maintained by
gnome@FreeBSD.org, kde@FreeBSD.org and x11@FreeBSD.org have been excluded.

Approved by:    portmgr (bapt)
2014-02-10 13:54:26 +00:00

59 lines
1.4 KiB
Makefile

# Created by: M. Possamai
# $FreeBSD$
PORTNAME= callid
PORTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= http://possamai.home.xs4all.nl/callid/
MAINTAINER= ports@FreeBSD.org
COMMENT= Utility to log incoming calls using ISDN and output to MySQL/PHP
USES= perl5
USE_MYSQL= yes
USE_PHP= yes
WANT_PHP_WEB= yes
NO_BUILD= yes
PORTDOCS= CHANGES README TODO make-db.mysql
RUN_DEPENDS+= p5-DBI>=0:${PORTSDIR}/databases/p5-DBI
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
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 ${PORT_OPTIONS:MDOCS}
@${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
.include <bsd.port.mk>