Where would I put and/or reference the package maintainer scripts in the recipe to dpkg-raw?

On Fri, Jan 10, 2025, 12:21 AM Jan Kiszka <jan.kiszka@siemens.com> wrote:
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

--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/CAK9C7GCPh6j%3DvFqThyMycskV0gRHVuHJcruWuvfKvHRWv3Y4bQ%40mail.gmail.com.