aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md38
-rw-r--r--config.def.h2
-rw-r--r--netlink-notify.c2
-rw-r--r--netlink-notify.h14
-rw-r--r--systemd/netlink-notify.service2
5 files changed, 41 insertions, 17 deletions
diff --git a/README.md b/README.md
index 30875f5..bc67a32 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,10 @@
netlink-notify
==============
+[![GitHub stars](https://img.shields.io/github/stars/eworm-de/netlink-notify?logo=GitHub&style=flat&color=red)](https://github.com/eworm-de/netlink-notify/stargazers)
+[![GitHub forks](https://img.shields.io/github/forks/eworm-de/netlink-notify?logo=GitHub&style=flat&color=green)](https://github.com/eworm-de/netlink-notify/network)
+[![GitHub watchers](https://img.shields.io/github/watchers/eworm-de/netlink-notify?logo=GitHub&style=flat&color=blue)](https://github.com/eworm-de/netlink-notify/watchers)
+
**Notify about netlink changes**
This runs in background and produces notifications whenever a netlink event
@@ -26,17 +30,21 @@ A device disappeared:
![Device disappeared](screenshots/away.png)
+*Use at your own risk*, pay attention to
+[license and warranty](#license-and-warranty), and
+[disclaimer on external links](#disclaimer-on-external-links)!
+
Requirements
------------
To compile and run `netlink-notify` you need:
-* [systemd](https://www.github.com/systemd/systemd)
-* [libnotify](https://developer.gnome.org/notification-spec/)
-* [linux](https://www.kernel.org/)
-* [markdown](https://daringfireball.net/projects/markdown/) (HTML documentation)
-* [librsvg](https://wiki.gnome.org/Projects/LibRsvg) (convert icons from SVG to PNG)
-* [oxipng](https://github.com/shssoichiro/oxipng) (optimize PNG icons)
+* [systemd ↗️](https://www.github.com/systemd/systemd)
+* [libnotify ↗️](https://developer.gnome.org/notification-spec/)
+* [linux ↗️](https://www.kernel.org/)
+* [markdown ↗️](https://daringfireball.net/projects/markdown/) (HTML documentation)
+* [librsvg ↗️](https://wiki.gnome.org/Projects/LibRsvg) (convert icons from SVG to PNG)
+* [oxipng ↗️](https://github.com/shssoichiro/oxipng) (optimize PNG icons)
Some systems may require additional development packages for the libraries.
Look for `libnotify-devel` or similar.
@@ -76,6 +84,21 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
[GNU General Public License](COPYING.md) for more details.
+Disclaimer on external links
+----------------------------
+
+Our website contains links to the websites of third parties ("external
+links"). As the content of these websites is not under our control, we
+cannot assume any liability for such external content. In all cases, the
+provider of information of the linked websites is liable for the content
+and accuracy of the information provided. At the point in time when the
+links were placed, no infringements of the law were recognisable to us.
+As soon as an infringement of the law becomes known to us, we will
+immediately remove the link in question.
+
+> 💡️ **Hint**: All external links are marked with an arrow pointing
+> diagonally in an up-right (or north-east) direction (↗️).
+
### Upstream
URL:
@@ -84,3 +107,6 @@ URL:
Mirror:
[eworm.de](https://git.eworm.de/cgit.cgi/netlink-notify/)
[GitLab.com](https://gitlab.com/eworm-de/netlink-notify#netlink-notify)
+
+---
+[⬆️ Go back to top](#top)
diff --git a/config.def.h b/config.def.h
index 0905e33..08c9078 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,5 +1,5 @@
/*
- * (C) 2011-2024 by Christian Hesse <mail@eworm.de>
+ * (C) 2011-2025 by Christian Hesse <mail@eworm.de>
*
* 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
diff --git a/netlink-notify.c b/netlink-notify.c
index 29fc2fe..e921f0c 100644
--- a/netlink-notify.c
+++ b/netlink-notify.c
@@ -1,5 +1,5 @@
/*
- * (C) 2011-2024 by Christian Hesse <mail@eworm.de>
+ * (C) 2011-2025 by Christian Hesse <mail@eworm.de>
*
* 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
diff --git a/netlink-notify.h b/netlink-notify.h
index a58f2f7..e4822e6 100644
--- a/netlink-notify.h
+++ b/netlink-notify.h
@@ -1,5 +1,5 @@
/*
- * (C) 2011-2024 by Christian Hesse <mail@eworm.de>
+ * (C) 2011-2025 by Christian Hesse <mail@eworm.de>
*
* 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
@@ -31,18 +31,16 @@
#include <arpa/inet.h>
#include <ifaddrs.h>
-#include <linux/if.h>
-#include <linux/netlink.h>
-#include <linux/rtnetlink.h>
-#include <linux/wireless.h>
-/* we have to undefine this before including net/if.h to
- * notget redefined structs, etc. */
-#undef __USE_MISC
#include <net/if.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
+#include <linux/if.h>
+#include <linux/netlink.h>
+#include <linux/rtnetlink.h>
+#include <linux/wireless.h>
+
/* systemd headers */
#ifdef HAVE_SYSTEMD
#include <systemd/sd-daemon.h>
diff --git a/systemd/netlink-notify.service b/systemd/netlink-notify.service
index 4678ff1..a6d4290 100644
--- a/systemd/netlink-notify.service
+++ b/systemd/netlink-notify.service
@@ -1,4 +1,4 @@
-# (C) 2011-2024 by Christian Hesse <mail@eworm.de>
+# (C) 2011-2025 by Christian Hesse <mail@eworm.de>
#
# 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