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