]> git.ipfire.org Git - telemetry.git/commitdiff
daemon: Create scaffolding
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 27 Sep 2025 10:45:56 +0000 (10:45 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 27 Sep 2025 10:45:56 +0000 (10:45 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
.gitignore
Makefile.am
src/daemon/main.c [new file with mode: 0644]

index 25d1187824d7bc395d1823f13e2f730dc2fe8f93..f6a2aa4ad6b8a9ce8df02701709d8930c0a679f2 100644 (file)
@@ -1,5 +1,6 @@
 /Makefile
 /build-aux
+/collectyd
 /config.h*
 /libtool
 /man/*.[0-9]
@@ -16,6 +17,7 @@
 /*.tar.gz
 /*.tar.xz
 *.a
+*.o
 *.la
 *.lo
 *.log
index 2edd83385b7c859316eaf15cd0e31de6f12f571e..fc274102e93c1f0cbfa2215132125edcb0ec94c3 100644 (file)
@@ -42,6 +42,7 @@ DISTCLEANFILES =
 EXTRA_DIST =
 INSTALL_DIRS =
 noinst_DATA =
+bin_PROGRAMS =
 
 AM_CPPFLAGS = \
        -include $(top_builddir)/config.h \
@@ -84,6 +85,14 @@ dist_doc_DATA = \
 
 # ------------------------------------------------------------------------------
 
+bin_PROGRAMS += \
+       collectyd
+
+dist_collectyd_SOURCES = \
+       src/daemon/main.c
+
+# ------------------------------------------------------------------------------
+
 dist_bin_SCRIPTS = \
        src/scripts/collecty
 
diff --git a/src/daemon/main.c b/src/daemon/main.c
new file mode 100644 (file)
index 0000000..f9836f0
--- /dev/null
@@ -0,0 +1,23 @@
+/*#############################################################################
+#                                                                             #
+# collecty - A system statistics collection daemon for IPFire                 #
+# Copyright (C) 2025 IPFire 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;
+}