Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
| 1 |
prefix = $(DESTDIR)/usr |
| 2 |
bindir = ${prefix}/sbin |
| 3 |
mandir = ${prefix}/share/man |
| 4 |
|
| 5 |
CC ?= gcc |
| 6 |
CFLAGS += -Wall -std=c11 -pedantic -O2 |
| 7 |
SSL_LIBS ?= -lssl |
| 8 |
|
| 9 |
INSTALL ?= install -c |
| 10 |
STRIP ?= strip -s |
| 11 |
|
| 12 |
all: htpdate |
| 13 |
|
| 14 |
htpdate: htpdate.c |
| 15 |
$(CC) $(CFLAGS) $(LDFLAGS) -o htpdate htpdate.c |
| 16 |
|
| 17 |
https: htpdate.c |
| 18 |
$(CC) $(CFLAGS) $(LDFLAGS) -DENABLE_HTTPS -o htpdate htpdate.c $(SSL_LIBS) |
| 19 |
|
| 20 |
install: all |
| 21 |
$(STRIP) htpdate |
| 22 |
mkdir -p $(bindir) |
| 23 |
$(INSTALL) -m 755 htpdate $(bindir)/htpdate |
| 24 |
mkdir -p $(mandir)/man8 |
| 25 |
$(INSTALL) -m 644 htpdate.8 $(mandir)/man8/htpdate.8 |
| 26 |
gzip -f -9 $(mandir)/man8/htpdate.8 |
| 27 |
|
| 28 |
test: |
| 29 |
./htpdate -v |
| 30 |
./htpdate -p 1 www.example.com http://www.example.com https://example.com |
| 31 |
./htpdate -p 1 -d www.example.com www.example.com:80/htpdate.html |
| 32 |
./htpdate -p 2 -04q www.example.com/ |
| 33 |
./htpdate -6q www.example.com |
| 34 |
./htpdate -t -dd www.example.com |
| 35 |
./htpdate -p1 https://93.184.216.34 https://93.184.216.34:443 |
| 36 |
./htpdate -p1 93.184.216.34:80 |
| 37 |
./htpdate -p1 [2606:2800:220:1:248:1893:25c8:1946] |
| 38 |
./htpdate -h |
| 39 |
|
| 40 |
clean: |
| 41 |
rm -rf htpdate |
| 42 |
|
| 43 |
uninstall: |
| 44 |
rm -rf $(bindir)/htpdate |
| 45 |
rm -rf $(mandir)/man8/htpdate.8.gz |