61 Commits

Author SHA1 Message Date
Franco Fichtner
ebfdeecdfe make: populate CORE_MAKE command with proper env on stepping stones
`make upgrade' could forget what version it was running in the first place.
2021-11-15 19:37:01 +01:00
Franco Fichtner
f68816a8c2 src: fix a couple of stray whitespace issues 2021-11-09 13:33:11 +01:00
Franco Fichtner
c4918b4c99 firmware: change CORE_ALTABI to taret ABI detection for #5144 2021-11-09 09:12:24 +01:00
Franco Fichtner
ac1cd84485 make: add a product_altabi setting if we want to split abis #5144
This way we can keep track of the underlying ABI in case a business
version needs to find its way back to community ABI.

In general ALTABI is just the derived ABI version, i.e. the one that
shares the same build settings/packages/OS version.
2021-08-17 08:53:22 +02:00
Franco Fichtner
656c5ada7e pkg: fix version number derivation and missing replacement 2021-06-29 15:18:12 +02:00
Franco Fichtner
61ca8a7b68 pkg: add series and nickname to metadata 2021-04-09 08:56:46 +02:00
Franco Fichtner
3dcc9f512e pkg: compute CORE_NEXT to do automated tag matching
If CORE_NEXT.b tag exists do not use anything else anymore,
otherwise if CORE_NEXT* something exists use this, otherwise
hands off from manual tag pattern matching.

Since this is based on computation of CORE_ABI input we
can use this on the development track to always figure out
the correct version to use without checking the CORE_ABI
explicitly.

Use CORE_NEXT in a file replacement as well.
2021-02-07 15:04:47 +01:00
Franco Fichtner
58f0a7ec08 pkg: better fix, /usr/sbin/pkg is used always :/ 2021-01-24 16:25:47 +01:00
Franco Fichtner
4d31db164f pkg: fix previous 2021-01-24 10:50:05 +01:00
Franco Fichtner
50a8fdf825 pkg: ignore non-bootstrap situation 2021-01-24 10:46:02 +01:00
Franco Fichtner
512730bd1a system: syslog-ng again; fix this the hard way 2020-11-13 10:56:36 +01:00
Franco Fichtner
e6daf55d67 Revert "system: remove syslog-ng @version hint"
This reverts commit 9ed04c754b28c8b9abd48e78a3af1946ef8d32a5.
2020-11-13 10:45:29 +01:00
Franco Fichtner
9ed04c754b system: remove syslog-ng @version hint
Following a discussion in FreeBSD ports to simplify ports handling
the missing @version will no longer trigger a warning in recent
syslog-ng releases so it's better to remove this to ease future
transitions of the port (merged into one "syslog-ng" port then).
2020-11-09 10:20:35 +01:00
Franco Fichtner
a3e3b97e53 firmware: switch to 20.7 2020-07-28 10:33:42 +02:00
Franco Fichtner
cf96f043a3 pkg: cheer up @adschellevis by auto-selecting suricata 2020-07-24 14:34:01 +02:00
Franco Fichtner
8ca1deb9c9 pkg: treat version numbers correctly
Also see: https://github.com/opnsense/tools/commit/84e5ec467a
2020-07-23 12:23:39 +02:00
Franco Fichtner
2a216f91c7 Framework: small comment on current use for these settings 2020-04-24 09:17:48 +02:00
Franco Fichtner
072d9673b9 pkg: useless overrides ARCH and FLAVOUR 2020-04-15 19:12:22 +02:00
Franco Fichtner
7b0bd24771 pkg: finish cleanup of install/plist targets
No functional changes; refactored for readability and exclusive
use of ".link", ".shadow" and ".sample" suffix.

".in" can always be applied, must be the first prefix.
2020-04-15 18:54:25 +02:00
Franco Fichtner
094bbd66c1 pkg: variable links at build time
Has been on the wishlist almost since we have started
using Python 3 and needed our own python3 link to the
currently used version.
2020-04-13 22:19:37 +02:00
Franco Fichtner
c4edd0b86d make: detect more version stuff on demand
Makes "make upgrade" super easy between dev and release.
2020-04-13 12:19:29 +02:00
Franco Fichtner
5db335e02e pkg: "make upgrade" can be difficult in dev situations
Auto-detect PHP if possible, change FLAVOUR behaviour while at it.
2020-04-11 10:59:45 +02:00
Franco Fichtner
cf19e0ca8f pkg: move FLAVOUR to defaults 2020-02-12 12:34:18 +01:00
Franco Fichtner
c9e395e6f8 system: replace syslog-ng version via build
Next step is using a form of CORE_SYSLOGNG to select
the syslog-ng package suffix.  More testing needed.
2019-10-01 22:45:09 +02:00
Franco Fichtner
2d0ff7ab9d pkg: fix wrong version in core metadata file 2018-12-22 17:47:21 +01:00
Franco Fichtner
028bfa10e8 pkg: mkdir -p '' has issues, happens on `make install' 2018-10-31 11:34:31 +01:00
Franco Fichtner
7e3ffaa436 pkg: these too 2018-10-27 23:43:33 +02:00
Franco Fichtner
983485d745 pkg: remove verbose output on copy
In the old times this was nice as a control mechanism,
but now we have a plist to match this against.
2018-10-27 23:39:08 +02:00
Franco Fichtner
bd7169e6ac pkg: fixes for previous 2018-10-27 23:32:57 +02:00
Franco Fichtner
6fd1fd0d74 pkg: move rc to /etc/rc.opnsense; closes #2416
Move /usr/local/etc/rc to /etc/rc.opnsense in order to be able
to boot without /usr mounted.  Move the /boot files along with
it since they require the same type of /usr/local-escapting.

