]> oss.titaniummirror.com Git - cp210x.git/commitdiff
Sign the debian apt package files and add new makefile targets. debian/0.11.2-5.2tmi
authorR. Steve McKown <rsmckown@gmail.com>
Tue, 8 Dec 2009 20:17:00 +0000 (13:17 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Tue, 8 Dec 2009 20:25:06 +0000 (13:25 -0700)
* Change the maintainer to 'TMI Packages <pgks@titaniummirror.com>'.
* Sign the packages with the maintainer key.  The current user must have the
  secret key for the maintainer.
* Add a pbuilder makefile target that builds the package via pbuilder, pulls
  the results files to the build dir, and signs them.
* Add a release makefile target that, with a properly configured ~/.dput.cf,
  will release the built package to the apt repository.

Makefile
debian.in/changelog
debian.in/control

index 0a6c30e4856fb96bf30de9d69c7535da44c709e2..72c3495adac0a5e16944b2e2b5d273c342b94a16 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@
 # Change or override these values as necessary for each package release
 
 PKGVER  = 0.11.2
-DEBRELEASE = 4tmi
+DEBRELEASE = 5.2tmi
 
 
 # No need to change anything below this line
@@ -21,6 +21,8 @@ ifeq (,$(REPOID))
   $(error You much check the code out via svn, git-svn, or git)
 endif
 
+USER := $(shell whoami)
+REPOHOST := repo
 BUILD := build
 DEBDIST := $(shell lsb_release -cs)
 DEBVER := $(PKGVER)-$(DEBRELEASE)
@@ -32,6 +34,8 @@ DEBSRC := $(PACKAGE)-$(PKGVER)
 ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
 DEBFILE := $(BUILD)/$(PACKAGE)_$(DEBVER)_$(ARCH).deb
 DEBSRCFILE := $(BUILD)/$(PACKAGE)_$(DEBVER).dsc
+CHANGESFILE := $(BUILD)/$(PACKAGE)_$(DEBVER)_$(ARCH).changes
+UPLOADFILE := $(BUILD)/$(PACKAGE)_$(DEBVER)_$(ARCH).upload
 
 
 source: $(DEBSRCFILE)
@@ -40,9 +44,24 @@ $(DEBSRCFILE): $(BUILD)/debian-stamp
        touch $@
 
 
+release: $(UPLOADFILE)
+$(UPLOADFILE): $(CHANGESFILE)
+       : # Requires ~/.dput.cf and upload server configured properly
+       dput $(REPOHOST) $(CHANGESFILE)
+
+
+pbuilder: $(CHANGESFILE)
+$(CHANGESFILE): $(DEBSRCFILE)
+       : # Requires ~/.dput.cf and upload server configured properly
+       sudo pbuilder build $(DEBSRCFILE)
+       sudo mv /var/cache/pbuilder/result/$(PACKAGE)_$(DEBVER)* $(BUILD)/
+       sudo chown $(USER) $(BUILD)/*
+       debsign $(CHANGESFILE)
+
+
 binary: $(DEBFILE)
 $(DEBFILE): $(BUILD)/debian-stamp
-       cd $(BUILD)/$(DEBSRC) && dpkg-buildpackage -sa -us -uc 
+       cd $(BUILD)/$(DEBSRC) && dpkg-buildpackage -sa
 
 
 $(BUILD)/src-stamp: Makefile.dkms dkms.conf $(wildcard src/*)
@@ -92,4 +111,4 @@ debug:
        @echo "DEBSRCFILE = $(BUILD)/$(PACKAGE)_$(DEBVER).dsc"
 
 
-.PHONY: clean binary source configure
+.PHONY: clean binary source configure pbuilder release
index 6b0b8bc6987d6c84e94b145c12970757b876b416..ef28246d8fc06fc4328429be5ff60e04192d3f23 100644 (file)
@@ -2,4 +2,4 @@ xxPACKAGExx (xxDEBVERxx) xxDEBDISTxx; urgency=low
 
   * Auto packaged
 
- -- R. Steve McKown <rsmckown@gmail.com>  xxRFC822DATExx
+ -- TMI Packages <pkgs@titaniummirror.com>  xxRFC822DATExx
index 062f77ed1aa033f5d2e6be5cc6c95db11b85cc96..7cdc3e04c1fa543ef7b7ffd696c16a082988337f 100644 (file)
@@ -1,9 +1,9 @@
 Source: xxPACKAGExx
 Section: devel
 Priority: optional
-Maintainer: R. Steve McKown <rsmckown@gmail.com>
+Maintainer: TMI Packages <pkgs@titaniummirror.com>
 Standards-Version: 3.7.2.0
-Build-Depends: dpkg-dev (>= 1.13.9)
+Build-Depends: dpkg-dev (>= 1.13.9), lsb-release
 
 Package: xxPACKAGExx
 Architecture: all