diff --git a/cronjob/chart/FreeSans.ttf b/cronjob/chart/FreeSans.ttf new file mode 100644 index 0000000..ea5632e Binary files /dev/null and b/cronjob/chart/FreeSans.ttf differ diff --git a/cronjob/chart/Makefile b/cronjob/chart/Makefile index fa97a66..96348f5 100644 --- a/cronjob/chart/Makefile +++ b/cronjob/chart/Makefile @@ -15,6 +15,7 @@ INSTDIR = /usr/bin/ CONFDIR = /etc/weatherstation/ IMGDIR = /var/cache/weatherstation-chart/ DOCDIR = /usr/share/doc/weatherstation-chart/ +FONTDIR = /usr/share/fonts/truetype/freefont/ INSTGRP = losinski INSTUSR = losinski @@ -93,8 +94,10 @@ install: @ install -m644 image_conf/* $(DESTDIR)$(CONFDIR)/image_conf @ echo "lege $(IMGDIR) an" @ install -d $(DESTDIR)$(IMGDIR) + @ install -d $(DESTDIR)$(FONTDIR) + @ install -m444 FreeSans.ttf $(DESTDIR)$(FONTDIR) @ install -d $(DESTDIR)$(DOCDIR) - @ install COPYING $(DESTDIR)$(DOCDIR) + @ install -m444 COPYING $(DESTDIR)$(DOCDIR) # Aufräumnen (alle Object-Files löschen) diff --git a/debian/weatherstation-chart.install b/debian/weatherstation-chart.install index f31d8ab..f180a1b 100644 --- a/debian/weatherstation-chart.install +++ b/debian/weatherstation-chart.install @@ -8,3 +8,4 @@ etc/weatherstation/image_conf/hum_ex.conf etc/weatherstation/image_conf/rain_ex.conf etc/weatherstation/image_conf/testimage.conf var/cache/weatherstation-chart +usr/share/fonts/truetype/freefont/FreeSans.ttf diff --git a/debian/weatherstation-chart.postinst b/debian/weatherstation-chart.postinst index 039580c..2beb31c 100644 --- a/debian/weatherstation-chart.postinst +++ b/debian/weatherstation-chart.postinst @@ -30,3 +30,5 @@ fi /bin/chown weatherstation:weatherstation /etc/weatherstation/chart.conf /bin/chmod 440 /etc/weatherstation/chart.conf + +/usr/bin/fc-cache