How to Create and Distribute my own FreeBSD package

 How to Create and Distribute my own FreeBSD package

Vermaden has an Excellent article on using FreeBSD Poudriere and setting up NGinx to serve packages.  

I wrote a document about learning Packaging,  "Dead Simple Packaging How To"  'for FreeBSD Dummies'

http://ghostbsdarm64.hopto.org/packages/  Dead_Simple_Binary_Packaging_How_To_10
_6C.pdf
  PDF Document describing How to Create and Distribute my own FreeBSD package for you to read and learn.  I placed some diagrams in there, to make it easy to understand.

http://ghostbsdarm64.hopto.org/packages  my NGINX webserver directory for serving ghostbsd-arm64 packages to the world.
http://ghostbsdarm64.hopto.org/packages/Guru_pdf_abiword.tar.gz  Here is source Abiword files for GURU shell script and python application  "Generate_User_Report_for_Upload" application for FreeBSD and GhostBSD.

Contents of the file Guru_pdf_abiword.tar.gz

$ tar tvf Guru*.gz
-rw-r--r-- fred/fred    710312 2023-07-04 17:30 ./Guru/Fred_sample_Copy_6_generate_user_report.abw
-rw-r--r-- fred/fred     38824 2024-02-27 00:22 ./Guru/generate_user_report-1.0_2.pkg
-rw-r--r-- fred/fred    455008 2023-07-04 17:28 ./Guru/Guru6_June27_document_generate_user_report.pdf

'i_need_gpu'
I would be grateful for your suggestions and recommendations to improve this document. I value your input, because you can share what is confusing wording.  Then I have input, that I can add and modify the document to make it better.  When I was looking for information to explain to me, "How to create a simple package from 4 files.",  I could not find document, article, or website that would explain the simple tasks of making a FreeBSD package to share. Read that PDF document to learn about packaging 4 files.  Once you compile your software and then create the tree file structure starting at '/tmp/stage/' as the root '/'  You can easily create the sample package file  my_new_software.pkg  I can place that on my Nginx webserver directory  

/usr/local/poudriere/data/packages/  You can see your pkg file here at this location on the world wide web.   You are welcome to use this space to host your package file.   You easily  use ssh and scp to move the file around to various computers on your internal local area network.

http://ghostbsdarm64.hopto.org/packages/my_new_software.pkg
 

On your local computer connected to the internet

cd /usr/local/etc/pkg/repos
fetch http://ghostbsdarm64.hopto.org/packages/Ghostbsd.conf
execute this line to install your software to your computer:
pkg install my_new_software

or just move the file onto the new computer and add the package
pkg add ./my_new_software-1.0_1.pkg


Here is my Blog post site:   Search on Poudriere to read a couple blog posts about setting up Poudriere and NGINX.  
https://ghostbsd-arm64.blogspot.com/search?q=Poudriere

Do read Vermaden' excellent articles on his website.   

https://vermaden.wordpress.com/
https://vermaden.wordpress.com/2023/08/10/freebsd-on-freeipa-idm-with-poudriere-repo/
https://vermaden.wordpress.com/2024/03/06/connect-freebsd-14-0-stable-to-freeipa-idm/
https://vermaden.wordpress.com/2023/04/30/simple-freebsd-poudriere-harvester-guide/
https://vermaden.wordpress.com/2023/12/09/personal-freebsd-pkgbase-update-server/


Reach me at  X or email fredfinster58 at gmail dot com or  https://ghostbsd-arm64.blogspot.com
https://x.com/@finster_fred  
https://x.com/@l_finster34982

https://ghostbsd-arm64.blogspot.com/search?q=Poudriere
 

Comments

Popular posts from this blog

HDMI Audio sound patches into GhostBSD source code /usr/ghost14/ghostbsd-src SOLVED Jan20 2024

How to install GhostBSD-Arm64 into a USB Flash Drive stick April 24, 2024 update edition.

January 19, 2024 Howto Download a Raspberry Pi 4B bootable image from http://ghostbsdarm64.hopto.org/packages/