]>
Commit | Line | Data |
---|---|---|
b68dfb61 DM |
1 | PACKAGE=proxmox-mailgateway-api |
2 | PKGVER=1.0 | |
3 | PKGREL=1 | |
4 | ||
5 | DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb | |
6 | ||
7 | DESTDIR= | |
8 | ||
9 | PERL5DIR=${DESTDIR}/usr/share/perl5 | |
10 | DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE} | |
11 | ||
12 | all: | |
13 | ||
14 | .PHONY: deb | |
15 | deb ${DEB}: | |
16 | rm -rf build | |
17 | rsync -a * build | |
18 | cd build; dpkg-buildpackage -b -us -uc | |
19 | lintian ${DEB} | |
20 | ||
21 | install: ${BTDATA} | |
22 | install -d -m 755 ${PERL5DIR}/PMG | |
1360e6f0 DM |
23 | install -d -m 755 ${PERL5DIR}/PMG/API2 |
24 | install -m 0644 PMG/API2.pm ${PERL5DIR}/PMG | |
25 | install -m 0644 PMG/HTTPServer.pm ${PERL5DIR}/PMG | |
26 | install -m 0644 PMG/Ticket.pm ${PERL5DIR}/PMG | |
27 | install -m 0644 PMG/API2/Nodes.pm ${PERL5DIR}/PMG/API2 | |
b68dfb61 DM |
28 | |
29 | ||
30 | .PHONY: upload | |
31 | upload: ${DEB} | |
eae6f864 | 32 | ./repoid.pl .git/ check |
b68dfb61 DM |
33 | # fixme tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload |
34 | ||
35 | distclean: clean | |
36 | ||
37 | clean: | |
38 | rm -rf ./build *.deb *.changes *.buildinfo | |
39 | find . -name '*~' -exec rm {} ';' | |
40 | ||
41 | .PHONY: dinstall | |
42 | dinstall: ${DEB} | |
43 | dpkg -i ${DEB} |