summaryrefslogtreecommitdiff
path: root/korean
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>1998-09-17 14:14:50 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>1998-09-17 14:14:50 +0000
commitc321aaf1139ba60969d9e33f100a3968ff074953 (patch)
treee555fe35984219129b3a6ee261cdfea6283c31c3 /korean
parentCompletely overhauled Apache+mod_ssl port: (diff)
Korean language module for PGP
PR: ports/7365 Submitted by: CHOI Junho <junker@jazz.snu.ac.kr>
Notes
Notes: svn path=/head/; revision=13206
Diffstat (limited to 'korean')
-rw-r--r--korean/pgp.language/Makefile52
-rw-r--r--korean/pgp.language/distinfo1
-rw-r--r--korean/pgp.language/pkg-comment1
-rw-r--r--korean/pgp.language/pkg-descr12
-rw-r--r--korean/pgp.language/pkg-message7
-rw-r--r--korean/pgp.language/pkg-plist12
-rw-r--r--korean/pgp.language/scripts/pgp.config.l10n.sh37
7 files changed, 122 insertions, 0 deletions
diff --git a/korean/pgp.language/Makefile b/korean/pgp.language/Makefile
new file mode 100644
index 000000000000..b940f15b678e
--- /dev/null
+++ b/korean/pgp.language/Makefile
@@ -0,0 +1,52 @@
+# New ports collection makefile for: pgp.language (korean)
+# Version required: 2.6.3i
+# Date created: 22 Jul 1998
+# Whom: CHOI Junho <junker@jazz.snu.ac.kr>
+#
+# $Id$
+#
+# This is based on ja-pgp.
+#
+
+DISTNAME= pgp263i-${PGP_LANGUAGE}
+PKGNAME= ko-pgp-2.6.3
+CATEGORIES= korean security
+MASTER_SITES= http://sparcs.kaist.ac.kr/~firiel/Works/
+EXTRACT_SUFX= .zip
+
+MAINTAINER= junker@jazz.snu.ac.kr
+
+BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
+RUN_DEPENDS= pgp:${PORTSDIR}/security/pgp
+
+EXTRACT_CMD= unzip
+EXTRACT_ARGS= -q
+NO_BUILD= YES
+
+# version and language specifications
+PGP_LANGUAGE= korean
+PGP_LANG= ko
+PGP_CHARSET= noconv
+
+PGPLIB= ${PREFIX}/lib/pgp
+OBJS= language.txt ${PGP_LANG}.hlp README.${PGP_LANG} \
+ ${PGP_LANG}2.hlp
+
+do-install:
+ -[ -d ${PGPLIB} ] || { \
+ ${MKDIR} ${PGPLIB} ; \
+ chown bin.bin ${PGPLIB} ; \
+ chmod 555 ${PGPLIB} ; }
+ -[ -f ${PGPLIB}/language.txt ] && \
+ ${MV} ${PGPLIB}/language.txt ${PGPLIB}/language.txt.bak
+ @cd ${WRKDIR}; \
+ ${INSTALL_DATA} ${OBJS} ${PGPLIB}; \
+ ${INSTALL_DATA} voca.txt dict.txt ${PGPLIB}
+ @cd ${PGPLIB}; \
+ ${GREP} -l -q '^Language.*=.*${PGP_LANG}' config.txt || \
+ ${SH} ${SCRIPTDIR}/pgp.config.l10n.sh \
+ ${PGPLIB} ${PGP_LANG} ${PGP_CHARSET}
+ -pgp > /dev/null 2>&1 # update .idx file
+ @${CAT} ${PKGDIR}/MESSAGE
+
+.include <bsd.port.mk>
diff --git a/korean/pgp.language/distinfo b/korean/pgp.language/distinfo
new file mode 100644
index 000000000000..e1a1197e8447
--- /dev/null
+++ b/korean/pgp.language/distinfo
@@ -0,0 +1 @@
+MD5 (pgp263i-korean.zip) = 89ce52e5a53a09fda105b31925aa14bb
diff --git a/korean/pgp.language/pkg-comment b/korean/pgp.language/pkg-comment
new file mode 100644
index 000000000000..80f85a665e07
--- /dev/null
+++ b/korean/pgp.language/pkg-comment
@@ -0,0 +1 @@
+Korean language module for PGP
diff --git a/korean/pgp.language/pkg-descr b/korean/pgp.language/pkg-descr
new file mode 100644
index 000000000000..8afb6dda6ea9
--- /dev/null
+++ b/korean/pgp.language/pkg-descr
@@ -0,0 +1,12 @@
+PGP-2.6.3i
+----------
+
+Korean language module for PGP 2.6.3ia.
+(based on Japanese language module)
+
+This package depends on original PGP 2.6.3ia (International version),
+and replaces some distributed files.
+(config.txt is modified, language.txt is replaced.)
+
+--
+Ports by CHOI Junho <junker@jazz.snu.ac.kr>
diff --git a/korean/pgp.language/pkg-message b/korean/pgp.language/pkg-message
new file mode 100644
index 000000000000..02f5f47ec268
--- /dev/null
+++ b/korean/pgp.language/pkg-message
@@ -0,0 +1,7 @@
+**************************************************************
+* W a r n i n g *
+* This package included the limitation so called *
+* ``HACKER IS NOT CRACKER'' restriction. Don't open this *
+* package if you don't agree as to ``HACKER IS NOT CRACKER''.*
+* ALL FILES ARE FOR KOREAN LANGUAGE. *
+**************************************************************
diff --git a/korean/pgp.language/pkg-plist b/korean/pgp.language/pkg-plist
new file mode 100644
index 000000000000..f96cc699f7ac
--- /dev/null
+++ b/korean/pgp.language/pkg-plist
@@ -0,0 +1,12 @@
+lib/pgp/ko.hlp
+lib/pgp/ko2.hlp
+lib/pgp/README.ko
+lib/pgp/voca.txt
+lib/pgp/dict.txt
+@exec mv %D/lib/pgp/config.txt %D/lib/pgp/config.txt.bak
+lib/pgp/config.txt
+@unexec mv %D/%F.bak %D/%F
+@exec mv %D/lib/pgp/language.txt %D/lib/pgp/language.txt.bak
+lib/pgp/language.txt
+@unexec mv %D/%F.bak %D/%F
+lib/pgp/language.idx
diff --git a/korean/pgp.language/scripts/pgp.config.l10n.sh b/korean/pgp.language/scripts/pgp.config.l10n.sh
new file mode 100644
index 000000000000..0950b4a04df1
--- /dev/null
+++ b/korean/pgp.language/scripts/pgp.config.l10n.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+#
+# pgp.config.l10n.sh - modify PGP configuration file to localization.
+#
+# Copyright(C) 1997 Hironori Ikura <hikura@tcc.co.jp>
+#
+# usage: pgp.config.l10n.sh <srcdir> <lang> <charset>
+# ex. pgp.config.l10n.sh /usr/ports/japanese/pgp/work ja noconv
+#
+
+if [ $# -ne 3 ]; then
+ echo "usage: $0 <srcdir> <lang> <charset>" 1>&2
+ echo " ex. $0 /usr/ports/japanese/pgp/work ja noconv" 1>&2
+ exit 1
+fi
+
+wrkdir=$1
+lang=$2
+charset=$3
+config=$wrkdir/config.txt
+
+if [ ! -f "$config" ]; then
+ echo "No original config.txt is found." 1>&2
+ echo "Abort processing." 1>&2
+ exit 1
+fi
+
+mv $config $config.bak
+
+sed -e 's/^[Ll]anguage *= *[a-z][a-z]$/Language = '$lang'/' \
+ -e 's/^[ #]*CharSet *= *[A-Za-z0-9]*$/CharSet = '$charset'/' \
+ $config.bak > $config
+
+chown bin.bin $config
+chmod 444 $config
+
+exit 0