freebsd-ports/sysutils/smartmontools/Makefile
Michael Scheidell 5bcfde2b25 - Honor NOPORTDOCS env var
- No PORTREVISION bump

PR:		ports/165670
Submitted by:	scheidell (me)
Approved by:	Alex Samorukov <samm@os2.kiev.ua> (maintainer), gabor (mentor, implicit)
2012-03-04 11:36:28 +00:00

52 lines
1.1 KiB
Makefile

# New ports collection makefile for: smartmontools
# Date created: 12 October 2003
# Whom: Eduard Martinescu
#
# $FreeBSD$
#
PORTNAME= smartmontools
PORTVERSION= 5.42
PORTREVISION= 3
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]*
USE_GMAKE= yes
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
MAN5= smartd.conf.5
MAN8= smartd.8 smartctl.8
PORTDOCS= *
.if defined(NOPORTDOCS)
CONFIGURE_ARGS+= --without-docdir --without-exampledir
.else
CONFIGURE_ARGS+= --with-docdir=${DOCSDIR}
.endif
CFLAGS:= ${CFLAGS:S/-O2/-O/} -Wno-write-strings
post-patch:
@${REINPLACE_CMD} -e 's| install-initdDATA| |' ${WRKSRC}/Makefile.in
post-install:
${MKDIR} ${PREFIX}/etc/periodic/daily
${INSTALL_SCRIPT} ${WRKDIR}/smart ${PREFIX}/etc/periodic/daily/smart
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>