summaryrefslogtreecommitdiff
path: root/packages/n/bootp-debian/Makefile
blob: 0706cd19f6869c5db5b5db90d5931bc76d34c4ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# Project Home:
# ============
# https://www.ietf.org/rfc/rfc951.txt
# ftp://ftp.ntplx.net/pub/networking/bootp
#
# Downloads:
# =========
# ftp://ftp.debian.org/debian/pool/main/b/bootp
# https://deb.debian.org/debian/pool/main/b/bootp
#

url         = https://deb.debian.org/debian/pool/main/b/bootp

version     = 2.4.3
pkgname     = bootp
suffix      = orig.tar.gz

tarball     = $(addsuffix .$(suffix), $(addprefix $(pkgname)_, $(version)))
sha1s       = $(addsuffix .sha1sum, $(tarball))
patch       = $(addsuffix -18.diff.gz, $(addprefix $(pkgname)_, $(version)))
description = $(addsuffix -18.dsc, $(addprefix $(pkgname)_, $(version)))

files       = $(patch) $(description)

all: $(tarball) $(files) $(sha1s)

.PHONY: downloads_clean


$(tarball):
	@echo -e "\n======= Downloading source tarball =======\n"
	wget -N $(url)/$(tarball)

$(files): $(tarball)
	@echo -e "\n======= Downloading patch and description =======\n"
	@for file in $(files) ; do \
	  wget -N $(url)/$$file ; \
	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 $(tarball) $(files) $(sha1s)