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