Merge branch 'staged'
[dports.git] / sysutils / smartmontools / Makefile
1 # Created by: Eduard Martinescu
2 # $FreeBSD$
3
4 PORTNAME=       smartmontools
5 PORTVERSION=    7.0
6 PORTREVISION=   1
7 CATEGORIES=     sysutils
8 MASTER_SITES=   SF
9
10 MAINTAINER=     samm@os2.kiev.ua
11 COMMENT=        S.M.A.R.T. disk monitoring tools
12
13 LICENSE=        GPLv2+
14 LICENSE_FILE=   ${WRKSRC}/COPYING
15
16 USES=           alias compiler:c++11-lib gmake shebangfix
17
18 CONFLICTS=      smartmontools-devel-[0-9]*
19
20 OPTIONS_DEFINE= DOCS
21
22 SHEBANG_FILES=  examplescripts/Example5
23 GNU_CONFIGURE=  yes
24 CONFIGURE_ARGS= --disable-dependency-tracking \
25                 --enable-sample \
26                 --with-nvme-devicescan=yes \
27                 --with-initscriptdir=${PREFIX}/etc/rc.d
28
29 SUB_FILES=      pkg-message smart
30 USE_RC_SUBR=    smartd
31
32 PORTDOCS=       *
33
34 post-patch:
35         @${REINPLACE_CMD} -e 's| install-initdDATA| |' ${WRKSRC}/Makefile.in
36
37 post-install:
38         @${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily
39         ${INSTALL_SCRIPT} ${WRKDIR}/smart \
40                 ${STAGEDIR}${PREFIX}/etc/periodic/daily
41
42 .include <bsd.port.mk>