Annotation of elwix/config/rc.3thparty_helper, revision 1.3.2.5

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: #
1.3.2.5 ! misho       7: # $Id: rc.3thparty_helper,v 1.3.2.4 2017/10/08 09:54:58 misho Exp $
1.2       misho       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
1.3.2.2   misho      23: PFX="--prefix=${P}"
1.2       misho      24: shift; shift; shift; shift;
                     25: echo ">>> Working script ${MK} into ${PFX}"
                     26: 
                     27: if [ -n "${B}" ]; then
1.3.2.2   misho      28:        PFX="${PFX} --host=${B}"
1.2       misho      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
1.3       misho      58:        automake)
                     59:                cd ${ADDSRC}/automake
                     60:                echo ">>> Now rebuild elwix $CMD program ..."
                     61:                ;;
1.2       misho      62:        sudo)
                     63:                cd ${ADDSRC}/sudo
                     64:                ./configure --sysconfdir=/etc --libexecdir=/usr/local/libexec --with-ignore-dot \
                     65:                                        --with-tty-tickets --with-env-editor --with-logincap \
                     66:                                        --with-long-otp-prompt --with-pam --with-logfac=local2 \
                     67:                                        --with-bsm-audit ${PFX} || exit 1
                     68:                ${MK} clean || exit 1
                     69:                ${MK} || exit 1
                     70:                install src/sudo ${P}/bin || exit 1
                     71:                ln ${P}/bin/sudo ${P}/bin/sudoedit || exit 1
                     72:                install plugins/sudoers/sudoreplay ${P}/bin || exit 1
                     73:                install plugins/sudoers/visudo ${P}/sbin || exit 1
                     74:                install plugins/sudoers/.libs/sudoers.so ${P}/libexec || exit 1
                     75:                install src/.libs/libsudo_noexec.so ${P}/libexec || exit 1
                     76:                echo ">>> Now rebuild elwix $CMD program ..."
                     77:                ;;
                     78:        expat)
                     79:                cd ${ADDSRC}/expat
                     80:                ./configure ${PFX} || exit 1
                     81:                ${MK} clean || exit 1
                     82:                ${MK} || exit 1
                     83:                ${MK} install || exit 1
                     84:                echo ">>> Now rebuild elwix $CMD program ..."
                     85:                ;;
                     86:        readline)
                     87:                cd ${ADDSRC}/readline
1.3       misho      88:                ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1
                     89:                ${MK} clean || exit 1
                     90:                ${MK} || exit 1
                     91:                ${MK} install || exit 1
                     92:                echo ">>> Now rebuild elwix $CMD program ..."
                     93:                ;;
                     94:        confuse)
                     95:                cd ${ADDSRC}/confuse
                     96:                ${CEXEC} INSTALL="/usr/bin/install" ./configure --disable-nls --enable-shared ${PFX} || exit 1
1.2       misho      97:                ${MK} clean || exit 1
                     98:                ${MK} || exit 1
                     99:                ${MK} install || exit 1
                    100:                echo ">>> Now rebuild elwix $CMD program ..."
                    101:                ;;
                    102:        mpd)
                    103: #              cd ${ADDSRC}/libpdel
                    104: #              ${MK} clean || exit 1
                    105: #              ${MK} || exit 1
                    106: #              find . -name \*.so\* -type f -exec install {} ${P}/lib \;
                    107: #              cd ..
                    108:                cd ${ADDSRC}/mpd/src
1.3       misho     109:                ${CEXEC} INSTALL="/usr/bin/install" DESTDIR=${WORLD} ./configure
                    110:                ${MK} DESTDIR=${WORLD} clean || exit 1
                    111:                ${MK} DESTDIR=${WORLD} || exit 1
