Merge from vendor branch TNF:
[pkgsrc.git] / security / rsaref / Makefile
1 # $NetBSD: Makefile,v 1.17 2000/06/01 11:23:41 rh Exp $
2 #
3
4 DISTNAME=               rsaref
5 PKGNAME=                rsaref-2.0p3
6 WRKSRC=                 ${WRKDIR}/install
7 CATEGORIES=             security
8 MASTER_SITES=           ftp://ftp.spinnaker.com/pub/crypt/rsaref/
9 EXTRACT_SUFX=           .tar.Z
10
11 MAINTAINER=             tv@netbsd.org
12
13 RESTRICTED=             "Cryptographic source usable only within the USA"
14 MIRROR_DISTFILE=        no
15 IS_INTERACTIVE=         yes # requires options to be set in order to use
16 LICENSE=                no-commercial-use
17
18 USE_LIBTOOL=            yes
19 MAKEFILE=               unix/makefile
20 ALL_TARGET=             librsaref.la
21
22 fetch-depends:
23         @if [ "X${USA_RESIDENT}" != XYES ]; then        \
24                 ${ECHO} "This package is legal for use only within the United States."; \
25                 ${ECHO} "You must set the variable USA_RESIDENT to YES to enable"; \
26                 ${ECHO} "use of the rsaref package.";   \
27                 ${FALSE};                               \
28         fi
29
30 do-configure:
31         @${RM} -f ${WRKDIR}/source/rsaref && ${LN} -sf . ${WRKDIR}/source/rsaref
32
33 do-install:
34         ${MKDIR} ${PREFIX}/include/rsaref ${PREFIX}/share/doc/rsaref
35         cd ${WRKSRC} && ${LIBTOOL} ${INSTALL_DATA} librsaref.la ${PREFIX}/lib
36 .for file in des.h global.h md2.h md5.h rsa.h rsaref.h
37         ${INSTALL_DATA} ${WRKDIR}/source/${file} ${PREFIX}/include/rsaref/
38 .endfor
39         cd ${WRKDIR}/doc && ${INSTALL_DATA} info.txt rsaref.txt ${PREFIX}/share/doc/rsaref/
40
41 .include "../../mk/bsd.pkg.mk"