summaryrefslogtreecommitdiff
path: root/contrib
Commit message (Collapse)AuthorAgeFilesLines
* rpm/build.sh: suggest dnf builddep after BUILDTYPE=SRPMlr/python3Lubomir Rintel2018-05-281-1/+4
| | | | Convenient for copy & paste.
* rpm: prefer python3Lubomir Rintel2018-05-281-0/+7
| | | | | | | From Fedora 28 on we can build without Python 2. That is good, because it's eventually going to be removed. Based on a change in Fedora dist-git by Iryna Shcherbina.
* contrib/rpm: use gnutls crypto library instead of NSS on rhel-8 and fedora-29Thomas Haller2018-05-242-0/+14
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=1581693
* build: qualify plugin dir name with a version stringLubomir Rintel2018-05-141-12/+14
| | | | | | | | | | | | | | | | | This makes package updates more robust, avoiding in-place replaces of the plugins. Previously, if an upgrade transaction was terminated, NetworkManager library could end up being of a different version than the plugins. If the user was unfortunate enough to connect using a connection that required a plugin (say, Wi-Fi), he would be left without a network connection making it somewhat inconvenient to recover from the botched upgrade. This makes the whole situation a little bit less sad. The VPN plugins are kept where they always have been -- the path is not qualified with a version number.
* contrib/rpm: optionally depend on iwdLubomir Rintel2018-05-141-6/+12
| | | | | | | | When built with iwd support, add an option to use iwd in place of wpa_supplicant. The "boolean dependencies" are only supported since RPM 4.13, with older versions just keep things the way they were before.
* Revert "build: qualify plugin dir name with a version string"Lubomir Rintel2018-05-111-14/+12
| | | | | | | This is broken -- looks for VPN plugins in a version-qualified path, which is wrong and break installed VPN plugins. This reverts commit 6384ad4ee16f31dd103f790bd193c4049d89a6fc.
* build: qualify plugin dir name with a version stringlr/version-dirLubomir Rintel2018-05-091-12/+14
| | | | | | | | | | | | | | This makes package updates more robust, avoiding in-place replaces of the plugins. Previously, if an upgrade transaction was terminated, NetworkManager library could end up being of a different version than the plugins. If the user was unfortunate enough to connect using a connection that required a plugin (say, Wi-Fi), he would be left without a network connection making it somewhat inconvenient to recover from the botched upgrade. This makes the whole situation a little bit less sad.
* contrib/rpm: build config-connectivity-fedora package conditionallyThomas Haller2018-04-231-0/+12
| | | | | | | | | On RHEL, we don't have NetworkManager-config-connectivity-fedora package. Hence, the spec files for RHEL differ from upstream in this regard. The aim is that contrib/rpm's spec file can be used almost as-is for RHEL, Fedora and possibly other distros. Hence, build the subpackage conditionally to minimize the difference.
* contrib/nm-live-vm: remove nm-live-vm scriptsThomas Haller2018-03-276-317/+0
| | | | | | | | | | | | | | They were not (notably) touched in more than 3 years. I doubt anybody is using them. Also, nowadays we have contrib/rpm to build NetworkManager packages for Fedora/RPM. We have copr, we have automated CI in CentOS CI and beaker. Also, nowadays it should be easy to spawn a a fedora image in a container or tools like vagrant. I think there are better alternatives. Drop the scripts.
* netlink: drop libnl3 dependencyThomas Haller2018-02-213-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | From libnl3, we only used the helper function to parse/generate netlink messages and the socket functions to send/receive messages. We don't need an external dependency to do that, it is simple enough. Drop the libnl3 dependency, and replace all missing code by directly copying it from libnl3 sources. At this point, I mostly tried to import the required bits to make it working with few modifications. Note that this increases the binary size of NetworkManager by 4736 bytes for contrib/rpm build on x86_64. In the future, we can simplify the code further. A few modifications from libnl3 are: - netlink errors NLE_* are now in the domain or regular errno. The distinction of having to bother with two kinds of error number domains was annoying. - parts of the callback handling is copied partially and unused parts are dropped. Especially, the verbose/debug handlers are not used. In following commits, the callback handling will be significantly simplified. - the complex handling of seleting ports was simplified. We now always let kernel choose the right port automatically.
* build: fix glib dependency to require at least 2.40Thomas Haller2018-02-161-1/+1
| | | | Fixes: 8a46b25cfa8c33daa8af37bb8103ca02286001b1
* rpm: update sanitizer build flagsBeniamino Galvani2018-02-151-2/+4
| | | | | | | Disable undefined sanitizer on RHEL since it's not supported. Also, enable address sanitizer only for executables, as having it enabled in libraries causes problems when applications built without asan load them.
* rpm: add requirements for sanitizer buildsBeniamino Galvani2018-02-151-0/+6
|
* contrib: add -h option to NM-logThomas Haller2018-02-121-3/+20
| | | | | | | Pass "-h" to highlight individual words. "-h" stands for "highlight". $ NM-log -h wlan0 j
* contrib/rpm: make "snapshot" for package version configurable via scriptThomas Haller2018-02-093-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.
* contrib/rpm: don't force fatal warnings with testsLubomir Rintel2018-02-081-5/+1
| | | | | It just doesn't make sense and just breaks stuff when nobody asked for it.
* contrib/rpm: build verboselyLubomir Rintel2018-02-081-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.
* all: drop trailing spacesThomas Haller2018-02-071-1/+1
|
* rpm: disable libnm-glib for Fedora 29 and RHEL 8Lubomir Rintel2018-01-161-3/+17
| | | | | While at it, move the API documentation to libnm-devel. There doesn't seem to be a better place for it.
* contrib/rpm: conditionally enable iwd Wi-Fi pluginThomas Haller2017-12-271-0/+11
|
* settings: drop unmaintained ifnet settings plugin of GentooThomas Haller2017-12-211-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.
* platform: merge nm_platform_*_delete() delete functionsThomas Haller2017-12-111-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.
* Revert "Makefile: rework team compilation flags"Thomas Haller2017-12-081-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.
* Makefile: rework team compilation flagsfg/team_abstraction_tests_and_fixes_rh1398925Francesco Giudici2017-12-081-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.
* contrib: use less in NM-log to pre-process inputThomas Haller2017-11-211-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
* contrib/rpm: fix builds without ovs supportBeniamino Galvani2017-11-021-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
* man: add OpenVSwitch overviewlr/ovsLubomir Rintel2017-10-301-1/+2
|
* device: add support for OpenVSwitch devicesLubomir Rintel2017-10-301-0/+20
|
* contrib/fedora: Add mockbuild.shMurilo Opsfelder Araujo2017-10-302-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
* dhcp: add support for dhcpcanon clientjuga02017-10-301-1/+1
| | | | https://github.com/NetworkManager/NetworkManager/pull/31
* contrib/fedora: Update required packagesMurilo Opsfelder Araujo2017-10-251-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
* contrib/rpm: explicitly set default dhcp configurationThomas Haller2017-10-121-0/+1
| | | | It will also be autodetected, but be explicit about it.
* contrib/scripts: fix coloring for platform messages in NM-log for old logsThomas Haller2017-10-031-1/+1
| | | | | | | | Older logfiles contain platform: route: adding or updating IPv4 route: 10.1.0 Hightlight that too.
* contrib/rpm: enable "NetworkManager-wait-online.service" on package upgradeThomas Haller2017-09-271-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
* contrib/scripts: update coloring for platform messages in NM-log (2)Thomas Haller2017-09-251-1/+1
| | | | Fixes: 9344013977bee9d17413a4ab18ad13a4b2244ac3
* contrib/scripts: update coloring for platform messages in NM-logThomas Haller2017-09-251-1/+1
|
* contrib/rpm: update spec file with upstream source URLThomas Haller2017-09-201-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.
* contrib/rpm: allow building RPM without fatal warningsThomas Haller2017-09-111-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.
* contrib/NM-log: don't use exec in bash functionsThomas Haller2017-09-081-2/+2
| | | | | When sourcing the file, using exec inside NM-show-journal is a bad idea, because it replaces the calling shell.
* contrib/NM-log: don't run less with --quit-on-intr argumentThomas Haller2017-09-071-1/+1
| | | | | I find it annoying when ^C exits less and it prompts me to often do `NM-log | less -R` instead.
* contrib/NM-log: colorize warnings and errors in red (fix)Thomas Haller2017-09-071-3/+3
| | | | | Must not colorize the trailing space, otherwise the following " device" will no longer match.
* contrib/NM-log: colorize warnings and errors in redThomas Haller2017-09-071-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.
* contrib/NM-log: improve script and make it sourceableThomas Haller2017-09-071-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.
* contrib/scripts: add NM-log helperThomas Haller2017-08-241-0/+52
| | | | To pretty print and colorize NetworkManager logfiles.
* contrib/rpm: skip tests for -Q build optionThomas Haller2017-07-252-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
* contrib/rpm: provide NetworkManager-develLubomir Rintel2017-07-211-2/+2
| | | | | | The package no longer exists. Fixes: 03586743f09c8c70b43025bce47d5b064bf8999f
* contrib/rpm: fix Requires/Provides on subpackagesStephen Gallagher2017-07-201-3/+3
| | | | | | | NetworkManager-wifi and NetworkManager-glib-devel should require NetworkManager, not provide it. https://bugzilla.redhat.com/show_bug.cgi?id=1454505
* service: don't install dependency for "NetworkManager-wait-online.service" ↵Thomas Haller2017-07-171-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
* contrib/rpm: allow building devel RPMs without debug enabledThomas Haller2017-05-231-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.
* contrib/rpm: add option to build package with sanitizerThomas Haller2017-05-231-4/+12
|