From: Michael Tremer Date: Wed, 1 Mar 2023 15:41:17 +0000 (+0000) Subject: networkctl: Create some scaffolding X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=840738f6baf2d3024df6ae0e9a887c5b1bef3a50;p=network.git networkctl: Create some scaffolding Signed-off-by: Michael Tremer --- diff --git a/.gitignore b/.gitignore index 9194c936..c45db754 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /config.* /libtool /missing +/networkctl /networkd /src/functions/functions /src/inetcalc diff --git a/Makefile.am b/Makefile.am index 707eabee..16400601 100644 --- a/Makefile.am +++ b/Makefile.am @@ -379,6 +379,24 @@ CLEANFILES += \ # ------------------------------------------------------------------------------ +bin_PROGRAMS += \ + networkctl + +dist_networkctl_SOURCES = \ + src/networkctl/main.c + +networkctl_CFLAGS = \ + $(AM_CFLAGS) \ + $(SYSTEMD_CFLAGS) + +networkctl_LDFLAGS = \ + $(AM_LDFLAGS) + +networkctl_LDADD = \ + $(SYSTEMD_LIBS) + +# ------------------------------------------------------------------------------ + util_PROGRAMS = \ src/utils/network-phy-list-channels \ src/utils/network-phy-list-ciphers \ @@ -622,6 +640,7 @@ substitutions = \ '|builddir=$(abs_builddir)|' \ '|prefix=$(prefix)|' \ '|exec_prefix=$(exec_prefix)|' \ + '|bindir=$(bindir)|' \ '|sbindir=$(sbindir)|' \ '|networkdir=$(networkdir)|' \ '|helpersdir=$(helpersdir)|' \ diff --git a/src/networkctl/main.c b/src/networkctl/main.c new file mode 100644 index 00000000..14aafdd3 --- /dev/null +++ b/src/networkctl/main.c @@ -0,0 +1,23 @@ +/*############################################################################# +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2023 IPFire Network Development Team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +#############################################################################*/ + +int main(int argc, char** argv) { + return 0; +}