最后活跃于 6 months ago

waja 修订了这个 Gist 11 years ago. 转到此修订

1 file changed, 45 insertions

prepare_mp_build(文件已创建)

@@ -0,0 +1,45 @@
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
上一页 下一页