Commit | Line | Data |
---|---|---|
29a94c79 | 1 | VERSION=3.0 |
4f7a4bdd | 2 | PKGREL=2 |
bb272dd3 DM |
3 | |
4 | PACKAGE=pve-firewall | |
5 | ||
6 | PREFIX=/usr | |
7 | BINDIR=${PREFIX}/bin | |
8 | SBINDIR=${PREFIX}/sbin | |
9 | MANDIR=${PREFIX}/share/man | |
10 | DOCDIR=${PREFIX}/share/doc | |
11 | MAN1DIR=${MANDIR}/man1/ | |
12 | PERLDIR=${PREFIX}/share/perl5 | |
13 | ||
43e33825 | 14 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) |
bb272dd3 DM |
15 | GITVERSION:=$(shell cat .git/refs/heads/master) |
16 | ||
17 | DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb | |
18 | ||
19 | all: ${DEB} | |
20 | ||
21 | .PHONY: dinstall | |
22 | dinstall: deb | |
23 | dpkg -i ${DEB} | |
24 | ||
25 | ||
26 | .PHONY: deb | |
567c9e27 | 27 | deb: ${DEB} |
6e38c2a1 FG |
28 | ${DEB}: src test debian |
29 | make check | |
bb272dd3 DM |
30 | rm -rf build |
31 | rsync -a src/ build | |
32 | rsync -a debian/ build/debian | |
33 | echo "git clone git://git.proxmox.com/git/pve-firewall.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE | |
34 | # install | |
6d93cacf | 35 | cd build; dpkg-buildpackage -b -us -uc |
bb272dd3 DM |
36 | lintian ${DEB} |
37 | ||
ebb20753 DM |
38 | .PHONY: check |
39 | check: | |
40 | make -C test check | |
41 | ||
bb272dd3 DM |
42 | .PHONY: clean |
43 | clean: | |
3f665549 | 44 | make -C src clean |
ebb20753 | 45 | make -C test clean |
3f665549 | 46 | rm -rf *~ debian/*~ example/*~ *.deb *.changes build ${PACKAGE}-*.tar.gz |
bb272dd3 DM |
47 | |
48 | .PHONY: distclean | |
49 | distclean: clean | |
50 | ||
51 | ||
52 | .PHONY: upload | |
53 | upload: ${DEB} | |
97f48025 | 54 | tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} |