]>
Commit | Line | Data |
---|---|---|
bd4e7d8b FG |
1 | RELEASE=4.3 |
2 | ||
3 | PACKAGE=smartmontools | |
4 | VER=6.5+svn4324 | |
5 | DEBREL=1~pve80 | |
6 | ||
7 | SRCDIR=upstream | |
8 | ||
9 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) | |
10 | GITVERSION:=$(shell cat .git/refs/heads/master) | |
11 | ||
12 | DEB=${PACKAGE}_${VER}-${DEBREL}_${ARCH}.deb | |
13 | ||
14 | all: ${DEB} | |
15 | echo ${DEB} | |
16 | ||
de2ea714 | 17 | deb ${DEB}: submodule |
b5191b6c | 18 | rm -rf ${SRCDIR}.tmp |
bd4e7d8b FG |
19 | cp -rpa ${SRCDIR} ${SRCDIR}.tmp |
20 | cd ${SRCDIR}.tmp; patch -p1 < ../patches/update_changelog.patch | |
21 | cd ${SRCDIR}.tmp; dpkg-buildpackage -rfakeroot -b -uc -us | |
22 | lintian ${DEB} | |
23 | echo ${DEB} | |
24 | ||
de2ea714 FG |
25 | # make sure submodule was initialized |
26 | .PHONY: submodule | |
27 | submodule: | |
28 | test -f "${SRCDIR}/debian/changelog" || git submodule update --init | |
29 | ||
30 | # upgrade to current master | |
bd4e7d8b | 31 | .PHONY: download |
de2ea714 | 32 | download ${SRCDIR}: submodule |
bd4e7d8b FG |
33 | cd ${SRCDIR}; git fetch |
34 | cd ${SRCDIR}; git merge --ff-only master | |
35 | ||
36 | .PHONY: upload | |
37 | upload: ${DEB} | |
38 | tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload | |
39 | ||
40 | distclean: clean | |
41 | ||
42 | .PHONY: clean | |
43 | clean: | |
44 | rm -rf ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc | |
45 | find . -name '*~' -exec rm {} ';' | |
46 | ||
47 | .PHONY: dinstall | |
48 | dinstall: ${DEB} | |
49 | dpkg -i ${DEB} |