pfSense Support Subscription

Author Topic: How to Build pfSense 2.3?  (Read 8637 times)

0 Members and 1 Guest are viewing this topic.

Offline william9527

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
How to Build pfSense 2.3?
« on: April 01, 2016, 01:42:54 am »
Hi,

I am a new comer,
and I have seen https://doc.pfsense.org/index.php/2.3_New_Features_and_Changes,
it says there are build scripts in 2.3 github branch,
but how to use?

Can anyone tell me how to use build.sh or other scripts in 2.3 to build 2.3 iso ?

Offline simontkk

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: How to Build pfSense 2.3?
« Reply #1 on: April 21, 2016, 09:23:12 pm »
Hi William,

I facing a same issue like you. Just would like to know, do you know how to build pfsense 2.3 ? if yes, do you mind share me how to do?

Thank You

Offline simontkk

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: How to Build pfSense 2.3?
« Reply #2 on: April 24, 2016, 10:32:06 am »
Dear all,

Can anyone advice me on how to build pfsense 2.3 ?

This is my log. May I know why it looking for nonSense-repo.conf ? Since this file is not exits under /pkg_repos . please advices me.

Thank you in advance.
SIMON

>>> Operation ./build.sh has started at Sun Apr 24 22:07:58 MYT 2016
>>> Building image type(s): iso
>>> Cleaning up previous build environment...Please wait!
>>> Cleaning build directories: final-dir Done!
>>> Cleaning previously built images...Done!
>>> Cleaning previous builder logs...Done!
>>> Cleaning of builder environment has finished.
>>> Obtaining FreeBSD sources devel...Done!
>>> Last known commit Chris Buechler - 1047232c5e57ba98f1f7cb2e5d0da52e56b825c7
>>> Obtaining FreeBSD sources devel...Done!
>>> ERROR: It was not possible to find pkg conf template /root/pfsense/pf-repo/tmp/FreeBSD-src/release/pkg_repos/nonSense-repo.conf

Offline simontkk

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: How to Build pfSense 2.3?
« Reply #3 on: April 26, 2016, 04:25:27 am »
Dear All,

Can anyone advice me on how to build pfsense 2.3 ? I am stuck under this.
Please tell me  why it shown /build.sh: xml : not found

Thanks in advance.

Code: [Select]
[left][left]>>> Installing kernel pfSense
>>> Creating pkg of pfSense-debug kernel to staging area...>>> Creating pkg of pfSense kernel to staging area....Done
>>> Cloning everything to /root/pfsense/pfRepo/tmp/stage-dir staging area..../build.sh: xml: not found
./build.sh: xml: not found[/left][/left]

Offline Iggy Houdini

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: How to Build pfSense 2.3?
« Reply #4 on: April 28, 2016, 10:36:33 pm »
I am also new here and would appreciate if someone could provide an updated guide to building pfsense.

Offline simontkk

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: How to Build pfSense 2.3?
« Reply #5 on: May 12, 2016, 01:57:35 am »
Its very easy to build.

1) Setup FreeBsd-10.3
2) git build tools from https://github.com/pfsense
3) under build folder execute this command " ./build.sh iso "

Regards,
SIMON T.

Offline Iggy Houdini

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: How to Build pfSense 2.3?
« Reply #6 on: May 12, 2016, 06:28:45 pm »
Thanks for the help Simon, but it doesn't work for me. I'll list down what I try to do and someone can tell me where I go wrong.

When I run build.sh iso I recieve the message "It was not possible to find pkg conf template [my pfsense repo]/tmp/FreeBSD-src/release/pkg_repos/nonSense-repo.conf".

It seems like this is because the freeBSD-src repo has "pfSense-repo.conf" in that location instead, so I can either set the build configuration to look for the file that exists, or create the file it is looking for.

So, I create a "build.conf" from "build.conf.sample" and change the "PRODUCT_NAME" to "pfSense" and the build fails because of copyright.

So instead, I try to add the file it is looking for, but the build system reverts to an earlier commit every time I do this, so I need to make the changes, commit them and then set pfsense to use that commit instead. This would require me to fork the pfsense/FreeBSD-src repo, and now I feel like I have made a mistake somewhere along the way.

