Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Add file for package?

    Scheduled Pinned Locked Moved pfSense Packages
    21 Posts 5 Posters 5.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      namezero111111
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        @namezero111111:

        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

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • E
          eri--
          last edited by

          You need to specify the <build_port_path>as well which will build the necessary .tbz</build_port_path>

          1 Reply Last reply Reply Quote 0
          • N
            namezero111111
            last edited by

            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?

            1 Reply Last reply Reply Quote 0
            • marcellocM
              marcelloc
              last edited by

              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

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • N
                namezero111111
                last edited by

                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?

                1 Reply Last reply Reply Quote 0
                • marcellocM
                  marcelloc
                  last edited by

                  @namezero111111:

                  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.

                  Treinamentos de Elite: http://sys-squad.com

                  Help a community developer! ;D

                  1 Reply Last reply Reply Quote 0
                  • N
                    Nachtfalke
                    last edited by

                    Here you can find the build options:
                    http://www.freebsd.org/cgi/cvsweb.cgi/ports/security/sudo/Makefile?rev=1.142

                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      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.

                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      1 Reply Last reply Reply Quote 0
                      • N
                        namezero111111
                        last edited by

                        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

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.