blob: 3d273d6ed9667fd9d9fd80e4bd3e6883f66bef4b (
plain) (
blame)
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
|
PORTNAME= mbuffer
PORTVERSION= 20220418
CATEGORIES= misc
MASTER_SITES= http://www.maier-komor.de/software/mbuffer/
MAINTAINER= loader@FreeBSD.org
COMMENT= Tool for buffering data streams
WWW= https://www.maier-komor.de/mbuffer.html
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE
TEST_DEPENDS= gtar:archivers/gtar
USES= localbase ssl tar:tgz autoreconf gmake
GNU_CONFIGURE= yes
# for --ignore-failed-read
TEST_ARGS= TAR=gtar
TEST_TARGET= check
OPTIONS_DEFINE= GCRYPT MHASH RHASH
OPTIONS_DEFAULT= MHASH
GCRYPT_DESC= Use gcrypt for hash generation
MHASH_DESC= Use mhash for hash generation
RHASH_DESC= Use rhash for hash generation
GCRYPT_RUN_DEPENDS= libgcrypt>=1.8.4_1:security/libgcrypt
MHASH_RUN_DEPENDS= mhash>=0.9.9.9_5:security/mhash
RHASH_RUN_DEPENDS= rhash>=1.3.5:security/rhash
.include <bsd.port.pre.mk>
.if ${ARCH} == aarch64 && ${OSVERSION} < 1300000
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-12.3
.endif
post-patch:
${REINPLACE_CMD} \
-e 's@bash@sh@' ${WRKSRC}/Makefile.in
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mbuffer
${MV} ${STAGEDIR}${PREFIX}/etc/mbuffer.rc \
${STAGEDIR}${PREFIX}/etc/mbuffer.rc.sample
.include <bsd.port.post.mk>
|