Annotation of embedaddon/build.sh, revision 1.1
1.1 ! misho 1: #!/bin/sh
! 2: #
! 3: # (C)`10 PKG-Builder for elwix by Michael Pounov <misho@elwix.org>
! 4: #
! 5: # ./build.sh [package] [make_target] [os_specific_set]
! 6: #
! 7: # $Id:$
! 8: #
! 9:
! 10: if [ -n "$3" ]; then
! 11: OS="$3"
! 12: else
! 13: OS=$(uname)
! 14: fi
! 15: echo ">>> Working OS ... ${OS}"
! 16:
! 17: TOP=$(pwd)
! 18: echo ">>> TOPDIR=${TOP}"
! 19:
! 20: case $1 in
! 21: sudo)
! 22: cd sudo
! 23: [ ! -r config.log ] && \
! 24: ./configure --sysconfdir=/etc --with-ignore-dot --with-tty-tickets \
! 25: --with-env-editor --with-logincap \
! 26: --with-long-otp-prompt --with-pam --with-logfac=local2
! 27: make $2
! 28: echo ">>> Now rebuild elwix firmware image ..."
! 29: ;;
! 30: ntpd)
! 31: cd ntpd
! 32: make $2
! 33: echo ">>> Now rebuild elwix firmware image ..."
! 34: ;;
! 35: expat)
! 36: cd expat
! 37: [ ! -r config.log ] && \
! 38: ./configure
! 39: make $2
! 40: echo ">>> Now rebuild elwix firmware image ..."
! 41: ;;
! 42: mpd)
! 43: cd libpdel
! 44: make $2
! 45: cd ..
! 46: cd mpd/src
! 47: [ ! -r config.log ] && \
! 48: ./configure
! 49: make $2
! 50: echo ">>> Now rebuild elwix firmware image ..."
! 51: ;;
! 52: libevent)
! 53: cd libevent
! 54: [ ! -r config.log ] && \
! 55: ./configure
! 56: make $2
! 57: echo ">>> Now rebuild elwix firmware image ..."
! 58: ;;
! 59: mini_sendmail)
! 60: cd mini_sendmail
! 61: make $2
! 62: echo ">>> Now rebuild elwix firmware image ..."
! 63: ;;
! 64: choparp)
! 65: cd choparp
! 66: clang -o choparp -Wall -O2 choparp.c
! 67: echo ">>> Now rebuild elwix firmware image ..."
! 68: ;;
! 69: ttcp)
! 70: cd ttcp
! 71: clang -o ttcp -Wall -O2 ttcp.c
! 72: echo ">>> Now rebuild elwix firmware image ..."
! 73: ;;
! 74: pfflowd)
! 75: cd pfflowd
! 76: make $2
! 77: echo ">>> Now rebuild elwix firmware image ..."
! 78: ;;
! 79: ifstated)
! 80: cd ifstated
! 81: make $2
! 82: echo ">>> Now rebuild elwix firmware image ..."
! 83: ;;
! 84: trafshow)
! 85: cd trafshow
! 86: [ ! -r config.log ] && \
! 87: ./configure --sysconfdir=/etc
! 88: make $2
! 89: echo ">>> Now rebuild elwix firmware image ..."
! 90: ;;
! 91: ipsec-tools)
! 92: cd ipsec-tools
! 93: ./configure --enable-shared --sysconfdir=/etc/racoon --localstatedir=/var/db \
! 94: --enable-debug --enable-ipv6 --enable-adminport --enable-stats \
! 95: --enable-dpd --enable-natt=yes --enable-frag --enable-hybrid \
! 96: --without-libpam --with-libradius
! 97: make $2
! 98: echo ">>> Now rebuild elwix firmware image ..."
! 99: ;;
! 100: dhcp)
! 101: cd dhcp
! 102: [ ! -r config.log ] && \
! 103: ./configure --localstatedir=/var --enable-paranoia --enable-early-chroot --enable-dhcpv6
! 104: make $2
! 105: echo ">>> Now rebuild elwix firmware image ..."
! 106: ;;
! 107: dhcping)
! 108: cd dhcping
! 109: [ ! -r config.log ] && \
! 110: ./configure
! 111: make $2
! 112: echo ">>> Now rebuild elwix firmware image ..."
! 113: ;;
! 114: dhcdrop)
! 115: cd dhcdrop
! 116: [ ! -r config.log ] && \
! 117: ./configure
! 118: make $2
! 119: echo ">>> Now rebuild elwix firmware image ..."
! 120: ;;
! 121: mrouted)
! 122: cd mrouted
! 123: make $2
! 124: echo ">>> Now rebuild elwix firmware image ..."
! 125: ;;
! 126: bmon)
! 127: cd bmon
! 128: [ ! -r config.log ] && \
! 129: ./configure --disable-rrd --disable-asound --disable-dbi
! 130: gmake $2
! 131: echo ">>> Now rebuild elwix firmware image ..."
! 132: ;;
! 133: iftop)
! 134: cd iftop
! 135: [ ! -r config.log ] && \
! 136: ./configure --with-resolver=netdb_1thread
! 137: make $2
! 138: echo ">>> Now rebuild elwix firmware image ..."
! 139: ;;
! 140: arping)
! 141: echo ">>> Building libnet ..."
! 142: cd libnet
! 143: [ ! -r config.log ] && \
! 144: ./configure
! 145: make $2
! 146: echo ">>> Building arping ..."
! 147: cd ../arping
! 148: [ ! -r config.log ] && \
! 149: env LDFLAGS=-L${TOP}/libnet/src CFLAGS=-I${TOP}/libnet/include ./configure
! 150: make $2
! 151: echo ">>> Now rebuild elwix firmware image ..."
! 152: ;;
! 153: hping2)
! 154: cd hping2
! 155: [ ! -r config.log ] && \
! 156: ./configure
! 157: gmake $2
! 158: echo ">>> Now rebuild elwix firmware image ..."
! 159: ;;
! 160: mtr)
! 161: cd mtr
! 162: [ ! -r config.log ] && \
! 163: ./configure --enable-ipv6 --without-gtk
! 164: make $2
! 165: echo ">>> Now rebuild elwix firmware image ..."
! 166: ;;
! 167: ipguard)
! 168: cd ipguard
! 169: make $2
! 170: echo ">>> Now rebuild elwix firmware image ..."
! 171: ;;
! 172: ishell)
! 173: cd ishell
! 174: make bsd $2
! 175: echo ">>> Now rebuild elwix firmware image ..."
! 176: ;;
! 177: miniupnpd)
! 178: cd miniupnpd
! 179: make $2
! 180: echo ">>> Now rebuild elwix firmware image ..."
! 181: ;;
! 182: strobe)
! 183: cd strobe
! 184: make $2
! 185: echo ">>> Now rebuild elwix firmware image ..."
! 186: ;;
! 187: iperf)
! 188: cd iperf
! 189: [ ! -r config.log ] && \
! 190: ./configure
! 191: echo ">>> Now rebuild elwix firmware image ..."
! 192: ;;
! 193: smartmontools)
! 194: cd smartmontools
! 195: [ ! -r config.log ] && \
! 196: ./configure --enable-sample --disable-dependency-tracking --enable-drivedb
! 197: make $2
! 198: echo ">>> Now rebuild elwix firmware image ..."
! 199: ;;
! 200: conserver)
! 201: cd conserver
! 202: [ ! -r config.log ] && \
! 203: ./configure --sysconfdir=/etc --with-master=localhost --with-port=782 \
! 204: --with-pam --with-libwrap --with-openssl
! 205: make $2
! 206: echo ">>> Now rebuild elwix firmware image ..."
! 207: ;;
! 208: coova-chilli)
! 209: cd coova-chilli
! 210: [ ! -r config.log ] && \
! 211: ./configure --localstatedir=/var --sysconfdir=/etc
! 212: make $2
! 213: echo ">>> Now rebuild elwix firmware image ..."
! 214: ;;
! 215: lzo)
! 216: cd lzo
! 217: [ ! -r config.log ] && \
! 218: ./configure --enable-shared
! 219: make $2
! 220: echo ">>> Now rebuild elwix firmware image ..."
! 221: ;;
! 222: libgcrypt)
! 223: cd libgpg-error
! 224: [ ! -r config.log ] && \
! 225: ./configure
! 226: make $2
! 227: cd ..
! 228: cd libgcrypt
! 229: [ ! -r config.log ] && \
! 230: ./configure
! 231: make $2
! 232: echo ">>> Now rebuild elwix firmware image ..."
! 233: ;;
! 234: openvpn)
! 235: cd openvpn
! 236: [ ! -r config.log ] && \
! 237: ./configure --enable-password-save --sysconfdir=/etc \
! 238: --with-lzo-headers=../lzo/include --with-lzo-lib=../lzo/src/.libs
! 239: make $2
! 240: echo ">>> Now rebuild elwix firmware image ..."
! 241: ;;
! 242: libiconv)
! 243: cd libiconv
! 244: [ ! -r config.log ] && \
! 245: ./configure --enable-static --without-libintl-prefix
! 246: make $2
! 247: echo ">>> Now rebuild elwix firmware image ..."
! 248: ;;
! 249: quagga)
! 250: cd quagga
! 251: [ ! -r config.log ] && \
! 252: ./configure --enable-user=quagga --enable-group=quagga --sysconfdir=/usr/local/etc/quagga --localstatedir=/var/run/quagga --enable-vtysh --enable-opaque-lsa --enable-rtadv
! 253: make $2
! 254: echo ">>> Now rebuild elwix firmware image ..."
! 255: ;;
! 256: sqlite)
! 257: cd sqlite
! 258: [ ! -r config.log ] && \
! 259: ./configure --disable-tcl --enable-threadsafe --enable-load-extension --without-tcl
! 260: make $2
! 261: echo ">>> Now rebuild elwix firmware image ..."
! 262: ;;
! 263: mysql-client)
! 264: cd mysql
! 265: [ ! -r config.log ] && \
! 266: ./configure --localstatedir=/var/db/mysql --without-debug --without-readline \
! 267: --without-libedit --with-libwrap --with-low-memory \
! 268: --enable-thread-safe-client --with-plugins=max-no-ndb --enable-assembler \
! 269: --with-named-thread-libs=-pthread --without-server --with-unix-socket-path=/tmp/mysql.sock
! 270: make $2
! 271: echo ">>> Now rebuild elwix firmware image ..."
! 272: ;;
! 273: pwgen)
! 274: cd pwgen
! 275: [ ! -r config.log ] && \
! 276: ./configure
! 277: make $2
! 278: echo ">>> Now rebuild elwix firmware image ..."
! 279: ;;
! 280: curl)
! 281: cd curl
! 282: [ ! -r config.log ] && \
! 283: ./configure --enable-pop3 --enable-smtp --enable-imap --enable-rtsp \
! 284: --disable-threaded-resolver --disable-werror --with-ssl=/usr \
! 285: --disable-ares --without-gnutls --enable-ipv6 --without-krb4 \
! 286: --disable-ldap --disable-ldaps --without-libidn --without-libssh2 \
! 287: --without-librtmp --disable-curldebug --disable-ntlm --enable-proxy
! 288: make $2
! 289: echo ">>> Now rebuild elwix firmware image ..."
! 290: ;;
! 291: pcre)
! 292: cd pcre
! 293: [ ! -r config.log ] && \
! 294: ./configure --enable-utf8 --enable-unicode-properties
! 295: make $2
! 296: echo ">>> Now rebuild elwix firmware image ..."
! 297: ;;
! 298: spawn-fcgi)
! 299: cd spawn-fcgi
! 300: [ ! -r config.log ] && \
! 301: ./configure
! 302: make $2
! 303: echo ">>> Now rebuild elwix firmware image ..."
! 304: ;;
! 305: lighttpd)
! 306: cd lighttpd
! 307: [ ! -r config.log ] && \
! 308: ./configure --enable-static --with-openssl CC=cc CFLAGS="-O2 -pipe -I/usr/local/include \
! 309: -fno-strict-aliasing" LDFLAGS="-L/usr/local/lib -rpath=/usr/lib:/usr/local/lib" CPPFLAGS= CPP=cpp
! 310: make $2
! 311: echo ">>> Now rebuild elwix firmware image ..."
! 312: ;;
! 313: php)
! 314: cd libxml2
! 315: [ ! -r config.log ] && \
! 316: ./configure --without-python
! 317: make $2
! 318: cd ..
! 319: cd php
! 320: [ ! -r config.log ] && \
! 321: ./configure --localstatedir=/var --with-config-file-scan-dir=/etc/php --disable-all \
! 322: --enable-libxml=../libxml2/.libs --with-openssl --with-mysql=../mysql/libmysqlclient_r \
! 323: --enable-zip --enable-sqlite-utf8 --with-mysql-sock=/tmp/mysql.sock
! 324: make $2
! 325: echo ">>> Now rebuild elwix firmware image ..."
! 326: ;;
! 327: *)
! 328: echo "Package not supported at this moment ..."
! 329: exit 1
! 330: esac
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>