ports/90985: update port www/eventum - add tunables
Babak Farrokhi
babak at farrokhi.net
Tue Dec 27 18:00:20 UTC 2005
>Number: 90985
>Category: ports
>Synopsis: update port www/eventum - add tunables
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 27 18:00:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Babak Farrokhi
>Release: FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD royalway.propagation.net 5.4-STABLE FreeBSD 5.4-STABLE #6: Thu Jun 30 05:11:17 CDT 2005 root at royalway.propagation.net:/usr/obj/usr/src/sys/GENERIC i386
>Description:
- added logics to distinct the case when Eventum directory (EVENTUM) is
specified as absolute path. In that case we do not want to prepend
PREFIX to it,
- added pre-everything message about tunables and their current state.
suggested by: Eygene A. Ryabinkin <rea at rea.mbslab.kiae.ru>
>How-To-Repeat:
>Fix:
--- eventum.patch begins here ---
diff -ruN eventum.orig/Makefile eventum/Makefile
--- eventum.orig/Makefile Tue Dec 27 21:10:39 2005
+++ eventum/Makefile Tue Dec 27 21:17:19 2005
@@ -24,6 +24,26 @@
SUB_LIST+= EVENTUM=${EVENTUM}
SUB_FILES= pkg-message
+.if ${EVENTUM:M/*}
+EVENTUM_DIST=${EVENTUM}
+.else
+EVENTUM_DIST=${PREFIX}/${EVENTUM}
+.endif
+
+pre-everything::
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "This port has the following tunables"
+ @${ECHO_MSG} "EVENTUM path where Eventum will be installed"
+ @${ECHO_MSG} " either absolute or relative to the PREFIX"
+ @${ECHO_MSG} "WWWOWN eventum files owner"
+ @${ECHO_MSG} "WWWGRP eventum files group"
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "Current state is"
+ @${ECHO_MSG} "EVENTUM " ${EVENTUM}
+ @${ECHO_MSG} "WWWOWN " ${WWWOWN}
+ @${ECHO_MSG} "WWWGRP " ${WWWGRP}
+ @${ECHO_MSG} ""
+
pre-install:
@${MV} ${WRKSRC}/setup.conf.php ${WRKSRC}/setup.conf.php-dist
@${MV} ${WRKSRC}/config.inc.php ${WRKSRC}/config.inc.php-dist
@@ -34,10 +54,10 @@
&& ${ECHO_CMD} @dirrm ${EVENTUM} >> ${PLIST}
do-install:
- @${MKDIR} ${PREFIX}/${EVENTUM}
- @${CP} -R ${WRKSRC}/ ${PREFIX}/${EVENTUM}
- @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${EVENTUM}
- @${CHMOD} -R 755 ${PREFIX}/${EVENTUM}
+ @${MKDIR} ${EVENTUM_DIST}
+ @${CP} -R ${WRKSRC}/ ${EVENTUM_DIST}
+ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EVENTUM_DIST}
+ @${CHMOD} -R 755 ${EVENTUM_DIST}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
--- eventum.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list