c704b3ba (kx 2023-04-07 10:41:29 +0300 1) #
c704b3ba (kx 2023-04-07 10:41:29 +0300 2) # Project Home:
c704b3ba (kx 2023-04-07 10:41:29 +0300 3) # ============
c704b3ba (kx 2023-04-07 10:41:29 +0300 4) # https://gitlab.com/m2crypto/m2crypto
c704b3ba (kx 2023-04-07 10:41:29 +0300 5) #
c704b3ba (kx 2023-04-07 10:41:29 +0300 6) # Downloads:
c704b3ba (kx 2023-04-07 10:41:29 +0300 7) # =========
c704b3ba (kx 2023-04-07 10:41:29 +0300 8) # https://pypi.org/project/M2Crypto/#files
c704b3ba (kx 2023-04-07 10:41:29 +0300 9) #
c704b3ba (kx 2023-04-07 10:41:29 +0300 10) # GitLab:
c704b3ba (kx 2023-04-07 10:41:29 +0300 11) # ======
c704b3ba (kx 2023-04-07 10:41:29 +0300 12) # https://gitlab.com/m2crypto/m2crypto.git
c704b3ba (kx 2023-04-07 10:41:29 +0300 13) #
c704b3ba (kx 2023-04-07 10:41:29 +0300 14)
c704b3ba (kx 2023-04-07 10:41:29 +0300 15) url = https://gitlab.com/m2crypto
c704b3ba (kx 2023-04-07 10:41:29 +0300 16)
c704b3ba (kx 2023-04-07 10:41:29 +0300 17) repo_name = m2crypto
c704b3ba (kx 2023-04-07 10:41:29 +0300 18)
74cbaad0 (kx 2025-02-22 11:15:08 +0300 19) versions = 0.38.0 0.42.0 0.44.0
c704b3ba (kx 2023-04-07 10:41:29 +0300 20)
c704b3ba (kx 2023-04-07 10:41:29 +0300 21) suffix = tar.gz
c704b3ba (kx 2023-04-07 10:41:29 +0300 22)
c704b3ba (kx 2023-04-07 10:41:29 +0300 23) TAGS = $(versions)
c704b3ba (kx 2023-04-07 10:41:29 +0300 24)
c704b3ba (kx 2023-04-07 10:41:29 +0300 25) git_repo = .git_clone
c704b3ba (kx 2023-04-07 10:41:29 +0300 26) tarballs = $(addsuffix .$(suffix), $(addprefix $(repo_name)-, $(versions)))
c704b3ba (kx 2023-04-07 10:41:29 +0300 27) sha1s = $(addsuffix .sha1sum, $(tarballs))
c704b3ba (kx 2023-04-07 10:41:29 +0300 28)
c704b3ba (kx 2023-04-07 10:41:29 +0300 29) TARGETS = repository_clean
c704b3ba (kx 2023-04-07 10:41:29 +0300 30)
c704b3ba (kx 2023-04-07 10:41:29 +0300 31) all: $(TARGETS)
c704b3ba (kx 2023-04-07 10:41:29 +0300 32)
c704b3ba (kx 2023-04-07 10:41:29 +0300 33) .PHONY: downloads_clean repository_clean
c704b3ba (kx 2023-04-07 10:41:29 +0300 34)
c704b3ba (kx 2023-04-07 10:41:29 +0300 35) $(git_repo):
c704b3ba (kx 2023-04-07 10:41:29 +0300 36) @echo -e "\n======= Clone $(repo_name).git repository =======\n"
c704b3ba (kx 2023-04-07 10:41:29 +0300 37) @rm -rf $(repo_name)
c704b3ba (kx 2023-04-07 10:41:29 +0300 38) @git clone $(url)/$(repo_name).git $(repo_name)
c704b3ba (kx 2023-04-07 10:41:29 +0300 39) @touch $@
c704b3ba (kx 2023-04-07 10:41:29 +0300 40)
c704b3ba (kx 2023-04-07 10:41:29 +0300 41)
c704b3ba (kx 2023-04-07 10:41:29 +0300 42) $(tarballs): $(git_repo)
c704b3ba (kx 2023-04-07 10:41:29 +0300 43) @for version in $(TAGS) ; do \
c704b3ba (kx 2023-04-07 10:41:29 +0300 44) tag=`echo $$version`; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 45) if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
c704b3ba (kx 2023-04-07 10:41:29 +0300 46) echo -e "\n======= Creating '$(repo_name)-$$version.$(suffix)' snapshot =======" ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 47) ( cd $(repo_name) && \
c704b3ba (kx 2023-04-07 10:41:29 +0300 48) git archive --format=tar --prefix=$(repo_name)-$$version/ $$tag | \
c704b3ba (kx 2023-04-07 10:41:29 +0300 49) gzip >../$(repo_name)-$$version.$(suffix) ) ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 50) fi ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 51) done
c704b3ba (kx 2023-04-07 10:41:29 +0300 52)
c704b3ba (kx 2023-04-07 10:41:29 +0300 53) $(sha1s): %.$(suffix).sha1sum : %.$(suffix)
c704b3ba (kx 2023-04-07 10:41:29 +0300 54) @for tarball in $< ; do \
c704b3ba (kx 2023-04-07 10:41:29 +0300 55) echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 56) sha1sum --binary $$tarball > $$tarball.sha1sum ; \
c704b3ba (kx 2023-04-07 10:41:29 +0300 57) done
c704b3ba (kx 2023-04-07 10:41:29 +0300 58)
c704b3ba (kx 2023-04-07 10:41:29 +0300 59) repository_clean: $(sha1s)
c704b3ba (kx 2023-04-07 10:41:29 +0300 60) @echo -e "\n======= Remove cloned $(repo_name).git repository =======\n"
c704b3ba (kx 2023-04-07 10:41:29 +0300 61) @rm -rf $(git_repo) $(repo_name)
c704b3ba (kx 2023-04-07 10:41:29 +0300 62)
c704b3ba (kx 2023-04-07 10:41:29 +0300 63) downloads_clean:
c704b3ba (kx 2023-04-07 10:41:29 +0300 64) @rm -rf $(tarballs) $(sha1s)
c704b3ba (kx 2023-04-07 10:41:29 +0300 65) @rm -rf $(git_repo) $(repo_name)