Hi Paul (and others reading this bug report),
If you're interested in looking at my branch, check out
git://geofft.mit.edu/config-package-dev.git. Documentation is sparse
(which is mostly why I haven't opened a Debian bug requesting it be
merged), but if you have time to look at it, I'm definitely interested in
code review and knowing if it fits folks' use cases and fits the syntax
you'd expect. The examples directory in the source has Debhelper variants
of all the CDBS examples, so that's probably the most obvious place to
figure out what using the Debhelper version looks like.
I also have a vague intention of making this something suitable to be
shipped in Debhelper itself; see the request for dh_divert in bug #41462.
Here are the notes I sent to the debathena mailing list when asking for
review:
- You can generally use a Debhelper 7-style short rules file. You just
need to use "dh --with config-package" instead of "dh". (You can also
invoke dh_configpackage by hand, with an old-style Debhelper rules file,
but why would you do that.)
- What you would put in DEB_DIVERT_FILES goes in debian/foo.divert, etc.
- The syntax for debian/foo.transform is that each line contains a
filename, followed by a command to transform it. This can either be some
actual filter, e.g. "etc/foo.conf.debathena sed -i
's/foo.com/foo.mit.edu/'", or a longer script in the packaging, e.g.
"etc/foo.conf.debathena debian/transform_foo.conf.debathena". The latter
is helpful for porting CDBS packaging, or just transformations that would
be more than one line.
- DEB_DIVERT_EXTENSION is now debian/foo.divert-extension. If you leave it
off, it defaults to the first word of the package name. (I believe this
happens to be correct for every single one of our current users, SIPB or
otherwise.)
Before actual release, I intend to add more documentation to the
dh_configpackage command, the ability to invoke it with arguments (just
like you can call e.g. dh_install either with no arguments to parse
debian/*.install, or with arguments to install that specific file), and
more upstreamable names for the "divert" and "remove" operations. I'll
start a separate thread about that.
[... Hm, I still haven't started that thread. I should go do that.]
--
Geoffrey Thomas
geo...@mit.edu
On Mon, 19 Nov 2012, Tim Abbott wrote:
Geoffrey Thomas actually has a branch adding support for doing it via debhelper
-- Anders and I have unfortunately been slow about
reviewing it. I'll see if I can find the time to get it out.
-Tim Abbott
On Mon, Nov 19, 2012 at 1:31 AM, Paul Wise <p...@debian.org> wrote:
Package: config-package-dev
Version: 4.13
Severity: wishlist
I personally prefer using debhelper's dh system instead of cdbs. It
would be great if config-package-dev could support configuration
packages built using debhelper's dh system and drop the cdbs dep.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (700, 'testing'), (600, 'unstable'), (550, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.6-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages config-package-dev depends on:
ii cdbs 0.4.115+deb7u1
--
bye,
pabs
http://wiki.debian.org/PaulWise
--
-Tim Abbott