diff options
author | kx <kx@radix.pro> | 2023-04-11 06:54:40 +0300 |
---|---|---|
committer | kx <kx@radix.pro> | 2023-04-11 06:54:40 +0300 |
commit | 19dc4c5d37a41a6fa8b1076b568191d0b61389c2 (patch) | |
tree | 858ac8f02295148d7fa50a031171badc550bad32 /packages/a/cryptsetup | |
parent | 616e36d9e9e3e56af1ea2db055012b77863d09e6 (diff) | |
download | sources-19dc4c5d37a41a6fa8b1076b568191d0b61389c2.tar.xz |
applications
Diffstat (limited to 'packages/a/cryptsetup')
-rw-r--r-- | packages/a/cryptsetup/Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/packages/a/cryptsetup/Makefile b/packages/a/cryptsetup/Makefile new file mode 100644 index 0000000..68a88b6 --- /dev/null +++ b/packages/a/cryptsetup/Makefile @@ -0,0 +1,47 @@ +# +# Project Home: +# ============ +# https://code.google.com/p/cryptsetup +# +# Downloads: +# ========= +# ftp://ftp.kernel.org/pub/linux/utils/cryptsetup +# https://www.kernel.org/pub/linux/utils/cryptsetup +# + + +url = https://www.kernel.org/pub/linux/utils + +versions = 1.4.3 1.6.6 1.7.0 2.3.5 2.6.1 + +pkg_name = cryptsetup +arch_type = tar.xz +suffixes = $(arch_type) tar.sign + +files = $(foreach suffix, $(suffixes), $(addsuffix .$(suffix), $(addprefix $(pkg_name)-, $(versions)))) +tarballs = $(addsuffix .$(arch_type), $(addprefix $(pkg_name)-, $(versions))) +sha1s = $(addsuffix .sha1sum, $(tarballs)) + + +all: $(files) $(sha1s) + + +.PHONY: downloads_clean + +$(files): + @echo -e "\n======= Downloading '$(pkg_name)' sourses =======\n" + @for version in $(versions) ; do \ + major_minor=`echo $$version | sed 's/\([0-9][.][0-9]*\)\([\.].*\)/\1/'` ; \ + for suffix in $(suffixes) ; do \ + wget -N $(url)/$(pkg_name)/v$$major_minor/$(pkg_name)-$$version.$$suffix ; \ + done ; \ + done + +$(sha1s): %.$(arch_type).sha1sum : %.$(arch_type) + @for tarball in $< ; do \ + echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \ + sha1sum --binary $$tarball > $$tarball.sha1sum ; \ + done + +downloads_clean: + @rm -f $(files) $(sha1s) |