Commit Graph

73 Commits

Author SHA1 Message Date
Luca Deri
cd7b3b4661 Added prerequisite 2023-08-31 08:19:34 +02:00
Hamish Coleman
b0d742b3f5 Remove the need for autoconf in the debian package
Continuing to try and simplify the build system, calculate the remaining
two autoconf variables from the existing config.mak.

For the moment, leave a configure and configure.ac file in place to
allow any old build systems to continue to function without errors.
2023-08-30 20:27:14 +01:00
Hamish Coleman
018add0280 Use a simple debian/control Architecture
By switching to the "any" architecture, we no longer need to template
the debian/control file.  This simply claims that the package can be
built on any known debian arch - which we currently think is true - so
it will help future portability.
2023-08-30 20:27:14 +01:00
Hamish Coleman
9d4f68fce2 Regenerate packages configure scripts 2023-08-30 20:27:14 +01:00
Hamish Coleman
cee0431a61 Work around ubuntu build environment
TODO:
- dont just ignore missing info, have something to fill it in even when
  the require arch binaries are missing
2023-08-30 20:27:14 +01:00
Hamish Coleman
231f4d9ed0 Remove unneeded debian/files - it is autogenerated 2023-08-30 20:27:14 +01:00
Hamish Coleman
1b862513ff Regenerate packages configure scripts 2023-08-30 20:27:14 +01:00
Hamish Coleman
c2f08642c0 Remove unneeded templating of systemd units 2023-08-30 20:27:14 +01:00
Hamish Coleman
50748f210a Remove unneeded templating of debian/rules 2023-08-30 20:27:14 +01:00
Hamish Coleman
0385d4fcbe Automatically generate debian changelog 2023-08-30 20:27:14 +01:00
Hamish Coleman
3cb57e2a6e Use dh_shlibdeps to calculate depends
This may impact builds on Debian 8, but that version has been out of
support for over three years.  I didnt test it, but since using this
helper is the preferred method it may actually help builds on older
versions.
2023-08-30 20:27:14 +01:00
Hamish Coleman
ecb869517e Remove static definition from deb package builder 2023-08-30 20:27:14 +01:00
Hamish Coleman
e42cbd7e0c Remove nondeterminism from man compression
Replacing the previous attempt (using a debhelper) with simply changing
the way we compress the man pages.

