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

    Pfsense 2.3.1 compilation environment

    Scheduled Pinned Locked Moved Development
    13 Posts 4 Posters 5.1k 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.
    • H
      heper
      last edited by

      i guess you could use freebsd 10.3 as your build environment & copy over

      1 Reply Last reply Reply Quote 0
      • J
        jetberrocal
        last edited by

        @heper:

        i guess you could use freebsd 10.3 as your build environment & copy over

        OK, nice. I already know how to recompile the package with the additional option turn on. 
        Someone help me on the package forum. But he knows about FreeBSD but not the particulars of pfsense.

        On FreeBSD forum there is a Rule that I can not ask for help on pfsense topics until I make the effort to ask here.

        So now.  How do I copy over the compiled package from FreeBSD Server to the pfsense Server?  (Sorry for the typo, A next to S)

        1 Reply Last reply Reply Quote 0
        • T
          Toster
          last edited by

          You can copy your package with SCP in the Console of pfSense.
          Example:

          scp -r root@IP_OF_FREEBSD_MACHINE:/PATH/OF/PACKAGE.tgz /

          it copys your package to the / directory of your pfSense machine.
          It could be that you must allow root access on FreeBSD Machine.
          You musst edit the "sshd config" file the path is

          /etc/ssh/sshd config

          There is a Line hat must change from

          #PermissionRootLogin NO
          to
          PermissionRootLogin YES

          Sorry for bad english, i hope it helps.

          1 Reply Last reply Reply Quote 0
          • J
            jetberrocal
            last edited by

            How do I identify all the folders that I should copy for the package and individual files that are located on package share folders like "etc".
            Also need to install decency packages, which ones.

            1 Reply Last reply Reply Quote 0
            • T
              Toster
              last edited by

              The applications in the FreeBSD ports directory have a makefile in its directory. So you must only type "make package" when you are in the directory of the application.
              This command creates you a package (.tgz file) with all files. I don't know if its shows you all dependency packages. If you know all dependency you can go into the directory of those and create a package .

              After you copied the packages to your pfSense, you can install them with "pkg add path/to/package/package.tgz".

              1 Reply Last reply Reply Quote 0
              • J
                jetberrocal
                last edited by

                I Will look into It and post back with results so this thread help others like me.

                1 Reply Last reply Reply Quote 0
                • J
                  jetberrocal
                  last edited by

                  This day I had the chance to test make package.

                  I did it in the folder of the uncompress port tgz.

                  It gives:
                  "make: don't know how to make package. Stop"
                  "make: stopped in /root/e2g/e2guardian-3.4.0.3"

                  Maybe it has to be done on other folder, or maybe I have to edit the makefile.

                  Can you suggest the next action?

                  1 Reply Last reply Reply Quote 0
                  • P
                    PiBa
                    last edited by

                    This has some info: https://gist.github.com/jdillard/3f44d06ba616fec60890488abfd7e5f5

                    As for the directory to build the package file from would probably be something like /usr/ports/www/e2guardian/ . Can you give that a try?

                    Or "make clean build install" it on the FreeBSD box and try to run find what got installed "pkg info" then try to create the package "pkg create <packagename>"</packagename>

                    1 Reply Last reply Reply Quote 0
                    • J
                      jetberrocal
                      last edited by

                      @PiBa:

                      This has some info: https://gist.github.com/jdillard/3f44d06ba616fec60890488abfd7e5f5

                      As for the directory to build the package file from would probably be something like /usr/ports/www/e2guardian/ . Can you give that a try?

                      Or "make clean build install" it on the FreeBSD box and try to run find what got installed "pkg info" then try to create the package "pkg create <packagename>"</packagename>

                      Following the github link the "make package" works.  But it says to run "portlint -CN" and that gives an error.
                      I do not know what is for the portlint.  Including screenshot  with runs output.

                      VirtualBox_FreeBSD_04_10_2016_10_21_03.png
                      VirtualBox_FreeBSD_04_10_2016_10_21_03.png_thumb

                      1 Reply Last reply Reply Quote 0
                      • P
                        PiBa
                        last edited by

                        That portlint is only relevant if your developing a package yourself i think.. In this case your compiling an existing package and probably safe to ignore the portlint 'error' about to much files and cleanup to be done..

                        1 Reply Last reply Reply Quote 0
                        • J
                          jetberrocal
                          last edited by

                          Not using the portlint command I go ahead and copied the package to my pfsense box and install it successfully.

                          So this is it.  Thank you all for your help.

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