summaryrefslogtreecommitdiff
path: root/packages/n/inetd/Makefile
blob: a22ccbdb0177d720fc1c5695cf2c5152b32f4d66 (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
#
# Project Home:
# ============
# https://slackware.com
#
# Downloads:
# =========
# https://mirrors.slackware.com/slackware/slackware-14.2/source/n/inetd
#

url         = https://mirrors.slackware.com/slackware/slackware-14.2/source/n/inetd

version     = 1.79
pkgname     = inetd-OpenBSD
suffix      = tar.gz

tarball     = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(version)))
sha1s       = $(addsuffix .sha1sum, $(tarball))
patches     = $(addsuffix .diff.gz, $(addprefix $(pkgname)-, $(version)))
patches    += $(addsuffix .diff.gz, inetd.loopingdos)


all: $(tarball) $(patches) $(sha1s)

.PHONY: downloads_clean


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

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