Re: Specifying %{variable} in control file for use in post inst?
So what is the usual method of accessing control file values such as
Package: in postinst?
What is the usual method of accessing user-defined control file values
such as XC-branding in postinst?
I would have presume that using variables such as %{Package} or
%{branding} in postinst would have done it but it does not.
-- IV
On Sun, Apr 25, 2010 at 4:37 AM, Goswin von Brederlow <goswin-v-b@web.de> wrote:
> Ignacio Valdes <ivaldes@hal-pc.org> writes:
>
>> Hi, I want to define a variable such as package_initials in control
>> file and be able to access %{package_initials} in postinst file. Do I
>> define it in control file as:
>>
>> XC-package_initials: the_initials
>>
>> or some other way?
>>
>> -- IV
>
> mv debian/postinst debian/postinst.in
>
> and in rules do
>
> sed 's/%{package_initials}/initials/g' < debian/postinst.in > debian/<pkg>.postinst
>
> MfG
> Goswin
>
Reply to: