aboutsummaryrefslogtreecommitdiffstats
path: root/www/b2evolution/Makefile
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2006-08-01 23:51:18 +0800
committerclsung <clsung@FreeBSD.org>2006-08-01 23:51:18 +0800
commit95e7a3bebb485ea2d2bd4af63b9c3ad0224504cc (patch)
treeef6362345616adb40fec0f071ea2082e627345fc /www/b2evolution/Makefile
parent7931ff7a7aec0df8618c348af1b159828975cd7a (diff)
downloadfreebsd-ports-gnome-95e7a3bebb485ea2d2bd4af63b9c3ad0224504cc.tar.gz
freebsd-ports-gnome-95e7a3bebb485ea2d2bd4af63b9c3ad0224504cc.tar.zst
freebsd-ports-gnome-95e7a3bebb485ea2d2bd4af63b9c3ad0224504cc.zip
- All web applications should be now installed into ${PREFIX}/www/appname
PR: ports/101179 Submitted by: maintainer (<chinsan dot tw_AT_gmail dot com>)
Diffstat (limited to 'www/b2evolution/Makefile')
-rw-r--r--www/b2evolution/Makefile25
1 files changed, 4 insertions, 21 deletions
diff --git a/www/b2evolution/Makefile b/www/b2evolution/Makefile
index 19cf81e98891..20d7d3e20fee 100644
--- a/www/b2evolution/Makefile
+++ b/www/b2evolution/Makefile
@@ -28,25 +28,8 @@ WANT_PHP_WEB= YES
TMPDIR?= ${PORTNAME}
WRKSRC= ${WRKDIR}/${TMPDIR}
-.if !defined(B2EVO_URL)
-pre-fetch:
- @${ECHO_MSG} ""
- @${ECHO_MSG} "Define B2EVO_URL to override default of ${PREFIX}/${WWWDOCROOT}/'${B2EVO_URL}'."
- @${ECHO_MSG} ""
-.endif
-
-# Get HOSTNAME
-.if exists(/sbin/sysctl)
-HOSTNAME!= /sbin/sysctl -n kern.hostname
-.else
-HOSTNAME!= /usr/sbin/sysctl -n kern.hostname
-.endif
-
-WWWDOCROOT?= www/data
B2EVO_URL?= b2evo
-WWWOWN?= www
-WWWGRP?= www
-B2EVO_DIR?= ${WWWDOCROOT}/${B2EVO_URL}
+B2EVO_DIR?= www/${B2EVO_URL}
PLIST= ${WRKDIR}/pkg-plist
.include <bsd.port.pre.mk>
@@ -56,8 +39,7 @@ pre-install:
${SED} -e 's|^./||;s|^|${B2EVO_DIR}/|' > ${PLIST} \
&& ${FIND} -d * -type d | \
${SED} -e 's|^|@dirrm ${B2EVO_DIR}/|' >> ${PLIST} \
- && ${ECHO_CMD} @dirrm ${B2EVO_DIR} >> ${PLIST} \
- && ${ECHO_CMD} @dirrmtry ${WWWDOCROOT} >> ${PLIST}
+ && ${ECHO_CMD} @dirrm ${B2EVO_DIR} >> ${PLIST}
do-install:
-${MKDIR} ${PREFIX}/${B2EVO_DIR}
@@ -67,7 +49,8 @@ do-install:
@${CHMOD} 665 ${PREFIX}/${B2EVO_DIR}/blogs/conf/_config.php
post-install:
- @${SED} -e 's|%%HOSTNAME%%|${HOSTNAME}|; s|%%B2EVO_URL%%|${B2EVO_URL}|' \
+ @${SED} -e 's|%%PREFIX%%|${PREFIX}|; s|%%PORTNAME%%|${PORTNAME}|' \
+ -e 's|%%B2EVO_DIR%%|${B2EVO_DIR}|; s|%%B2EVO_URL%%|${B2EVO_URL}|' \
${PKGMESSAGE}
.include <bsd.port.post.mk>