diff options
author | miwi <miwi@FreeBSD.org> | 2006-08-15 23:17:10 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2006-08-15 23:17:10 +0800 |
commit | 5efc477b2bec97365fcd4d0489fde47dc7b4d76f (patch) | |
tree | 88d6078043f00f89abc56cac3550c62192209d55 /chinese | |
parent | 9ccf665f66ba94b2a6108e60f1f287a59ffac143 (diff) | |
download | freebsd-ports-gnome-5efc477b2bec97365fcd4d0489fde47dc7b4d76f.tar.gz freebsd-ports-gnome-5efc477b2bec97365fcd4d0489fde47dc7b4d76f.tar.zst freebsd-ports-gnome-5efc477b2bec97365fcd4d0489fde47dc7b4d76f.zip |
- Respect DESTDIR
PR: ports/101937
Submitted by: Gea-Suan Lin <gslin(at)gslin.org>
Approved by: krion (mentor), maintainer
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/tatter-tools/Makefile | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/chinese/tatter-tools/Makefile b/chinese/tatter-tools/Makefile index 10bd73833218..333853f0b012 100644 --- a/chinese/tatter-tools/Makefile +++ b/chinese/tatter-tools/Makefile @@ -25,23 +25,16 @@ TMPDIR?= ${PORTNAME}-${PORTVERSION} WRKSRC= ${WRKDIR}/${TMPDIR} .if defined(WITH_MYSQL5) -IGNORE= Please take a look at http://www.twtt.org/viewtopic.php?t=192&highlight=bsd for soultion +IGNORE= take a look at http://www.twtt.org/viewtopic.php?t=192&highlight=bsd for soultion .endif .if !defined(TT_URL) pre-fetch: @${ECHO_MSG} "" - @${ECHO_MSG} "Define TT_URL to override default of ${PREFIX}/${WWWDOCROOT}/'${TT_URL}'." + @${ECHO_MSG} "Define TT_URL to override default of ${TARGETDIR}/${WWWDOCROOT}/'${TT_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 TT_URL?= tatter TT_DIR?= ${WWWDOCROOT}/${TT_URL} @@ -49,6 +42,9 @@ PLIST= ${WRKDIR}/pkg-plist .include <bsd.port.pre.mk> +# Get HOSTNAME +HOSTNAME!= ${SYSCTL} -n kern.hostname + pre-install: @cd ${WRKSRC} && ${FIND} -s . -type f | \ ${SED} -e 's|^./||;s|^|${TT_DIR}/|' > ${PLIST} \ @@ -58,11 +54,11 @@ pre-install: && ${ECHO_CMD} @dirrmtry ${WWWDOCROOT} >> ${PLIST} do-install: - -${MKDIR} ${PREFIX}/${TT_DIR} - @${CHMOD} 755 ${PREFIX}/${TT_DIR} - @${CP} -R ${WRKSRC}/ ${PREFIX}/${TT_DIR} - @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${TT_DIR} - @${CHMOD} 777 ${PREFIX}/${TT_DIR}/ + -${MKDIR} ${TARGETDIR}/${TT_DIR} + @${CHMOD} 755 ${TARGETDIR}/${TT_DIR} + @${CP} -R ${WRKSRC}/ ${TARGETDIR}/${TT_DIR} + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${TARGETDIR}/${TT_DIR} + @${CHMOD} 777 ${TARGETDIR}/${TT_DIR}/ post-install: @${SED} -e 's|%%HOSTNAME%%|${HOSTNAME}|; s|%%TT_URL%%|${TT_URL}|' \ |