Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
Opnsense Build From Source
« previous
next »
Print
Pages: [
1
]
Author
Topic: Opnsense Build From Source (Read 20708 times)
AmirmohammadShk
Newbie
Posts: 2
Karma: 0
Opnsense Build From Source
«
on:
April 03, 2021, 06:57:44 am »
Hi
i Try to Build opnsense from source this way:
on FreeBSD 12:
in /usr/:
- clone core src tools plugins ports
- apply my changes to core
- apply my configs to tools/config/20.7/ports.conf and tools/config/20.7/build.conf
- build and create iso using make dvd
and generate iso
but on every build take long time to create iso
and Most of the time is taken for ports
Most of my changes are for core
and dont need to build ports every time
on pfsense case i use poudriere for build ports and store all txz in poudriere .
how to use poudriere in opnsense build???
or is there a stable way without poudriere?
?
«
Last Edit: April 03, 2021, 07:02:31 am by AmirmohammadShk
»
Logged
Cheers
Amir
mimugmail
Hero Member
Posts: 6765
Karma: 494
Re: Opnsense Build From Source
«
Reply #1 on:
April 03, 2021, 01:07:53 pm »
Its only the first time it takes that long. Should be around 6-8 hours.
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Patrick M. Hausen
Hero Member
Posts: 6794
Karma: 570
Re: Opnsense Build From Source
«
Reply #2 on:
April 03, 2021, 02:16:55 pm »
This is the curse of not using standard FreeBSD packages. So you would need to create your own ports tree in poudriere (from OPNsense) and somehow create a HardenedBSD jail in poudriere. Sorry, never tried that, yet.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
AmirmohammadShk
Newbie
Posts: 2
Karma: 0
Re: Opnsense Build From Source
«
Reply #3 on:
April 05, 2021, 02:04:19 pm »
Quote from: mimugmail on April 03, 2021, 01:07:53 pm
Its only the first time it takes that long. Should be around 6-8 hours.
hi mimugmail
thanks for your replay
yes first time takes long . in my case takes 5H.
but on any change the rebuil progress start from first and take 5H again.
Logged
Cheers
Amir
franco
Administrator
Hero Member
Posts: 17653
Karma: 1610
Re: Opnsense Build From Source
«
Reply #4 on:
April 05, 2021, 03:06:36 pm »
FreeBSD does not compile OpenSSL from ports into their packages for obvious reasons. But this makes updating OpenSSL harder than it should. We've always followed that pattern and except for the 1.1.1k breakage that was a good choice.
Cheers,
Franco
Logged
franco
Administrator
Hero Member
Posts: 17653
Karma: 1610
Re: Opnsense Build From Source
«
Reply #5 on:
April 05, 2021, 03:11:52 pm »
PS: Individual stories on why we had to diverge further from ports can be found below.
https://github.com/opnsense/tools/blob/6e84a332829a69ac4006c7c96415f57817a070dd/config/21.1/make.conf#L53-L101
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
Opnsense Build From Source