Annotation of embedaddon/build.sh, revision 1.4.2.2
1.1 misho 1: #!/bin/sh
2: #
1.4.2.1 misho 3: # (C)`10 PKG-Builder for ELWIX by Michael Pounov <misho@elwix.org>
1.1 misho 4: #
1.4.2.1 misho 5: # ./build.sh [package] [os_specific_build_set] [prefix_dir] [other_make_opts ...]
1.1 misho 6: #
1.4.2.2 ! misho 7: # $Id: build.sh,v 1.4.2.1 2011/07/22 11:19:05 misho Exp $
1.1 misho 8: #
9:
1.2 misho 10: CMD=$1
11: MK=${2:-make}
12: P=${3:-/tmp}
13: PFX="--prefix ${P}"
14: shift; shift; shift;
15: echo ">>> Working script ${MK} into ${PFX}"
1.1 misho 16:
17: TOP=$(pwd)
18: echo ">>> TOPDIR=${TOP}"
19:
1.2 misho 20: case $CMD in
1.1 misho 21: sudo)
22: cd sudo
1.2 misho 23: # [ ! -r config.log ] && \
1.4.2.2 ! misho 24: ./configure --sysconfdir=/etc --libexecdir=/usr/libexec --with-ignore-dot \
! 25: --with-tty-tickets --with-env-editor --with-logincap \
! 26: --with-long-otp-prompt --with-pam --with-logfac=local2 ${PFX}
1.2 misho 27: ${MK} clean
28: ${MK}
1.4.2.2 ! misho 29: install src/sudo ${P}/bin
! 30: ln ${P}/bin/sudo ${P}/bin/sudoedit
! 31: install plugins/sudoers/sudoreplay ${P}/bin
! 32: install plugins/sudoers/visudo ${P}/sbin
! 33: install plugins/sudoers/.libs/sudoers.so ${P}/libexec
! 34: install src/.libs/libsudo_noexec.so ${P}/libexec
1.1 misho 35: echo ">>> Now rebuild elwix firmware image ..."
36: ;;
37: ntpd)
38: cd ntpd
1.2 misho 39: ${MK} clean
40: ${MK}
41: install ntpd ${P}/sbin
1.1 misho 42: echo ">>> Now rebuild elwix firmware image ..."
43: ;;
44: expat)
45: cd expat
1.2 misho 46: # [ ! -r config.log ] && \
47: ./configure ${PFX}
48: ${MK} clean
49: ${MK}
50: ${MK} install
1.1 misho 51: echo ">>> Now rebuild elwix firmware image ..."
52: ;;
53: mpd)
54: cd libpdel
1.2 misho 55: ${MK} clean
56: ${MK}
57: find . -name \*.so\* -type f -exec install {} ${P}/lib \;
1.1 misho 58: cd ..
59: cd mpd/src
1.2 misho 60: ${MK} clean
61: ${MK}
62: install mpd5 ${P}/sbin
1.1 misho 63: echo ">>> Now rebuild elwix firmware image ..."
64: ;;
65: libevent)
66: cd libevent
1.2 misho 67: # [ ! -r config.log ] && \
68: ./configure ${PFX}
69: ${MK} clean
70: ${MK}
71: ${MK} install
1.1 misho 72: echo ">>> Now rebuild elwix firmware image ..."
73: ;;
74: mini_sendmail)
75: cd mini_sendmail
1.2 misho 76: ${MK} clean
77: ${MK}
78: install mini_sendmail ${P}/sbin
1.1 misho 79: echo ">>> Now rebuild elwix firmware image ..."
80: ;;
81: choparp)
82: cd choparp
1.2 misho 83: rm -f choparp
84: ${MK} choparp
85: install choparp ${P}/sbin
1.1 misho 86: echo ">>> Now rebuild elwix firmware image ..."
87: ;;
88: ttcp)
89: cd ttcp
1.2 misho 90: rm -f ttcp
91: ${MK} ttcp
92: install ttcp ${P}/bin
1.1 misho 93: echo ">>> Now rebuild elwix firmware image ..."
94: ;;
95: ifstated)
96: cd ifstated
1.2 misho 97: ${MK} clean
98: ${MK}
99: install ifstated ${P}/sbin
1.1 misho 100: echo ">>> Now rebuild elwix firmware image ..."
101: ;;
102: trafshow)
103: cd trafshow
1.2 misho 104: # [ ! -r config.log ] && \
105: ./configure --sysconfdir=/etc ${PFX}
106: ${MK} clean
107: ${MK}
108: ${MK} install
1.1 misho 109: echo ">>> Now rebuild elwix firmware image ..."
110: ;;
111: ipsec-tools)
112: cd ipsec-tools
113: ./configure --enable-shared --sysconfdir=/etc/racoon --localstatedir=/var/db \
114: --enable-debug --enable-ipv6 --enable-adminport --enable-stats \
115: --enable-dpd --enable-natt=yes --enable-frag --enable-hybrid \
1.2 misho 116: --without-libpam --with-libradius ${PFX}
117: ${MK} clean
118: ${MK}
119: ${MK} install
1.1 misho 120: echo ">>> Now rebuild elwix firmware image ..."
121: ;;
122: dhcp)
123: cd dhcp
1.2 misho 124: # [ ! -r config.log ] && \
125: ./configure --localstatedir=/var --enable-paranoia --enable-early-chroot \
126: --enable-dhcpv6 ${PFX}
127: ${MK} clean
128: ${MK}
1.4 misho 129: install server/dhcpd ${P}/sbin
130: install relay/dhcrelay ${P}/sbin
131: install dhcpctl/omshell ${P}/bin
1.1 misho 132: echo ">>> Now rebuild elwix firmware image ..."
133: ;;
134: dhcping)
135: cd dhcping
1.2 misho 136: # [ ! -r config.log ] && \
137: ./configure ${PFX}
138: ${MK} clean
139: ${MK}
140: ${MK} install
1.1 misho 141: echo ">>> Now rebuild elwix firmware image ..."
142: ;;
143: dhcdrop)
144: cd dhcdrop
1.2 misho 145: # [ ! -r config.log ] && \
146: ./configure ${PFX}
147: ${MK} clean
148: ${MK}
149: ${MK} install
1.1 misho 150: echo ">>> Now rebuild elwix firmware image ..."
151: ;;
152: mrouted)
153: cd mrouted
1.2 misho 154: ${MK} clean
155: ${MK}
156: install map-mbone ${P}/sbin
157: install mrinfo ${P}/sbin
158: install mrouted ${P}/sbin
159: install mtrace ${P}/sbin
160: echo ">>> Now rebuild elwix firmware image ..."
161: ;;
162: igmpproxy)
163: cd igmpproxy
164: ./configure ${PFX}
165: ${MK} clean
166: ${MK}
167: ${MK} install
168: # [ ! -r config.log ] && \
1.1 misho 169: echo ">>> Now rebuild elwix firmware image ..."
170: ;;
171: bmon)
172: cd bmon
1.2 misho 173: # [ ! -r config.log ] && \
174: ./configure --disable-rrd --disable-asound --disable-dbi ${PFX}
175: ${MK} clean
176: ${MK}
177: ${MK} install
1.1 misho 178: echo ">>> Now rebuild elwix firmware image ..."
179: ;;
180: iftop)
181: cd iftop
1.2 misho 182: # [ ! -r config.log ] && \
183: ./configure --with-resolver=netdb_1thread ${PFX}
184: ${MK} clean
185: ${MK}
186: ${MK} install
1.1 misho 187: echo ">>> Now rebuild elwix firmware image ..."
188: ;;
189: arping)
190: echo ">>> Building libnet ..."
191: cd libnet
1.2 misho 192: # [ ! -r config.log ] && \
193: ./configure ${PFX}
194: ${MK} clean
195: ${MK}
196: ${MK} install
1.1 misho 197: echo ">>> Building arping ..."
198: cd ../arping
1.2 misho 199: # [ ! -r config.log ] && \
200: env LDFLAGS=-L${TOP}/libnet/src CFLAGS=-I${TOP}/libnet/include ./configure ${PFX}
201: ${MK} clean
202: ${MK}
203: ${MK} install
1.1 misho 204: echo ">>> Now rebuild elwix firmware image ..."
205: ;;
1.4 misho 206: hping)
207: cd hping
1.2 misho 208: # [ ! -r config.log ] && \
209: ./configure ${PFX}
210: ${MK} clean
211: ${MK}
212: install hping2 ${P}/sbin
1.1 misho 213: echo ">>> Now rebuild elwix firmware image ..."
214: ;;
215: mtr)
216: cd mtr
1.2 misho 217: # [ ! -r config.log ] && \
218: ./configure --enable-ipv6 --without-gtk ${PFX}
219: ${MK} clean
220: ${MK}
221: ${MK} install
1.1 misho 222: echo ">>> Now rebuild elwix firmware image ..."
223: ;;
224: ipguard)
225: cd ipguard
1.2 misho 226: ${MK} clean
227: ${MK}
228: install ipguard ${P}/sbin
1.1 misho 229: echo ">>> Now rebuild elwix firmware image ..."
230: ;;
231: ishell)
232: cd ishell
1.2 misho 233: ${MK} bsd clean
234: ${MK} bsd
235: install ish ${P}/bin
236: install ishd ${P}/sbin
1.1 misho 237: echo ">>> Now rebuild elwix firmware image ..."
238: ;;
239: miniupnpd)
240: cd miniupnpd
1.2 misho 241: ${MK} clean
242: ${MK}
243: install miniupnpd ${P}/sbin
244: install miniupnpdctl ${P}/sbin
245: echo ">>> Now rebuild elwix firmware image ..."
246: ;;
247: miniupnpc)
248: cd miniupnpc
249: ${MK} clean
250: ${MK}
251: install libminiupnpc.so ${P}/lib
252: install external-ip.sh ${P}/bin
253: install upnpc-shared ${P}/bin/upnpc
1.1 misho 254: echo ">>> Now rebuild elwix firmware image ..."
255: ;;
256: strobe)
257: cd strobe
1.2 misho 258: ${MK} clean
259: ${MK}
260: install strobe ${P}/bin
1.1 misho 261: echo ">>> Now rebuild elwix firmware image ..."
262: ;;
263: iperf)
264: cd iperf
1.2 misho 265: # [ ! -r config.log ] && \
266: ./configure ${PFX}
267: ${MK} clean
268: ${MK}
269: ${MK} install
1.1 misho 270: echo ">>> Now rebuild elwix firmware image ..."
271: ;;
272: smartmontools)
273: cd smartmontools
1.2 misho 274: # [ ! -r config.log ] && \
275: ./configure --enable-sample --disable-dependency-tracking --enable-drivedb ${PFX}
276: ${MK} clean
277: ${MK}
278: ${MK} install
1.1 misho 279: echo ">>> Now rebuild elwix firmware image ..."
280: ;;
281: conserver)
282: cd conserver
1.2 misho 283: # [ ! -r config.log ] && \
1.1 misho 284: ./configure --sysconfdir=/etc --with-master=localhost --with-port=782 \
1.2 misho 285: --with-pam --with-libwrap --with-openssl ${PFX}
286: ${MK} clean
287: ${MK}
288: ${MK} install
1.1 misho 289: echo ">>> Now rebuild elwix firmware image ..."
290: ;;
291: coova-chilli)
292: cd coova-chilli
1.2 misho 293: # [ ! -r config.log ] && \
294: ./configure --localstatedir=/var --sysconfdir=/etc ${PFX}
295: ${MK} clean
296: ${MK}
297: ${MK} install
1.1 misho 298: echo ">>> Now rebuild elwix firmware image ..."
299: ;;
300: lzo)
301: cd lzo
1.2 misho 302: # [ ! -r config.log ] && \
303: ./configure --enable-shared ${PFX}
304: ${MK} clean
305: ${MK}
306: ${MK} install
1.1 misho 307: echo ">>> Now rebuild elwix firmware image ..."
308: ;;
309: libgcrypt)
310: cd libgpg-error
1.2 misho 311: # [ ! -r config.log ] && \
312: ./configure ${PFX}
313: ${MK} clean
314: ${MK}
315: ${MK} install
1.1 misho 316: cd ..
317: cd libgcrypt
1.2 misho 318: # [ ! -r config.log ] && \
319: ./configure ${PFX}
320: ${MK} clean
321: ${MK}
322: ${MK} install
1.1 misho 323: echo ">>> Now rebuild elwix firmware image ..."
324: ;;
325: openvpn)
326: cd openvpn
1.2 misho 327: # [ ! -r config.log ] && \
1.1 misho 328: ./configure --enable-password-save --sysconfdir=/etc \
1.2 misho 329: --with-lzo-headers=../lzo/include --with-lzo-lib=../lzo/src/.libs ${PFX}
330: ${MK} clean
331: ${MK}
332: ${MK} install
1.1 misho 333: echo ">>> Now rebuild elwix firmware image ..."
334: ;;
335: libiconv)
336: cd libiconv
1.2 misho 337: # [ ! -r config.log ] && \
338: ./configure --enable-static --without-libintl-prefix ${PFX}
339: ${MK} clean
340: ${MK}
341: ${MK} install
1.1 misho 342: echo ">>> Now rebuild elwix firmware image ..."
343: ;;
344: quagga)
345: cd quagga
1.2 misho 346: # [ ! -r config.log ] && \
347: ./configure --enable-user=quagga --enable-group=quagga \
348: --sysconfdir=/etc/quagga --localstatedir=/var/run/quagga \
349: --enable-vtysh --enable-opaque-lsa --enable-rtadv ${PFX}
350: ${MK} clean
351: ${MK}
352: ${MK} install
353: echo ">>> Now rebuild elwix firmware image ..."
354: ;;
355: sqlite3)
356: cd sqlite3
357: # [ ! -r config.log ] && \
358: ./configure --disable-tcl --enable-threadsafe --enable-load-extension --without-tcl ${PFX}
359: ${MK} clean
360: ${MK}
361: ${MK} install
1.1 misho 362: echo ">>> Now rebuild elwix firmware image ..."
363: ;;
1.2 misho 364: mysql)
1.1 misho 365: cd mysql
1.2 misho 366: # [ ! -r config.log ] && \
1.1 misho 367: ./configure --localstatedir=/var/db/mysql --without-debug --without-readline \
368: --without-libedit --with-libwrap --with-low-memory \
369: --enable-thread-safe-client --with-plugins=max-no-ndb --enable-assembler \
1.2 misho 370: --with-named-thread-libs=-pthread --with-embedded-server \
371: --with-unix-socket-path=/tmp/mysql.sock ${PFX}
372: ${MK} clean
373: ${MK}
374: ${MK} install
1.1 misho 375: echo ">>> Now rebuild elwix firmware image ..."
376: ;;
377: pwgen)
378: cd pwgen
1.2 misho 379: # [ ! -r config.log ] && \
380: ./configure ${PFX}
381: ${MK} clean
382: ${MK}
383: ${MK} install
1.1 misho 384: echo ">>> Now rebuild elwix firmware image ..."
385: ;;
386: curl)
387: cd curl
1.2 misho 388: # [ ! -r config.log ] && \
1.1 misho 389: ./configure --enable-pop3 --enable-smtp --enable-imap --enable-rtsp \
390: --disable-threaded-resolver --disable-werror --with-ssl=/usr \
391: --disable-ares --without-gnutls --enable-ipv6 --without-krb4 \
392: --disable-ldap --disable-ldaps --without-libidn --without-libssh2 \
1.2 misho 393: --without-librtmp --disable-curldebug --disable-ntlm --enable-proxy ${PFX}
394: ${MK} clean
395: ${MK}
396: ${MK} install
1.1 misho 397: echo ">>> Now rebuild elwix firmware image ..."
398: ;;
399: pcre)
400: cd pcre
1.2 misho 401: # [ ! -r config.log ] && \
402: ./configure --enable-utf8 --enable-unicode-properties ${PFX}
403: ${MK} clean
404: ${MK}
405: ${MK} install
1.1 misho 406: echo ">>> Now rebuild elwix firmware image ..."
407: ;;
408: spawn-fcgi)
409: cd spawn-fcgi
1.2 misho 410: # [ ! -r config.log ] && \
411: ./configure ${PFX}
412: ${MK} clean
413: ${MK}
414: ${MK} install
1.1 misho 415: echo ">>> Now rebuild elwix firmware image ..."
416: ;;
417: lighttpd)
418: cd lighttpd
1.2 misho 419: # [ ! -r config.log ] && \
420: ./configure --enable-static --with-openssl ${PFX}
421: ${MK} clean
422: ${MK}
423: ${MK} install
1.1 misho 424: echo ">>> Now rebuild elwix firmware image ..."
425: ;;
426: php)
427: cd libxml2
1.2 misho 428: # [ ! -r config.log ] && \
429: ./configure --without-python ${PFX}
430: ${MK} clean
431: ${MK}
1.4.2.2 ! misho 432: # ${MK} install
1.1 misho 433: cd ..
434: cd php
1.2 misho 435: # [ ! -r config.log ] && \
1.3 misho 436: ./configure --localstatedir=/var --with-config-file-scan-dir=/etc/php --disable-all \
1.2 misho 437: --enable-libxml=../libxml2/.libs --with-openssl \
438: --enable-zip --enable-sqlite-utf8 ${PFX}
439: ${MK} clean
440: ${MK}
441: ${MK} install
1.1 misho 442: echo ">>> Now rebuild elwix firmware image ..."
443: ;;
1.3 misho 444: scan_ffs)
445: cd scan_ffs
446: ${MK} clean
447: ${MK}
448: install scan_ffs ${P}/bin
449: echo ">>> Now rebuild elwix firmware image ..."
450: ;;
451: rsync)
452: cd rsync
453: ./configure.sh --disable-debug --enable-ipv6 --with-rsyncd-conf=/etc/rsyncd.conf \
454: --disable-iconv --with-included-popt ${PFX}
455: ${MK} clean
456: ${MK}
457: ${MK} install
458: echo ">>> Now rebuild elwix firmware image ..."
459: ;;
460: pciutils)
461: cd pciutils
462: ${MK} clean
463: ${MK}
464: install lspci ${P}/bin
465: install setpci ${P}/bin
466: echo ">>> Now rebuild elwix firmware image ..."
467: ;;
468: pure-ftpd)
469: cd pure-ftpd
470: ./configure --with-everything --with-paranoidmsg --sysconfdir=/etc --localstatedir=/var \
471: --with-privsep --with-peruserlimits --with-throttling --with-tls --with-pam \
472: --with-uploadscript --with-rfc2640 --with-sendfile --enable-largefile \
473: --with-virtualchroot ${PFX}
474: ${MK} clean
475: ${MK}
476: ${MK} install
477: echo ">>> Now rebuild elwix firmware image ..."
478: ;;
479: ladvd)
480: cd ladvd
481: ./configure --with-chroot-dir=/var/empty ${PFX}
482: ${MK} clean
483: ${MK}
484: ${MK} install
485: echo ">>> Now rebuild elwix firmware image ..."
486: ;;
1.1 misho 487: *)
488: echo "Package not supported at this moment ..."
489: exit 1
490: esac
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>