public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* dpkg-raw and debian/rules
@ 2025-01-10  3:35 Stephen Ecker
  2025-01-10  6:21 ` 'Jan Kiszka' via isar-users
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Ecker @ 2025-01-10  3:35 UTC (permalink / raw)
  To: isar-users


[-- Attachment #1.1: Type: text/plain, Size: 744 bytes --]

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?

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?

thanks,
   stephen 

-- 
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/3fe52e49-8e23-4af6-b641-a6415547c8cbn%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1070 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: dpkg-raw and debian/rules
  2025-01-10  3:35 dpkg-raw and debian/rules Stephen Ecker
@ 2025-01-10  6:21 ` 'Jan Kiszka' via isar-users
  2025-01-10  6:47   ` Stephen Ecker
  0 siblings, 1 reply; 4+ messages in thread
From: 'Jan Kiszka' via isar-users @ 2025-01-10  6:21 UTC (permalink / raw)
  To: Stephen Ecker, isar-users

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/88f68457-7d94-4c29-83de-504390a2aec5%40siemens.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: dpkg-raw and debian/rules
  2025-01-10  6:21 ` 'Jan Kiszka' via isar-users
@ 2025-01-10  6:47   ` Stephen Ecker
  2025-01-10  7:26     ` Anton Mikanovich
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Ecker @ 2025-01-10  6:47 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: isar-users

[-- Attachment #1: Type: text/plain, Size: 1602 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 2604 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: dpkg-raw and debian/rules
  2025-01-10  6:47   ` Stephen Ecker
@ 2025-01-10  7:26     ` Anton Mikanovich
  0 siblings, 0 replies; 4+ messages in thread
From: Anton Mikanovich @ 2025-01-10  7:26 UTC (permalink / raw)
  To: Stephen Ecker, Jan Kiszka; +Cc: isar-users

10/01/2025 08:47, Stephen Ecker wrote:
> Where would I put and/or reference the package maintainer scripts in 
> the recipe to dpkg-raw?

Hello Stephen,

As dpkg-raw packages use deb_debianize logic, you can just create a script
named "postinst" (or postrm/preinst/prerm if also needed) in /files and 
add it
to your recipe's SRC_URI list. Then it should be included into resulting 
deb.

-- 
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/6c62939e-f23d-49af-bfa0-3e05229cf481%40ilbers.de.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-01-10  7:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-10  3:35 dpkg-raw and debian/rules Stephen Ecker
2025-01-10  6:21 ` 'Jan Kiszka' via isar-users
2025-01-10  6:47   ` Stephen Ecker
2025-01-10  7:26     ` Anton Mikanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox