blob: 99af5968932f30d109d763b85dc8dc9e0b7c8a78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# 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)
USE_APACHE= 2.2
.endif
.if defined(WITH_MYSQL)
USE_MYSQL= yes
.endif
.if defined(WITH_PHP)
USE_PHP= mysql pcre xml gd
.endif
do-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}/
@cd ${WRKSRC}/docs && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif
@${MKDIR} ${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/
post-install:
@if [ ! -f ${WWWDIR}/config.inc.php ]; then \
${CP} -p ${WRKSRC}/config.inc.php-example ${WWWDIR}/config.inc.php ; \
${CP} -p ${WRKSRC}/config.inc.php-example ${WWWDIR}/config.inc.php-example ; \
${CHMOD} 640 ${WWWDIR}/config.inc.php* ; \
fi
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
@${FIND} ${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
@${FIND} ${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|