Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an initial networkmanager port #369

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions bootstrap.d/dev-libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1700,6 +1700,52 @@ packages:
DESTDIR: '@THIS_COLLECT_DIR@'
quiet: true

- name: newt
architecture: '@OPTION:arch@'
metadata:
summary: Redhat's Newt windowing toolkit development files
description: Newt is a programming library for color text mode, widget based user interfaces. It can be used to add stacked windows, entry widgets, checkboxes, radio buttons, labels, plain text fields, scrollbars, etc., to text mode user interfaces. Newt is based on the S-Lang library.
spdx: 'LGPL-2.0-only'
website: 'https://pagure.io/newt'
maintainer: 'Dennis Bonke <[email protected]>'
categories: ['dev-libs']
source:
subdir: ports
git: 'https://github.com/mlichvar/newt.git'
tag: 'r0-52-24'
version: '0.52.24'
tools_required:
- host-autoconf-v2.69
- host-automake-v1.15
- host-libtool
- host-pkg-config
regenerate:
- args: |
sed -e '/install -m 644 $(LIBNEWT)/ s/^/#/' -e '/$(LIBNEWT):/,/rv/ s/^/#/' -e 's/$(LIBNEWT)/$(LIBNEWTSH)/g' -i @THIS_SOURCE_DIR@/Makefile.in
- args: ['autoreconf', '-fvi']
tools_required:
- system-gcc
pkgs_required:
- mlibc
- popt
- slang
- libintl
revision: 1
configure:
# newt does not seem to support out-of-tree builds, so we just copy
# the source tree into the build directory instead
- args: ['cp', '-r', '@THIS_SOURCE_DIR@/.', '@THIS_BUILD_DIR@']
- args:
- './configure'
- '--host=@OPTION:arch-triple@'
- '--prefix=/usr'
- '--without-gpm-support'
build:
- args: ['make', '-j@PARALLELISM@']
- args: ['make', 'install']
environ:
DESTDIR: '@THIS_COLLECT_DIR@'

- name: nspr
architecture: '@OPTION:arch@'
metadata:
Expand Down
42 changes: 42 additions & 0 deletions bootstrap.d/net-libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,48 @@ packages:
environ:
DESTDIR: '@THIS_COLLECT_DIR@'

- name: libndp
architecture: '@OPTION:arch@'
metadata:
summary: Library for Neighbor Discovery Protocol
description: This package provides a wrapper for IPv6 Neighbor Discovery Protocol. It also provides a tool named ndptool for sending and receiving NDP messages.
spdx: 'LGPL-2.1-or-later'
website: 'http://libndp.org/'
maintainer: 'Dennis Bonke <[email protected]>'
categories: ['net-libs']
source:
subdir: ports
git: 'https://github.com/jpirko/libndp.git'
tag: 'v1.8'
version: '1.8'
tools_required:
- host-autoconf-v2.69
- host-automake-v1.15
- host-libtool
- host-pkg-config
regenerate:
- args: ['./autogen.sh']
tools_required:
- system-gcc
pkgs_required:
- mlibc
revision: 1
configure:
- args:
- '@THIS_SOURCE_DIR@/configure'
- '--host=@OPTION:arch-triple@'
- '--prefix=/usr'
- '--sysconfdir=/etc'
- '--localstatedir=/var'
- '--disable-static'
environ:
ac_cv_func_malloc_0_nonnull: 'yes'
build:
- args: ['make', '-j@PARALLELISM@']
- args: ['make', 'install']
environ:
DESTDIR: '@THIS_COLLECT_DIR@'

- name: libpsl
architecture: '@OPTION:arch@'
metadata:
Expand Down
91 changes: 91 additions & 0 deletions bootstrap.d/net-misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,97 @@ packages:
- args: ['cp', '@THIS_BUILD_DIR@/services', '@THIS_COLLECT_DIR@/etc/']
- args: ['cp', '@THIS_BUILD_DIR@/protocols', '@THIS_COLLECT_DIR@/etc/']

