From 23448578d08cb01fd23a7b5f7a5fd758e60a6125 Mon Sep 17 00:00:00 2001 From: pawel Date: Sun, 28 Oct 2012 20:46:06 +0000 Subject: - Convert to OptionsNG [1] - Add fflush patch to solve the problem for using pipe to get outputs [1] - Add option to support ASUS A7N8X-VM/400 [1] - Improve COMMENT - Trim Makefile headers PR: ports/171933 [1] Submitted by: Takefu [1] Approved by: maintainer timeout (1 month) Feature safe: yes --- sysutils/mbmon/Makefile | 27 ++++++++++++++++----------- sysutils/mbmon/distinfo | 4 ++++ 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/sysutils/mbmon/Makefile b/sysutils/mbmon/Makefile index a0abf62b3598..d1a9d33a1cfe 100644 --- a/sysutils/mbmon/Makefile +++ b/sysutils/mbmon/Makefile @@ -1,21 +1,19 @@ -# Ports collection makefile for: xmbmon -# Date created: 2001/08/30 -# Whom: kaz@kobe1995.net (NAKAMURA Kauzushi) -# +# Created by: kaz@kobe1995.net (NAKAMURA Kauzushi) # $FreeBSD$ -# PORTNAME?= mbmon PORTVERSION= 205 -PORTREVISION?= 5 +PORTREVISION?= 6 CATEGORIES= sysutils MASTER_SITES= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/xmbmon/ DISTNAME= xmbmon${PORTVERSION} MAINTAINER= 5u623l20@gmail.com -COMMENT?= A tty motherboard monitor for LM78/79, W8378x, AS99127F, VT82C686 and ADM9240 +COMMENT?= Motherboard monitor for LM78/79, W8378x, AS99127F, VT82C686 and ADM9240 PORTSCOUT= limit:^[0-9]+$ +PATCH_SITES+= ${MASTER_SITES} +PATCHFILES+= xmbmon${PORTVERSION}_fflush.patch ONLY_FOR_ARCHS= i386 amd64 GNU_CONFIGURE= yes @@ -26,17 +24,24 @@ PLIST_FILES+= bin/${PORTNAME} MAN1?= mbmon.1 PORTDOCS= ChangeLog ChangeLog.jp ReadMe ReadMe.jp ReadMe.tech -OPTIONS= SMB "enable smb(4) support" on +OPTIONS_DEFINE= ASUS SMB +OPTIONS_SET= SMB +ASUS_DESC= "Enable A7N8X-VM support" +SMB_DESC= "Enable smb(4) support" .if ${PORTNAME} == "mbmon" USE_RC_SUBR= mbmon .endif -.include +.include + +.if ${PORT_OPTIONS:MASUS} +PATCHFILES+= xmbmon${PORTVERSION}_A7N8X-VM.patch +.endif post-patch: @${REINPLACE_CMD} -e 's+/usr/share/doc/mbmon+${DOCSDIR}+' ${WRKSRC}/mbmon.1 -.if !defined(WITHOUT_SMB) +.if ${PORT_OPTIONS:MSMB} @${REINPLACE_CMD} -e 's/^DEFS=/&-DSMBUS_IOCTL /' ${WRKSRC}/Makefile.in .endif @@ -49,4 +54,4 @@ do-install: ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} .endif -.include +.include diff --git a/sysutils/mbmon/distinfo b/sysutils/mbmon/distinfo index 17554744a399..e11bd00f1199 100644 --- a/sysutils/mbmon/distinfo +++ b/sysutils/mbmon/distinfo @@ -1,2 +1,6 @@ SHA256 (xmbmon205.tar.gz) = 65b10ebfe53585ac22d6a31d8ef3fea552cb266cf2c124c00421dec1df5a4a4f SIZE (xmbmon205.tar.gz) = 142987 +SHA256 (xmbmon205_fflush.patch) = f837f465861ce46e4a90d1d3c7a680c1904f7fb91e14efcbad22313c90e2cdc7 +SIZE (xmbmon205_fflush.patch) = 242 +SHA256 (xmbmon205_A7N8X-VM.patch) = 20565e0b1216d3becb87f796fa547e81fec84e37cff05405eb8f71bc97eebc68 +SIZE (xmbmon205_A7N8X-VM.patch) = 274 -- cgit