mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
9c518e9473
- Port works with PHP5 Submitted by: danger@#bsdports ((danger@DaEmoN.RuLeZ.sK) : Daniel Gerzo)
52 lines
1.1 KiB
Makefile
52 lines
1.1 KiB
Makefile
# New ports collection makefile for: UserManager
|
|
# Date created: 19 December 2004
|
|
# Whom: Daniel Gerzo <danger@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= UserManager
|
|
PORTVERSION= 2.1
|
|
CATEGORIES= www ftp
|
|
MASTER_SITES= http://machiel.generaal.net/files/pureftpd/
|
|
DISTNAME= ftp_v${PORTVERSION}
|
|
|
|
MAINTAINER= danger@FreeBSD.org
|
|
COMMENT= Easily create, change, or delete virtual PureFTPd users
|
|
|
|
WRKSRC= ${WRKDIR}/ftp
|
|
|
|
USE_PHP= mysql pcre posix session
|
|
|
|
NO_BUILD= yes
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
PLIST_SUB+= INSTALLDIR=${INSTALLDIR}
|
|
|
|
_INSTDIR= www/data/UserManager
|
|
INSTALLDIR?= ${_INSTDIR}
|
|
|
|
pre-fetch:
|
|
.if ${INSTALLDIR} == ${_INSTDIR}
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "Define INSTALLDIR to override default of '${_INSTDIR}'."
|
|
@${ECHO_MSG} ""
|
|
.endif
|
|
|
|
post-patch:
|
|
@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
|
|
-e 's|%%INSTALLDIR%%|${INSTALLDIR}|g' ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
|
|
|
|
do-install:
|
|
@${MKDIR} ${PREFIX}/${INSTALLDIR}
|
|
@${CP} -Rp ${WRKSRC}/* ${PREFIX}/${INSTALLDIR}
|
|
@${CHMOD} 666 ${PREFIX}/${INSTALLDIR}/config.php
|
|
@${ECHO_CMD} ""
|
|
|
|
post-install:
|
|
.if !defined(BATCH)
|
|
@${CAT} ${PKGMESSAGE}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|