[pkg-fso-maint] packing udev rules

Jonas Smedegaard dr at jones.dk
Sun Sep 25 11:56:52 UTC 2016


Hi Joshua,

Quoting Josua Mayer (2016-09-25 13:31:15)
> This time I would like some opinions on the technical side of packing 
> udev rules (for the letux-rules package): As I see it there are at 
> least 2 options on how to copy them to debian/<package-dir>:
> 
> a) cp by hand (either in Makefile, or debian/rules)
[...]
> b) let debhelper do it
[...]
> Now do you have any wisdom to share which approach to pick?

Do both!

Create a system-agnostic makefile, usable both for distributors and 
directly on a system.  Have the makefile do finalizing stuff too (for C 
code that would include stripping binaries, here you mention some 
trigger calls), but allow for either skipping those (by using granular 
make targets) or suppressing them (e.g. by putting the calls in a 
variable that can be overridden at the commandline with something no-op 
like /bin/true).

...and then in the debian dir make use of the Makefile to install in a 
prelimiary dir, and have debhelper move it from there to another dir 
specific to the binary package (or multiple dirs, if there are multiple 
binary packages).

That's the proper way to do it.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-fso-maint/attachments/20160925/3ada6857/attachment-0001.sig>


More information about the pkg-fso-maint mailing list