1. This needs further testing.  :)
2. Inspect rc script for commands depend on /usr tools

Our rc.shutdown stays where it is, if we can shutdown we should be
able to access it.  If not, it's not grabbed via /etc/rc.shutdown.
2018-10-27 22:12:04 +02:00
Franco Fichtner
225ba12ef8 pkg: rename tree.mk to core.mk 2018-09-22 20:23:57 +02:00
Franco Fichtner
cd5a171966 pkg: ignore files that are templated 2018-09-22 10:17:10 +02:00
Franco Fichtner
d6657904f3 pkg: also inject CORE_COMMIT 2018-09-22 09:18:37 +02:00
Franco Fichtner
8d6a9b4197 firmware: hijack firmare-product for build-time metadata 2018-09-16 19:03:36 +02:00
Franco Fichtner
47baf6b122 make: replace all the things! 2018-09-16 13:09:57 +02:00
Franco Fichtner
08569103ce ui: funnel hash through firmware-product file #2367
Part one makes it possible to inject branding info from the Makefile
which is not fully complete yet but can always be finished.  The new
hash value can thus be used as a unqiue identifier for page resources
that may be subject to caching.  By using the git hash it allows us
to have this effect on test commits as well as earch working version
as we don't want to track the changes for each file but still get a
good amount of caching.
2018-09-02 09:43:52 +02:00
Franco Fichtner
86350fc183 man: allow to enroll and install man pages
Support was missing for quite a while.  Time to write a couple
of docs for our "opnsense-" tools in core.
2018-05-19 15:57:16 +02:00
Franco Fichtner
9c63784ebf make: update target, some cleanups 2018-02-26 14:55:16 +00:00
Franco Fichtner
3386053709 webgui: clean up after rework 2017-05-04 16:59:51 +02:00
Franco Fichtner
83b5aae6c3 pkg: second half of previous 2017-03-02 07:02:25 +01:00
Franco Fichtner
72e462453a pkg: split @shadow and @sample syntax, slight differences
Can't guarantee this is the final state, but opnsense-bootstrap
stopping over lingering repository information without the finger-
prints in place is not very helpful either.

Now we have a working copy of the file we need, it is already
reconfigured after install and it now also reverts FreeBSD.conf
back to its required state--which is off--to prevent problems.
2017-03-02 06:55:28 +01:00
Franco Fichtner
8185e2007b pkg: exclude missing packages on armv6 2016-10-24 17:13:50 +02:00
Franco Fichtner
f597fff380 pkg: ignore a few more files
Now that we have a plist it's easier to review/preview changes.
Can finally tackle the src/opnsense/contrib mess in a sensible
way with this and since we do not rely on mount/umount anymore.
2016-09-25 12:40:24 +02:00
Franco Fichtner
54cb00d75a Mk: no errors on crypto probe 2016-09-24 14:26:53 +02:00
Franco Fichtner
8903f16227 pkg: add an explicit plist for qa purposes
When we build packages, we want to know if something is wrong.
For now, only use it in the upgrade path, not sure how to
to distinguish if a user or the build system is running the
package build.
2016-09-24 14:21:45 +02:00
Franco Fichtner
dc2bd36118 Mk: split out some common stuff, add headers 2016-09-24 14:00:47 +02:00
Franco Fichtner
12a5ac98d7 Mk: allow ROOT fallback, but make sure it's there 2016-09-24 11:48:13 +02:00
Franco Fichtner
28f3f5391f Mk: small fix, /usr/local is our default-default 2016-09-24 11:36:08 +02:00
Franco Fichtner
1fea1163dc pkg: ":" wasn't supposed to be in there 2016-09-24 11:31:11 +02:00
Franco Fichtner
50f557f4d7 pkg: ok, 500% harder than found in the last commit
Transition away from making the internals known, so rework
the whole tree.mk to expand better to dynamic destinations.
2016-09-24 11:29:10 +02:00