apache/named/proftpd/qmail. A hosting web GUI for admin and accounting apache/named/proftpd/qmail Domain Technologie Control (DTC) is a set of PHP scripts and a web interface that manage a MySQL database that handles all the host information. It generates backup scripts, statistic calculation scripts, andconfig files for bind, Apache, qmail, and proftpd, using a single system UID/GID. With DTC, you can delegate the task of creating subdomains, email,and FTP accounts to users for the domain names they own, and monitor bandwidth per user and service. WWW: http://www.gplhost.com/?rub=software&sousrub=dtc PR: ports/65593 Submitted by: Frederic Cambus & Thomas Goirand
54 lines
1.6 KiB
Makefile
54 lines
1.6 KiB
Makefile
# Ports collection makefile for: dtc
|
|
# Date created: 1 December 2003
|
|
# Whom: Frederic Cambus & Thomas Goirand
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dtc
|
|
PORTVERSION= 0.12.0.6
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ftp://ftp.gplhost.com/pub/dtc/bsd/
|
|
|
|
MAINTAINER= thomas@goirand.fr
|
|
COMMENT= A hosting web GUI for admin and accounting apache/named/proftpd/qmail
|
|
|
|
RUN_DEPENDS= php:${PHP_PORT} \
|
|
${LOCALBASE}/share/pear/Crypt/CBC.php:${PORTSDIR}/security/pear-Crypt_CBC \
|
|
${LOCALBASE}/libexec/proftpd:${PORTSDIR}/ftp/proftpd-mysql \
|
|
${LOCALBASE}/libexec/apache2/mod_log_sql.so:${PORTSDIR}/www/mod_log_sql2 \
|
|
${LOCALBASE}/bin/webalizer:${PORTSDIR}/www/webalizer \
|
|
${QMAIL_DIR}/bin/qmail-start:${PORTSDIR}/mail/qmail
|
|
|
|
PHP_PORT=${PORTSDIR}/lang/php4-dtc
|
|
QMAIL_DIR?= /var/qmail
|
|
|
|
DTCROOT?= www/dtc
|
|
DTCDIR= ${PREFIX}/${DTCROOT}
|
|
PLIST_SUB+= DTCROOT="${DTCROOT}"
|
|
|
|
.if defined(WITH_APACHE2)
|
|
IGNORE= Untested
|
|
.endif
|
|
|
|
NO_BUILD= yes
|
|
USE_MYSQL= yes
|
|
|
|
do-configure:
|
|
@${SED} -e 's,%%PREFIX%%,${PREFIX},;\
|
|
s,%%LOCALBASE%%,${LOCALBASE},;\
|
|
s,%%QMAIL_DIR%%,${QMAIL_DIR},' \
|
|
${FILESDIR}/dtc-install.in > ${WRKDIR}/dtc-install
|
|
@${SED} -e 's,%%PREFIX%%,${PREFIX},;\
|
|
s,%%LOCALBASE%%,${LOCALBASE},;\
|
|
s,%%QMAIL_DIR%%,${QMAIL_DIR},' \
|
|
${FILESDIR}/dtc-deinstall.in > ${WRKDIR}/dtc-deinstall
|
|
|
|
do-install:
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/dtc-install ${PREFIX}/sbin/dtc-install
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/dtc-deinstall ${PREFIX}/sbin/dtc-deinstall
|
|
@${MKDIR} ${DTCDIR}
|
|
@cd ${WRKSRC}/dtc ; ${TAR} cfp - . | ${TAR} xfp - -C ${DTCDIR}
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|