| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | NAME = smartmontools |
|---|
| 4 | VERSION = 5.42 |
|---|
| 5 | GARTYPE = v2 |
|---|
| 6 | CATEGORIES = utils |
|---|
| 7 | |
|---|
| 8 | DESCRIPTION = S.M.A.R.T. disk monitoring tools |
|---|
| 9 | define BLURB |
|---|
| 10 | The smartmontools package contains two utility programs (smartctl and smartd) |
|---|
| 11 | to control and monitor storage systems using the Self-Monitoring, Analysis |
|---|
| 12 | and Reporting Technology System (S.M.A.R.T.) built into most modern ATA and |
|---|
| 13 | SCSI hard disks. It is derived from the smartsuite package, and includes |
|---|
| 14 | support for ATA/ATAPI-5 disks. |
|---|
| 15 | endef |
|---|
| 16 | |
|---|
| 17 | MASTER_SITES = $(SF_MIRROR) |
|---|
| 18 | DISTFILES = $(NAME)-$(VERSION).tar.gz |
|---|
| 19 | |
|---|
| 20 | # smartmontools packages built on 5.9 don't work on 5.10: |
|---|
| 21 | # > Error SMART Thresholds Read failed: I/O error |
|---|
| 22 | # > Smartctl: SMART Read Thresholds failed. |
|---|
| 23 | # However, packages built on 5.10 do work on 5.10. |
|---|
| 24 | PACKAGING_PLATFORMS = solaris9-sparc solaris9-i386 |
|---|
| 25 | PACKAGING_PLATFORMS += solaris10-sparc solaris10-i386 |
|---|
| 26 | |
|---|
| 27 | CONFIGURE_ARGS = $(DIRPATHS) |
|---|
| 28 | CONFIGURE_ARGS += --with-docdir=$(sharedstatedir)/doc/$(NAME) |
|---|
| 29 | CONFIGURE_ARGS += --with-initscriptdir=/etc/opt/csw/init.d |
|---|
| 30 | |
|---|
| 31 | INITSMF = $(sysconfdir)/init.d/cswsmartd |
|---|
| 32 | |
|---|
| 33 | CHECKPKG_OVERRIDES_CSWsmartmontools += file-with-bad-content |
|---|
| 34 | EXTRA_CFLAGS = -xnorunpath |
|---|
| 35 | EXTRA_CXXFLAGS = -norunpath |
|---|
| 36 | |
|---|
| 37 | include gar/category.mk |
|---|
| 38 | |
|---|
| 39 | # Moving the configuration file. |
|---|
| 40 | post-install-modulated: |
|---|
| 41 | (cd $(DESTDIR)$(sysconfdir); \ |
|---|
| 42 | for i in smartd.conf; do \ |
|---|
| 43 | if [ -r "$$i" ]; then \ |
|---|
| 44 | gmv -v "$$i" "$$i.CSW"; \ |
|---|
| 45 | fi \ |
|---|
| 46 | done) |
|---|
| 47 | (cd $(DESTDIR)$(sysconfdir)/init.d; \ |
|---|
| 48 | for i in smartd; do \ |
|---|
| 49 | if [ -r "$$i" ]; then \ |
|---|
| 50 | gmv -v "$$i" "csw$$i"; \ |
|---|
| 51 | fi \ |
|---|
| 52 | done) |
|---|
| 53 | |
|---|
| 54 | # The 5.42 version needs GNU sed going by 'sed'. |
|---|
| 55 | PATH := /opt/csw/gnu:$(PATH) |
|---|