aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-03-23 14:51:50 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-03-23 14:51:50 +0800
commitcc169a02c1c8525fe0f4fd8adf4b6ed66271bc75 (patch)
treea04dc85aae357b971aa63620fb39855705447ed9 /sysutils
parent5f35b373ddf9e2bb0520da86ce53933e95e3de64 (diff)
downloadfreebsd-ports-gnome-cc169a02c1c8525fe0f4fd8adf4b6ed66271bc75.tar.gz
freebsd-ports-gnome-cc169a02c1c8525fe0f4fd8adf4b6ed66271bc75.tar.zst
freebsd-ports-gnome-cc169a02c1c8525fe0f4fd8adf4b6ed66271bc75.zip
- Add LICENSE_FILE
- Switch to options helpers - Silence patching - Regenerate patches with `make makepatch`
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/healthd/Makefile23
-rw-r--r--sysutils/healthd/files/patch-getMB-smb.c (renamed from sysutils/healthd/files/patch-getSMB-smb.c)10
2 files changed, 17 insertions, 16 deletions
diff --git a/sysutils/healthd/Makefile b/sysutils/healthd/Makefile
index f8bf1aea4304..aa7f42ff6ccd 100644
--- a/sysutils/healthd/Makefile
+++ b/sysutils/healthd/Makefile
@@ -12,27 +12,28 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Daemon to monitor vital motherboard parameters
LICENSE= BSD2CLAUSE
-
-OPTIONS_DEFINE= IPV6 FULL_CONFIG DOCS
-
-FULL_CONFIG_DESC= Remotely reading the full config
-IPV6_CONFIGURE_ENABLE= ipv6
-FULL_CONFIG_CONFIGURE_ENABLE= full-config
-
-.include <bsd.port.options.mk>
+LICENSE_FILE= ${WRKSRC}/COPYRIGHT
ONLY_FOR_ARCHS= i386 amd64
+
USE_RC_SUBR= ${PORTNAME}
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+=--exec-prefix=${PREFIX}
+CONFIGURE_ARGS= --exec-prefix=${PREFIX}
INSTALL_TARGET= install-all
SUB_FILES= pkg-message
+OPTIONS_DEFINE= IPV6 FULL_CONFIG DOCS
+
+FULL_CONFIG_DESC= Remotely reading the full config
+
+IPV6_CONFIGURE_ENABLE= ipv6
+FULL_CONFIG_CONFIGURE_ENABLE= full-config
+
post-patch:
- ${REINPLACE_CMD} -e 's| @exec_prefix@| $$(DESTDIR)@exec_prefix@|' \
+ @${REINPLACE_CMD} -e 's| @exec_prefix@| $$(DESTDIR)@exec_prefix@|' \
${WRKSRC}/Makefile.in
-post-install:
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/PROTOCOL ${STAGEDIR}${DOCSDIR}
diff --git a/sysutils/healthd/files/patch-getSMB-smb.c b/sysutils/healthd/files/patch-getMB-smb.c
index 964307a18288..0af9f478fa2a 100644
--- a/sysutils/healthd/files/patch-getSMB-smb.c
+++ b/sysutils/healthd/files/patch-getMB-smb.c
@@ -1,5 +1,5 @@
---- getMB-smb.c.orig 2004-08-17 03:32:39.000000000 +0200
-+++ getMB-smb.c 2015-05-01 22:56:04.200695000 +0200
+--- getMB-smb.c.orig 2004-08-17 01:32:39 UTC
++++ getMB-smb.c
@@ -31,6 +31,7 @@
#endif
@@ -8,7 +8,7 @@
#include <fcntl.h>
#include <sys/types.h>
#include <sys/ioctl.h>
-@@ -90,7 +91,9 @@
+@@ -90,7 +91,9 @@ OpenIO(void) {
}
cmd.cmd = 0x47;
@@ -18,7 +18,7 @@
for (i = 0; i < sizeof(addrs); i++) {
cmd.slave = addrs[i];
if (ioctl(iosmb, SMB_READB, (caddr_t)&cmd) != -1) {
-@@ -115,7 +118,11 @@
+@@ -115,7 +118,11 @@ WriteByte(int addr,int value) {
count = 0;
cmd.slave = smb_addr;
cmd.cmd = addr;
@@ -30,7 +30,7 @@
while (ioctl(iosmb, SMB_WRITEB, &cmd) == -1) {
if (++count < 3) {
sleep(1);
-@@ -136,7 +143,12 @@
+@@ -136,7 +143,12 @@ ReadByte(int addr) {
cmd.slave = smb_addr;
cmd.cmd = addr;