mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
839850f5a1
Mode 4555 is how the programs were installed before staging, and allows normal users to access the system information. For now, xmbmon is still installed in the X resource directory. PR: 186332 Reported by: turutani (scphys.kyoto-u.ac.jp) Approved by: maintainer (Muhammad Rahman)
75 lines
1.8 KiB
Makefile
75 lines
1.8 KiB
Makefile
# Created by: kaz@kobe1995.net (NAKAMURA Kauzushi)
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xmbmon
|
|
PORTVERSION= 205
|
|
PORTREVISION= 13
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/${PORTNAME}/
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
|
|
|
MAINTAINER= 5u623l20@gmail.com
|
|
COMMENT= MB monitor for LM78/79, W8378x, AS99127F, VT82C686 and ADM9240
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
PORTSCOUT= limit:^[0-9]+$
|
|
PATCH_SITES+= ${MASTER_SITES}
|
|
PATCHFILES+= ${PORTNAME}${PORTVERSION}_fflush.patch
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
GNU_CONFIGURE= yes
|
|
BINMODE= 4555
|
|
|
|
PORTDOCS= ChangeLog ChangeLog.jp ReadMe ReadMe.jp ReadMe.tech
|
|
|
|
OPTIONS_DEFINE= ASUS SMB DOCS
|
|
OPTIONS_MULTI= INTERFACE
|
|
OPTIONS_MULTI_INTERFACE= CLI X11
|
|
OPTIONS_DEFAULT=SMB CLI
|
|
ASUS_DESC= Enable A7N8X-VM support
|
|
SMB_DESC= Enable smb(4) support
|
|
CLI_DESC= CLI support only
|
|
|
|
ASUS_PATCHFILES= ${PORTNAME}${PORTVERSION}_A7N8X-VM.patch
|
|
X11_PLIST_FILES= lib/X11/app-defaults/${PORTNAME} \
|
|
man/man1/${PORTNAME}.1x.gz
|
|
CLI_PLIST_FILES= bin/mbmon \
|
|
man/man1/mbmon.1.gz
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if !${PORT_OPTIONS:MX11}
|
|
MAKE_ARGS= PROGRAM="mbmon"
|
|
.else
|
|
USE_XORG= x11 xt
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MCLI}
|
|
USE_RC_SUBR= mbmon
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's+/usr/share/doc/mbmon+${DOCSDIR}+' \
|
|
${WRKSRC}/mbmon.1
|
|
.if ${PORT_OPTIONS:MSMB}
|
|
@${REINPLACE_CMD} -e 's/^DEFS=/&-DSMBUS_IOCTL /' ${WRKSRC}/Makefile.in
|
|
.endif
|
|
|
|
do-install:
|
|
.if ${PORT_OPTIONS:MX11}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xmbmon \
|
|
${STAGEDIR}${PREFIX}/lib/X11/app-defaults
|
|
${INSTALL_MAN} ${WRKSRC}/xmbmon.1x ${STAGEDIR}${MANPREFIX}/man/man1
|
|
.endif
|
|
.if ${PORT_OPTIONS:MCLI}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mbmon ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/mbmon.1 ${STAGEDIR}${MANPREFIX}/man/man1
|
|
.endif
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|