blob: 5adf10a765b6296bcd7a4dc4115bf1ece43f9173 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# $NetBSD: Makefile,v 1.10 2002/03/09 03:27:51 yyamano Exp $
DISTNAME= hpack79${USE_RSAREF2:S/YES/u/:C/[^u]*//g}src
PKGNAME= hpack-0.79
CATEGORIES= archivers
MASTER_SITES= ftp://src.doc.ic.ac.uk/packages/hpack/
MAINTAINER= packages@netbsd.org
COMMENT= Multi-System Archiver with open keys PGP-based security
CRYPTO= yes
WRKSRC= ${WRKDIR}
PATCHDIR= ${WRKDIR}/.patches
USE_RSAREF2= NO
MAKEFILE= makefile
ALL_TARGET= hpack
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
MAKE_FLAGS= CFLAGS="-c -DBSD386 -D__UNIX__ -DPREFIX=\\\"${PREFIX}\\\" -I. ${CFLAGS} -Icrypt" \
CMDL="${LDFLAGS} -lcurses"
.else
MAKE_FLAGS= CFLAGS="-c -DBSD386 -D__UNIX__ -DPREFIX=\\\"${PREFIX}\\\" -I. ${CFLAGS} -Icrypt" \
CMDL="${LDFLAGS} -ltermcap"
.endif
.if defined(USE_RSAREF2) && ${USE_RSAREF2} == YES
DEPENDS+= rsaref-2.0p3:../../security/rsaref
LDFLAGS+= -L${LOCALBASE}/lib -lrsaref
CFLAGS+= -I${LOCALBASE}/include -DRSAREF
.endif
fetch-depends:
.if !defined(USE_RSAREF2) || ${USE_RSAREF2} != YES && ${USE_RSAREF2} != NO
@${ECHO}
@${ECHO} The variable USE_RSAREF2 must be set to either YES or NO
@${ECHO} in order to build this package. USA residents that are
@${ECHO} not licensees of the RSA algorithm MUST set this variable
@${ECHO} to YES. Users outside the USA MUST set this variable to
@${ECHO} NO. Licensees may choose -- NO is faster.
@${FALSE}
.endif
post-extract:
@${MKDIR} ${PATCHDIR}
@${CP} ${.CURDIR}/patches/patch-* ${PATCHDIR}/
.if defined(USE_RSAREF2) && ${USE_RSAREF2} != YES
@${RM} -f ${PATCHDIR}/patch-rsaref
.endif
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/
${INSTALL_DATA_DIR} ${PREFIX}/share/hpack ${PREFIX}/share/doc/hpack
${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"
|