aboutsummaryrefslogtreecommitdiff
path: root/sysutils/smartmontools/Makefile
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2007-03-03 13:05:41 +0000
committerPav Lucistnik <pav@FreeBSD.org>2007-03-03 13:05:41 +0000
commitd146de2fadc97b61132fc77dfa6eb4ab7c209ced (patch)
treef946db140534cac9a71c4be99563fefea90ba428 /sysutils/smartmontools/Makefile
parent16c71ba0be892f9b1468e0f496cf903d9ff9b8e5 (diff)
downloadports-d146de2fadc97b61132fc77dfa6eb4ab7c209ced.tar.gz
ports-d146de2fadc97b61132fc77dfa6eb4ab7c209ced.zip
Notes
Diffstat (limited to 'sysutils/smartmontools/Makefile')
-rw-r--r--sysutils/smartmontools/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/sysutils/smartmontools/Makefile b/sysutils/smartmontools/Makefile
index 189dc559c37e..158c22081338 100644
--- a/sysutils/smartmontools/Makefile
+++ b/sysutils/smartmontools/Makefile
@@ -25,10 +25,22 @@ USE_RC_SUBR= smartd
MAN5= smartd.conf.5
MAN8= smartd.8 smartctl.8
+OPTIONS= CISS "Support ciss(4) -- requires kernel source tree" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_CISS)
+. if !exists(/sys/dev/ciss/cissio.h)
+IGNORE= built WITH_CISS requires /sys/dev/ciss/cissio.h
+. endif
+CFLAGS+= -I/sys/dev/ciss -I${FILESDIR}
+EXTRA_PATCHES= ${FILESDIR}/ciss-patch
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's| install-initdDATA | |' ${WRKSRC}/Makefile.in
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>