blob: 2890c7a25f98f46d52985a4d7aa29a0f9f7b5953 (
plain) (
blame)
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
|
# New ports collection makefile for: UserManager
# Date created: 19 December 2004
# Whom: Daniel Gerzo <danger@rulez.sk>
#
# $FreeBSD$
#
PORTNAME= UserManager
PORTVERSION= 2.1
CATEGORIES= www ftp
MASTER_SITES= http://machiel.generaal.net/files/pureftpd/
DISTNAME= ftp_v${PORTVERSION}
MAINTAINER= danger@rulez.sk
COMMENT= Easily create, change, or delete virtual PureFTPd users
WRKSRC= ${WRKDIR}/ftp
IGNORE_WITH_PHP= 5
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>
|