prepare_mp_build
· 1.9 KiB · Text
Исходник
#!/bin/bash
# install build essential packages
apt-get install --no-install-recommends build-essential fakeroot
# install build dependencies
apt-get install --no-install-recommends perl autotools-dev libdbi-dev libldap2-dev libpq-dev libmysqlclient-dev libfreeradius-client-dev libkrb5-dev libnet-snmp-perl procps
# install tools to create dist files
apt-get install --no-install-recommends autoconf automake
# create dist files
tools/setup
# configure the build
PGINCLUDE="-I`pg_config --includedir`" PGLIBS="-lpq -lcrypt" \
CFLAGS="-Wall -g -O2" \
./configure \
--host=x86_64-linux-gnu \
--build=x86_64-linux-gnu \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--libexecdir=/usr/lib/nagios/plugins \
--with-perl=/usr/bin/perl \
--with-openssl=/usr \
--with-pgsql=/usr \
--with-mysql=/usr \
--with-proc-loadavg=/proc/loadavg \
--with-ps-command="/bin/ps axwwo 'stat uid pid ppid vsz rss pcpu etime comm args'" \
--with-ps-format="%s %d %d %d %d %d %f %s %s %n" \
--with-ps-cols=10 \
--with-ps-varlist="procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos" \
--with-ping-command="/bin/ping -n -U -w %d -c %d %s" --with-ping6-command="/bin/ping6 -n -U -w %d -c %d %s" \
--with-nslookup-command="/usr/bin/nslookup -sil" \
--with-uptime-command="/usr/bin/uptime" \
--with-rpcinfo-command="/usr/sbin/rpcinfo" \
--with-smbclient-command="/usr/bin/smbclient" \
--with-snmpget-command="/usr/bin/snmpget" \
--with-snmpgetnext-command="/usr/bin/snmpgetnext" \
--with-qstat-command="/usr/bin/quakestat" \
--with-fping-command="/usr/bin/fping" \
--with-fping6-command="/usr/bin/fping6" \
--with-ssh-command="/usr/bin/ssh" \
--with-mailq-command="/usr/bin/mailq" \
--with-proc-meminfo="/proc/meminfo" \
--with-dig-command="/usr/bin/dig" \
--with-apt-get-command="/usr/bin/apt-get" \
--enable-extra-opts \
--disable-rpath
| 1 | #!/bin/bash |
| 2 | # install build essential packages |
| 3 | apt-get install --no-install-recommends build-essential fakeroot |
| 4 | # install build dependencies |
| 5 | apt-get install --no-install-recommends perl autotools-dev libdbi-dev libldap2-dev libpq-dev libmysqlclient-dev libfreeradius-client-dev libkrb5-dev libnet-snmp-perl procps |
| 6 | # install tools to create dist files |
| 7 | apt-get install --no-install-recommends autoconf automake |
| 8 | # create dist files |
| 9 | tools/setup |
| 10 | # configure the build |
| 11 | PGINCLUDE="-I`pg_config --includedir`" PGLIBS="-lpq -lcrypt" \ |
| 12 | CFLAGS="-Wall -g -O2" \ |
| 13 | ./configure \ |
| 14 | --host=x86_64-linux-gnu \ |
| 15 | --build=x86_64-linux-gnu \ |
| 16 | --prefix=/usr \ |
| 17 | --mandir=/usr/share/man \ |
| 18 | --infodir=/usr/share/info \ |
| 19 | --libexecdir=/usr/lib/nagios/plugins \ |
| 20 | --with-perl=/usr/bin/perl \ |
| 21 | --with-openssl=/usr \ |
| 22 | --with-pgsql=/usr \ |
| 23 | --with-mysql=/usr \ |
| 24 | --with-proc-loadavg=/proc/loadavg \ |
| 25 | --with-ps-command="/bin/ps axwwo 'stat uid pid ppid vsz rss pcpu etime comm args'" \ |
| 26 | --with-ps-format="%s %d %d %d %d %d %f %s %s %n" \ |
| 27 | --with-ps-cols=10 \ |
| 28 | --with-ps-varlist="procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos" \ |
| 29 | --with-ping-command="/bin/ping -n -U -w %d -c %d %s" --with-ping6-command="/bin/ping6 -n -U -w %d -c %d %s" \ |
| 30 | --with-nslookup-command="/usr/bin/nslookup -sil" \ |
| 31 | --with-uptime-command="/usr/bin/uptime" \ |
| 32 | --with-rpcinfo-command="/usr/sbin/rpcinfo" \ |
| 33 | --with-smbclient-command="/usr/bin/smbclient" \ |
| 34 | --with-snmpget-command="/usr/bin/snmpget" \ |
| 35 | --with-snmpgetnext-command="/usr/bin/snmpgetnext" \ |
| 36 | --with-qstat-command="/usr/bin/quakestat" \ |
| 37 | --with-fping-command="/usr/bin/fping" \ |
| 38 | --with-fping6-command="/usr/bin/fping6" \ |
| 39 | --with-ssh-command="/usr/bin/ssh" \ |
| 40 | --with-mailq-command="/usr/bin/mailq" \ |
| 41 | --with-proc-meminfo="/proc/meminfo" \ |
| 42 | --with-dig-command="/usr/bin/dig" \ |
| 43 | --with-apt-get-command="/usr/bin/apt-get" \ |
| 44 | --enable-extra-opts \ |
| 45 | --disable-rpath |