install the Zabbix header files via /etc/portage/env/net-analyzer
This commit is contained in:
parent
98d73c43e9
commit
ecf77fade9
7
Makefile
7
Makefile
|
@ -1,6 +1,7 @@
|
||||||
02firstboot = $(CHROOT)/usr/local/bin/02firstboot.start
|
02firstboot = $(CHROOT)/usr/local/bin/02firstboot.start
|
||||||
cert-renew.sh = $(CHROOT)/etc/ssl/cert-renew.sh
|
cert-renew.sh = $(CHROOT)/etc/ssl/cert-renew.sh
|
||||||
zabbix-userparameter = $(CHROOT)/var/lib/zabbix/userparameter_mysql.conf
|
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
|
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
|
mkdir -p $(CHROOT)/usr/local/bin
|
||||||
|
@ -72,6 +73,10 @@ $(zabbix-userparameter): zabbix/userparameter_mysql.conf
|
||||||
mkdir -p $(CHROOT)/var/lib/zabbix
|
mkdir -p $(CHROOT)/var/lib/zabbix
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
|
||||||
|
$(portage-env-zabbix): zabbix/portage-env-zabbix
|
||||||
|
mkdir -p $(CHROOT)/etc/portage/env/net-analyzer
|
||||||
|
cp $< $@
|
||||||
|
|
||||||
zabbix-syslog:
|
zabbix-syslog:
|
||||||
# Zabbix Syslog (https://github.com/v-zhuravlev/zabbix-syslog)
|
# Zabbix Syslog (https://github.com/v-zhuravlev/zabbix-syslog)
|
||||||
mkdir -p $(CHROOT)/etc/zabbix/scripts/lib
|
mkdir -p $(CHROOT)/etc/zabbix/scripts/lib
|
||||||
|
@ -140,6 +145,6 @@ snmp-conf:
|
||||||
chmod 0775 $(CHROOT)/var/log/snmptt
|
chmod 0775 $(CHROOT)/var/log/snmptt
|
||||||
RUN chown zabbix:zabbix /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
|
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
|
||||||
|
|
|
@ -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
|
dev-lang/php apache2 bcmath curl gd ldap mysql mysqli odbc sockets sysvipc truetype xmlreader xmlwriter
|
||||||
media-libs/gd jpeg png
|
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 -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/net-snmp perl
|
||||||
net-analyzer/fping suid
|
net-analyzer/fping suid
|
||||||
net-print/cups-filters -foomatic -postscript
|
net-print/cups-filters -foomatic -postscript
|
||||||
|
virtual/jdk headless-awt
|
||||||
|
|
1
world
1
world
|
@ -12,6 +12,7 @@ net-analyzer/net-snmp
|
||||||
net-analyzer/nmap
|
net-analyzer/nmap
|
||||||
net-analyzer/snmptt
|
net-analyzer/snmptt
|
||||||
net-analyzer/traceroute
|
net-analyzer/traceroute
|
||||||
|
net-analyzer/zabbix
|
||||||
net-dns/bind-tools
|
net-dns/bind-tools
|
||||||
net-im/sendxmpp
|
net-im/sendxmpp
|
||||||
net-misc/netkit-telnetd
|
net-misc/netkit-telnetd
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
function post_src_install() {
|
||||||
|
einfo "Install zabbix includes"
|
||||||
|
insinto /usr/include/zabbix
|
||||||
|
doins include/*.h
|
||||||
|
}
|
Loading…
Reference in New Issue