- name: networkmanager
architecture: '@OPTION:arch@'
metadata:
summary: A set of co-operative tools that make networking simple and straightforward
description: NetworkManager is a set of co-operative tools that make networking simple and straightforward. Whether you use WiFi, wired, 3G, or Bluetooth, NetworkManager allows you to quickly move from one network to another. Once a network has been configured and joined once, it can be detected and re-joined automatically the next time it's available.
spdx: 'GPL-2.0-or-later LGPL-2.1-or-later'
website: 'https://wiki.gnome.org/Projects/NetworkManager'
maintainer: 'Dennis Bonke <[email protected]>'
categories: ['net-misc']
source:
subdir: 'ports'
git: 'https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git'
tag: '1.48.0'
version: '1.48.0'
tools_required:
- host-pkg-config
- system-gcc
- virtual: pkgconfig-for-target
triple: "@OPTION:arch-triple@"
pkgs_required:
- mlibc
- libndp
- curl
- dhcpcd
- glib
- libpsl
- newt
- nss
- readline
revision: 1
configure:
- args:
- 'meson'
- 'setup'
- '--native-file'
- '@SOURCE_ROOT@/scripts/meson.native-file'
- '--cross-file'
- '@SOURCE_ROOT@/scripts/meson-@OPTION:[email protected]'
- '--prefix=/usr'
- '--libdir=lib'
- '--buildtype=debugoptimized'
- '-Dlibaudit=no'
- '-Dnmtui=true'
- '-Dovs=false'
- '-Dppp=false'
- '-Dselinux=false'
- '-Dsession_tracking=no'
- '-Dmodem_manager=false' # Needs mobile-broadband-provider-info
- '-Dsystemdsystemunitdir=no'
- '-Dsystemd_journal=false'
- '-Dqt=false'
- '-Dpolkit=false'
- '-Debpf=false'
- '-Dintrospection=false'
- '-Dvapi=false'
- '-Dsystem_ca_path=/etc/ssl/certs'
- '-Ddbus_conf_dir=/usr/share/dbus-1/system.d'
- '-Dmodify_system=true'
- '-Dconfig_plugins_default=keyfile'
- '-Difcfg_rh=false'
- '-Difupdown=false'
- '-Dconfig_dhcp_default=dhcpcd'
- '-Dcrypto=nss'
- '-Dreadline=libreadline'
- '-Dteamdctl=false'
- '-Dtests=no'
- '@THIS_SOURCE_DIR@'
build:
- args: ['ninja']
- args: ['ninja', 'install']
environ:
DESTDIR: '@THIS_COLLECT_DIR@'
- args: ['mkdir', '-pv', '@THIS_COLLECT_DIR@/etc/NetworkManager/conf.d']
- args: ['cp', '@SOURCE_ROOT@/extrafiles/networkmanager/NetworkManager.conf', '@THIS_COLLECT_DIR@/etc/NetworkManager/']
- args: ['cp', '@SOURCE_ROOT@/extrafiles/networkmanager/no-dns-update.conf', '@THIS_COLLECT_DIR@/etc/NetworkManager/conf.d/']
- args: ['cp', '@SOURCE_ROOT@/extrafiles/networkmanager/dhcp.conf', '@THIS_COLLECT_DIR@/etc/NetworkManager/conf.d/']
- args: ['touch', '@THIS_COLLECT_DIR@/usr/lib/NetworkManager/dispatcher.d/pre-down.d/.keep']
- args: ['touch', '@THIS_COLLECT_DIR@/usr/lib/NetworkManager/dispatcher.d/no-wait.d/.keep']
- args: ['touch', '@THIS_COLLECT_DIR@/usr/lib/NetworkManager/dispatcher.d/pre-up.d/.keep']
- args: ['touch', '@THIS_COLLECT_DIR@/usr/lib/NetworkManager/system-connections/.keep']
- args: ['touch', '@THIS_COLLECT_DIR@/usr/lib/NetworkManager/dispatcher.d/.keep']
- args: ['touch', '@THIS_COLLECT_DIR@/usr/lib/NetworkManager/conf.d/.keep']
- args: ['touch', '@THIS_COLLECT_DIR@/usr/lib/NetworkManager/VPN/.keep']
- args: ['touch', '@THIS_COLLECT_DIR@/etc/NetworkManager/dispatcher.d/pre-down.d/.keep']
- args: ['touch', '@THIS_COLLECT_DIR@/etc/NetworkManager/dispatcher.d/no-wait.d/.keep']
- args: ['touch', '@THIS_COLLECT_DIR@/etc/NetworkManager/dispatcher.d/pre-up.d/.keep']
- args: ['touch', '@THIS_COLLECT_DIR@/etc/NetworkManager/system-connections/.keep']
- args: ['touch', '@THIS_COLLECT_DIR@/etc/NetworkManager/dnsmasq.d/.keep']
- args: ['touch', '@THIS_COLLECT_DIR@/etc/NetworkManager/dnsmasq-shared.d/.keep']
- args: ['touch', '@THIS_COLLECT_DIR@/var/lib/NetworkManager/.keep']

