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

    How to get pfSence sources?

    Development
    6
    7
    11.3k
    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.
    • ?
      Guest
      last edited by

      Hello,

      I do need to build pfSence, just want to browse the source code of all pages of the stable release. How can I get these files?

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

        The pfSense sources are kept in a git repository. For the "Stable" branch, you want RELENG_1_2

        You can browse the source files and recent commits here:
        https://rcs.pfsense.org/projects/pfsense/repos/mainline/logs/RELENG_1_2

        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
        • T
          tanhosy
          last edited by

          @Zox:

          Hello,

          I do need to build pfSence, just want to browse the source code of all pages of the stable release. How can I get these files?

          You should used git to get pfSense git repository and run ./cvsup_current.sh to get all sources.
          Please follow this link: http://devwiki.pfsense.org/DevelopersBootStrapAndDevIso

          1 Reply Last reply Reply Quote 0
          • S
            steelmanot
            last edited by

            Hi,
            I want to build custom image too.
            I'm following this guide http://devwiki.pfsense.org/DevelopersBootStrapAndDevIso
            I'm building it on pfSense-Developers-1.2.2

            I got stuck when compiling git, it throws me lots of errors .

            –-----------------------------------------------------------

            cd /usr/ports/devel/git

            make BATCH=yo

            ===>  Building for git-1.6.3.2_1
               CC http-push.o
            http-push.c:15:19: error: expat.h: No such file or directory
            http-push.c:1235: error: expected ';', ',' or ')' before '*' token
            http-push.c: In function 'lock_remote':
            http-push.c:1319: error: 'XML_Parser' undeclared (first use in this function)
            http-push.c:1319: error: (Each undeclared identifier is reported only once
            http-push.c:1319: error: for each function it appears in.)
            http-push.c:1319: error: expected ';' before 'parser'
            http-push.c:1326: error: 'parser' undeclared (first use in this function)
            http-push.c:1329: error: 'xml_cdata' undeclared (first use in this function)
            http-push.c: In function 'remote_ls':
            http-push.c:1562: error: 'XML_Parser' undeclared (first use in this function)
            http-push.c:1562: error: expected ';' before 'parser'
            http-push.c:1569: error: 'parser' undeclared (first use in this function)
            http-push.c:1572: error: 'xml_cdata' undeclared (first use in this function)
            http-push.c: In function 'locking_available':
            http-push.c:1645: error: 'XML_Parser' undeclared (first use in this function)
            http-push.c:1645: error: expected ';' before 'parser'
            http-push.c:1652: error: 'parser' undeclared (first use in this function)
            gmake: *** [http-push.o] Error 1
            *** Error code 1

            Stop in /usr/ports/devel/git.

            –-----------------------------------------------------------------
            What is the problem here ?

            1 Reply Last reply Reply Quote 0
            • S
              stompro
              last edited by

              Does browsing source files on rcs.pfsense.org work for you jimp?

              Anytime in the past 3 weeks I have tried to browse to and view a file, I just get an error message.

              When I open this link,
              https://rcs.pfsense.org/projects/pfsense/repos/mainline/blobs/master/etc/inc/captiveportal.inc
              I just get the error message "We're sorry, but something went wrong".

              Am I missing something obvious?
              Josh
              @jimp:

              The pfSense sources are kept in a git repository. For the "Stable" branch, you want RELENG_1_2

              You can browse the source files and recent commits here:
              https://rcs.pfsense.org/projects/pfsense/repos/mainline/logs/RELENG_1_2

              Hardware used: Alix 2D13 X 10, APU2D4 X 10, SG-2200 X 10, SG-2440 X 4

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

                Viewing the individual files doesn't work from there right now, but there will be an update in the near future that will fix that.

                You can also see the files here:
                http://redmine.pfsense.org/repositories/show/pfsense

                But honestly the fastest way to do that is the install git and download a local clone of the repo.

                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
                • E
                  Eugene
                  last edited by

                  @steelmanot:

                  I'm following this guide http://devwiki.pfsense.org/DevelopersBootStrapAndDevIso
                  …

                  What is the problem here ?

                  This article has been updated recently and the problem mentioned by you was solved. Try to follow the procedure again.

                  http://ru.doc.pfsense.org

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