Add tatter-tools 0.9.6, cute and easy blog Tool with
Traditional-Chinese(zh_TW.UTF-8). PR: ports/88779 Submitted by: chinsan <chinsan.tw . gmail.com>
This commit is contained in:
parent
ba990aeee8
commit
818c149acf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=147888
@ -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
|
||||
|
71
chinese/tatter-tools/Makefile
Normal file
71
chinese/tatter-tools/Makefile
Normal file
@ -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>
|
3
chinese/tatter-tools/distinfo
Normal file
3
chinese/tatter-tools/distinfo
Normal file
@ -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
|
4
chinese/tatter-tools/pkg-descr
Normal file
4
chinese/tatter-tools/pkg-descr
Normal file
@ -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/
|
24
chinese/tatter-tools/pkg-message
Normal file
24
chinese/tatter-tools/pkg-message
Normal file
@ -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!
|
||||
==================================================================
|
1
chinese/tatter-tools/pkg-plist
Normal file
1
chinese/tatter-tools/pkg-plist
Normal file
@ -0,0 +1 @@
|
||||
@comment real PLIST will be generated in pre-install phase
|
Loading…
Reference in New Issue
Block a user