On 10.01.25 04:35, Stephen Ecker wrote:
> I am trying to make a package using dpkg-raw, because I don't need to
> compile anything... but I would like to add a hook to the rules. Is
> there a good way to do this, or will I need to provide the entire
> debian/ directory?
dpkg-raw used this:
https://github.com/ilbers/isar/blob/master/doc/user_manual.md#compilation-of-sources-missing-the-debian-directory
("Create rules file if sources does not contain a rules file")
What we are missing in our docs is a link from
https://github.com/ilbers/isar/blob/master/doc/user_manual.md#packages-without-source
to the debianize mechanism.
>
> What I am actually trying to accomplish is a call to add with update-
> alternatives. Is there a builtin way to do this already, by chance?
However, update-alternatives is a postinst topic, nothing for rules as
the latter runs during package build while you want something after
package installation.
Jan
--
Siemens AG, Foundational Technologies
Linux Expert Center