]>
Commit | Line | Data |
---|---|---|
de416bd6 | 1 | RELEASE=5.0 |
f6b8753b | 2 | PKGREL=11 |
de416bd6 | 3 | |
40718fe1 | 4 | PACKAGE=proxmox-mailgateway |
de416bd6 DM |
5 | |
6 | DEB=${PACKAGE}_${RELEASE}-${PKGREL}_all.deb | |
49a2b3c9 TL |
7 | CT_DEB=${PACKAGE}-container_${RELEASE}-${PKGREL}_all.deb |
8 | ||
9 | DEBS=${DEB} ${CT_DEB} | |
de416bd6 | 10 | |
44653194 | 11 | BUILD_DIR=build |
de416bd6 | 12 | |
95dcef8f DM |
13 | ARCH=amd64 |
14 | DIST=stretch | |
95dcef8f | 15 | |
de416bd6 DM |
16 | all: ${DEB} |
17 | ||
49a2b3c9 TL |
18 | .PHONY: deb |
19 | deb ${CT_DEB}: ${DEB} | |
44653194 DM |
20 | ${DEB}: debian |
21 | rm -rf ${BUILD_DIR} | |
22 | mkdir -p ${BUILD_DIR}/debian | |
23 | cp -ar debian/* ${BUILD_DIR}/debian/ | |
24 | cd ${BUILD_DIR}; dpkg-buildpackage -b -uc -us | |
49a2b3c9 | 25 | lintian ${DEBS} |
de416bd6 | 26 | |
b2771293 | 27 | .PHONY: upload |
49a2b3c9 TL |
28 | upload: ${DEBS} |
29 | tar cf - ${DEBS}|ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist ${DIST} --arch ${ARCH} | |
de416bd6 DM |
30 | |
31 | clean: | |
44653194 | 32 | rm -rf ${BUILD_DIR} *.deb *.buildinfo *.changes |
de416bd6 | 33 | find . -name '*~' -exec rm {} ';' |