blob: d20888bfbcdfdfe26a807bec7549d2c575913906 (
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
53
54
55
56
57
58
59
60
61
62
63
64
|
# New ports collection makefile for: phpUA
# Date created: 20 Feb 2003
# Whom: hideki
#
# $FreeBSD$
#
PORTNAME= phpua-engine
PORTVERSION= 1.1.0b
CATEGORIES= games www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= phpua
MAINTAINER= hido@coreblack.com
COMMENT= Game server monitor & admin tool
NO_BUILD= yes
USE_APACHE= yes
USE_PHP= yes
PLIST_SUB+= PHPUADIR=${PHPUADIR}
# Dynamic custom variables
WWWDOC?= www/data
USER?= www
GROUP?= www
APPNAME?= phpua
# Static Variables
PKGOPTS= ${FILESDIR}/pkg-opts
PHPUADIR= ${WWWDOC}/${APPNAME}
PKGMESSAGE= ${WRKDIR}/pkg-message
options:
@ ${ECHO_MSG} "===> Build options for ${PKGNAME}:"
@ ${CAT} ${PKGOPTS}
pre-everything::
.if !defined(BATCH)
@ ${TEST} -r ${PKGOPTS} && \
(${ECHO_MSG} '-------------------------------------------------------------------------'; \
${ECHO_MSG} 'Perform a "make options" to see a list of available installation options.'; \
${ECHO_MSG} '-------------------------------------------------------------------------')
.endif
post-patch:
@${CAT} ${FILESDIR}/pkg-message.in | ${SED} -e \
's|%%PREFIX%%|${PREFIX}| ; s|%%PHPUADIR%%|${PHPUADIR}| ; s|%%APPNAME%%|${APPNAME}|' \
> ${PKGMESSAGE}
do-install:
@ ${MKDIR} ${PREFIX}/${PHPUADIR}
@ ${CP} ${WRKDIR}/*.php ${PREFIX}/${PHPUADIR}/
@ ${CP} -R ${WRKDIR}/doc ${PREFIX}/${PHPUADIR}/
@ ${CP} -R ${WRKDIR}/images ${PREFIX}/${PHPUADIR}/
@ ${CP} -R ${WRKDIR}/includes ${PREFIX}/${PHPUADIR}/
@ ${CP} -R ${WRKDIR}/languages ${PREFIX}/${PHPUADIR}/
@ ${CP} -R ${WRKDIR}/plugins ${PREFIX}/${PHPUADIR}/
@ ${CP} -R ${WRKDIR}/templates ${PREFIX}/${PHPUADIR}/
@ ${CP} -R ${WRKDIR}/wap ${PREFIX}/${PHPUADIR}/
@ ${CHOWN} -R ${USER}:${GROUP} ${PREFIX}/${PHPUADIR}/
.include <bsd.port.mk>
|