I cloned the repo and added a nonSense.conf to have the same contents as my installed pfsense (having the same contents as the pfsense repo didn't work) and i managed to get to buildworld and installworld stages before it started looking for "[my pfsense repo]/tmp/FreeBSD-src/sys/amd64/conf/nonSense" which wasnt there. I think I'm going to add that as well.
« Last Edit: May 12, 2016, 11:53:10 pm by Iggy Houdini »

Offline simontkk

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: How to Build pfSense 2.3?
« Reply #7 on: May 13, 2016, 04:38:45 am »
Hi Iggy,

You may need look into builder_default.sh.
Try to look for "nonSense", change "nonSense" into "pfSense".

If it`s still not working, you may email me via simontkk2005@gmail.com

Thank you.

Offline susaa

  • Newbie
  • *
  • Posts: 5
  • Karma: +1/-0
    • View Profile
Re: How to Build pfSense 2.3?
« Reply #8 on: August 22, 2016, 11:28:39 am »
Hi,

RELENG_2_4 is still there?

While executing "./build.sh iso" i am getting this "Remote branch RELENG_2_4 not found in upstream origin" error.

Is there any workaround for this?

Thanks in advance.
« Last Edit: August 23, 2016, 01:46:40 am by susaa »

Offline susaa

  • Newbie
  • *
  • Posts: 5
  • Karma: +1/-0
    • View Profile
Re: How to Build pfSense 2.3?
« Reply #9 on: August 25, 2016, 01:51:37 am »
Hi Iggy,

I am facing the same issue. Did find a workaround for the problem yet?!

Thanks

Offline jwt

  • Administrator
  • Sr. Member
  • *****
  • Posts: 344
  • Karma: +101/-31
    • View Profile
Re: How to Build pfSense 2.3?
« Reply #10 on: August 26, 2016, 09:15:42 am »
Hi Iggy,

You may need look into builder_default.sh.
Try to look for "nonSense", change "nonSense" into "pfSense".

If it`s still not working, you may email me via simontkk2005@gmail.com

Thank you.

Trademark violation right there.  Don't do it, or gonzo will have your ass. :-)

Offline kpa

  • Hero Member
  • *****
  • Posts: 1186
  • Karma: +132/-6
    • View Profile
Re: How to Build pfSense 2.3?
« Reply #11 on: August 28, 2016, 09:13:19 am »
Hi Iggy,

You may need look into builder_default.sh.
Try to look for "nonSense", change "nonSense" into "pfSense".

If it`s still not working, you may email me via simontkk2005@gmail.com

Thank you.

Trademark violation right there.  Don't do it, or gonzo will have your ass. :-)

You can build pfSense yourself for testing/development purposes but don't try to publish any of your own modifications/fork under the name "pfSense", that will get you in trouble.

Offline phil.davis

  • Hero Member
  • *****
  • Posts: 4612
  • Karma: +550/-3
    • View Profile
    • International Nepal Fellowship
Re: How to Build pfSense 2.3?
« Reply #12 on: August 28, 2016, 06:19:37 pm »
Don't publish even an "exact" build of just the existing code. Both for legal reasons, and security, people should be getting the official tested pfSense builds with checksums/signatures from the official download site.
If you publish anything, then you have to do proper rebadging to ensure you do not claim, or appear to claim, it is "pfSense".
As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

Offline susaa

  • Newbie
  • *
  • Posts: 5
  • Karma: +1/-0
    • View Profile
Re: How to Build pfSense 2.3?
« Reply #13 on: August 29, 2016, 01:02:40 am »
Hi Iggy,

You may need look into builder_default.sh.
Try to look for "nonSense", change "nonSense" into "pfSense".

If it`s still not working, you may email me via simontkk2005@gmail.com

Thank you.

Trademark violation right there.  Don't do it, or gonzo will have your ass. :-)

You can build pfSense yourself for testing/development purposes but don't try to publish any of your own modifications/fork under the name "pfSense", that will get you in trouble.

I am trying to build pfSense for development purposes.

For the trademark violation reasons, I am rebranding it with say "MypfSense". I am doing it like, export PRODUCT_NAME=MypfSense in build.conf, which is the right way.

But the problem here is, I find ${PRODUCT_NAME} being used hundreds of times inside the code, for updating repositories and stuff. Is it okay to replace them with pfSense?! Is that the proper way of rebranding it?


Offline susaa

  • Newbie
  • *
  • Posts: 5
  • Karma: +1/-0
    • View Profile
Re: How to Build pfSense 2.3?
« Reply #14 on: August 31, 2016, 05:15:01 am »
Is there any kind of documentation or standard steps to be followed for building a clean pfSense .iso from the available pfSense sources?!

There are clear replies for "What and what not violates the copyright". But if there are proper steps defined to build it, it would be much easier.

I have spent like 4 weeks on this and it's doesn't get any better.

Thanks.