1.2       misho     112:                install mpd5 ${P}/sbin || exit 1
                    113:                echo ">>> Now rebuild elwix $CMD program ..."
                    114:                ;;
                    115:        libevent)
                    116:                cd ${ADDSRC}/libevent
                    117:                ./configure ${PFX} --mandir=${P}/man --infodir=${P}/info || exit 1
                    118:                ${MK} clean || exit 1
                    119:                ${MK} || exit 1
                    120:                ${MK} install || exit 1
                    121:                echo ">>> Now rebuild elwix $CMD program ..."
                    122:                ;;
                    123:        mini_sendmail)
                    124:                cd ${ADDSRC}/mini_sendmail
                    125:                ${MK} clean || exit 1
                    126:                ${MK} || exit 1
                    127:                install mini_sendmail ${P}/sbin || exit 1
                    128:                echo ">>> Now rebuild elwix $CMD program ..."
                    129:                ;;
                    130:        choparp)
                    131:                cd ${ADDSRC}/choparp
                    132:                rm -f choparp
                    133:                ${MK} choparp || exit 1
                    134:                install choparp ${P}/sbin || exit 1
                    135:                echo ">>> Now rebuild elwix $CMD program ..."
                    136:                ;;
                    137:        ttcp)
                    138:                cd ${ADDSRC}/ttcp
                    139:                rm -f ttcp
                    140:                ${MK} ttcp || exit 1
                    141:                install ttcp ${P}/bin || exit 1
                    142:                echo ">>> Now rebuild elwix $CMD program ..."
                    143:                ;;
1.3       misho     144:        iperf)
                    145:                cd ${ADDSRC}/iperf
1.3.2.4   misho     146:                ./configure ${PFX} || exit 1
1.3       misho     147:                ${MK} clean || exit 1
                    148:                ${MK} || exit 1
                    149:                ${MK} install || exit 1
                    150:                echo ">>> Now rebuild elwix $CMD program ..."
                    151:                ;;
1.2       misho     152:        trafshow)
                    153:                cd ${ADDSRC}/trafshow
                    154:                ./configure --sysconfdir=/etc ${PFX} || exit 1
                    155:                ${MK} clean || exit 1
                    156:                ${MK} || exit 1
                    157:                ${MK} install || exit 1
                    158:                echo ">>> Now rebuild elwix $CMD program ..."
                    159:                ;;
1.3.2.5 ! misho     160:        curl)
        !           161:                cd ${ADDSRC}/curl
        !           162:                ./configure --sysconfdir=/etc --disable-werror --enable-alt-svc --without-brotli --disable-ares --enable-cookies \
        !           163:                        --disable-curldebug --disable-debug --enable-dict --enable-ftp --without-gnutls --enable-gopher \
        !           164:                        --without-gssapi --enable-http --with-nghttp2 --without-libidn2 --enable-imap --enable-ipv6 \
        !           165:                        --disable-ldap --disable-ldaps --without-libssh2 --without-libmetalink --without-nss --with-ssl=/usr \
        !           166:                        --enable-pop3 --enable-proxy --without-libpsl --without-librtmp --enable-rtsp --disable-smb \
        !           167:                        --enable-smtp --enable-telnet --enable-tftp --enable-pthreads --enable-threaded-resolver \
        !           168:                        --enable-tls-srp --without-wolfssl --disable-silent-rules ${PFX} || exit 1
        !           169:                ${MK} clean || exit 1
        !           170:                ${MK} || exit 1
        !           171:                ${MK} install || exit 1
        !           172:                echo ">>> Now rebuild elwix $CMD program ..."
        !           173:                ;;
        !           174:        strongswan)
        !           175:                cd ${ADDSRC}/strongswan
        !           176:                ./configure --sysconfdir=/etc/strongswan --enable-kernel-pfkey --enable-kernel-pfroute --disable-kernel-netlink \
        !           177:                        --disable-scripts --disable-gmp --enable-openssl --enable-eap-identity --enable-eap-md5 \
        !           178:                        --enable-eap-tls --enable-eap-mschapv2 --enable-eap-peap --enable-eap-ttls --enable-md4 \
        !           179:                        --enable-blowfish --enable-addrblock --enable-whitelist --enable-cmd --with-group=wheel \
        !           180:                        --with-printf-hooks=builtin --enable-curl --disable-scepclient --enable-swanctl --enable-vici \
        !           181:                        --disable-silent-rules ${PFX} || exit 1
        !           182:                aclocal
        !           183:                automake
        !           184:                ${MK} clean || exit 1
        !           185:                ${MK} || exit 1
        !           186:                ${MK} install || exit 1
        !           187:                echo ">>> Now rebuild elwix $CMD program ..."
        !           188:                ;;
