1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/russian/pgp.language/Makefile

52 lines
1.4 KiB
Makefile
Raw Normal View History

1995-05-04 14:47:57 +00:00
# New ports collection makefile for: pgp.language
# Version required: 2.6
# Date created: 4 May 1995
# Whom: ache
#
# $Id: Makefile,v 1.3 1995/05/18 10:59:27 asami Exp $
1995-05-04 14:47:57 +00:00
#
DISTNAME= pgp26ru
PKGNAME= pgp-2.6.ru
1995-05-04 14:47:57 +00:00
CATEGORIES+= utilities
MASTER_SITES= ftp://ftp.kiae.su/unix/crypto/pgp/
EXTRACT_SUFX= .zip
1995-05-04 14:47:57 +00:00
MAINTAINER= ache@FreeBSD.ORG
EXEC_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
1995-05-04 14:47:57 +00:00
EXTRACT_CMD= unzip
EXTRACT_ARGS= -q
NO_WRKSUBDIR= YES
NO_CONFIGURE= YES
NO_PATCH= YES
NO_BUILD= YES
1995-05-04 14:47:57 +00:00
PGPLIB= ${PREFIX}/lib/pgp
OBJS= language.txt ru.hlp
.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != YES && ${USA_RESIDENT} != NO
exec_depends:
@echo
@echo You must set variable USA_RESIDENT to YES, if you are USA resident
@echo or to NO, if you aren\'t USA resident to build this package
@false
.elif defined(USA_RESIDENT)
.if ${USA_RESIDENT} == YES
EXEC_DEPENDS += pgp:${PORTSDIR}/utils/pgp.usa_only
.else
EXEC_DEPENDS += pgp:${PORTSDIR}/utils/pgp.non-usa_only
.endif
.endif
1995-05-04 14:47:57 +00:00
do-install:
[ -d ${PGPLIB} ] || mkdir -p ${PGPLIB}
1995-05-04 14:47:57 +00:00
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>