9 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
10 GITVERSION
:=$(shell cat .git
/refs
/heads
/master
)
12 DEB
=${PACKAGE}_
${VER}-${DEBREL}_
${ARCH}.deb
18 deb
${DEB}: | submodule
20 cp
-rpa
${SRCDIR} ${SRCDIR}.tmp
21 cd
${SRCDIR}.tmp
; patch
-p1
< ..
/patches
/update_changelog.patch
22 cd
${SRCDIR}.tmp
; patch
-p1
< ..
/patches
/0001-update-debian-patches-for-7.0.patch
23 echo
"git clone git://git.proxmox.com/git/smartmontools.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}.tmp
/debian
/SOURCE
24 echo
"debian/SOURCE" >> ${SRCDIR}.tmp
/debian
/docs
25 cd
${SRCDIR}.tmp
; dpkg-buildpackage
-rfakeroot
-b
-uc
-us
29 # make sure submodule was initialized
32 test -f
"${SRCDIR}/debian/changelog" || git submodule update
--init
34 # upgrade to current master
36 download
${SRCDIR}: submodule
37 git submodule
foreach 'git pull --ff-only origin master'
41 tar cf
- ${DEB} | ssh repoman@repo.proxmox.com upload
47 rm -rf
${SRCDIR}.tmp
*_
${ARCH}.deb
*.changes
*.dsc
48 find .
-name
'*~' -exec
rm {} ';'