- name: rsync
architecture: '@OPTION:arch@'
source:
Expand Down
43 changes: 43 additions & 0 deletions bootstrap.d/sys-libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,49 @@ packages:
- args: ['patchelf', '--set-soname', 'libreadline.so.8', '@THIS_COLLECT_DIR@/usr/lib/libreadline.so.8']
- args: ['patchelf', '--set-soname', 'libhistory.so.8', '@THIS_COLLECT_DIR@/usr/lib/libhistory.so.8']

- name: slang
architecture: '@OPTION:arch@'
metadata:
summary: Multi-platform library designed to allow a developer to create robust software
description: S-Lang (slang) is an interpreted language that may be embedded into an application to make the application extensible. It provides facilities required by interactive applications such as display/screen management, keyboard input and keymaps.
spdx: 'CJK'
website: 'https://www.jedsoft.org/slang/'
maintainer: 'Dennis Bonke <[email protected]>'
categories: ['sys-libs']
source:
subdir: ports
git: 'git://git.jedsoft.org/git/slang.git'
tag: 'v2.2.3'
version: '2.2.3'
tools_required:
- host-automake-v1.16
regenerate:
- args: ['cp',
'@BUILD_ROOT@/tools/host-automake-v1.16/share/automake-1.16/config.sub',
'@THIS_SOURCE_DIR@/autoconf/']
tools_required:
- system-gcc
pkgs_required:
- mlibc
- libpng
- readline
revision: 1
configure:
# slang does not seem to support out-of-tree builds, so we just copy
# the source tree into the build directory instead
- args: ['cp', '-r', '@THIS_SOURCE_DIR@/.', '@THIS_BUILD_DIR@']
- args:
- './configure'
- '--host=@OPTION:arch-triple@'
- '--prefix=/usr'
- '--sysconfdir=/etc'
- '--with-readline=gnu'
build:
- args: ['make', '-j1']
- args: ['make', 'install_doc_dir=@THIS_COLLECT_DIR@/usr/share/doc/slang-2.3.3', 'SLSH_DOC_DIR=@THIS_COLLECT_DIR@/usr/share/doc/slang-2.3.3/slsh', 'install']
environ:
DESTDIR: '@THIS_COLLECT_DIR@'

- name : tzdata
labels: [aarch64]
architecture: noarch
Expand Down
2 changes: 2 additions & 0 deletions extrafiles/networkmanager/NetworkManager.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[main]
plugins=keyfile
2 changes: 2 additions & 0 deletions extrafiles/networkmanager/dhcp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[main]
dhcp=dhcpcd
2 changes: 2 additions & 0 deletions extrafiles/networkmanager/no-dns-update.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[main]
dns=none
Loading
Loading