Créer des PBIs
(Sorry for the inconvenience)
PC-BSD® provides a unique file format known as a PBI (push button installer). PBI files end with the .pbi extension and are self-contained installation programs. This means that even novice users can safely install and uninstall PBIs without inadvertently overwriting or deleting files needed by the operating system or other applications.
In order to create a PBI, the software must already be ported to FreeBSD. The easiest way to confirm whether or not a FreeBSD port exists is to search for the software at. If a port does not exist, you can issue a port request at the PC-BSD® Port Requests forum using . Alternately, if you have ported software before, the contains detailed instructions for porting software to FreeBSD.
- pbi_makeport: provides a command line utility as part of the PBI Manager suite.
Tester le PBI
Once your PBI has built, test the PBI to ensure that it installs and that the application works.
As the superuser, use the pbi_add command with the --no-checksig option:
Once installed, start the application from the command line to determine if there are any error messages at application launch. When testing the executable, use the one located in /usr/pbi/(pbi-name)/bin/ so all the linking will be properly set up. Otherwise you can get some interesting errors about missing files.
If the executable does not start the application, the executable may actually be a wrapper script rather than a binary file. If so, check the first line of the script to make sure that it is using the right path for the scripting language. For example, #!/bin/python is an incorrect path which should be changed to #!/usr/pbi/(pbi-name)/bin/python.
The suggested path works because each program is packaged with the proper version of the language it uses and you want to make sure it uses that one. This is usually accomplished by putting a quick sed line in the post-install.sh script to fix the first line as seen in the post install script for.
If you encounter any error messages in either starting or using the application, record them. If the fix for resolving the error messages is not clear to you, send the error report to the.
>tar czvf ~/your_pbi_name.tar.gz .
This will create a compressed tarball named your_pbi_name.tar.gz in your home directory. Send this file to the.
Submit the PBI
Include the following in your mailing list submission, this consistent format will be helpful to all:
- Subject of email: "PBI Submission of <PBI name>"
- Name of the first PBI
- Master sites (where the original can be obtained - listed in the port's Makefile by this variable)
- Category/directory name (often the same as the PBI name) such as: games/epiar
- Attachment of PBI module (this is a function of the email client, but don't forget to include it)
More than one PBI may be submitted by the same person in the same email, but please limit to five per message per day and be sure to include the above information for each.
Here is an example submission:
Epiar is a space exploration/combat/trading game. The Escape Velocity (EV) series for the Mac was the major point of inspiration for this game. Other notable games of this genre include:
- Elite (the original game EV was based on) - Star control 1/2 (and it's now open source successor Ur-Quan masters) - Star Flight - Solar Winds
Email Attachment:epiar.tar.gz 200K