1.2       misho     189:        ipsec-tools)
                    190:                cd ${ADDSRC}/ipsec-tools
1.3       misho     191:                ./configure --enable-shared --sysconfdir=/etc/racoon --localstatedir=/var/run --with-pkgversion=elwix-0.8.2 \
1.2       misho     192:                                 --enable-debug --enable-ipv6 --enable-adminport --enable-stats \
                    193:                                 --enable-dpd --enable-natt=yes --enable-frag --enable-hybrid \
                    194:                                 --without-libpam --disable-gssapi --with-libradius --without-libldap \
                    195:                                 --disable-samode-unspec --disable-rc5 --disable-idea ${PFX} || exit 1
                    196:                ${MK} clean || exit 1
                    197:                ${MK} || exit 1
                    198:                ${MK} install || exit 1
                    199:                echo ">>> Now rebuild elwix $CMD program ..."
                    200:                ;;
                    201:        dhcp)
                    202:                cd ${ADDSRC}/dhcp
                    203:                ./configure --localstatedir=/var --enable-paranoia --enable-early-chroot \
                    204:                                --enable-dhcpv6 ${PFX} || exit 1
                    205:                ${MK} clean || exit 1
                    206:                ${MK} || exit 1
                    207:                install server/dhcpd ${P}/sbin || exit 1
                    208:                install relay/dhcrelay ${P}/sbin || exit 1
                    209:                install dhcpctl/omshell ${P}/bin || exit 1
                    210:                echo ">>> Now rebuild elwix $CMD program ..."
                    211:                ;;
                    212:        dhcping)
                    213:                cd ${ADDSRC}/dhcping
                    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:        mrouted)
                    221:                cd ${ADDSRC}/mrouted
                    222:                ${MK} clean || exit 1
                    223:                ${MK} || exit 1
                    224:                install map-mbone ${P}/sbin || exit 1
                    225:                install mrinfo ${P}/sbin || exit 1
                    226:                install mrouted ${P}/sbin || exit 1
                    227:                install mtrace ${P}/sbin || exit 1
                    228:                echo ">>> Now rebuild elwix $CMD program ..."
                    229:                ;;
                    230:        igmpproxy)
                    231:                cd ${ADDSRC}/igmpproxy
1.3       misho     232:                ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1
1.2       misho     233:                ${MK} clean || exit 1
                    234:                ${MK} || exit 1
                    235:                ${MK} install || exit 1
                    236:                echo ">>> Now rebuild elwix $CMD program ..."
                    237:                ;;
                    238:        bmon)
                    239:                cd ${ADDSRC}/bmon
1.3       misho     240:                LDFLAGS="-L${PKG}/lib" CFLAGS="-I${PKG}/include" ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1
1.2       misho     241:                ${MK} clean || exit 1
                    242:                ${MK} || exit 1
                    243:                ${MK} install || exit 1
                    244:                echo ">>> Now rebuild elwix $CMD program ..."
                    245:                ;;
                    246:        iftop)
                    247:                cd ${ADDSRC}/iftop
                    248:                ./configure --with-resolver=netdb_1thread ${PFX} || exit 1
                    249:                ${MK} clean || exit 1
                    250:                ${MK} || exit 1
                    251:                ${MK} install || exit 1
                    252:                echo ">>> Now rebuild elwix $CMD program ..."
                    253:                ;;
1.3       misho     254:        libnet)
1.2       misho     255:                cd ${ADDSRC}/libnet
1.3       misho     256:                ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1
1.2       misho     257:                ${MK} clean || exit 1
                    258:                ${MK} || exit 1
                    259:                ${MK} install || exit 1
1.3       misho     260:                echo ">>> Now rebuild elwix $CMD program ..."
                    261:                ;;
                    262:        arping)
