Commit Graph

1121 Commits

Author SHA1 Message Date
Oliver Smith 9c9857bc26 dropbear: depend on sftp-server
Related: SYS#6403
Change-Id: Ieb8d386d92e47cd37174e4d816c3a2126174ce72
2023-05-03 16:59:51 +02:00
Oliver Smith cc8ad7cde7 dropbear: do not disable root login
Related: SYS#6402
Change-Id: Ie9ef36f3008c6f8054f4e8164000a2e9e80c53d9
2023-05-03 16:59:05 +02:00
Oliver Smith fc7d6d4ae2 dropbear: fix build with our OE version
* Replace : with _
* Remove "virtual/crypt" from depends

Related: SYS#6402
Change-Id: Iebeb013ed2829e5008388eed7f8794eb5ae6dad0
2023-05-03 16:58:29 +02:00
Oliver Smith ce45a5bc79 dropbear: import 2022.83 from upstream OE
Import current packaging of dropbear from openembedded-core.git, commit

Related: SYS#6402
Change-Id: I431934b0558350931bb9571b0fa6efff8ba45387
2023-05-03 16:38:33 +02:00
Oliver Smith 7b7e522ccf recipes-fixes/dropbear: remove
Remove this directory to prepare to upgrade dropbear in following
patches. The directory made changes to the sysvinit script that was
used by pre-201705 systems (SYS#691). 201705 uses systemd services

On a side note, all customizations made to the init script had been
upstreamed into OE.

Related: SYS#6402
Change-Id: Icb65a68091aff43c5c94ba961a650865a2784b65
2023-05-03 15:30:56 +02:00
Oliver Smith 3140454c3c sftp-server: new package
Package OpenSSH's sftp-server program, so we can install it as
dependency of dropbear in a future patch. Once sftp-server is installed,
the scp tool from OpenSSH can be used with the SFTP protocol, without
enabling the legacy flag for the legacy SCP protocol.

The sftp-server binary is 126K in size.

After packaging this, I realized that we could also have used
the openssh-sftp-server package from poky:
But let's use this extra package now, it uses the most recent OpenSSH
source and doesn't build the rest of OpenSSH which we don't need.

Related: SYS#6403
Change-Id: I376bc31413935f7a560afd916a623228550dc6fe
2023-05-03 15:30:56 +02:00
Oliver Smith 7588bee7fa gpsd: fix gpsd.hotplug udev rules
Adjust the bundled udev rules to use gpsd.hotplug instead of
gpsd.hotplug.wrapper, as the wrapper has been removed upstream.

Fix for:
systemd-udevd[1004]: failed to execute '/lib/udev/gpsd.hotplug.wrapper' '/lib/udev/gpsd.hotplug.wrapper': No such file or directory

Fixes: 6a8f914b ("gpsd: upgrade to 3.24")
Related: 711a3f8412
Related: SYS#6222
Change-Id: I95c9d1537a9a7090b1239aecef14f25f8d7ca554
2023-05-03 14:02:59 +02:00
Oliver Smith d69834d507 openvpn: bring back openvpn.service file
Restore the openvpn.service file from packaging of openvpn 2.3.6, so we
can still start it the same way (as currently described in manuals).

Related: SYS#6303
Change-Id: I2cf96bc1ecca79ae98be1181fbd3c15edad15ca8
2023-05-03 13:57:29 +02:00
Oliver Smith 89f6d2b1f0 sysmocom-openvpn-config: update config
Related: SYS#6303
Change-Id: If13ef523b13e15d3b1930396ae67a729a080a3b7
2023-05-03 13:56:52 +02:00
Harald Welte d950005138 openvpn: upgrade openvpn from 2.3.6 to 2.5.8
Our openvpn server has meanwhile been migrated to 2.5.x, and
establishing backwards compatibility with 2.3.x means we have to
disable ciphers + tls versions that are no longer considered secure.

Related: SYS#6303
2023-05-03 13:56:42 +02:00
Oliver Smith fae46a5d5a gpsdate: upgrade to fix build against new gpsd
Upgrade gpsdate to the latest commit, where the build against newer gpsd
was fixed.

Related: SYS#6222
Change-Id: Ia83008933a1e94e556b6908903ad7b63759fc1e3
2023-05-03 13:56:32 +02:00
Oliver Smith 0543e7992b gpsd: upgrade to 3.24
Usually when upgrading packages, we just copy the upstream package and
adjust it slightly. I've looked at the upstream package here:
(HEAD at f3d14d41ad60d2d52a0ea795ae10fe0882146ed1)

But as I compared both packaging trees, I found ours is quite different
than upstream. We have a lot of additional patches, still use python2 and
have these extra files:

├── gpsd
│   ├── 60-gpsd.rules
│   ├── gpsd
│   ├── gpsd-default
│   ├── gpsd.service
│   ├── oc2g
│   │   ├── gpsd-default
│   │   └── gpsd.service
│   ├── sysmobts2100
│   │   └── gpsd-default
│   ├── sysmobts-v2
│   │   └── gpsd-default
│   └── sysmocom-idu
│       └── gpsd-default

Therefore I didn't start with the upstream packaging but instead
increased the gpsd version in our packaging and went through each patch
to see if it can be dropped or needs to be forward ported.

Change the version by renaming the .bb file. Reset the version of the
recipe (PR) back to "r0" again, as it is common practice after changing
the package version. The previous value "r3.20" looked a bit like a
package version, but it's not that.

Rebase patches:
* 0001-gps2udp-Add-a-label-timestamp-and-mac-address-to-eac.patch
* 0002-gps2udp-leave-argv-untouched.patch (leave-argv-untouched.patch)
* 0003-tsip-configure-and-enable-1PPS.patch (gpsd-tsip-pps.patch)

Add build fixes:
* 0004-SConscript-force-use-of-pthread.patch

Drop patches:
* 0001-SConstruct-prefix-includepy-with-sysroot-and-drop-sy.patch:
  unused in previous version
* 0001-SConstruct-disable-html-and-man-docs-building-becaus.patch:
  doesn't apply, instead disable docs building via manbuild='no'
* 0002-SConstruct-respect-sysroot-also-in-SPLINTOPTS.patch:
  not needed anymore (no splintopts line in 3.24)
* gpsd-3.3-ldflags.patch:
  fixed upstream
* no-rpath-please.patch:
  doesn't apply, not needed anymore (see 5df2de36 in gpsd.git)

Related: SYS#6222
Change-Id: I2debe481c5f1cc4ee8290ad0dc883d6a4ea73741
2023-05-03 13:56:23 +02:00
Oliver Smith f9db945110 gpsd: cosmetic fixes in SRC_URI, EXTRA_OESCONS
Change-Id: Ic5af4db7bbce6ba0bf55387265fdfc95a1761230
2023-05-03 13:56:09 +02:00
Pau Espin 1778f7f9d9 osmo-{bts,pcu}: Fix systemd services to run against old systemd
Related: SYS#6340
2023-02-14 11:33:13 +01:00
Oliver Smith ec0d529df0 recipes/sysmobts/osmo-{bts,pcu}: build from tag
Build osmo-bts and osmo-pcu from the tag instead of the commit, so we
don't need to update the commit. This is how it works in
meta-telephony.git already.

Fixes: 9a554791 ("Update Osmocom recipes to latest tags (release 202302)")
Change-Id: Id55552c25dc49fee6d6b48f2b5c50b008104ba60
2023-02-13 17:38:38 +01:00
Pau Espin 3fc844e59a osmo-bts: Depend on libosmo-netif
Since osmo-bts.git a2dc808acc5b99122e97c9013cb1ec2ae0c4a2a1, osmo-bts
depends on libosmo-netif. Let's add the dependency when building.
2023-02-08 10:16:14 +01:00
Pau Espin 9a554791fe Update Osmocom recipes to latest tags (release 202302) 2023-02-08 10:14:22 +01:00
Oliver Smith b8f13e3224 git clones: ->
Related: SYS#6022
Change-Id: Icaadf455515e03c505884e8fbef8fa052189418c
2022-09-20 13:27:46 +02:00
Oliver Smith ea8cea6735 git clones: update urls
Related: SYS#6022
Change-Id: I1ebd33c26df99e288a281bd2946d6fe43a6a1c25
2022-09-16 15:31:56 +02:00
Oliver Smith 53dc1b9dfb git clones: protocol=git -> protocol=https
Related: SYS#6022
Change-Id: I3287ee8e7c688d900ee2821cb603a41a8d9067a7
2022-09-16 15:31:46 +02:00
Pau Espin accc8c4289 Update Osmocom recipes to latest tags (release 202206) 2022-06-29 13:51:42 +02:00
Pau Espin 705488de0c Move sysmocom-openvpn-config task-sysmocom-tools -> feed
Package sysmocom-openvpn-config was recently added to
task-sysmocom-tools. That task is pulled in by default into images. We
don't actually want that. Instead, we want the package to be available
in feeds, but without being installed into the image by default. Hence,
revert the recent commit and put the package in

Fixes: d8cb7e21d0
Related: SYS#5734
2022-03-15 16:19:56 +01:00
Pau Espin f9fba03b36 task-sysmocom-feed: cosmetic: Split into one pkg per line 2022-03-15 16:16:51 +01:00
Pau Espin c0ec9b62e7 Revert "sysmocom-openvpn-config: Always start but rename the config file"
This reverts commit 34d053fbe8.

It was found that this patch (from 7 years ago) breaks upgrade path and
current behavior (user manual) of the sysmocom VPN.
It is expected that the systemd service openvpn.service is disabled by
default, and that the user simply has to enable/disable it to
enable/disable the sysmocom VPN.
This affects all images deployed until today, since until recently an
old sysmocom-openvpn-config package (from around 2013) was being used
during provisioning, instead of using the one we recently made available
into the regular 201705 feeds.

Related: SYS#5734
2022-03-15 14:01:49 +01:00
Harald Welte 9b11700f57 Merge pull request 'task-sysmocom-tools: add sysmocom-openvpn-config' (#5) from osmith/201705 into 201705
Reviewed-on: #5
2022-02-09 20:16:18 +00:00
Oliver Smith d8cb7e21d0 task-sysmocom-tools: add sysmocom-openvpn-config
Fix sysmocom-openvpn-config not getting built by adding it to

Related: SYS#5734
Change-Id: I918f1ef9170f4beefb6ac07ad08678c208476559
2022-02-09 11:22:41 +01:00
Harald Welte b417110988 Revert "migrate from git:// to"
This reverts commit 8b9e304c23.

git:// doesn't have the same meaning to the bitbake fetcher than
it has to the rest of the world.
2022-01-11 12:18:35 +01:00
Harald Welte 8b9e304c23 migrate from git:// to
The unauthenticated git protocol on port 9418 is no longer supported.

Please see for more information.
2022-01-11 11:15:45 +01:00
Harald Welte 929e09d631 Merge pull request 'sysmocom-openvpn-config: drop old ip, add nobind' (#4) from osmith/201705 into 201705
Reviewed-on: #4
2021-11-30 11:56:43 +00:00
Oliver Smith 5631ba69b5 sysmocom-openvpn-config: drop old ip, add nobind
Related: SYS#5734
Change-Id: I464b88e2d18e9f5836e805bac99578429f8d0ebf
2021-11-30 11:46:05 +01:00
Pau Espin 1fbdff091b Update Osmocom recipes to latest tags (release 202111) 2021-11-17 13:03:51 +01:00
Harald Welte 42dbc46c36 Merge pull request 'ca-certificates: fix busybox error in post-upgrade' (#3) from osmith/201705 into 201705
Reviewed-on: #3
2021-11-16 16:26:45 +00:00
Oliver Smith 50145d6174 ca-certificates: fix busybox error in post-upgrade
Do not try to use "mktemp --tmpdir" in the update-ca-certificates
script. This broke upgrading, as the script gets executed during

Related: 66951d3b45
Related: SYS#5283
2021-11-16 08:43:45 +01:00
Harald Welte 2b77d822e7 ca-certificates: Fix back-port from modern OE/poky
We cannot just use the new upstream package but have to deal a bit
with package naming convention changes.

Fixes: cbc0de86f4
2021-11-05 12:17:34 +00:00
Harald Welte e862cd6912 Merge pull request 'ca-certificates: get rid of expired "DST Root CA X3"' (#2) from osmith/201705 into 201705
Reviewed-on: #2
2021-11-05 11:49:47 +00:00
Oliver Smith cbc0de86f4 ca-certificates: upgrade to 20211016
Import latest version from openembedded-core.git, which has the expired
"DST Root CA X3" removed.

Fixes: OS#5259
Related: 5b83fd9847
Related: 9c351e7a0b
2021-11-05 12:38:39 +01:00
Harald Welte dbe8d4b62e ca-certificates: Migrate from DST_X3 to ISRG_X1
Related: OS#5259
Change-Id: I8112e5ba3651ab537a87df5e92cfbc4214d54ab3
2021-11-05 12:37:22 +01:00
Oliver Smith acfacf68ae sysmocom-backup: include all of /etc/osmocom
Current list is missing osmo-sip-connector.cfg. Let's just include the
whole directory.

Fixes: SYS#5632
Change-Id: Ia2376aaa8c5aae90ce00a86fe616a913ecaf025d
2021-10-31 06:48:30 +00:00
Harald Welte 235563c6b0 task-sysmocom-feed: Add nfs-utils to make nfs client available
This allows users to install the nfs client from the package feed.

Closes: OS#5263
2021-10-14 10:13:56 +02:00
Pau Espin c75d0fe631 Introduce libosmocore_git.bbappend to fix TLS bug
Related: OS#5079
2021-04-21 14:59:17 +02:00
Pau Espin c99aa75ef8 Update Osmocom recipes to latest tags (release 202102) 2021-02-24 18:24:38 +01:00
Pau Espin Pedrol 7f34bf633c images: Introduce
This image contains a CS-only NITB with osmo-sip-connector.

Related: SYS#5326
2021-02-03 12:02:54 +01:00
Pau Espin Pedrol 70f5062cf1 task-sysmocom: Convert to tasks-sysmocom-cs to optionally include PS-domain apps
Related: SYS#5326
2021-02-02 20:22:57 +01:00
Pau Espin Pedrol 48182a62b9 task-sysmocom-legacy: Drop from feed: osmo-nitb, osmo-bsc-sccplite, osmo-bsc-nat
They are not maintained nor used anymore.
* osmo-bsc-sccplite: Use osmo-bsc from osmo-bsc.git instead.
* osmo-nitb: Use osmo-msc from osmo-msc.git instead.

Related: SYS#5247
2020-12-10 13:23:47 +01:00
Pau Espin 7d16100fd6 Update Osmocom recipes to latest tags (release 202001) 2020-01-07 13:04:36 +01:00
Daniel Willmann af88d3a232 Enable iu feature for sysmocom-bsc based machines
sysmocom-alix and sysmocom-apu2 are both based on sysmocom-bsc
Since we use those for the 3G starterkits add iu distro feature which
will install osmo-hnbgw and build osmo-msc and osmo-sgsn with iu
2019-08-16 14:55:38 +02:00
Daniel Willmann 4fe1cbe60b task-sysmocom-tools: Package osmo-config-merge by default
Related: rt#27399
2019-08-15 15:32:04 +02:00
Daniel Willmann 6d5321eefb sysmocom-alix: Change serial console to 115200 baud
This is the baud rate we always use in our devices, don't change it now.

Related: rt#27399
2019-08-13 09:20:43 +02:00
Daniel Willmann 702c59f211 oc2g: Build OC2g support for osmo-pcu 2019-08-09 12:57:47 +02:00
Daniel Willmann 75693575e6 OC2G systemd/config files are installed by autotools 2019-08-09 12:57:47 +02:00