summaryrefslogtreecommitdiffstats
path: root/www/tdiary-devel
diff options
context:
space:
mode:
authordaichi <daichi@FreeBSD.org>2003-06-17 13:20:23 +0000
committerdaichi <daichi@FreeBSD.org>2003-06-17 13:20:23 +0000
commit0f364ce00f51ffafba512c18c9ee69762c3a3b5b (patch)
treed2ce88e87109ba6f2e6eb6e4d2090101d2c0a22d /www/tdiary-devel
parentaebfdc7097447bee1ae95204ef8f337ca4224e15 (diff)
downloadFreeBSD-ports-0f364ce00f51ffafba512c18c9ee69762c3a3b5b.zip
FreeBSD-ports-0f364ce00f51ffafba512c18c9ee69762c3a3b5b.tar.gz
Committed. Thanks!
Update ports: japanese/tdiary to 1.5.4_1 1. add 'www' category 2. Adjustment of Makefile and script PR: 53394 Approved by: Fumihiko Kimura <jfkimura@yahoo.co.jp> (maintainer)
Diffstat (limited to 'www/tdiary-devel')
-rw-r--r--www/tdiary-devel/Makefile27
-rw-r--r--www/tdiary-devel/files/tdiary-FreeBSD.sh.in8
-rw-r--r--www/tdiary-devel/pkg-message10
3 files changed, 27 insertions, 18 deletions
diff --git a/www/tdiary-devel/Makefile b/www/tdiary-devel/Makefile
index c6a3f75..ade269e 100644
--- a/www/tdiary-devel/Makefile
+++ b/www/tdiary-devel/Makefile
@@ -7,10 +7,13 @@
PORTNAME= tdiary
PORTVERSION= 1.5.4
-CATEGORIES= japanese ruby
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+PORTREVISION= 1
+CATEGORIES= japanese ruby www
+MASTER_SITES= \
+ ${MASTER_SITE_SOURCEFORGE} \
+ http://www.tdiary.org/download/
MASTER_SITE_SUBDIR= sourceforge/${PORTNAME}
-DISTNAME= ${PORTNAME}-full-${PORTVERSION:R}.${PORTVERSION:E}
+DISTNAME= ${PORTNAME}-full-${PORTVERSION}
MAINTAINER= jfkimura@yahoo.co.jp
COMMENT= A Web-based diary system (like weblog) written in Ruby
@@ -27,7 +30,7 @@ USE_RUBY= yes
TDIARYDIR= ${PREFIX}/share/examples/${PORTNAME}
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}.${PORTVERSION:E}
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
pre-everything::
@${ECHO_MSG}
@@ -43,9 +46,9 @@ pre-everything::
do-install:
@if [ -d ${TDIARYDIR} ]; then ${RM} -rf ${TDIARYDIR}; fi
${MKDIR} ${TDIARYDIR}
- ${SED} -e 's,@@@@PREFIX@@@@,${PREFIX},g' \
- ${FILESDIR}/tdiary-FreeBSD.sh.in > ${TDIARYDIR}/tdiary-FreeBSD.sh
- ${CHMOD} ugo=rx ${TDIARYDIR}/tdiary-FreeBSD.sh
+ @${SED} -e 's,@@@@PREFIX@@@@,${PREFIX},g' \
+ ${FILESDIR}/tdiary-FreeBSD.sh.in > ${TDIARYDIR}/tdiary-FreeBSD.sh
+ @${CHMOD} ugo=rx ${TDIARYDIR}/tdiary-FreeBSD.sh
${CP} -pR ${WRKSRC}/ ${TDIARYDIR}
.if defined(WITH_TDIARY_UCONV)
${INSTALL_DATA} ${WRKSRC}/misc/plugin/output_rdf.rb ${TDIARYDIR}/plugin
@@ -56,14 +59,14 @@ do-install:
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TDIARYDIR}
post-install:
- @cd ${WRKSRC} && ${FIND} . -type f -o -type l | ${SED} 's,^\.,share/examples/${PORTNAME},' | sort >> ${TMPPLIST}
+ @cd ${WRKSRC} && ${FIND} . -type f -o -type l | ${SED} -e 's,^\.,share/examples/${PORTNAME},' >> ${TMPPLIST}
.if defined(WITH_TDIARY_UCONV)
- @cd ${WRKSRC} && ${ECHO} 'share/examples/${PORTNAME}/plugin/output_rdf.rb' >> ${TMPPLIST}
+ @${ECHO} 'share/examples/${PORTNAME}/plugin/output_rdf.rb' >> ${TMPPLIST}
.endif
.if defined(WITH_TDIARY_NORA)
- @cd ${WRKSRC} && ${ECHO} 'share/examples/${PORTNAME}/plugin/disp_referrer.rb' >> ${TMPPLIST}
+ @${ECHO} 'share/examples/${PORTNAME}/plugin/disp_referrer.rb' >> ${TMPPLIST}
.endif
- @cd ${WRKSRC} && ${FIND} . -type d -depth | ${SED} 's,^\.,@dirrm share/examples/${PORTNAME},' >> ${TMPPLIST}
- @${CAT} ${PKGMESSAGE}
+ @cd ${WRKSRC} && ${FIND} . -type d -depth | ${SED} -e 's,^\.,@dirrm share/examples/${PORTNAME},' >> ${TMPPLIST}
+ @${SED} -e "s,@@@@PREFIX@@@@,${PREFIX},g" ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/www/tdiary-devel/files/tdiary-FreeBSD.sh.in b/www/tdiary-devel/files/tdiary-FreeBSD.sh.in
index 77becc4..7b93694 100644
--- a/www/tdiary-devel/files/tdiary-FreeBSD.sh.in
+++ b/www/tdiary-devel/files/tdiary-FreeBSD.sh.in
@@ -56,10 +56,12 @@ install)
# HOMEGRP=$GROUP
# HOMEDIR=$HOME
echo "HOME Directory : " ${HOMEDIR}
+ USERNAME=$USER
;;
*)
echo "HOME Directory : " ${HOMEDIR}
echo "USERNAME : " ${USERNAME}
+ USERNAME=$USER
;;
esac
@@ -88,7 +90,7 @@ if [ -x ${HOMEDIR} ]; then
echo "Copy tDiary ..." ${EXAMPLES}/tdiary/
echo " to " ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/
cp -pR ${EXAMPLES}/tdiary/ ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/
- chown -R ${HOMEOWN}:${HOMEGRP} ${HOMEDIR}/${PUBLICHTML}/
+ chown -R ${HOMEOWN}:${HOMEGRP} ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/
chmod o+rwx ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}
echo "Done"
if [ -e ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/tdiary.conf ]; then
@@ -128,6 +130,10 @@ else
exit 1
fi
echo ""
+echo ""
+echo "***"
+echo "You have to execute the following commands:"
+echo " % /usr/local/sbin/htpasswd -c" ${HOMEDIR}/.htpasswd ${USERNAME}
echo ""
echo "Be sure to read the ${HOMEDIR}/${PUBLICHTML}/${DIARYDIR}/README"
echo " file for additional information."
diff --git a/www/tdiary-devel/pkg-message b/www/tdiary-devel/pkg-message
index e0641e0..b2f9c9e 100644
--- a/www/tdiary-devel/pkg-message
+++ b/www/tdiary-devel/pkg-message
@@ -1,14 +1,14 @@
+
=============================================================
There is a script to install tDiary in a user directory.
This script should be run manually.
- # cd ${PREFIX}/share/examples/tdiary
- # ./tdiary-FreeBSD.sh USERid
+ # @@@@PREFIX@@@@/share/examples/tdiary/tdiary-FreeBSD.sh USERid
or
- % cd ${PREFIX}/share/examples/tdiary
- % ./tdiary-FreeBSD.sh install
+ % @@@@PREFIX@@@@/share/examples/tdiary/tdiary-FreeBSD.sh install
There is a document by English in the following directories.
See ...
- ${PREFIX}/share/examples/tdiary/misc/i18n/
+ @@@@PREFIX@@@@/share/examples/tdiary/misc/i18n/
=============================================================
+
OpenPOWER on IntegriCloud