* 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.
# Change or override these values as necessary for each package release
PKGVER = 0.11.2
# Change or override these values as necessary for each package release
PKGVER = 0.11.2
# No need to change anything below this line
# No need to change anything below this line
$(error You much check the code out via svn, git-svn, or git)
endif
$(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)
BUILD := build
DEBDIST := $(shell lsb_release -cs)
DEBVER := $(PKGVER)-$(DEBRELEASE)
ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEBFILE := $(BUILD)/$(PACKAGE)_$(DEBVER)_$(ARCH).deb
DEBSRCFILE := $(BUILD)/$(PACKAGE)_$(DEBVER).dsc
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
+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
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/*)
$(BUILD)/src-stamp: Makefile.dkms dkms.conf $(wildcard src/*)
@echo "DEBSRCFILE = $(BUILD)/$(PACKAGE)_$(DEBVER).dsc"
@echo "DEBSRCFILE = $(BUILD)/$(PACKAGE)_$(DEBVER).dsc"
-.PHONY: clean binary source configure
+.PHONY: clean binary source configure pbuilder release
- -- R. Steve McKown <rsmckown@gmail.com> xxRFC822DATExx
+ -- TMI Packages <pkgs@titaniummirror.com> xxRFC822DATExx
Source: xxPACKAGExx
Section: devel
Priority: optional
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
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
Package: xxPACKAGExx
Architecture: all