]> git.ipfire.org Git - network.git/commitdiff
networkctl: Create some scaffolding
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Mar 2023 15:41:17 +0000 (15:41 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 1 Mar 2023 15:41:17 +0000 (15:41 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
.gitignore
Makefile.am
src/networkctl/main.c [new file with mode: 0644]

index 9194c93693c4f7689a647c4ae085a1e9feeb5740..c45db754c1f0bb194ae848ffd7ae8849f975b8eb 100644 (file)
@@ -3,6 +3,7 @@
 /config.*
 /libtool
 /missing
+/networkctl
 /networkd
 /src/functions/functions
 /src/inetcalc
index 707eabeed4ffd0d3e3eaf6b70c1bd59c218b0bde..16400601b634eb2d73503c010c14338547ad772c 100644 (file)
@@ -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 (file)
index 0000000..14aafdd
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+#############################################################################*/
+
+int main(int argc, char** argv) {
+       return 0;
+}