1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/ftp/proma/Makefile
Beech Rintoul 08f6685f5f - Update to 0.8.3;
- Use SF macro;
- Use BZIP2 package;
- Respect WWWDIR, and install all docs in DOCSDIR;
- OPTIONS to install MySQL, Apache, PHP and ProFTPd-MySQL;
- Update/replace pkg-message;
- Update and sort pkg-plist.

PR:		ports/120306
Submitted by:	Felippe de Meirelles Motta <lippemail@gmail.com>
Approved by:	maintainer timeout (two weeks)
2008-02-20 09:57:47 +00:00

69 lines
2.0 KiB
Makefile

# New ports collection makefile for: proma
# Date created: 25.08.2003
# Whom: HSIN-HSIUNG CHANG <sexbear@tmu.edu.tw>
#
# $FreeBSD$
#
PORTNAME= proma
PORTVERSION= 0.8.3
CATEGORIES= ftp
MASTER_SITES= SF
MAINTAINER= sexbear@tmu.edu.tw
COMMENT= Administrate a ProFTPd server storing users in a MySQL database
USE_BZIP2= yes
NO_BUILD= yes
PORTDOCS= ChangeLog INSTALL README TODO UPGRADE
FILES= index.php style.css config.inc.php-example
LIBS= admin.lib.php auth.lib.php common.lib.php
PAGES= admin.inc.php change.inc.php main.inc.php register.inc.php
OPTIONS= PROFTPD "Install ProFTPd with MySQL support" off \
APACHE "Install Apache Web Server 2.2.x" off \
MYSQL "Install MySQL Server 5.x" off \
PHP "Install PHP5 with MySQL support" off
SUB_FILES= pkg-message
.if defined(WITH_PROFTPD)
RUN_DEPENDS+= proftpd:${PORTSDIR}/ftp/proftpd-mysql
.endif
.if defined(WITH_APACHE)
RUN_DEPENDS+= apachectl:${PORTSDIR}/www/apache22
.endif
.if defined(WITH_MYSQL)
RUN_DEPENDS+= mysql:${PORTSDIR}/databases/mysql50-server
.endif
.if defined(WITH_PHP)
RUN_DEPENDS+= php:${PORTSDIR}/lang/php5
.endif
do-install:
.if !defined(NOPORTDOCS)
@${INSTALL} -d ${DOCSDIR}
@cd ${WRKSRC}/docs && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif
@${INSTALL} -d ${WWWDIR}
@${INSTALL_DATA} ${FILES:S,^,${WRKSRC}/,} ${WWWDIR}/
@${INSTALL} -d ${WWWDIR}/libs
@${INSTALL_DATA} ${LIBS:S,^,${WRKSRC}/libs/,} ${WWWDIR}/libs/
@${INSTALL} -d ${WWWDIR}/pages
@${INSTALL_DATA} ${PAGES:S,^,${WRKSRC}/pages/,} ${WWWDIR}/pages/
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
@${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
@${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
${WWWDIR}' >> ${TMPPLIST}
post-install:
@if [ ! -f ${WWWDIR}/config.inc.php ]; then \
${CP} -p ${WWWDIR}/config.inc.php-example ${WWWDIR}/config.inc.php ; \
${CHMOD} 640 ${WWWDIR}/config.inc.php ; \
fi
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>