1.2       misho     263:                cd ${ADDSRC}/arping
1.3       misho     264: #              ${CEXEC} LDFLAGS=-L${ADDSRC}/libnet/src CFLAGS=-I${ADDSRC}/libnet/include \
                    265:                LDFLAGS="-L${PKG}/lib" CFLAGS="-I${PKG}/include" ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1
1.2       misho     266:                ${MK} clean || exit 1
                    267:                ${MK} || exit 1
                    268:                ${MK} install || exit 1
                    269:                echo ">>> Now rebuild elwix $CMD program ..."
                    270:                ;;
                    271:        hping2)
                    272:                cd ${ADDSRC}/hping2
1.3       misho     273:                ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1
1.2       misho     274:                ${MK} clean || exit 1
1.3       misho     275:                case ${TARGET_ARCH} in
                    276:                        i386|amd64)
                    277:                                CROSSCOMPILE="-D__LITTLE_ENDIAN_BITFIELD" ${MK} || exit 1
                    278:                                ;;
                    279:                        *)
                    280:                                CROSSCOMPILE="-D__BIG_ENDIAN_BITFIELD" ${MK} || exit 1
                    281:                                ;;
                    282:                esac
                    283:                ${MK} strip
1.2       misho     284:                install hping2 ${P}/sbin || exit 1
                    285:                echo ">>> Now rebuild elwix $CMD program ..."
                    286:                ;;
                    287:        mtr)
                    288:                cd ${ADDSRC}/mtr
1.3       misho     289:                ${CEXEC} INSTALL="/usr/bin/install" ./configure --enable-ipv6 --without-gtk ${PFX} || exit 1
1.2       misho     290:                ${MK} clean || exit 1
                    291:                ${MK} || exit 1
                    292:                ${MK} install || exit 1
                    293:                echo ">>> Now rebuild elwix $CMD program ..."
                    294:                ;;
                    295:        ipguard)
                    296:                cd ${ADDSRC}/ipguard
                    297:                ${MK} clean || exit 1
1.3       misho     298:                ${MK} PREFIX="${PKG}" LOCALBASE="${PKG}" || exit 1
1.2       misho     299:                install ipguard ${P}/sbin || exit 1
                    300:                echo ">>> Now rebuild elwix $CMD program ..."
                    301:                ;;
                    302:        miniupnpd)
                    303:                cd ${ADDSRC}/miniupnpd
                    304:                ${MK} clean || exit 1
                    305:                ${MK} || exit 1
                    306:                install miniupnpd ${P}/sbin || exit 1
                    307:                install miniupnpdctl ${P}/sbin || exit 1
                    308:                echo ">>> Now rebuild elwix $CMD program ..."
                    309:                ;;
                    310:        miniupnpc)
                    311:                cd ${ADDSRC}/miniupnpc
                    312:                ${MK} clean || exit 1
                    313:                ${MK} || exit 1
                    314:                install libminiupnpc.so ${P}/lib || exit 1
                    315:                install external-ip.sh ${P}/bin || exit 1
                    316:                install upnpc-shared ${P}/bin/upnpc || exit 1
1.3.2.1   misho     317:                echo ">>> Now rebuild elwix $CMD program ..."
                    318:                ;;
                    319:        pimd)
                    320:                cd ${ADDSRC}/pimd
1.3.2.2   misho     321:                ${CEXEC} echo ./configure ${PFX} || exit 1
1.3.2.1   misho     322:                ${MK} clean || exit 1
1.3.2.2   misho     323:                ${MK} || exit 1
1.3.2.1   misho     324:                install pimd ${P}/sbin || exit 1
1.2       misho     325:                echo ">>> Now rebuild elwix $CMD program ..."
                    326:                ;;
1.3.2.2   misho     327:        pimdd)
                    328:                cd ${ADDSRC}/pimdd
                    329:                ${MK} clean || exit 1
                    330:                ${MK} || exit 1
                    331:                install pimdd ${P}/sbin || exit 1
                    332:                echo ">>> Now rebuild elwix $CMD program ..."
                    333:                ;;
                    334:        freevrrpd)
                    335:                cd ${ADDSRC}/freevrrpd
                    336:                ${MK} clean || exit 1
                    337:                ${MK} || exit 1
                    338:                install freevrrpd ${P}/sbin || exit 1
                    339:                echo ">>> Now rebuild elwix $CMD program ..."
                    340:                ;;
