Korean language module for PGP

PR:		ports/7365
Submitted by:	CHOI Junho <junker@jazz.snu.ac.kr>
This commit is contained in:
Jun Kuriyama 1998-09-17 14:14:50 +00:00
parent 66165b9ba2
commit c321aaf113
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=13206
7 changed files with 122 additions and 0 deletions

View File

@ -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>

View File

@ -0,0 +1 @@
MD5 (pgp263i-korean.zip) = 89ce52e5a53a09fda105b31925aa14bb

View File

@ -0,0 +1 @@
Korean language module for PGP

View File

@ -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>

View File

@ -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. *
**************************************************************

View File

@ -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

View File

@ -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