nrpe: update to 4.1.3
[oi-userland.git] / components / sysutils / nicstat / Makefile
blob543f523dd4f2b74ec2c4c2146c7284ddd1e0ed58
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2013, Adam Stevko. All rights reserved.
15 include ../../../make-rules/shared-macros.mk
17 COMPONENT_NAME= nicstat
18 COMPONENT_VERSION= 1.95
19 COMPONENT_GIT_REV= 1fbe281
20 COMPONENT_LICENSE= The Artistic License 2.0
21 COMPONENT_SRC= scotte-nicstat-$(COMPONENT_GIT_REV)
22 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
23 COMPONENT_ARCHIVE_HASH= sha256:0c441c85af6cace24254f6c1ce21cb1447e13ff7c83582b387c11fc338cc57e4
24 COMPONENT_PROJECT_URL= https://github.com/scotte/nicstat/
25 COMPONENT_ARCHIVE_URL= https://codeload.github.com/scotte/nicstat/legacy.tar.gz/$(COMPONENT_GIT_REV)
27 include $(WS_MAKE_RULES)/prep.mk
28 include $(WS_MAKE_RULES)/justmake.mk
29 include $(WS_MAKE_RULES)/ips.mk
31 PATCH_LEVEL=0
33 COMPONENT_PRE_BUILD_ACTION= $(CP) $(SOURCE_DIR)/Makefile.Solaris $(@D)/Makefile
35 COMPONENT_BUILD_ENV = CC="$(CC)"
36 COMPONENT_BUILD_ARGS = CFLAGS="-m$(BITS)"
38 build: $(BUILD_32_and_64)
40 install: $(BUILD_32_and_64)
41 $(MKDIR) $(PROTOUSRBINDIR)
42 $(MKDIR) $(PROTOUSRBINDIR64)
43 $(MKDIR) $(PROTOUSRSHAREMAN1MDIR)
44 $(INSTALL) $(BUILD_DIR_32)/nicstat $(PROTOUSRBINDIR)/nicstat
45 $(INSTALL) $(BUILD_DIR_64)/nicstat $(PROTOUSRBINDIR64)/nicstat
46 $(INSTALL) $(BUILD_DIR_32)/nicstat.1 $(PROTOUSRSHAREMAN1MDIR)/nicstat.1m
47 $(TOUCH) $(BUILD_DIR_32)/.installed
48 $(TOUCH) $(BUILD_DIR_64)/.installed
50 # Auto-generated dependencies
51 REQUIRED_PACKAGES += system/library