1.2       misho     341:        smartmontools)
                    342:                cd ${ADDSRC}/smartmontools
                    343:                ./configure --enable-sample --disable-dependency-tracking --enable-drivedb ${PFX} || exit 1
                    344:                ${MK} clean || exit 1
                    345:                ${MK} || exit 1
                    346:                ${MK} install || exit 1
                    347:                echo ">>> Now rebuild elwix $CMD program ..."
                    348:                ;;
                    349:        libiconv)
                    350:                cd ${ADDSRC}/libiconv
                    351:                ./configure --enable-static --without-libintl-prefix ${PFX} || exit 1
                    352:                ${MK} clean || exit 1
                    353:                ${MK} || exit 1
                    354:                ${MK} install || exit 1
                    355:                echo ">>> Now rebuild elwix $CMD program ..."
                    356:                ;;
                    357:        quagga)
                    358:                cd ${ADDSRC}/quagga
1.3.2.3   misho     359:                LDFLAGS="-L${PKG}/lib" CFLAGS="-I${PKG}/include" ${CEXEC} INSTALL="/usr/bin/install" ./configure \
                    360:                                --enable-user=quagga --enable-group=quagga --disable-snmp \
1.2       misho     361:                                --sysconfdir=/etc/quagga --localstatedir=/var/run/quagga \
                    362:                                --enable-vtysh --enable-opaque-lsa --enable-rtadv ${PFX} || exit 1
1.3.2.2   misho     363:                ${MK} clean || exit 1
                    364:                ${MK} || exit 1
1.3.2.3   misho     365:                ${MK} install || exit 1
                    366:                echo ">>> Now rebuild elwix $CMD program ..."
                    367:                ;;
1.3.2.5 ! misho     368:        bird2)
        !           369:                cd ${ADDSRC}/bird2
        !           370:                LDFLAGS="-L${PKG}/lib" CFLAGS="-I${PKG}/include" ${CEXEC} INSTALL="/usr/bin/install" ./configure \
        !           371:                                --with-protocols=babel --with-protocols=bfd --with-protocols=bgp \
        !           372:                                --with-protocols=mrt --with-protocols=ospf --with-protocols=pipe \
        !           373:                                --with-protocols=radv --with-protocols=rip --with-protocols=rpki \
        !           374:                                --with-protocols=static --sysconfdir=/etc/bird --localstatedir=/var ${PFX} || exit 1
        !           375:                ${MK} clean || exit 1
        !           376:                ${MK} || ${MK} || exit 1
        !           377:                ${MK} install || exit 1
        !           378:                echo ">>> Now rebuild elwix $CMD program ..."
        !           379:                ;;
1.3.2.3   misho     380:        bird)
                    381:                cd ${ADDSRC}/bird
                    382:                LDFLAGS="-L${PKG}/lib" CFLAGS="-I${PKG}/include" ${CEXEC} INSTALL="/usr/bin/install" ./configure \
                    383:                                --sysconfdir=/etc/bird --localstatedir=/var ${PFX} || exit 1
                    384:                ${MK} clean || exit 1
                    385:                ${MK} || ${MK} || exit 1
                    386:                ${MK} install || exit 1
                    387:                echo ">>> Now rebuild elwix $CMD program ..."
                    388:                ;;
                    389:        bird6)
                    390:                cd ${ADDSRC}/bird
                    391:                LDFLAGS="-L${PKG}/lib" CFLAGS="-I${PKG}/include" ${CEXEC} INSTALL="/usr/bin/install" ./configure \
                    392:                                --enable-ipv6 --sysconfdir=/etc/bird --localstatedir=/var ${PFX} || exit 1
                    393:                ${MK} clean || exit 1
                    394:                ${MK} || ${MK} || exit 1
