aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2012-10-29 04:46:06 +0800
committerpawel <pawel@FreeBSD.org>2012-10-29 04:46:06 +0800
commit23448578d08cb01fd23a7b5f7a5fd758e60a6125 (patch)
treef9c4826e497c11659f03a54dd0961a8522578168
parent6852d0441b68837148ac40164b606e56d16f8967 (diff)
downloadfreebsd-ports-gnome-23448578d08cb01fd23a7b5f7a5fd758e60a6125.tar.gz
freebsd-ports-gnome-23448578d08cb01fd23a7b5f7a5fd758e60a6125.tar.zst
freebsd-ports-gnome-23448578d08cb01fd23a7b5f7a5fd758e60a6125.zip
- 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 <takefu@airport.fm> [1] Approved by: maintainer timeout (1 month) Feature safe: yes
-rw-r--r--sysutils/mbmon/Makefile27
-rw-r--r--sysutils/mbmon/distinfo4
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 <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
+
+.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 <bsd.port.post.mk>
+.include <bsd.port.mk>
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