2013-06-17 13:46:28 +02:00
|
|
|
# $NetBSD: Makefile,v 1.41 2013/06/17 11:46:28 joerg Exp $
|
1999-06-18 21:18:17 +02:00
|
|
|
|
|
|
|
DISTNAME= srp-1.4.4
|
|
|
|
PKGNAME= srp-client-1.4.4
|
2010-03-24 20:43:21 +01:00
|
|
|
PKGREVISION= 2
|
1999-06-18 21:18:17 +02:00
|
|
|
CATEGORIES= security net
|
2007-12-02 12:37:24 +01:00
|
|
|
MASTER_SITES= ftp://ftp.zedz.net/pub/crypto/programs/srp/
|
1999-06-18 21:18:17 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2003-09-19 04:02:07 +02:00
|
|
|
HOMEPAGE= http://srp.stanford.edu/
|
2003-07-21 19:20:17 +02:00
|
|
|
COMMENT= Client programs using Secure Remote Password protocol
|
2001-06-06 23:43:56 +02:00
|
|
|
LICENSE= srp_client-license
|
2009-05-19 10:59:00 +02:00
|
|
|
|
2008-09-12 13:49:57 +02:00
|
|
|
RESTRICTED= Licensor makes vague patent claims.
|
2007-06-14 20:40:57 +02:00
|
|
|
NO_SRC_ON_CDROM= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
2001-06-06 23:43:56 +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
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-srp --with-cast --enable-loginf
|
|
|
|
|
|
|
|
.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} == ""
|
2004-09-08 16:30:00 +02:00
|
|
|
SED_PATTERN+= -e "s,-ldes,-ldes -lroken -lcom_err -lcrypt,"
|
2001-03-23 11:31:51 +01:00
|
|
|
.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 \
|
2002-10-03 00:19:47 +02:00
|
|
|
telnet/configure.in telnet/configure; \
|
2000-08-24 01:24:07 +02:00
|
|
|
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
|
|
|
|
|
2010-01-27 21:57:22 +01:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
|
|
|
|
1999-06-18 21:18:17 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/telnet/telnet/telnet \
|
2010-01-27 21:57:22 +01:00
|
|
|
${DESTDIR}${PREFIX}/bin/srptelnet
|
2000-02-05 07:00:18 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/telnet/telnet/telnet.1 \
|
2010-01-27 21:57:22 +01:00
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/srptelnet.1
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ftp/ftp/ftp ${DESTDIR}${PREFIX}/bin/srpftp
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ftp/ftp/ftp.M ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/srpftp.1
|
1999-06-18 21:18:17 +02:00
|
|
|
|
2013-06-17 13:46:28 +02:00
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
|
|
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
|
|
|
CFLAGS+= -Wno-error=return-type
|
|
|
|
.endif
|
|
|
|
|
2004-04-26 06:36:24 +02:00
|
|
|
.include "../../devel/gmp/buildlink3.mk"
|
1999-06-18 21:18:17 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|