mosquitto: fix build
[oi-userland.git] / components / sysutils / smartmontools / Makefile
blob31517fd704bf91f877a7dfcfede4286227a1992b
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
22 # Copyright (c) 2014 Nexenta Systems, Inc. All rights reserved.
23 # Copyright 2016 Andreas Grueninger, Grueninger GmbH, (grueni). All rights reserved.
26 include ../../../make-rules/shared-macros.mk
28 COMPONENT_NAME= smartmontools
29 COMPONENT_VERSION= 7.4
30 COMPONENT_SUMMARY= smartmontools contains utilities that control and monitor storage devices
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
32 COMPONENT_PROJECT_URL= https://www.smartmontools.org/
33 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
34 COMPONENT_ARCHIVE_HASH= sha256:e9a61f641ff96ca95319edfb17948cd297d0cd3342736b2c49c99d4716fb993d
35 COMPONENT_ARCHIVE_URL= https://sourceforge.net/projects/smartmontools/files/smartmontools/${COMPONENT_VERSION}/$(COMPONENT_ARCHIVE)
36 COMPONENT_FMRI= storage/$(COMPONENT_NAME)
37 COMPONENT_CLASSIFICATION= Applications/System Utilities
38 COMPONENT_LICENSE= GPLv2
40 include $(WS_MAKE_RULES)/common.mk
42 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
44 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
45 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
46 CONFIGURE_OPTIONS += --with-savestates
47 CONFIGURE_OPTIONS += --with-attributelog
48 CONFIGURE_OPTIONS += --with-drivedbdir=yes
49 CONFIGURE_OPTIONS += --with-smartdscriptdir=$(USRSBINDIR)
50 CONFIGURE_OPTIONS += --sbindir=$(USRSBINDIR)
51 CONFIGURE_OPTIONS += --with-nvme-devicescan=yes
52 CONFIGURE_OPTIONS += --with-gnupg=/usr/bin/gpg2
54 PKG_PROTO_DIRS += $(COMPONENT_DIR)/files
56 # Auto-generated dependencies
57 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
58 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
59 REQUIRED_PACKAGES += SUNWcs
60 REQUIRED_PACKAGES += shell/bash
61 REQUIRED_PACKAGES += shell/ksh93
62 REQUIRED_PACKAGES += system/library