1.3.2.2   misho     395:                ${MK} install || exit 1
                    396:                echo ">>> Now rebuild elwix $CMD program ..."
                    397:                ;;
                    398:        tmux)
                    399:                cd ${ADDSRC}/tmux
                    400:                ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1
1.2       misho     401:                ${MK} clean || exit 1
                    402:                ${MK} || exit 1
                    403:                ${MK} install || exit 1
                    404:                echo ">>> Now rebuild elwix $CMD program ..."
                    405:                ;;
                    406:        pcre)
                    407:                cd ${ADDSRC}/pcre
                    408:                ./configure --enable-utf --enable-unicode-properties --enable-pcre8 \
                    409:                                --enable-pcre16 --enable-pcre32 ${PFX} || exit 1
                    410:                ${MK} clean || exit 1
                    411:                ${MK} || exit 1
                    412:                ${MK} install || exit 1
                    413:                echo ">>> Now rebuild elwix $CMD program ..."
                    414:                ;;
                    415:        libxml2)
                    416:                cd ${ADDSRC}/libxml2
                    417:                ./configure --without-python ${PFX} || exit 1
                    418:                ${MK} clean || exit 1
                    419:                ${MK} || exit 1
                    420:                ${MK} install || exit 1
                    421:                echo ">>> Now rebuild elwix $CMD program ..."
                    422:                ;;
                    423:        php)
                    424:                cd ${ADDSRC}/php
                    425:                ./configure --with-layout=GNU --localstatedir=/var --with-config-file-scan-dir=/etc/php \
                    426:                        --disable-all --enable-libxml --enable-xml --with-libxml-dir=${P} --with-openssl \
                    427:                        --enable-zip --enable-sqlite-utf8 ${PFX} || exit 1
                    428:                ${MK} clean || exit 1
                    429:                ${MK} || exit 1
                    430:                ${MK} install || exit 1
                    431:                rm -f ${P}/bin/php
                    432:                strip -s ${P}/bin/php-cgi
                    433:                echo ">>> Now rebuild elwix $CMD program ..."
                    434:                ;;
                    435:        scan_ffs)
                    436:                cd ${ADDSRC}/scan_ffs
                    437:                ${MK} clean || exit 1
                    438:                ${MK} || exit 1
                    439:                install scan_ffs ${P}/bin || exit 1
                    440:                echo ">>> Now rebuild elwix $CMD program ..."
                    441:                ;;
                    442:        dnsmasq)
                    443:                cd ${ADDSRC}/dnsmasq
                    444:                ${MK} clean || exit 1
                    445:                ${MK} || exit 1
                    446:                install src/dnsmasq ${P}/bin || exit 1
                    447:                echo ">>> Now rebuild elwix $CMD program ..."
                    448:                ;;
                    449:        rsync)
                    450:                cd ${ADDSRC}/rsync
1.3       misho     451:                ${CEXEC} INSTALL="/usr/bin/install" ./configure.sh --disable-debug --enable-ipv6 --with-rsyncd-conf=/etc/rsyncd.conf \
1.2       misho     452:                        --disable-iconv --with-included-popt ${PFX} || exit 1
                    453:                ${MK} clean || exit 1
                    454:                ${MK} || exit 1
1.3.2.5 ! misho     455:                ${MK} install || exit 1
        !           456:                echo ">>> Now rebuild elwix $CMD program ..."
        !           457:                ;;
        !           458:        lrzsz)
        !           459:                cd ${ADDSRC}/lrzsz
        !           460:                LDFLAGS="-L${PKG}/lib" CFLAGS="-I${PKG}/include" ${CEXEC} INSTALL="/usr/bin/install" ./configure \
        !           461:                                ${PFX} || exit 1
        !           462:                ${MK} clean || exit 1
        !           463:                ${MK} || ${MK} || exit 1
