]> git.proxmox.com Git - proxmox-mini-journalreader.git/commitdiff
buildsys: allow to build source package
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 14 May 2019 09:32:03 +0000 (09:32 +0000)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 14 May 2019 12:01:47 +0000 (12:01 +0000)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile
debian/copyright
debian/rules

index f610252786bb864478cb032495e66ce1e010fb41..9b87b38754a87acf8af51baed360f1ba834b05c3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
 
 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
 DBGDEB=${PACKAGE}-dbgsym_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
+DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
 
 all: $(DEB)
 
@@ -23,12 +24,18 @@ $(DEB): $(BUILDDIR)
        cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
        lintian $(DEB)
 
+.PHONY: dsc
+dsc: ${DSC}
+${DSC}: ${BUILDDIR}
+       cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d
+       lintian ${DSC}
+
 dinstall: $(DEB)
        dpkg -i $(DEB)
 
 .PHONY: clean
 clean:
-       rm -rf $(BUILDDIR) *.deb *.buildinfo *.changes
+       rm -rf $(BUILDDIR) *.deb *.buildinfo *.changes *.dsc *.tar.gz
 
 .PHONY: upload
 upload: ${DEB}
index 88adfd70736a04a1f8e26bcfb554159613650072..d745013f826c11296712c1a3a959c357e4d710b2 100644 (file)
@@ -7,16 +7,16 @@ License: GPL-2+
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
-
+ .
  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
-
+ .
  You should have received a copy of the GNU General Public License along
  with this program; if not, write to the Free Software Foundation, Inc.,
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
+ .
  On Debian systems, the full text of the GNU General Public
  License version 2 can be found in the file
  `/usr/share/common-licenses/GPL-2'.
index 2a6e77daaef0a1144b4cb21a0e8f42690c9224aa..f3a57ade0574f8ee81398076f0f1aedc253df8e4 100755 (executable)
@@ -3,7 +3,5 @@
 # output every command that modifies files on the build system.
 #DH_VERBOSE = 1
 
-
 %:
        dh $@
-