summaryrefslogtreecommitdiff
path: root/contrib
AgeCommit message (Collapse)AuthorFilesLines
2018-02-12contrib: add -h option to NM-logThomas Haller1-3/+20
Pass "-h" to highlight individual words. "-h" stands for "highlight". $ NM-log -h wlan0 j
2018-02-09contrib/rpm: make "snapshot" for package version configurable via scriptThomas Haller3-12/+22
Will be used by CI trigger to name packages that are build during testing of a github pull request with the corresponding pull request ID. "build_clean.sh" now supports a command line option -s|--snapshot. But the same paramter can also be set via $NM_BUILD_SNAPSHOT environment variable. Using the environment variable is useful to support older versions and new versions of "build_clean.sh", so that the script can just ignore the snapshot setting if it doesn't understand it yet.
2018-02-08contrib/rpm: don't force fatal warnings with testsLubomir Rintel1-5/+1
It just doesn't make sense and just breaks stuff when nobody asked for it.
2018-02-08contrib/rpm: build verboselyLubomir Rintel1-0/+1
The RPM build should be not use silent output -- it better be possible to check whether the correct compiler flags were present at the build time.
2018-02-07all: drop trailing spacesThomas Haller1-1/+1
2018-01-16rpm: disable libnm-glib for Fedora 29 and RHEL 8Lubomir Rintel1-3/+17
While at it, move the API documentation to libnm-devel. There doesn't seem to be a better place for it.
2017-12-27contrib/rpm: conditionally enable iwd Wi-Fi pluginThomas Haller1-0/+11
2017-12-21settings: drop unmaintained ifnet settings plugin of GentooThomas Haller1-1/+0
Even Gentoo disables this plugin since before 0.9.8 release of NetworkManager. Time to say goodbye. If somebody happens to show up to maintain it, we may resurrect it later. If "$distro_plugins=ifnet" was set, configure.ac would use that to autodetect --with-hostname-persist=gentoo. Replace that autodetect part by checking for /etc/gentoo-release file.
2017-12-11platform: merge nm_platform_*_delete() delete functionsThomas Haller1-1/+1
It only makes sense to call delete() with NMPObjects that we obtained from the platform cache. Otherwise, if we didn't get it from the cache in the first place, we wouldn't know what to delete. Hence, the input argument is (almost) always an NMPObject in the first place. That is different from add(), where we might create a new specific NMPlatform* instance on the stack. For add() it makes slightly more sense to have different functions depending on the type. For delete(), it doesn't.
2017-12-08Revert "Makefile: rework team compilation flags"Thomas Haller1-3/+4
I don't think we should do this. - renamining/dropping configure options is still an annoyance, because it requires to different ./configure options depending on the version. The rename from --enable-teamctl to --enable-team might be theoretically nice, but more annoying then helpful. - There is no strict dependency between --enable-team and --enable-json-validation. At most, one could argue that when enabling the team plugin (--enable-teamctl), then libnm must also be build with --enable-json-validation. But in fact, the team plugin will happily work with a libnm that doesn't link against libjansson. That is --enable-teamctl --disable-json-validation will work in practice just fine. On the other hand, libnm is a client library to create connection profiles, fully supporting team profiles also makes sense if the actual plugin is not installed (or build). Thus, --disable-teamctl --enable-json-validation certainly makes sense. At this point, one might ask whether libnm is even still complete without libjansson. Maybe libnm should *require* --enable-json-validation. But that is not what the patch was doing, and it would also need some careful consideration before doing so. This reverts commit 9d5cd7eae8edc8c558d26f04ffd163effafe57f9.
2017-12-08Makefile: rework team compilation flagsFrancesco Giudici1-4/+3
Rename the team functionality enablement from 'teamdctl' to 'team'. Force jansson lib requirement for team functionality: NetworkManager requires the teamd daemon to manage team. As teamd depends upon jansson lib, adding jansson requirement for teaming support in NetworkManager seems reasonable. Remove the jansson_validation flag, as the only generic json function in nmcli (not related to team) was the one to check if a string was in json format. Anyway, that function is used for team checks only. So, move also json validation functions under the WITH_TEAM flag.
2017-11-21contrib: use less in NM-log to pre-process inputThomas Haller1-2/+2
GNU less supports filters. That makes it nice to use instead of cat. Also, less is well suited for output to a pipe. With this, `NM-log nm-log.txt.gz` works as you would expect
2017-11-02contrib/rpm: fix builds without ovs supportBeniamino Galvani1-0/+5
Don't compile ovs support when the RPM is built --without=ovs, to fix the following error: error: Installed (but unpackaged) file(s) found: /usr/lib/systemd/system/NetworkManager.service.d/NetworkManager-ovs.conf /usr/lib64/NetworkManager/libnm-device-plugin-ovs.so /usr/share/man/man7/nm-openvswitch.7.gz Fixes: 830a5a14cb29ca00b73a9623c1ea7c5cd92f4d00
2017-10-30man: add OpenVSwitch overviewLubomir Rintel1-1/+2
2017-10-30device: add support for OpenVSwitch devicesLubomir Rintel1-0/+20
2017-10-30contrib/fedora: Add mockbuild.shMurilo Opsfelder Araujo2-0/+24
This script comes handy to build from git tree without having to install build dependencies on the system, the actual build happens inside mock environment. https://github.com/NetworkManager/NetworkManager/pull/34
2017-10-30dhcp: add support for dhcpcanon clientjuga01-1/+1
https://github.com/NetworkManager/NetworkManager/pull/31
2017-10-25contrib/fedora: Update required packagesMurilo Opsfelder Araujo1-0/+2
Add dhclient and iptables packages to build dependencies to satisfy rpmbuild complaints: ``` error: Failed build dependencies: dhclient is needed by NetworkManager-1:1.9.2-18653.43dba57439.fc28.x86_64 iptables is needed by NetworkManager-1:1.9.2-18653.43dba57439.fc28.x86_64 ERROR: rpmbuild FAILED ``` https://github.com/NetworkManager/NetworkManager/pull/33
2017-10-12contrib/rpm: explicitly set default dhcp configurationThomas Haller1-0/+1
It will also be autodetected, but be explicit about it.
2017-10-03contrib/scripts: fix coloring for platform messages in NM-log for old logsThomas Haller1-1/+1
Older logfiles contain platform: route: adding or updating IPv4 route: 10.1.0 Hightlight that too.
2017-09-27contrib/rpm: enable "NetworkManager-wait-online.service" on package upgradeThomas Haller1-0/+10
Since commit d61eaf2545c819cab17c29c4c13a3a3bd94b38a6 ("service: don't install dependency for "NetworkManager-wait-online.service" to "network-online.target.wants") we no longer install NM-w-o.service in "network-online.target.wants" directory. Obviously, for previous RPM versions NM-w-o.service was always enabled. For current versions, it depends now on the preset. Most importantly, this allows the user to disable the service, without masking it. Previously NM-w-o.service was always implicitly enabled. But presets are not applied during package upgrade, so it means that after upgrade the service will be disabled. Hack around that via an RPM scriptlet. https://bugzilla.redhat.com/show_bug.cgi?id=1455704
2017-09-25contrib/scripts: update coloring for platform messages in NM-log (2)Thomas Haller1-1/+1
Fixes: 9344013977bee9d17413a4ab18ad13a4b2244ac3
2017-09-25contrib/scripts: update coloring for platform messages in NM-logThomas Haller1-1/+1
2017-09-20contrib/rpm: update spec file with upstream source URLThomas Haller1-0/+3
This isn't useful for contrib/fedora/rpm itself because here the __SOURCE__ gets set by the build scripts. But this spec file is copied to Fedora downstream where the SOURCE URL is used.
2017-09-11contrib/rpm: allow building RPM without fatal warningsThomas Haller1-0/+4
A newer compiler version might emit some warnings and break the build of the RPM. Of course, such warnings must be fixed. But it is still very inconvenient to break the build of an old RPM version without easy workaround. When building without "test" (which is on by default), don't use fatal warnings for compilation.
2017-09-08contrib/NM-log: don't use exec in bash functionsThomas Haller1-2/+2
When sourcing the file, using exec inside NM-show-journal is a bad idea, because it replaces the calling shell.
2017-09-07contrib/NM-log: don't run less with --quit-on-intr argumentThomas Haller1-1/+1
I find it annoying when ^C exits less and it prompts me to often do `NM-log | less -R` instead.
2017-09-07contrib/NM-log: colorize warnings and errors in red (fix)Thomas Haller1-3/+3
Must not colorize the trailing space, otherwise the following " device" will no longer match.
2017-09-07contrib/NM-log: colorize warnings and errors in redThomas Haller1-1/+3
- remove "\r\n" line endings - colorize <warn> and <error> in red - extend matching the info levels to include the timestamp. This (intentionally) will no longer highlight messages from ModemManager, which don't include a timestamp.
2017-09-07contrib/NM-log: improve script and make it sourceableThomas Haller1-22/+36
- use "grep -a" so that grep doesn't refuse to work in binary input. - make the script source-able to only define the NM-colorize and NM-show-journal - In case the script is sourced, it also defines a NM-log function, which does the same as the script itself. - rename internal functions so that they have names starting with "NM" in case of sourcing.
2017-08-24contrib/scripts: add NM-log helperThomas Haller1-0/+52
To pretty print and colorize NetworkManager logfiles.
2017-07-25contrib/rpm: skip tests for -Q build optionThomas Haller2-2/+8
Previously, the --quick option only mattered when creating the source tarball, to run `make dist` instead of the slower `make distcheck`. Extend its meaning to also skip unit tests while building the RPM. You still can enable them with $ ./contrib/fedora/rpm/build_clean.sh -Q -w test
2017-07-21contrib/rpm: provide NetworkManager-develLubomir Rintel1-2/+2
The package no longer exists. Fixes: 03586743f09c8c70b43025bce47d5b064bf8999f
2017-07-20contrib/rpm: fix Requires/Provides on subpackagesStephen Gallagher1-3/+3
NetworkManager-wifi and NetworkManager-glib-devel should require NetworkManager, not provide it. https://bugzilla.redhat.com/show_bug.cgi?id=1454505
2017-07-17service: don't install dependency for "NetworkManager-wait-online.service" ↵Thomas Haller1-2/+0
to "network-online.target.wants" If we install "NetworkManager-wait-online.service" in the "network-online.target.wants" directory, network-online.target always pulls in NetworkManager-wait-online.service. As it was, it could only be disabled by masking the service. Instead, we should enable NetworkManager-wait-online.sevice via systemd's preset. That is already done for Fedora 26 and newer. Note that NetworkManager-wait-online.sevice already has Install.WantedBy. This way, the dependency is created automatically when enabling the service. https://bugzilla.redhat.com/show_bug.cgi?id=1455704
2017-05-23contrib/rpm: allow building devel RPMs without debug enabledThomas Haller1-1/+10
Since commit 1afbf948a0825300ce395adc5706e1ffdca94d24, "build: use different defaults for snapshot builds", configure would enable debugging options if the version number is odd. Hence, on the master branch it was no longer possible to build an RPM without debugging enabled. Especially, ./contrib/fedora/rpm/build_clean.sh -g -W debug would not work as one would expect.
2017-05-23contrib/rpm: add option to build package with sanitizerThomas Haller1-4/+12
2017-05-18contrib/rpm: drop explicit dependency on libnl3 packageThomas Haller1-1/+0
We already get a library dependency on libnl-3.so.200()(64bit) libnl-3.so.200(libnl_3)(64bit) Drop the explicit package dependency, leaving only the BuildRequires. Also, all recent versions of libnl3 implement library versioning.
2017-05-15contrib: update fedora's REQUIRED_PACKAGES listThomas Haller1-25/+26
2017-05-10contrib/rpm: fix specifying build with/without libpslThomas Haller1-2/+2
Fixes: faad17f9e8e804e89ffd5a779ed22871a77755e0
2017-05-10contrib/rpm: reorder variables in spec fileThomas Haller1-4/+3
2017-04-05travis: don't check for setting-docs.c fileThomas Haller1-0/+4
Fixes: b3e2808c322c7fcccf16e81baf258febe688c29e
2017-03-24build: configure explicit paths for dist tarball during "build_clean.sh"Thomas Haller1-0/+16
"build_clean.sh" is used to generate a distribution tarball. The tarball contains pregenerated man pages with default values for paths, which in turn depend on the configure options when creating the tarball. Previously, the man page would have paths like "usr/local/etc/NetworkManager/...", which doesn't seem the best choice for a default man page. Explicitly set the installation paths. Also, --disable-dependency-tracking in this mode. It may speed up the build.
2017-03-22contrib/rpm: enable libpsl on Fedora onlyLubomir Rintel1-0/+7
2017-03-22udev: drop libgudev in favor of libudevThomas Haller3-3/+1
libgudev is just a wrapper around libudev. We can use libudev directly and drop the dependency for libgudev.
2017-03-22connectivity: switch connectivity checking to libcurlFrancesco Giudici2-2/+2
[lkundrak@v3.sk: removed libsoup altogether, implemented TODOs and fixed the poll condition handling] Co-authored-by: Lubomir Rintel <lkundrak@v3.sk>
2017-03-22dns-manager: use libpsl directlyLubomir Rintel2-0/+2
...instead of via libsoup. This makes it possible to do gTLD suffix checking even if we're building without libsoup support.
2017-03-06contrib/rpm: reorder spec file and move bcond definitions togetherThomas Haller1-9/+8
2017-03-06contrib/rpm: remove unused default_with_* variablesThomas Haller1-19/+0
They are unused since commit d2fd1b9fb7ef73f3bdeb5c68f1e382c1244a5012.
2017-03-06contrib/rpm: add explicit libxslt build dependencyThomas Haller1-0/+2
We configurably use --enable-gtk-doc/--disable-gtk-doc, but we always require --enable-introspection (due to --enable-vala). Add the missing build requirement to the "xsltproc" binary, which is in libxslt package.