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

    HOWTO: Build your own package repository

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    8 Posts 3 Posters 7.4k 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.
    • K
      kaarposoft
      last edited by

      Dear pfSense 2.0 package users,

      There has been some issues with wrong FreeBSD package versions lately:

      • http://forum.pfsense.org/index.php/topic,25507.0.html

      • http://forum.pfsense.org/index.php/topic,24912.0.html

      • http://redmine.pfsense.org/issues/618

      In order to work around those issues and provide a patch, I have set up my own package repository.

      I provide this "HOWTO" in the hope that it may help others with the same problems to debug and/or work around similar issues.

      First of all: There is some documentation on this on the Wiki already. Read those first:

      • http://doc.pfsense.org/index.php/Developing_Packages

      • http://doc.pfsense.org/index.php/Package_Manager_Settings

      Step 1: Webserver
      Set up your own webserver (visible from the pfSense box).
      Enable php. On an Apache2 server this would be

      
      AddHandler php5-script php
      AddType text/html php
      
      

      Step 2: Packages
      Go to the root of the Webserver and:

      
      git clone http://gitweb.pfsense.org/xmlrpc-server/mainline.git pfSense
      git clone http://gitweb.pfsense.org/pfsense-packages/mainline.git packages
      
      

      Step 3: Test
      browse http://yourserver/pfSense/test.php
      and http://yourserver/pfSense/pkg_tester.php
      Both should show a php array.

      Step 4: Have pfSense use the repository
      Go to the pfSense GUI.
      Paste this as the path: /pkg_mgr_settings.php
      Enter the URL of your server

      Step 5: Check it out
      And now - yo and behold - go to the GUI under System -> Packages
      and those should be served by your own new repository

      Step 6: Patch and play
      Now you can patch the package configuration files, and install your own modified packages!

      Step 7: Report bugs
      Open a ticket at http://redmine.pfsense.org with your patched changes so they can be fixed for everyone else

      /Henrik

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

        Step 7:

        Open a ticket at http://redmine.pfsense.org with your patched changes so they can be fixed for everyone else :D

        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
        • K
          kaarposoft
          last edited by

          Already did so:
          http://redmine.pfsense.org/issues/618

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

            Well I meant for others who read this later. If they go through the trouble of making their own package repo and they know how to fix a bug, it would be nice if they fed their patches back into the system.

            I may take some of this post and fill out the "Developing Packages" page on the Wiki if you don't mind, and/or make this a sticky.

            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
            • K
              kaarposoft
              last edited by

              I added step 7 to the original post.
              And yes, by all means: You are welcome to use the content of the post in any way you see fit!

              1 Reply Last reply Reply Quote 0
              • E
                Eugene
                last edited by

                Is it version 2.0 specific? It seems the same procedure is correct for 1.2.3 users, no?
                Thanks.

                http://ru.doc.pfsense.org

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

                  It should work for both, but altering the package repo setting as described only works on 2.0. On 1.2.3 you need to edit /etc/inc/globals.inc and alter the xmlrpcbaseurl setting by hand.

                  As for the package definitions, for 2.0 you edit pkg_config.8.xml (or the amd64 version) and for 1.2.3 it's pkg_config.7.xml.

                  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
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    I beefed this up a bit and imported it into the Doc Wiki:

                    http://doc.pfsense.org/index.php/Creating_Your_Own_Package_Repository

                    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
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.