diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2006-08-15 15:17:10 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2006-08-15 15:17:10 +0000 |
commit | 426531c074e5588dcb72cd901a2eeab2dbf8f0f4 (patch) | |
tree | 0c9e432323444ea0ef3849df63b470c30bbab6ff /chinese | |
parent | d919928978e2ba2eef8e9d6fc3526fbaf51f5d3f (diff) | |
download | ports-426531c074e5588dcb72cd901a2eeab2dbf8f0f4.tar.gz ports-426531c074e5588dcb72cd901a2eeab2dbf8f0f4.zip |
- Respect DESTDIR
PR: ports/101937
Submitted by: Gea-Suan Lin <gslin(at)gslin.org>
Approved by: krion (mentor), maintainer
Notes
Notes:
svn path=/head/; revision=170715
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}|' \ |