aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/pgp.language/Makefile
blob: 5d0a08b95545b9017f9a0a0855801a751aa84f10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# 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: Makefile,v 1.1.1.1 1998/02/23 20:19:53 steve Exp $
#

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