aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/mbuffer/Makefile40
-rw-r--r--misc/mbuffer/distinfo6
-rw-r--r--misc/mbuffer/pkg-plist3
3 files changed, 22 insertions, 27 deletions
diff --git a/misc/mbuffer/Makefile b/misc/mbuffer/Makefile
index a6cc7e2f8211..271ac8c730c3 100644
--- a/misc/mbuffer/Makefile
+++ b/misc/mbuffer/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= mbuffer
-PORTVERSION= 2016.06.13
+PORTVERSION= 2017.10.11
CATEGORIES= misc
MASTER_SITES= http://www.maier-komor.de/software/mbuffer/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
@@ -13,37 +13,29 @@ COMMENT= Tool for buffering data streams
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= gmake tar:tgz
+USES= gmake localbase ssl tar:tgz
GNU_CONFIGURE= yes
-MAKE_ARGS= SHELL=${SH}
-
-PLIST_FILES= bin/mbuffer man/man1/mbuffer.1.gz
+# Prevent sendfile() from being detected by configure and rejected
+# by mbuffer.c due to being "unable to send from buffers".
+CONFIGURE_ARGS= ac_cv_search_sendfile=no
+MAKE_ARGS= SHELL=/bin/sh
OPTIONS_DEFINE= MHASH
-MHASH_DESC= Use mhash for hash generation
-
OPTIONS_DEFAULT= MHASH
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MMHASH}
-LIB_DEPENDS+= libmhash.so:security/mhash
-CFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-.else
-CONFIGURE_ARGS+=ac_cv_search_mhash_init=no
-USES+= ssl
-.endif
-
-# Prevent sendfile() from being detected by configure and rejected
-# by mbuffer.c due to being "unable to send from buffers".
-CONFIGURE_ARGS+=ac_cv_search_sendfile=no
+MHASH_DESC= Use mhash for hash generation
-.include <bsd.port.pre.mk>
+MHASH_LIB_DEPENDS= libmhash.so:security/mhash
+MHASH_CONFIGURE_OFF= ac_cv_search_mhash_init=no
post-configure:
# Rename variables to make sure they aren't redefined through mhash.h
@${REINPLACE_CMD} -E -e 's@(PACKAGE|VERSION)@MBUFFER_\1@' \
- ${WRKSRC}/config.h ${WRKSRC}/mbuffer.c
+ ${WRKSRC}/config.h ${WRKSRC}/settings.c
+
+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>
+.include <bsd.port.mk>
diff --git a/misc/mbuffer/distinfo b/misc/mbuffer/distinfo
index 563ae62e0697..8821fca366e6 100644
--- a/misc/mbuffer/distinfo
+++ b/misc/mbuffer/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1466720344
-SHA256 (mbuffer-20160613.tgz) = 67a92869c0a7e8da1bd96b70cc7de7233286a7ccba55ffc9b55d0d611df649fd
-SIZE (mbuffer-20160613.tgz) = 123253
+TIMESTAMP = 1512145808
+SHA256 (mbuffer-20171011.tgz) = eb2f979708bb5ba42a6c1f12c7502dff3b05df8e49b5686c308eda96cad0d1fc
+SIZE (mbuffer-20171011.tgz) = 136630
diff --git a/misc/mbuffer/pkg-plist b/misc/mbuffer/pkg-plist
new file mode 100644
index 000000000000..cf9fc4becdc5
--- /dev/null
+++ b/misc/mbuffer/pkg-plist
@@ -0,0 +1,3 @@
+bin/mbuffer
+@sample etc/mbuffer.rc.sample
+man/man1/mbuffer.1.gz