You can rename the scripts when you install them into something generic:

do_install() {}
    install ${S}/debian/rules/postinst ${D}/${bindir}/my-package-postinst.sh
}

then in
pkg_postinst:${PN} () {
    sh my-package-postinst.sh
}


Alex

On Fri, 25 Oct 2024 at 11:14, Uy Ha via lists.yoctoproject.org
<hchanuy=gmail....@lists.yoctoproject.org> wrote:
>
> Could you give me an example? I can install the scripts as regular scripts 
> but since DEB and RPM have different naming for these scripts, do i have to 
> write package manager dependant code?
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64122): https://lists.yoctoproject.org/g/yocto/message/64122
Mute This Topic: https://lists.yoctoproject.org/mt/109204322/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to