freebsd-ports/sysutils/smartmontools/Makefile
Tijl Coosemans 8b413af5b1 Improve the FreeBSD SCSI and SAS support in smartmontools:
- Remove unused private fields from some classes (found by Clang).
- In freebsd_scsi_device::scsi_pass_through:
  * Make sure this function returns false on error instead of an error
    code that gets converted to true.
  * Put printing of the "Incoming data" debug info right after the
    cam_send_ccb() call and before the error checking to make
    debugging easier.
  * When copying sense data make sure the fields in the CCB are
    actually valid with CAM_AUTOSNS_VALID.  Also make sure that the
    size of the sense data doesn't overflow max_sense_len.  This was
    the real cause for the crash in ports/181836.
  * Add some debug printing on the sense data.

Committed upstream as r3873.

PR:		ports/181836, ports/185960, ports/186095
Tested by:	many
2014-03-03 18:58:14 +00:00

40 lines
865 B
Makefile

# Created by: Eduard Martinescu
# $FreeBSD$
PORTNAME= smartmontools
PORTVERSION= 6.2
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= SF
MAINTAINER= samm@os2.kiev.ua
COMMENT= S.M.A.R.T. disk monitoring tools
LICENSE= GPLv2
CONFLICTS= smartmontools-devel-[0-9]*
OPTIONS_DEFINE= DOCS
DOCS_CONFIGURE_OFF= --without-docdir --without-exampledir
DOCS_CONFIGURE_ON= --with-docdir=${DOCSDIR}
USES= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-dependency-tracking \
--enable-drivedb --enable-sample \
--with-initscriptdir=${PREFIX}/etc/rc.d
SUB_FILES= pkg-message smart
USE_RC_SUBR= smartd
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e 's| install-initdDATA| |' ${WRKSRC}/Makefile.in
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily
${INSTALL_SCRIPT} ${WRKDIR}/smart \
${STAGEDIR}${PREFIX}/etc/periodic/daily
.include <bsd.port.mk>