diff options
author | Steve Price <steve@FreeBSD.org> | 1998-02-23 20:19:55 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 1998-02-23 20:19:55 +0000 |
commit | 6c77e2cb8825ae47e058020cdf2edbe7c10a4e96 (patch) | |
tree | 4b460d482502af00b9ad25d23c1ae538d862c1cb /japanese | |
parent | Activate ebw3 port. (diff) |
Japanese languagee module for PGP.
PR: 3928
Submitted by: Hironori Ikura <hikura@kaisei.org>
Notes
Notes:
svn path=/head/; revision=9902
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/pgp.language/Makefile | 52 | ||||
-rw-r--r-- | japanese/pgp.language/distinfo | 1 | ||||
-rw-r--r-- | japanese/pgp.language/pkg-comment | 1 | ||||
-rw-r--r-- | japanese/pgp.language/pkg-descr | 5 | ||||
-rw-r--r-- | japanese/pgp.language/pkg-message | 8 | ||||
-rw-r--r-- | japanese/pgp.language/pkg-plist | 10 | ||||
-rw-r--r-- | japanese/pgp.language/scripts/pgp.config.l10n.sh | 37 |
7 files changed, 114 insertions, 0 deletions
diff --git a/japanese/pgp.language/Makefile b/japanese/pgp.language/Makefile new file mode 100644 index 000000000000..302f0c422dd5 --- /dev/null +++ b/japanese/pgp.language/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: pgp.language (japanese) +# Version required: 2.6.3ia +# Date created: 9 May 1997 +# Whom: Hironori Ikura <hikura@kaisei.org> +# +# $Id$ +# + +DISTNAME= pgp263i-${PGP_LANGUAGE} +PKGNAME= jp-pgp-2.6.3 +CATEGORIES= japanese security +MASTER_SITES= ftp://ftp.win.or.jp/pub/network/pgp/2.x/lang/ \ + ftp://ftp.ifi.uio.no/pub/pgp/2.x/lang/ +EXTRACT_SUFX= .zip + +MAINTAINER= hikura@kaisei.org + +BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip +RUN_DEPENDS= pgp:${PORTSDIR}/security/pgp + +EXTRACT_CMD= unzip +EXTRACT_ARGS= -q +NO_CONFIGURE= YES +NO_PATCH= YES +NO_BUILD= YES + +# version and language specifications +PGP_LANGUAGE= japanese +PGP_LANG= ja +PGP_CHARSET= noconv + +PGPLIB= ${PREFIX}/lib/pgp +OBJS= language.txt ${PGP_LANG}.hlp README.${PGP_LANG} + +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 ${WRKSRC}; \ + ${INSTALL_DATA} ${OBJS} ${PGPLIB}; \ + ${INSTALL_DATA} memo ${PGPLIB}/memo.ja + @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/japanese/pgp.language/distinfo b/japanese/pgp.language/distinfo new file mode 100644 index 000000000000..a3dfedf9dbc6 --- /dev/null +++ b/japanese/pgp.language/distinfo @@ -0,0 +1 @@ +MD5 (pgp263i-japanese.zip) = 318891983d6bf76a4ab5b538656a5e01 diff --git a/japanese/pgp.language/pkg-comment b/japanese/pgp.language/pkg-comment new file mode 100644 index 000000000000..96a255bfb54b --- /dev/null +++ b/japanese/pgp.language/pkg-comment @@ -0,0 +1 @@ +Japanese language module for PGP diff --git a/japanese/pgp.language/pkg-descr b/japanese/pgp.language/pkg-descr new file mode 100644 index 000000000000..2275b3b14c78 --- /dev/null +++ b/japanese/pgp.language/pkg-descr @@ -0,0 +1,5 @@ +Japanese language module for PGP 2.6.3ia. + + This package depends on original PGP 2.6.3ia (International version), +and replaces some distributed files. +(config.txt is modified, language.txt is replaced.) diff --git a/japanese/pgp.language/pkg-message b/japanese/pgp.language/pkg-message new file mode 100644 index 000000000000..20a8ca5952ba --- /dev/null +++ b/japanese/pgp.language/pkg-message @@ -0,0 +1,8 @@ +************************************************************** +* 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''.* +* Read ``memo'' file to know more information. * +* ALL FILES ARE FOR JAPANESE LANGUAGE. * +************************************************************** diff --git a/japanese/pgp.language/pkg-plist b/japanese/pgp.language/pkg-plist new file mode 100644 index 000000000000..f817a0e8d13e --- /dev/null +++ b/japanese/pgp.language/pkg-plist @@ -0,0 +1,10 @@ +lib/pgp/ja.hlp +lib/pgp/README.ja +lib/pgp/memo.ja +@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/japanese/pgp.language/scripts/pgp.config.l10n.sh b/japanese/pgp.language/scripts/pgp.config.l10n.sh new file mode 100644 index 000000000000..0950b4a04df1 --- /dev/null +++ b/japanese/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 |