View | Details | Raw Unified | Return to bug 90985
Collapse All | Expand All

(-)eventum/Makefile (-4 / +24 lines)
Lines 24-29 Link Here
24
SUB_LIST+=	EVENTUM=${EVENTUM}
24
SUB_LIST+=	EVENTUM=${EVENTUM}
25
SUB_FILES=	pkg-message
25
SUB_FILES=	pkg-message
26
26
27
.if ${EVENTUM:M/*}
28
EVENTUM_DIST=${EVENTUM}
29
.else
30
EVENTUM_DIST=${PREFIX}/${EVENTUM}
31
.endif
32
33
pre-everything::
34
	@${ECHO_MSG} ""
35
	@${ECHO_MSG} "This port has the following tunables"
36
	@${ECHO_MSG} "EVENTUM   path where Eventum will be installed"
37
	@${ECHO_MSG} "          either absolute or relative to the PREFIX"
38
	@${ECHO_MSG} "WWWOWN    eventum files owner"
39
	@${ECHO_MSG} "WWWGRP    eventum files group"
40
	@${ECHO_MSG} ""
41
	@${ECHO_MSG} "Current state is"
42
	@${ECHO_MSG} "EVENTUM   " ${EVENTUM}
43
	@${ECHO_MSG} "WWWOWN    " ${WWWOWN}
44
	@${ECHO_MSG} "WWWGRP    " ${WWWGRP}
45
	@${ECHO_MSG} ""
46
27
pre-install:
47
pre-install:
28
	@${MV} ${WRKSRC}/setup.conf.php ${WRKSRC}/setup.conf.php-dist
48
	@${MV} ${WRKSRC}/setup.conf.php ${WRKSRC}/setup.conf.php-dist
29
	@${MV} ${WRKSRC}/config.inc.php ${WRKSRC}/config.inc.php-dist
49
	@${MV} ${WRKSRC}/config.inc.php ${WRKSRC}/config.inc.php-dist
Lines 34-43 Link Here
34
		&& ${ECHO_CMD} @dirrm ${EVENTUM} >> ${PLIST}
54
		&& ${ECHO_CMD} @dirrm ${EVENTUM} >> ${PLIST}
35
55
36
do-install:
56
do-install:
37
	@${MKDIR} ${PREFIX}/${EVENTUM}
57
	@${MKDIR} ${EVENTUM_DIST}
38
	@${CP} -R ${WRKSRC}/ ${PREFIX}/${EVENTUM}
58
	@${CP} -R ${WRKSRC}/ ${EVENTUM_DIST}
39
	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${EVENTUM}
59
	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EVENTUM_DIST}
40
	@${CHMOD} -R 755 ${PREFIX}/${EVENTUM}
60
	@${CHMOD} -R 755 ${EVENTUM_DIST}
41
	@${CAT} ${PKGMESSAGE}
61
	@${CAT} ${PKGMESSAGE}
42
62
43
.include <bsd.port.mk>
63
.include <bsd.port.mk>

Return to bug 90985