diff options
Diffstat (limited to 'packages/a/smartmontools')
-rw-r--r-- | packages/a/smartmontools/Makefile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/packages/a/smartmontools/Makefile b/packages/a/smartmontools/Makefile new file mode 100644 index 0000000..d1ee89c --- /dev/null +++ b/packages/a/smartmontools/Makefile @@ -0,0 +1,51 @@ +# +# Project Home: +# ============ +# https://www.smartmontools.org +# https://sourceforge.net/projects/smartmontools +# +# Downloads: +# ========= +# https://downloads.sourceforge.net/project/smartmontools/smartmontools/${VERSION} +# + +url = https://downloads.sourceforge.net/project/smartmontools/smartmontools + +versions = 5.43 6.3 6.4 7.3 + +pkgname = smartmontools +suffix = tar.gz +sign_suffix = asc + +tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions))) +signatures = $(addsuffix .$(sign_suffix), $(tarballs)) +sha1s = $(addsuffix .sha1sum, $(tarballs)) + + +all: $(tarballs) $(signatures) $(sha1s) + +.PHONY: downloads_clean + +$(tarballs): + @echo -e "\n======= Downloading source tarballs =======\n" + @for tarball in $(tarballs) ; do \ + version=`echo $$tarball | sed 's/\([a-zA-Z-]*\)\([0-9][.0-9]*[.0-9]*\)\(\..*\)/\2/'` ; \ + wget -N $(url)/$$version/$$tarball ; \ + done + +$(signatures): %.$(suffix).$(sign_suffix) : %.$(suffix) + @for signature in $@ ; do \ + echo -e "\n======= Downloading '$$signature' signature =======\n" ; \ + version=`echo $$signature | sed 's/\([a-zA-Z-]*\)\([0-9][.0-9]*[.0-9]*\)\(\..*\)/\2/'` ; \ + wget -N $(url)/$$version/$$signature ; \ + touch $$signature ; \ + done + +$(sha1s): %.$(suffix).sha1sum : %.$(suffix) + @for tarball in $< ; do \ + echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \ + sha1sum --binary $$tarball > $$tarball.sha1sum ; \ + done + +downloads_clean: + @rm -rf $(tarballs) $(signatures) $(sha1s) |