aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/smartmontools/Makefile
blob: 83557246be65704d5efc58925ce32813b939b405 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# New ports collection makefile for:   smartmontools
# Date created:        12 October 2003
# Whom:                Eduard Martinescu
#
# $FreeBSD$
#

PORTNAME=   smartmontools
PORTVERSION=    5.41
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
# hack to prevent gmake failure on 6.xx
GMAKE=      make
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-dependency-tracking \
        --enable-drivedb --enable-sample \
        --with-docdir=${DOCSDIR} --with-initscriptdir=${PREFIX}/etc/rc.d

SUB_FILES=  pkg-message smart
USE_RC_SUBR=    smartd

MAN5=       smartd.conf.5
MAN8=       smartd.8 smartctl.8

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
    ${INSTALL_SCRIPT} ${WRKSRC}/smartd.freebsd.initd ${PREFIX}/etc/rc.d/smartd
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>