aboutsummaryrefslogtreecommitdiffstats
path: root/russian/pgp.language/Makefile
blob: c5dc0c8a91b88e21ecc6bee3919947486116a725 (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
# New ports collection makefile for: pgp.language
# Date created:         4 May 1995
# Whom:                 ache
#
# $FreeBSD$
#

PORTNAME=   pgp
PORTVERSION=    2.6.3ia
PORTREVISION=   2
CATEGORIES= russian
MASTER_SITES=   ftp://ftp.kiarchive.ru/pub/unix/crypto/pgp/
DISTNAME=   pgp26ru

MAINTAINER= ports@FreeBSD.org
COMMENT=    Russian language module for PGP

RUN_DEPENDS=    ${LOCALBASE}/share/pgp/config.txt:${PORTSDIR}/security/pgp

BROKEN=     Incorrect pkg-plist
DEPRECATED= ${BROKEN}
EXPIRATION_DATE=2005-09-22

USE_ZIP=    YES
NO_WRKSUBDIR=   YES
NO_BUILD=   YES

PGPLIB=         ${PREFIX}/share/pgp
OBJS=       language.txt ru.hlp

do-install:
    [ -d ${PGPLIB} ] || ${MKDIR} ${PGPLIB}
    cd ${WRKSRC}; install -c -o bin -g bin -m 444 ${OBJS} ${PGPLIB}
    cd ${WRKSRC}; ${TR} -d '\015' < NOTES.ru > ${PGPLIB}/NOTES.ru
    cd ${PGPLIB}; ${GREP} -l -q '^Language.*=.*ru' config.txt || { \
        ${CP} config.txt config.txt.bak; \
        ${SED} 's/^Language.*=.*$$/Language = ru/' < config.txt.bak > config.txt; }
    -pgp > /dev/null  2>&1  # update .idx file

.include <bsd.port.mk>