Fatdog native package build system

versatile 64-bit multi-user Linux distribution


Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators

Post Reply
User avatar
dr__Dan
Posts: 84
Joined: Tue Jul 28, 2020 5:06 am
Has thanked: 55 times
Been thanked: 28 times

Fatdog native package build system

Post by dr__Dan »

Hello Fatdog team

I've wanted to make packages for a long time, and have been able to do so, but not successfully with the native package build system. I've looked into it several times, but it never would work for me, and I fell back to the DESTDIR= method.

I tried it again the other day, and failed, but investigated more extensively this time. Then I remembered this post, viewtopic.php?p=86001&hilit=build#p86001, where I found the missing key. It was not clear from the instructions that the recipe needed to be in a directory inside the /pkg directory, and that the directory had to be listed after the build-pkg.sh command. Once I understood that, it worked smoothly.

I've attached a rewritten README file from that directory, an altered pet-package.md help file, and the successful recipe for the latest version of xfe.

I trust that will help.

Dan

Attachments
recipe.gz
(909 Bytes) Downloaded 22 times
README_pkgbuild-edit.txt
(2.21 KiB) Downloaded 37 times
pet-package.md-edit.txt
(14.61 KiB) Downloaded 43 times

9 years on with Fatdog64. :D

jamesbond
Posts: 720
Joined: Tue Aug 11, 2020 3:02 pm
Location: The Pale Blue Dot
Has thanked: 124 times
Been thanked: 406 times

Re: Fatdog native package build system

Post by jamesbond »

Thank you @dr__Dan.
I will update the xfe recipe, and I will put the update README file for pkgbuild.

The pet-package.md however ... today, we generates the markdown files from HTML.
So I will need to compare the changes between the two, and then updated the HTML (which will eventually generates the pet-package.md), so the end result may not be identical. But hopefully close enough.

Nevertheless, thank you for your contribution; it is always appreciated! :thumbup2:

User avatar
dr__Dan
Posts: 84
Joined: Tue Jul 28, 2020 5:06 am
Has thanked: 55 times
Been thanked: 28 times

Re: Fatdog native package build system

Post by dr__Dan »

@jamesbond, all my submissions are given for the team's consideration. If it would help, I can edit the html file as well. I just got to the md first, with a limited amount of time available.

I've mentioned to someone (likely you) my wish to alter the prepackaged defaults in xfe to correspond with those of Fatdog64, e.g. VLC for audio and video, viewnior for images, etc. The technique used in the recipe in lines 34-36 should be capable of doing what I envision, so I hope to make a version 2 of the recipe that does so.

Dan

9 years on with Fatdog64. :D

jamesbond
Posts: 720
Joined: Tue Aug 11, 2020 3:02 pm
Location: The Pale Blue Dot
Has thanked: 124 times
Been thanked: 406 times

Re: Fatdog native package build system

Post by jamesbond »

dr__Dan wrote: Tue Aug 06, 2024 6:37 am

@jamesbond, all my submissions are given for the team's consideration. If it would help, I can edit the html file as well. I just got to the md first, with a limited amount of time available.

Thank you for that @dr__Dan. You don't need to edit the html, I have already applied the changes to the html version too, you can see it here: http://distro.ibiblio.org/fatdog/web/fa ... ckage.html (this will be in the next release).

The technique used in the recipe in lines 34-36 should be capable of doing what I envision, so I hope to make a version 2 of the recipe that does so.

That's one of the way to do it. The other way, if you have too much changes, is just to include the customised configuration file in the recipe directory, and copy it over.

E.g. /usr/src/pkgbuild/pkg/xfe could contain: recipe and xfe.cfg (NOTE: the xfe.cfg is fictitious and is only meant as an example).

xscreenshot-20240807T173250.png
xscreenshot-20240807T173250.png (24.04 KiB) Viewed 890 times

And inside the recipe (as part of pkg_build()) you can say:

Code: Select all

cp /tmp/pkg/xfe.cfg /etc/xfe.cfg

Or something like that.

User avatar
dr__Dan
Posts: 84
Joined: Tue Jul 28, 2020 5:06 am
Has thanked: 55 times
Been thanked: 28 times

Re: Fatdog native package build system

Post by dr__Dan »

@jamesbond, Thank you, that sounds far easier.

Dan

9 years on with Fatdog64. :D

Post Reply

Return to “FatDog64”