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
= pci.ids
19 SNAPDATE
= $(shell gawk
'$$2 == "Version:" { ver = $$3; gsub(/\./, "", ver); print ver }' $(SOURCE_DIR
)/$(COMPONENT_NAME
))
20 COMPONENT_SRC
= $(COMPONENT_NAME
)-src
21 COMPONENT_VERSION
= $(FORMAT
).
$(SNAPDATE
)
22 COMPONENT_FMRI
= system
/pciutils
/pci.ids
23 COMPONENT_SUMMARY
= Repository of
all known IDs used in PCI devices
24 COMPONENT_LICENSE
= GPLv2
25 COMPONENT_LICENSE_FILE
= pci.ids.license
26 COMPONENT_ARCHIVE_URL
= https
://pci-ids.ucw.cz
/v
$(FORMAT
)/$(COMPONENT_NAME
)
27 COMPONENT_PROJECT_URL
= https
://pci-ids.ucw.cz
/
29 include $(WS_TOP
)/make-rules
/ips.mk
37 $(MKDIR
) $(SOURCE_DIR
)
39 $(CURL
) -sO
$(COMPONENT_ARCHIVE_URL
)
41 $(MKDIR
) $(BUILD_DIR_32
)
42 $(TOUCH
) $(BUILD_DIR_32
)/.prep
45 $(MKDIR
) $(PROTOUSRSHAREDIR
)
46 $(GZIP
) -c
$(SOURCE_DIR
)/$(COMPONENT_NAME
) > $(PROTOUSRSHAREDIR
)/$(COMPONENT_NAME
).gz
47 $(TOUCH
) $(BUILD_DIR_32
)/.installed
51 $(RM
) -r
$(SOURCE_DIR
)