diff options
author | tv <tv@pkgsrc.org> | 1998-03-18 00:49:33 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 1998-03-18 00:49:33 +0000 |
commit | 1b483b4bfb17bbd5ddd5d9ea004998f7cd34127a (patch) | |
tree | a280508a4106d136efb9c3b59c2e0ca288b280cb /security/rsaref/Makefile | |
parent | 287b12192fdbd757fed1e0d80fe20d0eb94e1f06 (diff) | |
download | pkgsrc-1b483b4bfb17bbd5ddd5d9ea004998f7cd34127a.tar.gz |
Import of a shared/static rsaref 2.0 library package. Originally based
on FreeBSD's port, but almost completely reworked. Differences:
- leaves out MD5 and uses NetBSD's libc MD5 routines
- all the includes are installed in ${PREFIX}/include/rsaref
- fetches it legally from ftp.rsa.com instead of sites outside the USA
- uses <bsd.lib.mk> to build the library
Diffstat (limited to 'security/rsaref/Makefile')
-rw-r--r-- | security/rsaref/Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/security/rsaref/Makefile b/security/rsaref/Makefile new file mode 100644 index 00000000000..04fee4f04e6 --- /dev/null +++ b/security/rsaref/Makefile @@ -0,0 +1,58 @@ +# New ports collection makefile for: rsaref +# Version required: 2.0 +# +# Date created: 17 Feb 1998 +# Whom: tv@netbsd.org +# +# $NetBSD: Makefile,v 1.1.1.1 1998/03/18 00:49:33 tv Exp $ +# + +PKGNAME= rsaref-2.0 +DISTNAME= rsaref20 +CATEGORIES= security +RSA_SITE= ftp://ftp.rsa.com/rsaref/ +MASTER_SITES= ${RSA_SITE} +EXTRACT_SUFX= .tar.Z + +MAINTAINER= packages@NetBSD.ORG + +WRKSRC= ${WRKDIR}/source +RESTRICTED= "Cryptographic source usable only within the USA" +MIRROR_DISTFILE=no +IS_INTERACTIVE= yes + +do-fetch: +.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != YES + @${ECHO} + @${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. + @${ECHO} + @${FALSE} +.else + @${MKDIR} ${WRKDIR} || ${TRUE} + @if [ ! -f ${DISTDIR}/${DISTFILES} ]; then \ + cd ${WRKDIR} && ${FETCH_CMD} ${FETCH_BEFORE_ARGS} ${RSA_SITE}README ${FETCH_AFTER_ARGS}; \ + cd ${_DISTDIR} && ${FETCH_CMD} ${FETCH_BEFORE_ARGS} ${RSA_SITE}`egrep '^dist/U\.S\.-only-' ${WRKDIR}/README`/${DISTNAME}${EXTRACT_SUFX} ${FETCH_AFTER_ARGS}; \ + fi +.endif + +pre-configure: + @${RM} -f ${WRKSRC}/md5.h + @${CP} ${FILESDIR}/Makefile ${FILESDIR}/md5.h ${WRKSRC} + @${LN} -s . ${WRKSRC}/rsaref + +do-install: + ${MKDIR} ${PREFIX}/include/rsaref ${PREFIX}/share/doc/rsaref + cd ${WRKSRC} && \ + ${INSTALL_DATA} des.h global.h md2.h md5.h rsa.h rsaref.h \ + ${PREFIX}/include/rsaref + cd ${WRKSRC} && \ + ${INSTALL_DATA} librsaref.a librsaref.so.2.0 ${PREFIX}/lib + ${LN} -sf librsaref.so.2.0 ${PREFIX}/lib/librsaref.so.2 + ${LN} -sf librsaref.so.2.0 ${PREFIX}/lib/librsaref.so + ${LDCONFIG} || ${TRUE} + cd ${WRKDIR}/doc && \ + ${INSTALL_DATA} info.txt rsaref.txt ${PREFIX}/share/doc/rsaref + +.include <bsd.port.mk> |