summaryrefslogtreecommitdiff
path: root/security/rsaref/Makefile
blob: 5cb0e79a9341269c63cc246ea0c2ebea12b93c5b (plain)
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
# $NetBSD: Makefile,v 1.13 1999/04/25 19:10:16 tv Exp $
#

DISTNAME=		rsaref
PKGNAME=		rsaref-2.0
WRKSRC=			${WRKDIR}/install
CATEGORIES=		security
MASTER_SITES=		ftp://ftp.spinnaker.com/pub/crypt/rsaref/
EXTRACT_SUFX=		.tar.Z

MAINTAINER=		tv@netbsd.org

RESTRICTED=		"Cryptographic source usable only within the USA"
MIRROR_DISTFILE=	no
IS_INTERACTIVE=		yes # requires options to be set in order to use
LICENSE=		no-commercial-use

USE_LIBTOOL=		yes
MAKEFILE=		unix/makefile
ALL_TARGET=		librsaref.la

fetch-depends:
	@if [ "X${USA_RESIDENT}" != XYES ]; then	\
		${ECHO} "This package is legal for use only within the United States."; \
		${ECHO} "You must set the variable USA_RESIDENT to YES to enable"; \
		${ECHO} "use of the rsaref package.";	\
		${FALSE};				\
	fi

do-configure:
	@${RM} -f ${WRKDIR}/source/md5.h
	@${CP} ${FILESDIR}/md5.h ${WRKDIR}/source/
	@${LN} -sf . ${WRKDIR}/source/rsaref

do-install:
	${MKDIR} ${PREFIX}/include/rsaref ${PREFIX}/share/doc/rsaref
	cd ${WRKSRC} && \
		${LIBTOOL} --mode=install ${INSTALL_DATA} \
			librsaref.la ${PREFIX}/lib
	cd ${WRKDIR}/source && \
		${INSTALL_DATA} des.h global.h md2.h md5.h rsa.h rsaref.h \
			${PREFIX}/include/rsaref/
	cd ${WRKDIR}/doc && \
		${INSTALL_DATA} info.txt rsaref.txt ${PREFIX}/share/doc/rsaref/

.include "../../mk/bsd.pkg.mk"