aboutsummaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2006-07-29 07:17:33 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2006-07-29 07:17:33 +0000
commitd72b2fa9838b6f3e2736a46a9535c5e462e3278b (patch)
tree1f133ff9819d4adcde43cf909e5cf45b2b01013a /japanese
parent2a978a7f640b9529705aa7430e3f47ee9f41f2b0 (diff)
downloadports-d72b2fa9838b6f3e2736a46a9535c5e462e3278b.tar.gz
ports-d72b2fa9838b6f3e2736a46a9535c5e462e3278b.zip
Notes
Diffstat (limited to 'japanese')
-rw-r--r--japanese/Makefile1
-rw-r--r--japanese/tiarra/Makefile47
-rw-r--r--japanese/tiarra/distinfo3
-rw-r--r--japanese/tiarra/files/pkg-deinstall.in21
-rw-r--r--japanese/tiarra/files/pkg-install.in71
-rw-r--r--japanese/tiarra/files/pkg-message.in3
-rw-r--r--japanese/tiarra/files/tiarra.in29
-rw-r--r--japanese/tiarra/pkg-descr4
-rw-r--r--japanese/tiarra/pkg-plist172
9 files changed, 351 insertions, 0 deletions
diff --git a/japanese/Makefile b/japanese/Makefile
index 1be9fb8a6d9c..abdd73c9aaa3 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -371,6 +371,7 @@
SUBDIR += texfamily-vfn2a
SUBDIR += texinfo
SUBDIR += tgif
+ SUBDIR += tiarra
SUBDIR += timidity++-slang
SUBDIR += timidity++-tcltk
SUBDIR += tk42
diff --git a/japanese/tiarra/Makefile b/japanese/tiarra/Makefile
new file mode 100644
index 000000000000..675d959fa448
--- /dev/null
+++ b/japanese/tiarra/Makefile
@@ -0,0 +1,47 @@
+# New ports collection makefile for: tiarra
+# Date Created: Jul 27 2006
+# Whom: Hajimu UMEMOTO <ume@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= tiarra
+PORTVERSION= 20050214
+#PORTREVISION= 0
+CATEGORIES= japanese irc ipv6
+MASTER_SITES= http://www.clovery.jp/tiarra/archive/2005/02/
+
+MAINTAINER= ume@FreeBSD.org
+COMMENT= IRC Proxy software
+
+RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Socket6.pm:${PORTSDIR}/net/p5-Socket6
+
+USE_BZIP2= yes
+USE_RC_SUBR= tiarra
+NO_BUILD= yes
+
+SUB_FILES= pkg-install pkg-deinstall pkg-message
+SUB_LIST= TIARRA_USER=${TIARRA_USER} \
+ TIARRA_GROUP=${TIARRA_GROUP}
+
+PLIST_SUB= TIARRA_USER=${TIARRA_USER} \
+ TIARRA_GROUP=${TIARRA_GROUP}
+
+TIARRA_USER= tiarra
+TIARRA_GROUP= tiarra
+
+do-install:
+ @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+ @${MKDIR} ${PREFIX}/tiarra
+ @${TAR} cfC - ${WRKSRC} . | ${TAR} xfC - ${PREFIX}/tiarra
+ @if [ ! -f ${PREFIX}/tiarra/tiarra.conf ]; then \
+ ${CP} -p ${PREFIX}/tiarra/sample.conf \
+ ${PREFIX}/tiarra/tiarra.conf; \
+ fi
+ @${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/tiarra
+ @${MKDIR} ${PREFIX}/tiarra/log
+ @${CHOWN} ${TIARRA_USER}:${TIARRA_GROUP} ${PREFIX}/tiarra/log
+ @${CHMOD} o-rwx ${PREFIX}/tiarra/log
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/japanese/tiarra/distinfo b/japanese/tiarra/distinfo
new file mode 100644
index 000000000000..c7694645c70d
--- /dev/null
+++ b/japanese/tiarra/distinfo
@@ -0,0 +1,3 @@
+MD5 (tiarra-20050214.tar.bz2) = e1db58c8955fef8b5282257933325b97
+SHA256 (tiarra-20050214.tar.bz2) = f61a17482b91ebcf0c2988b6525aa03661cde3a2a184399f077b4c9ddfc8b197
+SIZE (tiarra-20050214.tar.bz2) = 239193
diff --git a/japanese/tiarra/files/pkg-deinstall.in b/japanese/tiarra/files/pkg-deinstall.in
new file mode 100644
index 000000000000..6e3a84cb6fcd
--- /dev/null
+++ b/japanese/tiarra/files/pkg-deinstall.in
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+TIARRA_USER=${TIARRA_USER:=%%TIARRA_USER%%}
+TIARRA_GROUP=${TIARRA_GROUP:=%%TIARRA_GROUP%%}
+
+delete_user() {
+ if pw usershow ${TIARRA_USER} 2>/dev/null 1>&2; then
+ echo "To delete tiarra user permanently, use 'pw userdel ${TIARRA_USER}'"
+ fi
+ if pw groupshow ${TIARRA_GROUP} 2>/dev/null 1>&2; then
+ echo "To delete tiarra group permanently, use 'pw groupdel ${TIARRA_GROUP}'"
+ fi
+}
+
+case $2 in
+POST-DEINSTALL)
+ delete_user
+ ;;
+esac
diff --git a/japanese/tiarra/files/pkg-install.in b/japanese/tiarra/files/pkg-install.in
new file mode 100644
index 000000000000..7108929d2a68
--- /dev/null
+++ b/japanese/tiarra/files/pkg-install.in
@@ -0,0 +1,71 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+TIARRA_USER=${TIARRA_USER:=%%TIARRA_USER%%}
+TIARRA_GROUP=${TIARRA_GROUP:=%%TIARRA_GROUP%%}
+
+UID=398
+GID=398
+
+#
+# create 'tiarra' user and group before installing
+#
+
+create_user() {
+ USER=${TIARRA_USER}
+ GROUP=${TIARRA_GROUP}
+ PW=/usr/sbin/pw
+
+ if [ -x /usr/sbin/nologin ]; then
+ shell=/usr/sbin/nologin
+ elif [ -x /sbin/nologin ]; then
+ shell=/sbin/nologin
+ else
+ shell=/nonexistent
+ fi
+ uhome="/nonexistent"
+
+ if ! ${PW} show group ${GROUP} -q >/dev/null; then
+ gid=${GID}
+ while ${PW} show group -g ${gid} -q >/dev/null; do
+ gid=`expr ${gid} + 1`
+ done
+ if ! ${PW} add group ${GROUP} -g ${gid}; then
+ e=$?
+ echo "*** Failed to add group \`${GROUP}'. Please add it manually."
+ exit ${e}
+ fi
+ echo "*** Added group \`${GROUP}' (id ${gid})"
+ else
+ gid=`${PW} show group ${GROUP} 2>/dev/null | cut -d: -f3`
+ fi
+
+ if ! ${PW} show user ${USER} -q >/dev/null; then
+ uid=${UID}
+ while ${PW} show user -u ${uid} -q >/dev/null; do
+ uid=`expr ${uid} + 1`
+ done
+ if ! ${PW} add user ${USER} -u ${uid} -g ${gid} -d "${uhome}" \
+ -c "Tiarra IRC Proxy" -s "${shell}" -p "*" \
+ ; then
+ e=$?
+ echo "*** Failed to add user \`${USER}'. Please add it manually."
+ exit ${e}
+ fi
+ echo "*** Added user \`${USER}' (id ${uid})"
+ else
+ if ! ${PW} mod user ${USER} -g ${gid}; then
+ e=$?
+ echo "*** Failed to update user \`${USER}'."
+ exit ${e}
+ fi
+ echo "*** Updated user \`${USER}'."
+ fi
+}
+
+case $2 in
+PRE-INSTALL)
+ create_user
+ ;;
+esac
diff --git a/japanese/tiarra/files/pkg-message.in b/japanese/tiarra/files/pkg-message.in
new file mode 100644
index 000000000000..10946d0d7677
--- /dev/null
+++ b/japanese/tiarra/files/pkg-message.in
@@ -0,0 +1,3 @@
+
+You need to edit %%PREFIX%%/tiarra/tiarra.conf to work properly.
+
diff --git a/japanese/tiarra/files/tiarra.in b/japanese/tiarra/files/tiarra.in
new file mode 100644
index 000000000000..773a334ef4dd
--- /dev/null
+++ b/japanese/tiarra/files/tiarra.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: tiarra
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+
+prefix=%%PREFIX%%
+name="tiarra"
+
+tiarra_enable=${tiarra_enable:-"NO"}
+tiarra_flags=${tiarra_flags:-"--quiet"}
+tiarra_user=${tiarra_user:-"%%TIARRA_USER%%"}
+tiarra_chdir=${tiarra_chdir:-"${prefix}/${name}"}
+
+. %%RC_SUBR%%
+
+rcvar=`set_rcvar`
+command="${tiarra_chdir}/${name}"
+command_interpreter="/usr/bin/perl"
+required_dirs="${tiarra_chdir}"
+required_files="${tiarra_chdir}/${name}.conf"
+extra_commands="reload"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/japanese/tiarra/pkg-descr b/japanese/tiarra/pkg-descr
new file mode 100644
index 000000000000..68abc08da92f
--- /dev/null
+++ b/japanese/tiarra/pkg-descr
@@ -0,0 +1,4 @@
+Tiarra is pure-perl irc proxy(or bot) software, with single-thread,
+multi-io, object-oriented framework.
+
+WWW: http://www.clovery.jp/tiarra/
diff --git a/japanese/tiarra/pkg-plist b/japanese/tiarra/pkg-plist
new file mode 100644
index 000000000000..4858c5e86529
--- /dev/null
+++ b/japanese/tiarra/pkg-plist
@@ -0,0 +1,172 @@
+tiarra/AUTHORS
+tiarra/ChangeLog
+tiarra/HACKING
+tiarra/LICENSE
+tiarra/NEWS
+tiarra/doc-src/README
+tiarra/doc-src/conf-main.tdoc
+tiarra/doc-src/contents.html
+tiarra/doc-src/module-group.tdoc
+tiarra/doc-src/module-toc.html
+tiarra/doc-src/sample.conf.in
+@dirrm tiarra/doc-src
+tiarra/doc/default.css
+tiarra/doc/module-toc.html
+tiarra/doc/module/Auto.html
+tiarra/doc/module/CTCP.html
+tiarra/doc/module/Channel.html
+tiarra/doc/module/Client.html
+tiarra/doc/module/Debug.html
+tiarra/doc/module/Log.html
+tiarra/doc/module/System.html
+tiarra/doc/module/User.html
+@dirrm tiarra/doc/module
+@dirrm tiarra/doc
+tiarra/main/BulletinBoard.pm
+tiarra/main/CTCP.pm
+tiarra/main/ChannelInfo.pm
+tiarra/main/Configuration.pm
+tiarra/main/Configuration/Block.pm
+tiarra/main/Configuration/LexicalAnalyzer.pm
+tiarra/main/Configuration/Parser.pm
+tiarra/main/Configuration/Preprocessor.pm
+@dirrm tiarra/main/Configuration
+tiarra/main/ControlPort.pm
+tiarra/main/Crypt.pm
+tiarra/main/Exception.pm
+tiarra/main/ExternalSocket.pm
+tiarra/main/FunctionalVariable.pm
+tiarra/main/Hook.pm
+tiarra/main/IO/Socket/INET6.pm
+@dirrm tiarra/main/IO/Socket
+@dirrm tiarra/main/IO
+tiarra/main/IRCMessage.pm
+tiarra/main/InstantCapsule.pm
+tiarra/main/IrcIO.pm
+tiarra/main/IrcIO/Client.pm
+tiarra/main/IrcIO/Server.pm
+@dirrm tiarra/main/IrcIO
+tiarra/main/Iterator.pm
+tiarra/main/Iterator/ArrayIterator.pm
+tiarra/main/Iterator/BackwardIterator.pm
+tiarra/main/Iterator/BidirectionalIterator.pm
+tiarra/main/Iterator/ForwardIterator.pm
+tiarra/main/Iterator/RandomAccessIterator.pm
+tiarra/main/Iterator/RoundIterator.pm
+@dirrm tiarra/main/Iterator
+tiarra/main/L10N.pm
+tiarra/main/LinedINETSocket.pm
+tiarra/main/LocalChannelManager.pm
+tiarra/main/Mask.pm
+tiarra/main/Module.pm
+tiarra/main/Module/Use.pm
+tiarra/main/ModuleManager.pm
+@dirrm tiarra/main/Module
+tiarra/main/Multicast.pm
+tiarra/main/NumericReply.pm
+tiarra/main/PersonInChannel.pm
+tiarra/main/PersonalInfo.pm
+tiarra/main/ReloadTrigger.pm
+tiarra/main/RunLoop.pm
+tiarra/main/Template.pm
+tiarra/main/TiarraDoc.pm
+tiarra/main/Timer.pm
+tiarra/main/Unicode/Japanese.pm
+@dirrm tiarra/main/Unicode
+@dirrm tiarra/main
+tiarra/makedoc
+tiarra/module/Auto/Alias.pm
+tiarra/module/Auto/AliasDB.pm
+tiarra/module/Auto/AliasDB/CallbackUtils.pm
+@dirrm tiarra/module/Auto/AliasDB
+tiarra/module/Auto/Answer.pm
+tiarra/module/Auto/CacheManager.pm
+tiarra/module/Auto/ChannelWithoutOper.pm
+tiarra/module/Auto/Joined.pm
+tiarra/module/Auto/MesMail.pm
+tiarra/module/Auto/Oper.pm
+tiarra/module/Auto/Random.pm
+tiarra/module/Auto/Reply.pm
+tiarra/module/Auto/Response.pm
+tiarra/module/Auto/Utils.pm
+@dirrm tiarra/module/Auto
+tiarra/module/CTCP/ClientInfo.pm
+tiarra/module/CTCP/Ping.pm
+tiarra/module/CTCP/Time.pm
+tiarra/module/CTCP/UserInfo.pm
+tiarra/module/CTCP/Version.pm
+@dirrm tiarra/module/CTCP
+tiarra/module/Channel/Freeze.pm
+tiarra/module/Channel/Join/Connect.pm
+tiarra/module/Channel/Join/Invite.pm
+tiarra/module/Channel/Join/Kicked.pm
+@dirrm tiarra/module/Channel/Join
+tiarra/module/Channel/Mode/Get.pm
+tiarra/module/Channel/Mode/Oper/Grant.pm
+@dirrm tiarra/module/Channel/Mode/Oper
+tiarra/module/Channel/Mode/Set.pm
+@dirrm tiarra/module/Channel/Mode
+tiarra/module/Channel/Rejoin.pm
+@dirrm tiarra/module/Channel
+tiarra/module/Client/Cache.pm
+tiarra/module/Client/Cotton.pm
+tiarra/module/Client/Eval.pm
+tiarra/module/Client/GetVersion.pm
+tiarra/module/Client/Rehash.pm
+@dirrm tiarra/module/Client
+tiarra/module/Debug/RawLog.pm
+@dirrm tiarra/module/Debug
+tiarra/module/Log/Channel.pm
+tiarra/module/Log/Logger.pm
+tiarra/module/Log/Recent.pm
+tiarra/module/Log/Writer.pm
+tiarra/module/Log/Writer/Base.pm
+tiarra/module/Log/Writer/File.pm
+@dirrm tiarra/module/Log/Writer
+@dirrm tiarra/module/Log
+tiarra/module/Skelton.pm
+tiarra/module/System/Error.pm
+tiarra/module/System/Macro.pm
+tiarra/module/System/NotifyIcon/Win32.pm
+@dirrm tiarra/module/System/NotifyIcon
+tiarra/module/System/Pong.pm
+tiarra/module/System/PrivTranslator.pm
+tiarra/module/System/Raw.pm
+tiarra/module/System/Reload.pm
+tiarra/module/System/RemoteControl.pm
+tiarra/module/System/Shutdown.pm
+@dirrm tiarra/module/System
+tiarra/module/Tools/DateConvert.pm
+tiarra/module/Tools/FileCache.pm
+tiarra/module/Tools/FileCache/EachFile.pm
+@dirrm tiarra/module/Tools/FileCache
+tiarra/module/Tools/GroupDB.pm
+tiarra/module/Tools/HTTPClient.pm
+tiarra/module/Tools/HashDB.pm
+tiarra/module/Tools/HashTools.pm
+tiarra/module/Tools/LinedDB.pm
+tiarra/module/Tools/MailSend.pm
+tiarra/module/Tools/MailSend/EachServer.pm
+@dirrm tiarra/module/Tools/MailSend
+@dirrm tiarra/module/Tools
+tiarra/module/User/Away/Client.pm
+tiarra/module/User/Away/Nick.pm
+@dirrm tiarra/module/User/Away
+tiarra/module/User/Filter.pm
+tiarra/module/User/Ignore.pm
+tiarra/module/User/Kick.pm
+tiarra/module/User/Nick/Detached.pm
+@dirrm tiarra/module/User/Nick
+tiarra/module/User/ServerOper.pm
+tiarra/module/User/Vanish.pm
+@dirrm tiarra/module/User
+@dirrm tiarra/module
+@unexec if cmp -s %D/tiarra/tiarra.conf %D/tiarra/sample.conf; then rm -f %D/tiarra/tiarra.conf; fi
+tiarra/sample.conf
+@exec [ -f %D/tiarra/tiarra.conf ] || cp %B/%f %D/tiarra/tiarra.conf
+tiarra/tiarra
+@dirrm tiarra/log
+@exec mkdir %D/tiarra/log
+@exec chown %%TIARRA_USER%%:%%TIARRA_GROUP%% %D/tiarra/log
+@exec chmod o-rwx %D/tiarra/log
+@dirrm tiarra