Re: announcing apt-src
Matt Zimmerman wrote:
> On Tue, Jun 18, 2002 at 11:24:24PM -0400, Joey Hess wrote:
> > Let me know what you think.
> Sounds fantastic. Are you planning to add the capability to build kernel
> modules with it? That seems like one of the more common source-build tasks.
> I assume this would mean handling kernel source as a source package, instead
> of a binary package.
Here is a rules file for a source-only kernel module package. For a
modules package rules file, this is rather more comprehensible than
most, I think:
# This rules file is invoked in two ways. Either I am building a
# source-only release of the package to upload to the debian archive, or
# the package is being built as a kernel module by make-kpkg.
# Remove any epoch from kvers, as an epoch is not allowed in a package
# name. This variable is passed in by make-kpkg.
KVERS:=$(shell echo $(KVERS) | perl -pe 's/^\d+://')
# These targets are used when building the source package:
# Nothing to do as only a source package is made.
# Have to stub in a debian/files here to keep dpkg-genchanges happy.
binary: binary-indep binary-arch
# These targets are used by make-kpkg:
./Configure -n --kernel=$(KSRC) --target=`pwd`/debian/poldhu-$(KVERS)
# Make debhelper use the right package name.
kdist_image: DH_OPTIONS=-p poldhu-$(KVERS)
kdist_image: kdist_config kdist_build
dh_installdocs README TODO
# Set kvers so substitutions in control file work. Also, use the -D
# to override the Package: line in the control file, with the real
# versioned package name. The -p is there to override the wrong -p
# debhelper gives it..
dh_gencontrol -- -Vkvers=$(KVERS) -ppoldhu -DPackage=poldhu-$(KVERS)
.PHONY: build clean binary-indep binary-arch binary
.PHONY: kdist_config kdist_build kdist_clean kdist_image
see shy jo
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org