Annotation of embedaddon/build.sh, revision 1.8.2.2
1.1 misho 1: #!/bin/sh
2: #
3: # (C)`10 PKG-Builder for elwix by Michael Pounov <misho@elwix.org>
4: #
1.6 misho 5: # ./build.sh [package] [make_tool] [prefix_dir] [build_arch_str]
1.1 misho 6: #
1.8.2.2 ! misho 7: # $Id: build.sh,v 1.8.2.1 2013/07/22 08:30:41 misho Exp $
1.1 misho 8: #
9:
1.2 misho 10: CMD=$1
11: MK=${2:-make}
1.6 misho 12: P=${3:-/tmp/elwix}
1.5 misho 13: B=$4
1.2 misho 14: PFX="--prefix ${P}"
1.5 misho 15: shift; shift; shift; shift;
1.2 misho 16: echo ">>> Working script ${MK} into ${PFX}"
1.1 misho 17:
1.5 misho 18: if [ -n "${B}" ]; then
19: PFX="${PFX} --build ${B}"
20: fi
21:
1.1 misho 22: TOP=$(pwd)
23: echo ">>> TOPDIR=${TOP}"
24:
1.6 misho 25: if [ $P = "/tmp/elwix" ]; then
26: rm -rf /tmp/elwix
27: install -d /tmp/elwix
28: install -d /tmp/elwix/bin
29: install -d /tmp/elwix/include
30: install -d /tmp/elwix/lib
31: install -d /tmp/elwix/libexec
32: install -d /tmp/elwix/man
33: install -d /tmp/elwix/man/man1
34: install -d /tmp/elwix/man/man2
35: install -d /tmp/elwix/man/man3
36: install -d /tmp/elwix/man/man4
37: install -d /tmp/elwix/man/man5
38: install -d /tmp/elwix/man/man6
39: install -d /tmp/elwix/man/man7
40: install -d /tmp/elwix/man/man8
41: install -d /tmp/elwix/man/man9
42: install -d /tmp/elwix/sbin
43: install -d /tmp/elwix/share
44: fi
45:
1.8 misho 46: find . -name .deps -type d -exec rm -rf {} \;
47:
1.2 misho 48: case $CMD in
1.1 misho 49: sudo)
50: cd sudo
1.7 misho 51: ./configure --sysconfdir=/etc --libexecdir=/usr/local/libexec --with-ignore-dot \
1.5 misho 52: --with-tty-tickets --with-env-editor --with-logincap \
53: --with-long-otp-prompt --with-pam --with-logfac=local2 \
1.8.2.2 ! misho 54: --with-bsm-audit ${PFX} || exit 1
! 55: ${MK} clean || exit 1
! 56: ${MK} || exit 1
! 57: install src/sudo ${P}/bin || exit 1
! 58: ln ${P}/bin/sudo ${P}/bin/sudoedit || exit 1
! 59: install plugins/sudoers/sudoreplay ${P}/bin || exit 1
! 60: install plugins/sudoers/visudo ${P}/sbin || exit 1
! 61: install plugins/sudoers/.libs/sudoers.so ${P}/libexec || exit 1
! 62: install src/.libs/libsudo_noexec.so ${P}/libexec || exit 1
1.6 misho 63: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 64: ;;
65: expat)
66: cd expat
1.8.2.2 ! misho 67: ./configure ${PFX} || exit 1
! 68: ${MK} clean || exit 1
! 69: ${MK} || exit 1
! 70: ${MK} install || exit 1
1.6 misho 71: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 72: ;;
73: mpd)
74: cd libpdel
1.8.2.2 ! misho 75: ${MK} clean || exit 1
! 76: ${MK} || exit 1
1.2 misho 77: find . -name \*.so\* -type f -exec install {} ${P}/lib \;
1.1 misho 78: cd ..
79: cd mpd/src
1.8.2.2 ! misho 80: ${MK} clean || exit 1
! 81: ${MK} || exit 1
! 82: install mpd5 ${P}/sbin || exit 1
1.6 misho 83: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 84: ;;
85: libevent)
86: cd libevent
1.8.2.2 ! misho 87: ./configure ${PFX} --mandir=${P}/man --infodir=${P}/info || exit 1
! 88: ${MK} clean || exit 1
! 89: ${MK} || exit 1
! 90: ${MK} install || exit 1
1.6 misho 91: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 92: ;;
93: mini_sendmail)
94: cd mini_sendmail
1.8.2.2 ! misho 95: ${MK} clean || exit 1
! 96: ${MK} || exit 1
! 97: install mini_sendmail ${P}/sbin || exit 1
1.6 misho 98: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 99: ;;
100: choparp)
101: cd choparp
1.2 misho 102: rm -f choparp
1.8.2.2 ! misho 103: ${MK} choparp || exit 1
! 104: install choparp ${P}/sbin || exit 1
1.6 misho 105: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 106: ;;
107: ttcp)
108: cd ttcp
1.2 misho 109: rm -f ttcp
1.8.2.2 ! misho 110: ${MK} ttcp || exit 1
! 111: install ttcp ${P}/bin || exit 1
1.6 misho 112: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 113: ;;
114: trafshow)
115: cd trafshow
1.8.2.2 ! misho 116: ./configure --sysconfdir=/etc ${PFX} || exit 1
! 117: ${MK} clean || exit 1
! 118: ${MK} || exit 1
! 119: ${MK} install || exit 1
1.6 misho 120: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 121: ;;
122: ipsec-tools)
123: cd ipsec-tools
1.7 misho 124: ./configure --enable-shared --sysconfdir=/etc/racoon --localstatedir=/var/run \
1.1 misho 125: --enable-debug --enable-ipv6 --enable-adminport --enable-stats \
126: --enable-dpd --enable-natt=yes --enable-frag --enable-hybrid \
1.6 misho 127: --without-libpam --disable-gssapi --with-libradius --without-libldap \
1.8.2.2 ! misho 128: --disable-samode-unspec --disable-rc5 --disable-idea ${PFX} || exit 1
! 129: ${MK} clean || exit 1
! 130: ${MK} || exit 1
! 131: ${MK} install || exit 1
1.6 misho 132: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 133: ;;
134: dhcp)
135: cd dhcp
1.2 misho 136: ./configure --localstatedir=/var --enable-paranoia --enable-early-chroot \
1.8.2.2 ! misho 137: --enable-dhcpv6 ${PFX} || exit 1
! 138: ${MK} clean || exit 1
! 139: ${MK} || exit 1
! 140: install server/dhcpd ${P}/sbin || exit 1
! 141: install relay/dhcrelay ${P}/sbin || exit 1
! 142: install dhcpctl/omshell ${P}/bin || exit 1
1.6 misho 143: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 144: ;;
145: dhcping)
146: cd dhcping
1.8.2.2 ! misho 147: ./configure ${PFX} || exit 1
! 148: ${MK} clean || exit 1
! 149: ${MK} || exit 1
! 150: ${MK} install || exit 1
1.6 misho 151: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 152: ;;
153: dhcdrop)
154: cd dhcdrop
1.8.2.2 ! misho 155: ./configure ${PFX} || exit 1
! 156: ${MK} clean || exit 1
! 157: ${MK} || exit 1
! 158: ${MK} install || exit 1
1.6 misho 159: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 160: ;;
161: mrouted)
162: cd mrouted
1.8.2.2 ! misho 163: ${MK} clean || exit 1
! 164: ${MK} || exit 1
! 165: install map-mbone ${P}/sbin || exit 1
! 166: install mrinfo ${P}/sbin || exit 1
! 167: install mrouted ${P}/sbin || exit 1
! 168: install mtrace ${P}/sbin || exit 1
1.6 misho 169: echo ">>> Now rebuild elwix $CMD program ..."
1.2 misho 170: ;;
171: igmpproxy)
172: cd igmpproxy
1.8.2.2 ! misho 173: ./configure ${PFX} || exit 1
! 174: ${MK} clean || exit 1
! 175: ${MK} || exit 1
! 176: ${MK} install || exit 1
1.6 misho 177: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 178: ;;
179: bmon)
180: cd bmon
1.8.2.2 ! misho 181: ./configure --disable-rrd --disable-asound --disable-dbi ${PFX} || exit 1
! 182: ${MK} clean || exit 1
! 183: ${MK} || exit 1
! 184: ${MK} install || exit 1
1.6 misho 185: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 186: ;;
187: iftop)
188: cd iftop
1.8.2.2 ! misho 189: ./configure --with-resolver=netdb_1thread ${PFX} || exit 1
! 190: ${MK} clean || exit 1
! 191: ${MK} || exit 1
! 192: ${MK} install || exit 1
1.6 misho 193: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 194: ;;
195: arping)
196: echo ">>> Building libnet ..."
197: cd libnet
1.8.2.2 ! misho 198: ./configure ${PFX} || exit 1
! 199: ${MK} clean || exit 1
! 200: ${MK} || exit 1
! 201: ${MK} install || exit 1
1.1 misho 202: echo ">>> Building arping ..."
203: cd ../arping
1.8.2.2 ! misho 204: env LDFLAGS=-L${TOP}/libnet/src CFLAGS=-I${TOP}/libnet/include ./configure ${PFX} || exit 1
! 205: ${MK} clean || exit 1
! 206: ${MK} || exit 1
! 207: ${MK} install || exit 1
1.6 misho 208: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 209: ;;
1.6 misho 210: hping2)
211: cd hping2
1.8.2.2 ! misho 212: ./configure ${PFX} || exit 1
! 213: ${MK} clean || exit 1
! 214: ${MK} || exit 1
! 215: install hping2 ${P}/sbin || exit 1
1.6 misho 216: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 217: ;;
218: mtr)
219: cd mtr
1.8.2.2 ! misho 220: ./configure --enable-ipv6 --without-gtk ${PFX} || exit 1
! 221: ${MK} clean || exit 1
! 222: ${MK} || exit 1
! 223: ${MK} install || exit 1
1.6 misho 224: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 225: ;;
226: ipguard)
227: cd ipguard
1.8.2.2 ! misho 228: ${MK} clean || exit 1
! 229: ${MK} || exit 1
! 230: install ipguard ${P}/sbin || exit 1
1.6 misho 231: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 232: ;;
233: miniupnpd)
234: cd miniupnpd
1.8.2.2 ! misho 235: ${MK} clean || exit 1
! 236: ${MK} || exit 1
! 237: install miniupnpd ${P}/sbin || exit 1
! 238: install miniupnpdctl ${P}/sbin || exit 1
1.6 misho 239: echo ">>> Now rebuild elwix $CMD program ..."
1.2 misho 240: ;;
241: miniupnpc)
242: cd miniupnpc
1.8.2.2 ! misho 243: ${MK} clean || exit 1
! 244: ${MK} || exit 1
! 245: install libminiupnpc.so ${P}/lib || exit 1
! 246: install external-ip.sh ${P}/bin || exit 1
! 247: install upnpc-shared ${P}/bin/upnpc || exit 1
1.6 misho 248: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 249: ;;
250: smartmontools)
251: cd smartmontools
1.8.2.2 ! misho 252: ./configure --enable-sample --disable-dependency-tracking --enable-drivedb ${PFX} || exit 1
! 253: ${MK} clean || exit 1
! 254: ${MK} || exit 1
! 255: ${MK} install || exit 1
1.6 misho 256: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 257: ;;
258: libiconv)
259: cd libiconv
1.8.2.2 ! misho 260: ./configure --enable-static --without-libintl-prefix ${PFX} || exit 1
! 261: ${MK} clean || exit 1
! 262: ${MK} || exit 1
! 263: ${MK} install || exit 1
1.6 misho 264: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 265: ;;
266: quagga)
267: cd quagga
1.2 misho 268: ./configure --enable-user=quagga --enable-group=quagga \
269: --sysconfdir=/etc/quagga --localstatedir=/var/run/quagga \
1.8.2.2 ! misho 270: --enable-vtysh --enable-opaque-lsa --enable-rtadv ${PFX} || exit 1
! 271: ${MK} clean || exit 1
! 272: ${MK} || exit 1
! 273: ${MK} install || exit 1
1.6 misho 274: echo ">>> Now rebuild elwix $CMD program ..."
1.2 misho 275: ;;
1.1 misho 276: pcre)
277: cd pcre
1.8.2.1 misho 278: ./configure --enable-utf --enable-unicode-properties --enable-pcre8 \
1.8.2.2 ! misho 279: --enable-pcre16 --enable-pcre32 ${PFX} || exit 1
! 280: ${MK} clean || exit 1
! 281: ${MK} || exit 1
! 282: ${MK} install || exit 1
1.6 misho 283: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 284: ;;
1.7 misho 285: libxml2)
1.1 misho 286: cd libxml2
1.8.2.2 ! misho 287: ./configure --without-python ${PFX} || exit 1
! 288: ${MK} clean || exit 1
! 289: ${MK} || exit 1
! 290: ${MK} install || exit 1
1.7 misho 291: echo ">>> Now rebuild elwix $CMD program ..."
292: ;;
293: php)
1.1 misho 294: cd php
1.7 misho 295: ./configure --with-layout=GNU --localstatedir=/var --with-config-file-scan-dir=/etc/php \
296: --disable-all --enable-libxml --enable-xml --with-libxml-dir=${P} --with-openssl \
1.8.2.2 ! misho 297: --enable-zip --enable-sqlite-utf8 ${PFX} || exit 1
! 298: ${MK} clean || exit 1
! 299: ${MK} || exit 1
! 300: ${MK} install || exit 1
1.7 misho 301: rm -f ${P}/bin/php
302: strip -s ${P}/bin/php-cgi
1.6 misho 303: echo ">>> Now rebuild elwix $CMD program ..."
1.1 misho 304: ;;
1.3 misho 305: scan_ffs)
306: cd scan_ffs
1.8.2.2 ! misho 307: ${MK} clean || exit 1
! 308: ${MK} || exit 1
! 309: install scan_ffs ${P}/bin || exit 1
1.6 misho 310: echo ">>> Now rebuild elwix $CMD program ..."
1.3 misho 311: ;;
312: rsync)
313: cd rsync
314: ./configure.sh --disable-debug --enable-ipv6 --with-rsyncd-conf=/etc/rsyncd.conf \
1.8.2.2 ! misho 315: --disable-iconv --with-included-popt ${PFX} || exit 1
! 316: ${MK} clean || exit 1
! 317: ${MK} || exit 1
! 318: ${MK} install || exit 1
1.6 misho 319: echo ">>> Now rebuild elwix $CMD program ..."
1.3 misho 320: ;;
1.6 misho 321: istgt)
322: cd istgt
1.8.2.2 ! misho 323: ./configure --enable-symlink-device ${PFX} || exit 1
! 324: ${MK} clean || exit 1
! 325: ${MK} || exit 1
! 326: install src/istgt ${P}/bin || exit 1
! 327: install src/istgtcontrol ${P}/bin || exit 1
1.6 misho 328: echo ">>> Now rebuild elwix $CMD program ..."
1.3 misho 329: ;;
1.7 misho 330: ntp)
331: cd ntp
332: ./configure --without-ntpsnmpd --with-crypto --enable-ipv6 --enable-BANCOMM \
333: --enable-GPSVME --enable-ACTS --enable-ARBITER --enable-ARCRON_MSF \
334: --enable-AS2201 --enable-ATOM --enable-CHRONOLOG --enable-CHU \
335: --enable-AUDIO_CHU --enable-DATUM --enable-DUMBCLOCK --enable-FG \
336: --enable-HEATH --enable-HOPFSERIAL --enable-HOPFPCI --enable-HPGPS \
337: --enable-IRIG --enable-JJY --enable-JUPITER --enable-LEITCH \
338: --enable-LOCAL_CLOCK --enable-MX4200 --enable-NEOCLOCK4X --enable-NMEA \
339: --enable-ONCORE --enable-PALISADE --enable-PCF --enable-PST \
340: --enable-RIPENCC --enable-SHM --enable-SPECTRACOM --enable-TRUETIME \
341: --enable-ULINK --enable-WWV --enable-ZYFER --enable-COMPUTIME \
342: --enable-DCF7000 --enable-HOPF6021 --enable-MEINBERG --enable-RAWDCF \
343: --enable-RCC8000 --enable-SCHMID --enable-TRIMTAIP --enable-TRIMTSIP \
1.8.2.2 ! misho 344: --enable-WHARTON --enable-VARITEXT ${PFX} || exit 1
! 345: ${MK} clean || exit 1
! 346: ${MK} || exit 1
! 347: ${MK} install || exit 1
1.6 misho 348: echo ">>> Now rebuild elwix $CMD program ..."
1.3 misho 349: ;;
1.1 misho 350: *)
351: echo "Package not supported at this moment ..."
352: exit 1
353: esac
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>