2001-03-27 05:19:43 +02:00
|
|
|
# $NetBSD: Makefile,v 1.13 2001/03/27 03:20:16 hubertf Exp $
|
1999-06-18 21:18:17 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= srp-1.4.4
|
|
|
|
PKGNAME= srp-client-1.4.4
|
|
|
|
CATEGORIES= security net
|
2000-09-09 22:23:49 +02:00
|
|
|
MASTER_SITES= ftp://ftp.win.or.jp/pub/network/security/srp/
|
1999-06-18 21:18:17 +02:00
|
|
|
|
|
|
|
MAINTAINER= jlam@netbsd.org
|
2000-09-09 22:23:49 +02:00
|
|
|
#HOMEPAGE= http://srp.stanford.edu/srp/
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= client programs using Secure Remote Password protocol
|
1999-06-18 21:18:17 +02:00
|
|
|
|
2001-03-27 05:19:43 +02:00
|
|
|
BUILD_DEPENDS+= autoconf-2.13:../../devel/autoconf
|
|
|
|
BUILD_DEPENDS+= automake-1.4:../../devel/automake
|
2000-06-30 18:30:24 +02:00
|
|
|
DEPENDS+= gmp>=2.0.2:../../devel/gmp
|
1999-06-18 21:18:17 +02:00
|
|
|
|
Reorganize crypto handling, as discussed on tech-pkg. Remove all
RESTRICTED= variables that were predicated on former U.S. export
regulations. Add CRYPTO=, as necessary, so it's still possible to
exclude all crypto packages from a build by setting MKCRYPTO=no
(but "lintpkgsrc -R" will no longer catch them).
Specifically,
- - All packages which set USE_SSL just lose their RESTRICTED
variable, since MKCRYPTO responds to USE_SSL directly.
- - realplayer7 and ns-flash keep their RESTRICTED, which is based
on license terms, but also gain the CRYPTO variable.
- - srp-client is now marked broken, since the distfile is evidently
no longer available. On this, we're no worse off than before.
[We haven't been mirroring the distfile, or testing the build!]
- - isakmpd gets CRYPTO for RESTRICTED, but remains broken.
- - crack loses all restrictions, as it does not evidently empower
a user to utilize strong encryption (working definition: ability
to encode a message that requires a secret key plus big number
arithmetic to decode).
2000-09-09 21:40:14 +02:00
|
|
|
CRYPTO= yes
|
1999-06-18 21:18:17 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
CPPFLAGS+= -Dunix=1
|
2001-03-23 11:31:51 +01:00
|
|
|
#CPPFLAGS+= -Dkrb_get_err_text=k_strerror
|
1999-06-18 21:18:17 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include # gmp.h
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib # libgmp.a
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-srp --with-cast --enable-loginf
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
|
|
|
|
|
|
|
|
.if exists(/usr/lib/libkrb.a)
|
|
|
|
CONFIGURE_ARGS+= --with-krb4
|
2000-08-24 01:24:07 +02:00
|
|
|
|
2001-03-23 11:31:51 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
SED_PATTERN= -e "s,include/kerberos,include/kerberosIV,"
|
|
|
|
.if ${MACHINE_PLATFORM:MNetBSD-[01].[0-4]*-i386} == ""
|
|
|
|
SED_PATTERN+= -e "s,-ldes,-ldes -lroken -lcom_err,"
|
|
|
|
.else
|
|
|
|
SED_PATTERN+= -e "s,-ldes,-ldes -lcom_err,"
|
|
|
|
.endif
|
|
|
|
|
2000-08-24 01:24:07 +02:00
|
|
|
post-patch:
|
|
|
|
for FILE in ftp/ftp/Makefile.in ftp/ftpd/Makefile.in \
|
|
|
|
telnet/configure telnet/configure.in; \
|
|
|
|
do \
|
|
|
|
cd ${WRKSRC} && \
|
2001-03-23 11:31:51 +01:00
|
|
|
${SED} ${SED_PATTERN} $$FILE > $$FILE.patched && \
|
2000-08-24 01:24:07 +02:00
|
|
|
${MV} $$FILE.patched $$FILE; \
|
|
|
|
done
|
1999-06-18 21:18:17 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/telnet/telnet/telnet \
|
|
|
|
${PREFIX}/bin/srptelnet
|
2000-02-05 07:00:18 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/telnet/telnet/telnet.1 \
|
1999-06-18 21:18:17 +02:00
|
|
|
${PREFIX}/man/man1/srptelnet.1
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ftp/ftp/ftp ${PREFIX}/bin/srpftp
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ftp/ftp/ftp.M ${PREFIX}/man/man1/srpftp.1
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|