The debhelper didnt appear to be working - perhaps because the man page
compression was not done within the debian package build framework.
2023-05-22 22:05:25 +01:00
Hamish Coleman
d0b0f3a2e8 Increase dpkg manpage determinism 2023-05-08 16:46:01 +01:00
Hamish Coleman
731be7e257 Use caching to try to speed up openwrt builds. Build openwrt statically 2023-01-30 20:31:13 +00:00
Hamish Coleman
40f4b04bb2 Add quicker OpenWrt build to regular builds.
Use the upstream build environment to speed up the compiling of OpenWrt
ipk packages.  (And minor doc updates after running this.
2023-01-30 20:31:13 +00:00
Hamish Coleman
da9ba27b0a
Minor build document improvments (#926)
* Improve some build documentation

* Address build failure
2022-01-09 18:07:29 +00:00
Hamish Coleman
a1facf0f3f
Update Openwrt process (#900)
* First attempt at a openwrt CI

* Fix action - helps if I dont forget the syntax half way through writing it

* Try building /this/ branch for the openwrt CI

* Try a build with openssl configured

* Dont enable the n2n package until we have built the environment - makes errors easier to see and clearly related to n2n

* Attempt to speed up the openwrt build

* Upload any created ipkg packages

* Dont test with openssl for the moment

* Attempt to speed up openwrt build using a cache of the build dir

* The make defconfig run turns all the built binaries stale, so stop caching them.  Also use a real ref for the cache key

* Minor text name changes

* Address yamllint concerns

* Attempt to simplify and document missing parts of the openwrt makefile

* Attempt to fix mystery openwrt make error

* Rename build job name

* Avoid nested checkouts, use two separate dirs for the two checkouts in this build

* Move the n2n checkout to earler, allowing us to skip one defconfig run

* We are going to need working tags from the n2n repo, so ensure we unbreak the github checkout braindamage

* Calculate and save the n2n version string

* Prepare the way to pass the correct external vars into the openwrt build

* Hook calculated build variables into the openwrt package definition

* Update artifacts source to match moved checkout dir

* Pass env vars in to the make

* Allow version script to be influenced by external vars

* It will help if I use the same variable names everywhere

* Add more version variable calculation overrides

* Configure openwrt to use the external git checkout instead of their create-tar-then-extract dance

* Using the correct syntax for ifdef will help significantly

* Use as many jobs as we have cpus

* As the USE_SOURCE_DIR option allows us to use a full git checkout, we do not need to hack the version.sh to allow overrides

* Ensure scripts/version.sh works from anywhere

* Remove unneeded variables

* Update openwrt build documentation to match the new build process

* Catch failure to cd as per shellcheck suggestion

* Limit lengthy openwrt builds to manual triggers or on a release

* Also run on specially named branches

* Break list into separate lines for easier future editing
2021-11-18 21:28:50 +00:00
Hamish Coleman
ff72ed8190 Make all version calculations come from scripts/version.sh and remove resulting redundant substitutions 2021-11-01 19:15:23 +00:00
Hamish Coleman
a4910ddc77 Debian Standards-Version variable is the packaging standard, nothing to do with our version 2021-11-01 19:15:23 +00:00
Hamish Coleman
9cbf4ca80a RPM Release variable is the number of patches applied to the upstream source, since we are the upstream source, there are no patches 2021-11-01 19:15:23 +00:00
Hamish Coleman
8dc9437870 Remove configure.ac from the distclean list 2021-11-01 19:15:23 +00:00
Hamish Coleman
c3c72e2656
test on all available runner environments and add autogenerated crossbuilt dpkg packages (#852)
* Make test workflow smoke test use the same internal name as descriptive name

* Refactor workflow to be test_os then build for that OS

* Run tests on all available github runner environments

* Ensure that dpkg builds will fail if the compile fails

* Allow explicitly overriding the debian package architecture

* Pass the detected architecture into the dpkg build process

* Use the possibly overridden MACHINE variable to calculate the short machine name

* Remove unused variable

* Remove unused AC_SUBST

* Allow EXTN to be overridden instead of MACHINE

* Add crossbuilding for dpkg builds

* Ubnuts dont got no crossbuild for mips

* Use the correct value for EXTN
2021-10-14 15:54:19 +05:45
Hamish Coleman
7d4ff08200
added automated binary artifacts (#849)
* Allow an autobuilder with no access to private key material to create testable packages

* Initial dpkg build - will need helpers installed to work

* Start adding required dpkg helpers

* Tweak package artifact names

* Add a windows 'package' builder

* Ensure prefix path handling deals with current directory change when descending to tools dir

* The tools makefile currently only needs the SBINDIR path to install properly

* Add a macos 'package' builder

* Remove unused configure variables

* Without commit history, some of the automatic version numbering will fail

* Add an rpm builder

* Need to set the env var for the rpm build before we change our working dir

* Allow gpg signing to fail for generating test rpm packages

* Unfortunately the rpm spec file hardcodes some path assumptions, so we need to use hacks to work around them

* Return to the top dir before moving things around

* A small change to make actions re-run the pipeline

* Name this workflow file with a nicer looking name
2021-10-11 18:44:28 +05:45
Hamish Coleman
ecedcdcb58
Major documentation improvements (#752) 2021-08-19 20:02:53 +05:45
small_5
d2b35f8423
Update Makefile (#751) 2021-08-19 19:56:55 +05:45
small_5
5c1c65cd5a
updated openwrt makefile (#728) 2021-07-15 11:49:33 +05:45
small_5
3a7ce700f2
updated Makefile (#715) 2021-06-18 16:31:48 +05:45
small_5
d8c383eb95
updated openwrt makefile (#712) 2021-06-14 20:00:49 +05:45
Luca Deri
d2ddc479c7 Added missing configure 2021-04-06 17:09:12 +02:00
Sven Roederer
e36fac8f52
Update packaging for debian (#677)
* packages/debian: remove some autogenerate files from repo

* packages/debian/configure
* packages/debian/debian/n2n.debhelper.log
* packages/debian/debian/n2n.postrm.debhelper

are all autogenerated by autoconf or the deb-helper. So there is no need to keep them
in the repo, as it will cause conflicts.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>

* packages/debian: rules: use dh_prep in place of deprecated "dh_clean -k"

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>

* packages/debian: also provide example communities.list file
2021-04-05 19:27:55 +02:00
VergLsm
35dc670a5f
Update OpenWRT Makefile (#678) 2021-03-30 17:02:46 +05:45
Luca Deri
85894715bd Added build target for Ubiquity EdgeRouter X 2021-02-16 11:31:23 +00:00
Logan oos Even
595384a355
update supernode.conf.sample (#541)
* update supernode.conf.sample

* updated sample supernode.conf
2020-12-19 12:27:55 +01:00
Giacomo Sanchietti
036a947521
rpm: fix installation warning (#479)
Avoid cosmetic error when installing the package:

 line 8: cho: command not found
2020-11-09 16:05:01 +01:00
Luca Deri
84ec5c634c Disabled creation of .build-id dir 2020-10-27 22:38:43 +01:00
Luca Deri
ce9d33ab64 Fixed sample file as -p is now used instead of -l 2020-10-20 17:29:24 +02:00
Luca Deri
f6e4047ce0 Partial fixes for addressing compilation issues introduced by https://github.com/ntop/n2n/pull/460 2020-10-11 11:57:48 +02:00
nanpuyue
25ac58900a fix(openwrt): move config to /etc/n2n
The `/etc/config` directory should only store the "UCI" configuration files.

Reference: https://openwrt.org/docs/guide-user/base-system/uci
2020-09-05 12:00:13 +08:00
lucaderi
aab94e9a82 Added check for centos6 2020-08-17 09:54:19 +02:00
Luca Deri
223ef8197f Added ROM dependency 2020-08-17 09:42:14 +02:00
Luca Deri
fe27d2bfc2 Fixed debian dependency 2020-08-17 09:38:53 +02:00
Luca Deri
52e2454af7 Added nissing package dependency 2020-08-16 12:36:31 +02:00
Alfredo Cardigliano
5889b2c4a0 rpm-sign fix for centos8 2019-10-21 09:37:28 +02:00
emanuele-f
00b891f17b Update openwrt instructions with the toolchain setup 2019-07-07 12:20:23 +02:00
emanuele-f
bf0ad28b4b Update openwrt readme 2019-07-07 00:46:25 +02:00
emanuele-f
4aff8938ac Fix openwrt build instructions 2019-07-06 21:15:03 +02:00
emanuele-f
f0545a1fe2 Fix link 2019-07-06 21:03:32 +02:00
emanuele-f
31e201b49d Update OpenWRT commit hash 2019-07-06 21:00:05 +02:00
emanuele-f
fa695e9f2b OpenWRT build files and instructions 2019-07-06 20:58:57 +02:00