1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

root/csw/mgar/pkg/smartmontools/trunk/Makefile

Revision 16528, 1.6 KB (checked in by wahwah, 5 months ago)

smartmontools/trunk: add information why we're building on 5.10 separately

  • Property svn:keywords set to Id
Line 
1# $Id$
2
3NAME = smartmontools
4VERSION = 5.42
5GARTYPE = v2
6CATEGORIES = utils
7
8DESCRIPTION = S.M.A.R.T. disk monitoring tools
9define 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.
15endef
16
17MASTER_SITES = $(SF_MIRROR)
18DISTFILES  = $(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.
24PACKAGING_PLATFORMS = solaris9-sparc solaris9-i386
25PACKAGING_PLATFORMS += solaris10-sparc solaris10-i386
26
27CONFIGURE_ARGS = $(DIRPATHS)
28CONFIGURE_ARGS += --with-docdir=$(sharedstatedir)/doc/$(NAME)
29CONFIGURE_ARGS += --with-initscriptdir=/etc/opt/csw/init.d
30
31INITSMF = $(sysconfdir)/init.d/cswsmartd
32
33CHECKPKG_OVERRIDES_CSWsmartmontools += file-with-bad-content
34EXTRA_CFLAGS = -xnorunpath
35EXTRA_CXXFLAGS = -norunpath
36
37include gar/category.mk
38
39# Moving the configuration file.
40post-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'.
55PATH := /opt/csw/gnu:$(PATH)
Note: See TracBrowser for help on using the browser.