install the Zabbix header files via /etc/portage/env/net-analyzer

This commit is contained in:
Jörg Deckert 2024-04-15 10:23:41 +02:00
parent 98d73c43e9
commit ecf77fade9
4 changed files with 13 additions and 2 deletions

View File

@ -1,6 +1,7 @@
02firstboot = $(CHROOT)/usr/local/bin/02firstboot.start
cert-renew.sh = $(CHROOT)/etc/ssl/cert-renew.sh
zabbix-userparameter = $(CHROOT)/var/lib/zabbix/userparameter_mysql.conf
portage-env-zabbix = $(CHROOT)/etc/portage/env/net-analyzer/zabbix
systemd-units: appliance/MySQL-Backup.sh appliance/backup.service appliance/backup.timer appliance/cert-renew.service appliance/cert-renew.timer
mkdir -p $(CHROOT)/usr/local/bin
@ -72,6 +73,10 @@ $(zabbix-userparameter): zabbix/userparameter_mysql.conf
mkdir -p $(CHROOT)/var/lib/zabbix
cp $< $@
$(portage-env-zabbix): zabbix/portage-env-zabbix
mkdir -p $(CHROOT)/etc/portage/env/net-analyzer
cp $< $@
zabbix-syslog:
# Zabbix Syslog (https://github.com/v-zhuravlev/zabbix-syslog)
mkdir -p $(CHROOT)/etc/zabbix/scripts/lib
@ -140,6 +145,6 @@ snmp-conf:
chmod 0775 $(CHROOT)/var/log/snmptt
RUN chown zabbix:zabbix /var/log/snmptt
preinstall:
preinstall: $(portage-env-zabbix)
postinstall: systemd-units $(02firstboot) $(cert-renew.sh) $(CHROOT)/var/lib/mysql apache-php zabbix-services zabbix-webapp $(zabbix-userparameter) zabbix-syslog zabbix-config fping-perm snmp-conf

View File

@ -6,7 +6,7 @@ dev-java/openjdk-bin headless-awt
dev-lang/php apache2 bcmath curl gd ldap mysql mysqli odbc sockets sysvipc truetype xmlreader xmlwriter
media-libs/gd jpeg png
net-analyzer/zabbix -agent agent2 curl frontend java ldap libxml2 mysql odbc openipmi -postgres proxy server snmp ssh xmpp
net-analyzer/zabbix-headers -agent agent2 curl frontend java ldap libxml2 mysql odbc openipmi -postgres proxy server snmp ssh xmpp
net-analyzer/net-snmp perl
net-analyzer/fping suid
net-print/cups-filters -foomatic -postscript
virtual/jdk headless-awt

1
world
View File

@ -12,6 +12,7 @@ net-analyzer/net-snmp
net-analyzer/nmap
net-analyzer/snmptt
net-analyzer/traceroute
net-analyzer/zabbix
net-dns/bind-tools
net-im/sendxmpp
net-misc/netkit-telnetd

View File

@ -0,0 +1,5 @@
function post_src_install() {
einfo "Install zabbix includes"
insinto /usr/include/zabbix
doins include/*.h
}