forked from AlternC/alternc-acme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (31 loc) · 820 Bytes
/
Makefile
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
NAME=alternc-certificate-provider-letsencrypt
VERSION=$(shell git tag -l --points-at HEAD)
ITERATION=""
ifeq ($(strip $(VERSION)),)
VERSION=$(shell git describe --tags --abbrev=0)
ifeq ($(strip $(VERSION)),)
VERSION="0.0.0"
endif
ITERATION=$(shell date +'%y%m%d%H%M%S')
endif
.PHONY: clean package
all:
clean:
rm -f $(NAME)_*.deb
package:
fpm -s dir -t deb \
-n $(NAME) \
-v $(VERSION) \
--conflicts "alternc-certbot" \
`if [ "$(ITERATION)" ]; then echo "--iteration $(ITERATION)"; fi` \
-m [email protected] \
--license GPLv3 \
--category admin \
--architecture all \
--depends "apt-utils, debconf, alternc (>= 3.5.0~rc1), alternc-ssl, certbot, certbot" \
--after-install "debian/postinst" \
--after-remove "debian/postrm" \
--chdir src \
.
install:
cp -r src/* $(DESTDIR)/