Create tbz package

wirasto

Member


Messages: 29

I want deploy my little application in tbz package. How create tbz (freebsd) package ?
 

phoenix

Administrator
Staff member
Administrator
Moderator

Reaction score: 1,230
Messages: 4,079

For ports that have not been installed yet:
Code:
# cd /usr/ports/category/portname
# make package
For ports that are already installed:
Code:
# pkg_create -b portname
Both of those will create a portname-version.tbz in the current directory.
 
OP
OP
wirasto

wirasto

Member


Messages: 29

Code:
# pkg_create -bx portname
pkg_create: can't find package 'x' installed!

# pkg_create -b portname
tar: Removing leading '/' from member names
Just example :)
Code:
# ls | grep portname
portname-version.tbz
 

phoenix

Administrator
Staff member
Administrator
Moderator

Reaction score: 1,230
Messages: 4,079

Hrm, seems pkg_create doesn't support -x like the rest of the pkg_* tools. How bizarre. For the rest of the pkg_* tools, adding -x does a "wildcard" search for matching installed packages (-x kde would match all packages starting with kde).

Thanks for the update.
 

LateNiteTV

Well-Known Member

Reaction score: 26
Messages: 391

soooooooo i built the xorg metaport from source which pulled in all that other stuff (drivers, xorg-apps, xorg-server, etc.), can i do pkg_create-b xorg-version and have it create a package for xorg that includes all the dependencies etc and the options that i set when i built it?
sorry, i would try it but im at work and dont have access to my freebsd computer.
 

cwthfly

New Member


Messages: 7

how if the ports get too old version, while I need the latest version of app? I have got the src-code, can i just do make package to get the package?
 
Top