github.com/anchore/syft@v1.4.2-0.20240516191711-1bec1fc5d397/syft/pkg/cataloger/redhat/test-fixtures/Makefile (about)

     1  RPMSDIR=rpms
     2  
     3  ifndef RPMSDIR
     4      $(error RPMSDIR is not set)
     5  endif
     6  
     7  all: rpms
     8  
     9  clean:
    10  	rm -rf $(RPMSDIR)
    11  
    12  rpms:
    13  	mkdir -p $(RPMSDIR)
    14  	cd $(RPMSDIR) && curl https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/a/abc-1.01-9.hg20160905.el7.x86_64.rpm -O
    15  	cd $(RPMSDIR) && curl https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/z/zork-1.0.3-1.el7.x86_64.rpm -O
    16  
    17  # we need a way to determine if CI should bust the test cache based on the source material
    18  .PHONY: $(RPMSDIR).fingerprint
    19  $(RPMSDIR).fingerprint:
    20  	find Makefile -type f -exec sha256sum {} \; | sort | tee /dev/stderr | tee $(RPMSDIR).fingerprint
    21  	sha256sum $(RPMSDIR).fingerprint