Commit Graph

31 Commits

Author SHA1 Message Date
Harald Welte 7382eb343a Depend on libosmo-simtrace >= 0.8.0
Change-Id: I60ae1e097c4182d948ed807ee4ca37f91d32cfae
2021-12-09 08:18:46 +01:00
Harald Welte 507070dcb4 increase required libosmocore version
osmo-remsim depends on a variety of modern libosmocore features,
and now that libosmocore 1.6.0 has been tagged, we can finally depend
on a more recent minimum version.

Change-Id: Ic3cb86b5be524f15d118bcb7ec1947608fbbb034
2021-12-09 08:01:05 +01:00
Oliver Smith 694e3b5782 contrib/osmo-remsim.spec.in: fix build on opensuse
It was not enough to verify that the rpm builds on centos.

Set --docdir to install examples to /usr/share/doc/packages instead of
/usr/share/doc in opensuse. Fix for:
  File not found: .../usr/share/doc/packages/osmo-remsim/examples/bankd_pcsc_slots.csv

Add missing %dir statements to fix:
  osmo-remsim-bankd-0.2.2.113.f2a1.202106230026-lp151.1.1.x86_64.rpm: directories not owned by a package:
   - /etc/osmocom
   - /usr/share/doc/packages/osmo-remsim
   - /usr/share/doc/packages/osmo-remsim/examples

Fixes: 905bc4d2 ("doc/examples: install bankd_pcsc_slots.csv")
Change-Id: Ie5bbb25f8aa87edcea8b952d3c29aab29ac31b19
2021-06-23 12:49:31 +02:00
Oliver Smith 588ec1a619 distro packaging: fix missing path for example
The boilerplate code for installing configs used in other Osmocom
projects doesn't only install the example configs to /etc/osmocom, but
also to /usr/share/doc/. Add the missing path.

Fixes: 905bc4d2 ("doc/examples: install bankd_pcsc_slots.csv")
Change-Id: I95e4aa34d54bb485ff7ebb5e44d9c1db92ad8fe0
2021-06-23 11:36:51 +02:00
Oliver Smith 905bc4d2b1 doc/examples: install bankd_pcsc_slots.csv
Related: SYS#5187
Change-Id: Iba0b98729ae2a830e05d1b337b33259dcae25d15
2021-06-22 17:27:55 +02:00
Oliver Smith debcd86e40 etc_default: change bankd, client ip to 127.0.0.1
Related: OS#5187
Change-Id: I8dffe950b0f041a231708521d11b027bfbd304e3
2021-06-22 17:06:27 +02:00
Oliver Smith fadaeec795 contrib/jenkins: don't build osmo-gsm-manuals
Related: OS#4912
Change-Id: Ic4f26705854a0987aa72a9064a5278b01b4d078d
# ---
2021-01-13 13:17:08 +01:00
Harald Welte b80fcf0bd7 *.spec.in: Use %config(noreplace) to retain current config file
Change-Id: I4bf84faef873ef18797d08bbf789ae260922a1e2
2020-06-22 15:21:58 +02:00
Harald Welte eea6135f61 contrib/owhw-event-script.sh: Update to working version for OWHWv5
Change-Id: I347dc9d3a7a7e762323fff5bf252c27e169ba271
2020-05-25 19:17:51 +02:00
Oliver Smith 54797c44ec contrib: integrate RPM spec
Remove OpenSUSE bug report link, set version to @VERSION@, make it build
with CentOS 8 etc.

Related: OS#4550
Change-Id: Ib2da03980d99f12ab36ca5d5fdde92ddbefb040b
2020-05-22 14:13:18 +02:00
Oliver Smith 81022c859d contrib: import RPM spec
Copy the RPM spec file from:
https://build.opensuse.org/project/show/home:mnhauke:osmocom:nightly

Related: OS#4550
Change-Id: I51eaae80a9bf198247d2812d65ab5ea64a8fca14
2020-05-14 11:51:40 +02:00
Joachim Steiger 6c573ee6d5 fix config defaults for systemd startscripts
Change-Id: I7f38c951cc515db61a857221346bc4309f2b4740
2020-03-05 22:10:57 +01:00
Harald Welte 753d2b585a contrib/jenkins.sh: Harmonize with what we do in other projects
most importantly:
* conditional build of manuals
* enforce build of manuals if enabled
* publish manuals, if requested

Change-Id: I4ed51fd5aa9d861ea4795e33b6201c15b2281b53
2020-03-04 19:15:32 +01:00
Harald Welte e10022df38 Install config files to /etc/default/
Related: OS#4326
Change-Id: Ibff534c2f247557bb4eb0f72b8babe85ad0b315b
2020-03-04 18:18:14 +01:00
Harald Welte 75b8eb3bcc configure.ac + debian: Add systemd service file support
Closes: OS#4326
Change-Id: I0d7b6562c1127f005ddbd47298c03942ac3d241d
2020-03-04 18:18:14 +01:00
Harald Welte de80eb3988 configure/Makefile: Include contrib in "make dist"
Change-Id: I2d6a2e06f075391e8e51d1342a1afe955cc127b0
2020-03-04 18:18:14 +01:00
Harald Welte 2637f4da22 contrib: Add owhw-event-script.sh for osmo-remsim-client
This is a sample event-script that can be used in conjunction
with osmo-resim-client to trigger certain board-specific functions
such as modem reset on the OWHW.

