]> git.proxmox.com Git - smartmontools.git/commitdiff
add initial Makefile and changelog patch
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 29 Sep 2016 09:00:54 +0000 (11:00 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 29 Sep 2016 09:00:54 +0000 (11:00 +0200)
Makefile [new file with mode: 0644]
patches/update_changelog.patch [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..e1b32cc
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,43 @@
+RELEASE=4.3
+
+PACKAGE=smartmontools
+VER=6.5+svn4324
+DEBREL=1~pve80
+
+SRCDIR=upstream
+
+ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+GITVERSION:=$(shell cat .git/refs/heads/master)
+
+DEB=${PACKAGE}_${VER}-${DEBREL}_${ARCH}.deb
+
+all: ${DEB}
+       echo ${DEB}
+
+deb ${DEB}: ${SRCDIR}
+       cp -rpa ${SRCDIR} ${SRCDIR}.tmp
+       cd ${SRCDIR}.tmp; patch -p1 < ../patches/update_changelog.patch
+       cd ${SRCDIR}.tmp; dpkg-buildpackage -rfakeroot -b -uc -us
+       lintian ${DEB}
+       echo ${DEB}
+
+.PHONY: download
+download ${SRCDIR}:
+       git submodule update --init
+       cd ${SRCDIR}; git fetch
+       cd ${SRCDIR}; git merge --ff-only master
+
+.PHONY: upload
+upload: ${DEB}
+       tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
+
+distclean: clean
+
+.PHONY: clean
+clean:
+       rm -rf ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc 
+       find . -name '*~' -exec rm {} ';'
+
+.PHONY: dinstall
+dinstall: ${DEB}
+       dpkg -i ${DEB}
diff --git a/patches/update_changelog.patch b/patches/update_changelog.patch
new file mode 100644 (file)
index 0000000..e403ce8
--- /dev/null
@@ -0,0 +1,14 @@
+diff --git a/debian/changelog b/debian/changelog
+index d0c8530..99b9de8 100644
+--- a/debian/changelog
++++ b/debian/changelog
+@@ -1,3 +1,9 @@
++smartmontools (6.5+svn4324-1~pve80) unstable; urgency=low
++
++  * rebuild for Jessie / Proxmox 4.3
++
++ -- Proxmox Support Team <support@proxmox.com>  Wed, 28 Sep 2016 16:25:50 +0200
++
+ smartmontools (6.5+svn4324-1) unstable; urgency=low
+   * [a86ec89] Imported Upstream version 6.5+svn43204 (Closes: #831504)