2008-03-02 08:05:46 +01:00
|
|
|
# $NetBSD: Makefile,v 1.36 2008/03/02 07:05:46 jlam Exp $
|
1999-05-24 00:41:21 +02:00
|
|
|
|
2006-05-31 06:45:33 +02:00
|
|
|
DISTNAME= hpack79src
|
|
|
|
PKGNAME= hpack-0.79
|
2008-03-02 08:05:46 +01:00
|
|
|
PKGREVISION= 2
|
1999-05-24 00:41:21 +02:00
|
|
|
CATEGORIES= archivers
|
2006-05-31 06:45:33 +02:00
|
|
|
MASTER_SITES= ftp://ftp.franken.de/pub/crypt/misc/
|
1999-05-24 00:41:21 +02:00
|
|
|
|
2006-05-31 06:45:33 +02:00
|
|
|
MAINTAINER= pkgsrc-users@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
|
|
|
|
2004-07-28 00:09:43 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2008-03-01 04:58:10 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2002-08-25 23:48:57 +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-05-24 00:41:21 +02:00
|
|
|
|
2008-03-01 04:58:10 +01:00
|
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}
|
|
|
|
WRKSRC= ${WRKDIR}
|
2006-09-09 04:41:53 +02:00
|
|
|
MAKE_FILE= makefile
|
2008-03-01 04:58:10 +01:00
|
|
|
MAKE_FLAGS+= CFLAGS=${HPACK_CFLAGS:Q} CMDL=${HPACK_LDFLAGS:Q}
|
2006-05-31 06:45:33 +02:00
|
|
|
BUILD_TARGET= hpack
|
2002-03-09 04:27:51 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2002-08-25 23:48:57 +02:00
|
|
|
|
2004-06-09 18:17:47 +02:00
|
|
|
.if ${OPSYS} == "Linux"
|
2008-03-01 04:58:10 +01:00
|
|
|
HPACK_CFLAGS= -DLINUX
|
2004-06-09 18:17:47 +02:00
|
|
|
.else
|
2008-03-01 04:58:10 +01:00
|
|
|
HPACK_CFLAGS= -DBSD386
|
2004-06-09 18:17:47 +02:00
|
|
|
.endif
|
2008-03-01 04:58:10 +01:00
|
|
|
HPACK_CFLAGS+= -c -D__UNIX__ -DPREFIX="\"${PREFIX}\"" -I. -Icrypt
|
|
|
|
HPACK_CFLAGS+= ${CPPFLAGS} ${CFLAGS}
|
2008-03-02 08:05:46 +01:00
|
|
|
HPACK_LDFLAGS= ${LDFLAGS} ${BUILDLINK_LDADD.termcap}
|
1999-05-24 00:41:21 +02:00
|
|
|
|
2008-03-01 04:58:10 +01:00
|
|
|
CONF_FILES= ${PREFIX}/share/hpack/hpack.cfg.example \
|
2004-07-28 00:07:19 +02:00
|
|
|
${PKG_SYSCONFDIR}/hpack.cfg
|
|
|
|
|
2006-10-03 21:48:43 +02:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/hpack share/doc/hpack
|
2004-07-28 00:09:43 +02:00
|
|
|
|
1999-05-24 00:41:21 +02:00
|
|
|
post-build:
|
2008-03-01 04:58:10 +01:00
|
|
|
cd ${WRKSRC}/keycvt && ${BUILD_MAKE_CMD} keycvt
|
1999-05-24 00:41:21 +02:00
|
|
|
|
|
|
|
do-install:
|
2008-03-01 04:58:10 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/hpack \
|
|
|
|
${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/keycvt/keycvt \
|
|
|
|
${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/docs/hpack.1 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/language.dat \
|
|
|
|
${DESTDIR}${PREFIX}/share/hpack
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/hpack.cfg \
|
|
|
|
${DESTDIR}${PREFIX}/share/hpack/hpack.cfg.example
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/hpackext.doc \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/hpack
|
1999-05-24 00:41:21 +02:00
|
|
|
|
2008-03-02 08:05:46 +01:00
|
|
|
.include "../../mk/termcap.buildlink3.mk"
|
1999-05-24 00:41:21 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|