diff options
-rw-r--r-- | chinese/Makefile | 1 | ||||
-rw-r--r-- | chinese/tatter-tools/Makefile | 71 | ||||
-rw-r--r-- | chinese/tatter-tools/distinfo | 3 | ||||
-rw-r--r-- | chinese/tatter-tools/pkg-descr | 4 | ||||
-rw-r--r-- | chinese/tatter-tools/pkg-message | 24 | ||||
-rw-r--r-- | chinese/tatter-tools/pkg-plist | 1 |
6 files changed, 104 insertions, 0 deletions
diff --git a/chinese/Makefile b/chinese/Makefile index a2a3644ff7c9..085c0d1d959b 100644 --- a/chinese/Makefile +++ b/chinese/Makefile @@ -114,6 +114,7 @@ SUBDIR += srecite SUBDIR += stardict2-dict-zh_CN SUBDIR += stardict2-dict-zh_TW + SUBDIR += tatter-tools SUBDIR += tcl83 SUBDIR += telnet SUBDIR += tin diff --git a/chinese/tatter-tools/Makefile b/chinese/tatter-tools/Makefile new file mode 100644 index 000000000000..1f669b80d823 --- /dev/null +++ b/chinese/tatter-tools/Makefile @@ -0,0 +1,71 @@ +# New ports collection makefile for: zh-tatter-tools +# Date created: 2005-11-10 +# Whom: chinsan <chinsan.tw@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= tatter-tools +PORTVERSION= 0.9.6 +CATEGORIES= chinese www +MASTER_SITES= ftp://bbs.ilc.edu.tw/chinsan/distfiles/ \ + http://bbs.ilc.edu.tw/~chinsan/ports/tatter-tools/ \ + ftp://news.giga.net.tw/chinsan/distfiles/ \ + http://www.twtt.org/ttfile/ +DISTNAME= ${PORTNAME}-${PORTVERSION}.zh_TW.UTF-8 + +MAINTAINER= chinsan.tw@gmail.com +COMMENT= Cute and easy blog Tool with Traditional-Chinese(zh_TW.UTF-8) + +USE_PHP= mysql pcre session xml +PHP4_PORT?= www/mod_php4 +NO_BUILD= YES +WANT_PHP_WEB= YES + +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 +.endif + +.if !defined(TT_URL) +pre-fetch: + @${ECHO_MSG} "" + @${ECHO_MSG} "Define TT_URL to override default of ${PREFIX}/${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} +PLIST= ${WRKDIR}/pkg-plist + +.include <bsd.port.pre.mk> + +pre-install: + @cd ${WRKSRC} && ${FIND} -s . -type f | \ + ${SED} -e 's|^./||;s|^|${TT_DIR}/|' > ${PLIST} \ + && ${FIND} -d * -type d | \ + ${SED} -e 's|^|@dirrm ${TT_DIR}/|' >> ${PLIST} \ + && ${ECHO_CMD} @dirrm ${TT_DIR} >> ${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}/ + +post-install: + @${SED} -e 's|%%HOSTNAME%%|${HOSTNAME}|; s|%%TT_URL%%|${TT_URL}|' \ + ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/chinese/tatter-tools/distinfo b/chinese/tatter-tools/distinfo new file mode 100644 index 000000000000..fd91267eeeea --- /dev/null +++ b/chinese/tatter-tools/distinfo @@ -0,0 +1,3 @@ +MD5 (tatter-tools-0.9.6.zh_TW.UTF-8.tar.gz) = 125b2b7a50ab22009bdec7651aa05ad7 +SHA256 (tatter-tools-0.9.6.zh_TW.UTF-8.tar.gz) = bf4884472635d90512bdacf725b0b5b1f54766c1a3316dfccb76714720f110cd +SIZE (tatter-tools-0.9.6.zh_TW.UTF-8.tar.gz) = 183120 diff --git a/chinese/tatter-tools/pkg-descr b/chinese/tatter-tools/pkg-descr new file mode 100644 index 000000000000..2ff53c545ac6 --- /dev/null +++ b/chinese/tatter-tools/pkg-descr @@ -0,0 +1,4 @@ +TatterTools is probably the most cute blog engine you can find. +Check out the features, not to mention third party plug-ins! + +WWW: http://www.twtt.org/ diff --git a/chinese/tatter-tools/pkg-message b/chinese/tatter-tools/pkg-message new file mode 100644 index 000000000000..55b702048ff1 --- /dev/null +++ b/chinese/tatter-tools/pkg-message @@ -0,0 +1,24 @@ +================================================================== +Tatter-Tools is now installed. If you intall it for the first time, +you may have to follow this steps to make it work correctly. + +1. Create the MySQL database: + + # mysqladmin --user=root -p create tatter + +2. Create a mysql user/password for tatter(database): + (change user and/or password if requered) + + # mysql -u root -p + mysql> GRANT ALL ON tatter.* TO ttuser@localhost + IDENTIFIED BY 'tt_password'; + mysql> FLUSH PRIVILEGES; + mysql> QUIT; + +3.Open Tatter-Tools installation page in your web browser + and fill with ttuser/tt_password + + http://%%HOSTNAME%%/%%TT_URL%%/install.php + + Have fun! +================================================================== diff --git a/chinese/tatter-tools/pkg-plist b/chinese/tatter-tools/pkg-plist new file mode 100644 index 000000000000..d0ac09258d04 --- /dev/null +++ b/chinese/tatter-tools/pkg-plist @@ -0,0 +1 @@ +@comment real PLIST will be generated in pre-install phase |