1.2       misho     464:                ${MK} install || exit 1
                    465:                echo ">>> Now rebuild elwix $CMD program ..."
                    466:                ;;
                    467:        istgt)
                    468:                cd ${ADDSRC}/istgt
                    469:                ./configure --enable-symlink-device ${PFX} || exit 1
                    470:                ${MK} clean || exit 1
                    471:                ${MK} || exit 1
                    472:                install src/istgt ${P}/bin || exit 1
                    473:                install src/istgtcontrol ${P}/bin || exit 1
                    474:                echo ">>> Now rebuild elwix $CMD program ..."
                    475:                ;;
                    476:        ntp)
                    477:                cd ${ADDSRC}/ntp
                    478:                ./configure --without-ntpsnmpd --with-crypto --enable-ipv6 --enable-BANCOMM \
                    479:                        --enable-GPSVME --enable-ACTS --enable-ARBITER --enable-ARCRON_MSF \
                    480:                        --enable-AS2201 --enable-ATOM --enable-CHRONOLOG --enable-CHU \
                    481:                        --enable-AUDIO_CHU --enable-DATUM --enable-DUMBCLOCK --enable-FG \
                    482:                        --enable-HEATH --enable-HOPFSERIAL --enable-HOPFPCI --enable-HPGPS \
                    483:                        --enable-IRIG --enable-JJY --enable-JUPITER --enable-LEITCH \
                    484:                        --enable-LOCAL_CLOCK --enable-MX4200 --enable-NEOCLOCK4X --enable-NMEA \
                    485:                        --enable-ONCORE --enable-PALISADE --enable-PCF --enable-PST \
                    486:                        --enable-RIPENCC --enable-SHM --enable-SPECTRACOM --enable-TRUETIME \
                    487:                        --enable-ULINK --enable-WWV --enable-ZYFER --enable-COMPUTIME \
                    488:                        --enable-DCF7000 --enable-HOPF6021 --enable-MEINBERG --enable-RAWDCF \
                    489:                        --enable-RCC8000 --enable-SCHMID --enable-TRIMTAIP --enable-TRIMTSIP \
                    490:                        --enable-WHARTON --enable-VARITEXT ${PFX} || exit 1
                    491:                ${MK} clean || exit 1
                    492:                ${MK} || exit 1
                    493:                ${MK} install || exit 1
                    494:                echo ">>> Now rebuild elwix $CMD program ..."
                    495:                ;;
                    496:        nginx)
                    497:                cd ${ADDSRC}/nginx
                    498:                ./configure --conf-path=/etc/nginx.conf --user=www --group=www \
                    499:                        --pid-path=/var/run/nginx.pid \
                    500:                        --error-log-path=/var/log/nginx-error.log \
                    501:                        --lock-path=/var/run/nging.lock \
                    502:                        --http-log-path=/var/log/nginx-access.log --with-ipv6 \
                    503:                        --with-http_ssl_module --with-http_mp4_module ${PFX} || exit 1
                    504: #              ${MK} clean || exit 1
                    505:                ${MK} || exit 1
                    506: #              ${MK} install || exit 1
                    507:                echo ">>> Now rebuild elwix $CMD program ..."
                    508:                ;;
                    509:        spawn-fcgi)
                    510:                cd ${ADDSRC}/spawn-fcgi
                    511:                ./configure ${PFX} || exit 1
                    512:                ${MK} clean || exit 1
                    513:                ${MK} || exit 1
                    514:                ${MK} install || exit 1
                    515:                echo ">>> Now rebuild elwix $CMD program ..."
                    516:                ;;
                    517:        lighttpd)
                    518:                cd ${ADDSRC}/lighttpd
1.3       misho     519:                ./configure --libdir=/usr/local/lib/lighttpd --without-attr --without-bzip2 \
                    520:                        --without-gdbm --without-libev --without-lua --without-memcached --with-openssl \
                    521:                        --without-valgrind --enable-static ${PFX} || exit 1
1.2       misho     522:                ${MK} clean || exit 1
                    523:                ${MK} || exit 1
                    524:                ${MK} install || exit 1
                    525:                echo ">>> Now rebuild elwix $CMD program ..."
                    526:                ;;
                    527:        *)
                    528:                echo "Package not supported at this moment ..."
                    529:                exit 1
                    530: esac

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>