aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--README.md40
-rw-r--r--config.def.h2
-rw-r--r--cqrlogo.c2
-rw-r--r--cqrlogo.h2
-rw-r--r--lib/Makefile2
-rw-r--r--lib/libcqrlogo.c2
-rw-r--r--lib/libcqrlogo.h4
8 files changed, 41 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index 1013807..b1ca9e3 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ ZBARIMG := zbarimg
# flags
CFLAGS += -std=c11 -O2 -fPIC -Wall -Werror
CFLAGSSTATIC = $(CFLAGS)
-CFLAGSSTATIC += -liniparser
+CFLAGSSTATIC += $(shell pkg-config --cflags --libs iniparser)
CFLAGSSTATIC += $(shell pkg-config --cflags --libs libpng)
CFLAGSSTATIC += $(shell pkg-config --cflags --libs zlib)
CFLAGSSTATIC += $(shell pkg-config --cflags --libs libqrencode)
diff --git a/README.md b/README.md
index 267cfd5..eeeda8d 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,10 @@
cqrlogo
=======
+[![GitHub stars](https://img.shields.io/github/stars/eworm-de/cqrlogo?logo=GitHub&style=flat&color=red)](https://github.com/eworm-de/cqrlogo/stargazers)
+[![GitHub forks](https://img.shields.io/github/forks/eworm-de/cqrlogo?logo=GitHub&style=flat&color=green)](https://github.com/eworm-de/cqrlogo/network)
+[![GitHub watchers](https://img.shields.io/github/watchers/eworm-de/cqrlogo?logo=GitHub&style=flat&color=blue)](https://github.com/eworm-de/cqrlogo/watchers)
+
**CGI QR-Code logo**
The resulting QR-Code should look something like this:
@@ -9,17 +13,21 @@ The resulting QR-Code should look something like this:
It is generated dynamically from referer URL sent by the user agent.
+*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 `cqrlogo` you need:
-* [iniparser](https://github.com/ndevilla/iniparser)
-* [libpng](http://www.libpng.org/pub/png/libpng.html)
-* [zlib](https://www.zlib.net/) (which is a dependency for libpng)
-* [qrencode](https://fukuchi.org/works/qrencode/)
-* [fcgi](http://www.fastcgi.com/) (for FastCGI support)
-* [markdown](https://daringfireball.net/projects/markdown/) (HTML documentation)
+* [iniparser ↗️](https://github.com/ndevilla/iniparser)
+* [libpng ↗️](https://www.libpng.org/pub/png/libpng.html)
+* [zlib ↗️](https://www.zlib.net/) (which is a dependency for libpng)
+* [qrencode ↗️](https://fukuchi.org/works/qrencode/)
+* [fcgi ↗️](https://github.com/FastCGI-Archives/fcgi2) (for FastCGI support)
+* [markdown ↗️](https://daringfireball.net/projects/markdown/) (HTML documentation)
Additionally it is expected to have `make` and `pkg-config` around to
successfully compile.
@@ -28,7 +36,7 @@ Some systems may require additional development packages for the libraries.
Look for `libpng-dev`, `libz-dev` and `libqrencode-dev` or similar.
For `make check` to work you have to install optional dependency
-[zbar](http://zbar.sourceforge.net/).
+[zbar ↗️](https://zbar.sourceforge.net/).
Build and install
-----------------
@@ -137,6 +145,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:
@@ -145,3 +168,6 @@ URL:
Mirror:
[eworm.de](https://git.eworm.de/cgit.cgi/cqrlogo/)
[GitHub.com](https://github.com/eworm-de/cqrlogo#cqrlogo)
+
+---
+[⬆️ Go back to top](#top)
diff --git a/config.def.h b/config.def.h
index c78a282..7250e22 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,5 +1,5 @@
/*
- * (C) 2013-2024 by Christian Hesse <mail@eworm.de>
+ * (C) 2013-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/cqrlogo.c b/cqrlogo.c
index 821ec1e..bf1c71d 100644
--- a/cqrlogo.c
+++ b/cqrlogo.c
@@ -1,5 +1,5 @@
/*
- * (C) 2013-2024 by Christian Hesse <mail@eworm.de>
+ * (C) 2013-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/cqrlogo.h b/cqrlogo.h
index da0257d..90a0c63 100644
--- a/cqrlogo.h
+++ b/cqrlogo.h
@@ -1,5 +1,5 @@
/*
- * (C) 2013-2024 by Christian Hesse <mail@eworm.de>
+ * (C) 2013-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/lib/Makefile b/lib/Makefile
index 068a482..952bdb4 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -6,7 +6,7 @@ LN := ln
# flags
CFLAGS += -std=c11 -O2 -fPIC -Wall -Werror
-CFLAGS += -liniparser
+CFLAGS += $(shell pkg-config --cflags --libs iniparser)
CFLAGS += $(shell pkg-config --cflags --libs libpng)
CFLAGS += $(shell pkg-config --cflags --libs zlib)
CFLAGS += $(shell pkg-config --cflags --libs libqrencode)
diff --git a/lib/libcqrlogo.c b/lib/libcqrlogo.c
index d7a7a1b..5716c73 100644
--- a/lib/libcqrlogo.c
+++ b/lib/libcqrlogo.c
@@ -1,5 +1,5 @@
/*
- * (C) 2013-2024 by Christian Hesse <mail@eworm.de>
+ * (C) 2013-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/lib/libcqrlogo.h b/lib/libcqrlogo.h
index 102975b..ba6cc97 100644
--- a/lib/libcqrlogo.h
+++ b/lib/libcqrlogo.h
@@ -1,5 +1,5 @@
/*
- * (C) 2013-2024 by Christian Hesse <mail@eworm.de>
+ * (C) 2013-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
@@ -30,7 +30,7 @@
#include <png.h>
#include <zlib.h>
#include <qrencode.h>
-#include <iniparser.h>
+#include <iniparser/iniparser.h>
/* a bitmap */
struct cqr_bitmap {