PDA

View Full Version : How to create .tbz packet !


ozanus
September 21st, 2009, 15:01
Hello All,
How to create a new .tbz packet file.
Example, I download http://files.pfsense.org/packages/All/lightsquid_tpl.tbz and extrack and change files.

How to try create .tbz file : )

Thanks you all developer.

dennylin93
September 21st, 2009, 15:09
Try make package. This creates a package from an installed port.

graudeejs
September 21st, 2009, 15:16
it's package, not packet...

ozanus
September 21st, 2009, 17:04
killasmurf86, your only response "it's package, not packet... "

Do you know create .tbz package ?

SirDice
September 21st, 2009, 17:22
killasmurf86, your only response "it's package, not packet... "
Using the correct terms will prevent confusion ;)

Do you know create .tbz package ?
Please see post #2

ozanus
September 21st, 2009, 17:59
Okey, Thanks SirDice,
- I'm download http://files.pfsense.org/packages/All/lightsquid_tpl.tbz package and extract on my windows.

- I'm edited 3 files in lightsquid_tpl.

Please, Can you tell me step by step, "i how to lightsquid_tpl convert lightsquid_tpl.tbz package"

I do not want install with make command !

I'm search google and other bsd forums, but i not to find.

B.R

SirDice
September 21st, 2009, 18:15
Don't edit existing packages. Either create your own or make the changes after you've installed them.

phoenix
September 21st, 2009, 19:26
Install the package on a running system.

Edit the files on that system.

Run pkg_create -b nameofpackage to create a new package based on the installed files.

In theory, that should pick up the changed files. Never tried it, though, so it may not work. :)

ale
September 21st, 2009, 21:31
I think that it's not going to work always.
Look for example at how pkgtools.conf is created by the portupgrade port and how it's treated in /var/db/pkg/portupgrade*/+CONTENTS.
I think that if it will not work, you have to create your packinglist and use the -f option too.

Bunyan
September 22nd, 2009, 16:40
My prefered method of building FreeBSD packages is
pkg_create -nvRb /var/db/pkg/PKG_NAME
The option -n is useful to avoid repeatedly creating of the same dependant packages, like Python, for example.