1 # $NetBSD: Makefile,v 1.17 2000/06/01 11:23:41 rh Exp $
6 WRKSRC= ${WRKDIR}/install
8 MASTER_SITES= ftp://ftp.spinnaker.com/pub/crypt/rsaref/
11 MAINTAINER= tv@netbsd.org
13 RESTRICTED= "Cryptographic source usable only within the USA"
15 IS_INTERACTIVE= yes # requires options to be set in order to use
16 LICENSE= no-commercial-use
19 MAKEFILE= unix/makefile
20 ALL_TARGET= librsaref.la
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."; \
31 @${RM} -f ${WRKDIR}/source/rsaref && ${LN} -sf . ${WRKDIR}/source/rsaref
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/
39 cd ${WRKDIR}/doc && ${INSTALL_DATA} info.txt rsaref.txt ${PREFIX}/share/doc/rsaref/
41 .include "../../mk/bsd.pkg.mk"