Change-Id: I69f7f9b0c09421b8c14b909627ffe7b9f1acec77
2020-03-03 22:59:10 +01:00
Harald Welte 8c1ca1bb87 jenkins.sh: don't verify (possibly outdated) deps
When we call a script for verification of our source code, let'sn
not check the (old, previous) code from the ./deps directory, too.

We should either only verify our own code (solution implemented here)
or alternatively verify only after we updated all dependencies to the
latest stage.

Change-Id: I20e6a3b7b4109b99c91a4921285cacb168c5796b
2019-12-17 13:31:20 +01:00
Harald Welte fd5dafc2a2 remsim-client: Port from local copy to libosmousb + libosmo-simtrace2
We originally imported a copy of [most of] the code of
simtrace2.git/host into this repository.  That was a quick hack to get
things going, but now that simtrace2.git is providing a shared library
of simtrace2 utility functions, let's migrate over to it.

At the same time, some functions (libusb_util) have been migrated to
libosmousb (a new library in libosmocore.git), so we must add that
as new dependency, too.

This performs the minimally required changes and is *not* a proper
port to the libosmousb osmocore select loop integration, whcih will
follow in a separate patch.

Change-Id: Idf5a861f4dacbec3c664f4ced6e03d8662c73112
Closes: OS#4298
Related: OS#4299
Depends: libosmocore.git I656a1a38cbb5b1f3a9145d2869d3b4d0adefcae3
2019-12-17 11:56:21 +01:00
Kevin Redon 3119c2eb1f remsim-apitool.py: pass IDs as integer
currently the bankId, clientId, and slotNr are passed as strings.
this is not the format expected by the server, which returns 400
"Bad Request".
the issue was that the python tool did not parse the arguments as
integer.

Change-Id: I8baab1b516067f47a7d230213e44d8f85e6d9919
2019-09-17 11:37:39 +02:00
Harald Welte fc0fff1880 remsim-apitool: Fix slotmap-create (integer needed, not string!)
Change-Id: If3237de7cf08be49645dfac2e3f7173d43a47e53
2019-09-12 19:59:29 +02:00
Joachim Steiger a008e62523 add contrib/remsim-apitool.py to control the REST-interface of osmo-remsim-server
Change-Id: Ia01b0a89e21af18b898becd8f5440c32936772b7
2019-07-30 11:39:15 +02:00
Oliver Smith fed6d1591e contrib/jenkins.sh: run "make maintainer-clean"
Related: OS#3047
Change-Id: I619499ce68c8e0ddef597021329d9bfd4d2f1a77
2019-07-10 13:23:49 +02:00
Joachim Steiger 68f95100bf add examples to the command line options for remsim-bankd and remsim-client
Change-Id: Idfa6352ce90dd36dd27306d6c8a2023935ed822d
2019-07-09 16:55:17 +02:00
Joachim Steiger 293c114629 osmo-remsim-client: add systemd service script template and etc/default configs
Change-Id: I243f3d8e090d49ca3a1d0a8cf568750b76273c03
2019-06-13 09:37:18 +00:00
Joachim Steiger 6d8ad47644 osmo-remsim-bankd: add systemd service script and etc/default config
Change-Id: Iefa6e65c7a03b232a124758cf8890b660abf6885
2019-05-28 18:27:09 +02:00
Joachim Steiger 07e0db317e osmo-remsim-server: add systemd service script
Change-Id: I310a78b49a8a17e4f954179553ed2a3376e3bd50
2019-05-28 17:01:25 +02:00
Harald Welte 61df6c309c contrib/jenkins.sh: Fix project name printed during build
Change-Id: I3189ff095559e630fcf1d995fb36b330bceda526
2018-10-15 01:52:20 +02:00
Harald Welte 72f702c243 contrib/jenkins.sh: Ensure PKG_CONFIG_PATH is set before build
... otherwise, there will be trouble finding the 'stow' libraries we
build.

Change-Id: I3ab09c8d35b7835ffbbd1e4bfdd0570a756b43df
2018-10-15 01:52:20 +02:00
Harald Welte 80a83cc166 contrib/jenkins.sh: Harmonize with other projects
In other projects, only libosmocore is called with '""
--disable-doxygen' arguments, no other libraries.

Change-Id: I85ee61fec9c10b283734105eaecd1b8422fbb8a7
2018-10-15 01:48:48 +02:00
Harald Welte c7b5c7aaf2 Add contrib/jenkins.sh for build verification
Change-Id: I09a020966c3903673626e6d6bbe097d4ba69774b
2018-10-14 20:49:25 +02:00