2003-07-17 23:21:03 +02:00
|
|
|
# $NetBSD: Makefile,v 1.16 2003/07/17 21:21:21 grant Exp $
|
1999-05-24 00:41:21 +02:00
|
|
|
|
2002-03-14 14:02:30 +01:00
|
|
|
DISTNAME= hpack79src
|
1999-05-24 00:41:21 +02:00
|
|
|
PKGNAME= hpack-0.79
|
2003-03-29 13:40:00 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
1999-05-24 00:41:21 +02:00
|
|
|
CATEGORIES= archivers
|
|
|
|
MASTER_SITES= ftp://src.doc.ic.ac.uk/packages/hpack/
|
|
|
|
|
2003-07-17 23:21:03 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2001-02-16 14:15:24 +01:00
|
|
|
COMMENT= Multi-System Archiver with open keys PGP-based security
|
1999-05-24 00:41:21 +02:00
|
|
|
|
2002-08-25 23:48:57 +02:00
|
|
|
USE_BUILDLINK2= yes
|
|
|
|
|
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-05-24 00:41:21 +02:00
|
|
|
|
|
|
|
MAKEFILE= makefile
|
|
|
|
ALL_TARGET= hpack
|
2002-03-09 04:27:51 +01:00
|
|
|
|
2002-08-25 23:48:57 +02:00
|
|
|
MAKE_FLAGS= CFLAGS="-c -DBSD386 -D__UNIX__ -DPREFIX=\\\"${PREFIX}\\\" -I. ${CFLAGS} -Icrypt"
|
|
|
|
|
2002-03-09 04:27:51 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2002-08-25 23:48:57 +02:00
|
|
|
|
2002-03-09 04:27:51 +01:00
|
|
|
.if ${OPSYS} == "Darwin"
|
2002-08-25 23:48:57 +02:00
|
|
|
MAKE_FLAGS+= CMDL="${LDFLAGS} -lcurses"
|
2002-03-09 04:27:51 +01:00
|
|
|
.else
|
2002-08-25 23:48:57 +02:00
|
|
|
MAKE_FLAGS+= CMDL="${LDFLAGS} -ltermcap"
|
2002-03-09 04:27:51 +01:00
|
|
|
.endif
|
1999-05-24 00:41:21 +02:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC}/keycvt && ${MAKE} CFLAGS="-c -D__UNIX__ ${CFLAGS}" \
|
|
|
|
-f ${MAKEFILE} keycvt
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/hpack ${PREFIX}/bin/
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/keycvt/keycvt ${PREFIX}/bin/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/docs/hpack.1 ${PREFIX}/man/man1/
|
2003-05-05 19:10:02 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/hpack
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/hpack
|
1999-05-24 00:41:21 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/language.dat ${PREFIX}/share/hpack/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/hpack.cfg ${PREFIX}/share/hpack/hpack.cfg.example
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/hpackext.doc ${PREFIX}/share/doc/hpack/
|
|
|
|
@if [ ! -f ${PREFIX}/etc/hpack.cfg ]; then \
|
|
|
|
${CP} -p ${PREFIX}/share/hpack/hpack.cfg.example ${PREFIX}/etc/hpack.cfg; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|