[maemo-developers] Looking for some help with autoconf/automake/dpkg (and general feedback on my code)

From: Neal H. Walfield neal at walfield.org
Date: Tue Oct 25 10:56:36 EEST 2011
At Tue, 25 Oct 2011 14:07:13 +0800,
Jonathan Wilson wrote:
> 
> I have uploaded my code and files to
> http://www.cncmods.net/files/operator-name-cbs-widget-0.1.zip
> 
> I am looking for general feedback on this code and packaging but 
> specifically I am having problems getting it to create, include in the .deb 
> file and run the cbspatch binary

I find cdbs to be very easy to use.  This will likely be enough for
your debian/rules file (it works for my autoconf-based project):

     #!/usr/bin/make -f
     
     include /usr/share/cdbs/1/rules/debhelper.mk
     include /usr/share/cdbs/1/class/autotools.mk

Check out

http://hssl.cs.jhu.edu/~neal/woodchuck/src/branches/master/#files:debian

> I suspect also I need more in the postinst file in terms of verifying the 
> correct binary and things, any help would be appreciated.

I'd check the md5sum of the binary, particularly as cbspatch doesn't
check for any signatures.

Also, cbspatch does not return 0, so your postinst script might fail
spuriously.

Neal

More information about the maemo-developers mailing list