2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2023 Marcel Telka
16 %patch% 01-no-question.patch
18 %file% public_suffix_list.dat
22 curl -s https://publicsuffix.org/list/public_suffix_list.dat > files/public_suffix_list.dat
23 if ! cmp -s $SOURCE_DIR/effective_tld_names.dat.orig files/public_suffix_list.dat ; then
24 git add files/public_suffix_list.dat
26 rm files/public_suffix_list.dat
30 COMPONENT_SRC = $(COMPONENT_NAME)-v$(HUMAN_VERSION)
32 # sanity check to make sure we (still) update an existing file
33 COMPONENT_POST_UNPACK_ACTION += \
34 [ -f $(SOURCE_DIR)/effective_tld_names.dat ] || exit 1 ;
35 # Save the original data file
36 COMPONENT_POST_UNPACK_ACTION += \
37 $(CP) $(SOURCE_DIR)/effective_tld_names.dat $(SOURCE_DIR)/effective_tld_names.dat.orig ;
38 # use the up-to-date data file
39 COMPONENT_POST_UNPACK_ACTION += \
40 [ -f $(COMPONENT_DIR)/files/public_suffix_list.dat ] && \
41 $(CP) $(COMPONENT_DIR)/files/public_suffix_list.dat $(SOURCE_DIR)/effective_tld_names.dat ;