Add file for package?
-
Anyone have any idea how to use this build port package, etc??
I can't find any documentation on it.
All I would like to do is add this line:<depends_on_package>sudo.tbz</depends_on_package>
Then, I would like to copy the sudo.tbz form the FreeBSD repo (http://ftp2.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-8.2-release/All/) to the pfsense repo (http://files.pfsense.org/packages/amd64/8/All/).
Is there something I'm missing here?
It seems that this process is clear to those who do it all the time, but it is hard for someone on the:outside" to understand.
I would love to commit those changes, as they make PFSense monitoring infinitely easier. -
Anyone have any idea how to use this build port package, etc??
I can't find any documentation on it.
All I would like to do is add this line:<depends_on_package>sudo.tbz</depends_on_package>
Then, I would like to copy the sudo.tbz form the FreeBSD repo (http://ftp2.FreeBSD.org/pub/FreeBSD/ports/amd64/packages-8.2-release/All/) to the pfsense repo (http://files.pfsense.org/packages/amd64/8/All/).
Is there something I'm missing here?
It seems that this process is clear to those who do it all the time, but it is hard for someone on the:outside" to understand.
I would love to commit those changes, as they make PFSense monitoring infinitely easier.you can add any freebsd package(using the same version) via cmd with pkg_add -r http://path_to_package.tbz
if you need i386 version of sudo , then the link to it's package is
pkg_add -r http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/8.1-RELEASE/packages/Latest/sudo.tbz
-
You need to specify the <build_port_path>as well which will build the necessary .tbz</build_port_path>
-
Hmmm… I think we're still at a misunderstanding here.
I have so far been using pkg_add, but I can't use that if I wish to modify a package as I understand.
From the previous posts I understand I have to "define" build_port_path.
However, I cannot find any documentation as to what a "build port path" is, what it should be set to, let alone how to test whether it works.
Can you maybe give me an example with the sudo in this case so on future packages I (and quite possibly others) can understand how to use this build directives?
-
Ports is where we compile almost everything for freebsd/pfsense
When you define build_port_path, you are specifying where in ports tree your package is compiled.
For example, ntop stays at /usr/ports/net/ntop
Take a look on freebsd site to learn about ports
http://www.freebsd.org/ports/index.html -
Thanks!
So adding ports/security/sudo/ (or is it /usr/ports/security/sudo/) to the build_path_port will ensure a compiled sudo.tbz appear at http://files.pfsense.org/packages/amd64/8/All/ ?
Or am I wrong again here?
-
Thanks!
So adding ports/security/sudo/ (or is it /usr/ports/security/sudo/) to the build_path_port will ensure a compiled sudo.tbz appear at http://files.pfsense.org/packages/amd64/8/All/ ?
Or am I wrong again here?
It's /usr/ports/security/sudo
This is the first step. The second is to ask core team to include this package on a daily build.
-
Here you can find the build options:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/security/sudo/Makefile?rev=1.142 -
You are probably fine with the default sudo options so don't worry about those. Just add build_port_path tags to your package and then the builder should make one on the next package run (happens nightly) if not we may have to kick it by hand but it can be made to work either way.
-
Thank you everyone!
I have submitted a proper (I think) patch for both 8* configs now. I'm eagerly waiting to see if the nightly build will pick it up if approved, like jimp suggested.
That should complete the framework I had in mind.I assume dropping additional files into a directory can be accomplished as so (like the widescreen package):
<additional_files_needed><prefix>/usr/local/pkg/widescreen/</prefix> <chmod>644</chmod> http://www.pfsense.org/packages/config/widescreen/bin/all.css_</additional_files_needed>
EDIT: How do I issue a pull request for new files uploaded to my repository (via Git gui??)
The files I'm talking about are here: https://github.com/namezero111111/pfsense-packages/tree/master/config/nrpe2