[config-package-dev] How to configure displace extension?
Jonathan D Reed
jdreed at MIT.EDU
Wed May 7 17:31:18 EDT 2014
Hi Patrick,
The Debhelper version of config-package-dev does not use the environment variable. The default value is the first component of the package name (which is why you’re getting .apparmor, since the package is apparmor-profile-anondist). The expectation is that packages would prefix their packages with a namespace (e.g. something like mylinuxdistro-apparmor-profile or something).
Per the man page:
debian/package.displace-extension
This file is used to specify the displace extension for any files
diverted by this package, if you do not want to accept the default
of the first word in the package name. It will not normally be
present. (See "CAVEATS".)
So creating debian/apparmor-profile-anondist.displace-extension and should have the contents:
.anondist
(note the leading dot).
-Jon
On May 7, 2014, at 5:20 PM, Patrick Schleizer <adrelanos at riseup.net> wrote:
> TLDR:
>
> Hi,
>
> how do I configure what name the displace extension should have when
> using config-package-dev with debhelper?
>
> Must I use a make environment variable? How do I do that? Or how?
>
> Long:
>
> If required, below is an example package...
>
> Package name:
> apparmor-profile-anondist
>
> Detected displace extension:
> .apparmor
>
> Wanted displace extension:
> .anondist
>
> It's a very small and simple package.
>
> Full git repo:
> https://github.com/Whonix/apparmor-profile-anondist/tree/dh_configpackage_question
>
> debian/control:
> https://github.com/Whonix/apparmor-profile-anondist/blob/dh_configpackage_question/debian/control
>
> debian/rules:
> using
> DEB_DISPLACE_EXTENSION = .anondist
> but somehow it's ignored.
>
> https://github.com/Whonix/apparmor-profile-anondist/blob/dh_configpackage_question/debian/rules
>
> Diverted file:
> base.anondist
>
> https://github.com/Whonix/apparmor-profile-anondist/tree/dh_configpackage_question/etc/apparmor.d/abstractions
>
> debian/apparmor-profile-anondist.displace:
> https://github.com/Whonix/apparmor-profile-anondist/blob/dh_configpackage_question/debian/apparmor-profile-anondist.displace
>
> Cheers,
> Patrick
> _______________________________________________
> config-package-dev mailing list
> config-package-dev at mit.edu
> http://mailman.mit.edu/mailman/listinfo/config-package-dev
More information about the config-package-dev
mailing list