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

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.5.2.1 ! misho       7: # $Id: rc.3thparty_helper,v 1.5 2021/07/16 18:35:50 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.4       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.4       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.5       misho     146:                ./configure --without-openssl ${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.4       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 --with-ipsecdir=/usr/pkg/libexec/ipsec --with-ipseclibdir=/usr/pkg/lib/ipsec \
                    182:                        ${PFX} || exit 1
                    183:                aclocal
                    184:                automake
                    185:                ${MK} clean || exit 1
                    186:                ${MK} || exit 1
                    187:                ${MK} install || exit 1
                    188:                mv -v /usr/pkg/libexec/ipsec ${P}/libexec
                    189:                mv -v /usr/pkg/lib/ipsec ${P}/lib
                    190:                rm -rf /usr/pkg
                    191:                echo ">>> Now rebuild elwix $CMD program ..."
                    192:                ;;
1.2       misho     193:        ipsec-tools)
                    194:                cd ${ADDSRC}/ipsec-tools
1.3       misho     195:                ./configure --enable-shared --sysconfdir=/etc/racoon --localstatedir=/var/run --with-pkgversion=elwix-0.8.2 \
1.2       misho     196:                                 --enable-debug --enable-ipv6 --enable-adminport --enable-stats \
                    197:                                 --enable-dpd --enable-natt=yes --enable-frag --enable-hybrid \
                    198:                                 --without-libpam --disable-gssapi --with-libradius --without-libldap \
                    199:                                 --disable-samode-unspec --disable-rc5 --disable-idea ${PFX} || exit 1
                    200:                ${MK} clean || exit 1
                    201:                ${MK} || exit 1
                    202:                ${MK} install || exit 1
                    203:                echo ">>> Now rebuild elwix $CMD program ..."
                    204:                ;;
                    205:        dhcp)
                    206:                cd ${ADDSRC}/dhcp
                    207:                ./configure --localstatedir=/var --enable-paranoia --enable-early-chroot \
                    208:                                --enable-dhcpv6 ${PFX} || exit 1
                    209:                ${MK} clean || exit 1
                    210:                ${MK} || exit 1
                    211:                install server/dhcpd ${P}/sbin || exit 1
                    212:                install relay/dhcrelay ${P}/sbin || exit 1
                    213:                install dhcpctl/omshell ${P}/bin || exit 1
                    214:                echo ">>> Now rebuild elwix $CMD program ..."
                    215:                ;;
                    216:        dhcping)
                    217:                cd ${ADDSRC}/dhcping
                    218:                ./configure ${PFX} || exit 1
                    219:                ${MK} clean || exit 1
                    220:                ${MK} || exit 1
                    221:                ${MK} install || exit 1
                    222:                echo ">>> Now rebuild elwix $CMD program ..."
                    223:                ;;
                    224:        mrouted)
                    225:                cd ${ADDSRC}/mrouted
                    226:                ${MK} clean || exit 1
                    227:                ${MK} || exit 1
                    228:                install map-mbone ${P}/sbin || exit 1
                    229:                install mrinfo ${P}/sbin || exit 1
                    230:                install mrouted ${P}/sbin || exit 1
                    231:                install mtrace ${P}/sbin || exit 1
                    232:                echo ">>> Now rebuild elwix $CMD program ..."
                    233:                ;;
                    234:        igmpproxy)
                    235:                cd ${ADDSRC}/igmpproxy
1.3       misho     236:                ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1
1.2       misho     237:                ${MK} clean || exit 1
                    238:                ${MK} || exit 1
                    239:                ${MK} install || exit 1
                    240:                echo ">>> Now rebuild elwix $CMD program ..."
                    241:                ;;
                    242:        bmon)
                    243:                cd ${ADDSRC}/bmon
1.5       misho     244:                LDFLAGS="-L${PKG}/lib" CFLAGS="-I${PKG}/include" ${CEXEC} INSTALL="/usr/bin/install" \
                    245:                        ./configure --without-ncursesw --disable-asound --disable-rrd --disable-dbi ${PFX} || exit 1
1.2       misho     246:                ${MK} clean || exit 1
                    247:                ${MK} || exit 1
                    248:                ${MK} install || exit 1
                    249:                echo ">>> Now rebuild elwix $CMD program ..."
                    250:                ;;
                    251:        iftop)
                    252:                cd ${ADDSRC}/iftop
                    253:                ./configure --with-resolver=netdb_1thread ${PFX} || exit 1
                    254:                ${MK} clean || exit 1
                    255:                ${MK} || exit 1
                    256:                ${MK} install || exit 1
                    257:                echo ">>> Now rebuild elwix $CMD program ..."
                    258:                ;;
1.3       misho     259:        libnet)
1.2       misho     260:                cd ${ADDSRC}/libnet
1.3       misho     261:                ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1
1.2       misho     262:                ${MK} clean || exit 1
                    263:                ${MK} || exit 1
                    264:                ${MK} install || exit 1
1.3       misho     265:                echo ">>> Now rebuild elwix $CMD program ..."
                    266:                ;;
                    267:        arping)
1.2       misho     268:                cd ${ADDSRC}/arping
1.5.2.1 ! misho     269:                ${CEXEC} LDFLAGS=-L${ADDSRC}/libnet/src CFLAGS=-I${ADDSRC}/libnet/include \
        !           270:                        LDFLAGS="-L${PKG}/lib" CFLAGS="-I${PKG}/include" ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1
1.2       misho     271:                ${MK} clean || exit 1
                    272:                ${MK} || exit 1
                    273:                ${MK} install || exit 1
                    274:                echo ">>> Now rebuild elwix $CMD program ..."
                    275:                ;;
                    276:        hping2)
                    277:                cd ${ADDSRC}/hping2
1.3       misho     278:                ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1
1.2       misho     279:                ${MK} clean || exit 1
1.3       misho     280:                case ${TARGET_ARCH} in
                    281:                        i386|amd64)
                    282:                                CROSSCOMPILE="-D__LITTLE_ENDIAN_BITFIELD" ${MK} || exit 1
                    283:                                ;;
                    284:                        *)
                    285:                                CROSSCOMPILE="-D__BIG_ENDIAN_BITFIELD" ${MK} || exit 1
                    286:                                ;;
                    287:                esac
1.5       misho     288:                echo aaa
1.3       misho     289:                ${MK} strip
1.2       misho     290:                install hping2 ${P}/sbin || exit 1
                    291:                echo ">>> Now rebuild elwix $CMD program ..."
                    292:                ;;
                    293:        mtr)
                    294:                cd ${ADDSRC}/mtr
1.5       misho     295:                ${CEXEC} INSTALL="/usr/bin/install" ./configure --enable-ipv6 --without-gtk --without-jansson ${PFX} || exit 1
1.2       misho     296:                ${MK} clean || exit 1
                    297:                ${MK} || exit 1
                    298:                ${MK} install || exit 1
                    299:                echo ">>> Now rebuild elwix $CMD program ..."
                    300:                ;;
                    301:        ipguard)
                    302:                cd ${ADDSRC}/ipguard
                    303:                ${MK} clean || exit 1
1.3       misho     304:                ${MK} PREFIX="${PKG}" LOCALBASE="${PKG}" || exit 1
1.2       misho     305:                install ipguard ${P}/sbin || exit 1
                    306:                echo ">>> Now rebuild elwix $CMD program ..."
                    307:                ;;
                    308:        miniupnpd)
                    309:                cd ${ADDSRC}/miniupnpd
1.5.2.1 ! misho     310:                ${CEXEC} ./configure --firewall=pf --ipv6 --leasefile --portinuse || exit 1
1.2       misho     311:                ${MK} clean || exit 1
                    312:                ${MK} || exit 1
                    313:                install miniupnpd ${P}/sbin || exit 1
                    314:                install miniupnpdctl ${P}/sbin || exit 1
                    315:                echo ">>> Now rebuild elwix $CMD program ..."
                    316:                ;;
                    317:        miniupnpc)
                    318:                cd ${ADDSRC}/miniupnpc
                    319:                ${MK} clean || exit 1
                    320:                ${MK} || exit 1
1.5.2.1 ! misho     321:                install build/libminiupnpc.so ${P}/lib || exit 1
        !           322:                install build/listdevices ${P}/lib || exit 1
        !           323:                install build/upnpc-shared ${P}/bin/upnpc || exit 1
1.2       misho     324:                install external-ip.sh ${P}/bin || exit 1
                    325:                echo ">>> Now rebuild elwix $CMD program ..."
                    326:                ;;
1.4       misho     327:        pimd)
                    328:                cd ${ADDSRC}/pimd
1.5       misho     329:                ${CEXEC} echo ./configure --prefix=${P} || exit 1
1.4       misho     330:                ${MK} clean || exit 1
                    331:                ${MK} || exit 1
                    332:                install pimd ${P}/sbin || exit 1
                    333:                echo ">>> Now rebuild elwix $CMD program ..."
                    334:                ;;
                    335:        pimdd)
                    336:                cd ${ADDSRC}/pimdd
                    337:                ${MK} clean || exit 1
                    338:                ${MK} || exit 1
                    339:                install pimdd ${P}/sbin || exit 1
                    340:                echo ">>> Now rebuild elwix $CMD program ..."
                    341:                ;;
                    342:        freevrrpd)
                    343:                cd ${ADDSRC}/freevrrpd
                    344:                ${MK} clean || exit 1
                    345:                ${MK} || exit 1
                    346:                install freevrrpd ${P}/sbin || exit 1
                    347:                echo ">>> Now rebuild elwix $CMD program ..."
                    348:                ;;
1.2       misho     349:        smartmontools)
                    350:                cd ${ADDSRC}/smartmontools
                    351:                ./configure --enable-sample --disable-dependency-tracking --enable-drivedb ${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:        libiconv)
                    358:                cd ${ADDSRC}/libiconv
                    359:                ./configure --enable-static --without-libintl-prefix ${PFX} || exit 1
                    360:                ${MK} clean || exit 1
                    361:                ${MK} || exit 1
                    362:                ${MK} install || exit 1
                    363:                echo ">>> Now rebuild elwix $CMD program ..."
                    364:                ;;
                    365:        quagga)
                    366:                cd ${ADDSRC}/quagga
1.4       misho     367:                LDFLAGS="-L${PKG}/lib" CFLAGS="-I${PKG}/include" ${CEXEC} INSTALL="/usr/bin/install" ./configure \
                    368:                                --enable-user=quagga --enable-group=quagga --disable-snmp \
1.2       misho     369:                                --sysconfdir=/etc/quagga --localstatedir=/var/run/quagga \
                    370:                                --enable-vtysh --enable-opaque-lsa --enable-rtadv ${PFX} || exit 1
                    371:                ${MK} clean || exit 1
                    372:                ${MK} || exit 1
                    373:                ${MK} install || exit 1
                    374:                echo ">>> Now rebuild elwix $CMD program ..."
                    375:                ;;
1.4       misho     376:        bird2)
                    377:                cd ${ADDSRC}/bird2
                    378:                LDFLAGS="-L${PKG}/lib" CFLAGS="-I${PKG}/include" ${CEXEC} INSTALL="/usr/bin/install" ./configure \
                    379:                                --with-protocols=babel --with-protocols=bfd --with-protocols=bgp \
                    380:                                --with-protocols=mrt --with-protocols=ospf --with-protocols=pipe \
                    381:                                --with-protocols=radv --with-protocols=rip --with-protocols=rpki \
                    382:                                --with-protocols=static --sysconfdir=/etc/bird --localstatedir=/var ${PFX} || exit 1
                    383:                ${MK} clean || exit 1
                    384:                ${MK} || ${MK} || exit 1
                    385:                ${MK} install || exit 1
                    386:                echo ">>> Now rebuild elwix $CMD program ..."
                    387:                ;;
                    388:        bird)
                    389:                cd ${ADDSRC}/bird
                    390:                LDFLAGS="-L${PKG}/lib" CFLAGS="-I${PKG}/include" ${CEXEC} INSTALL="/usr/bin/install" ./configure \
                    391:                                --sysconfdir=/etc/bird --localstatedir=/var ${PFX} || exit 1
                    392:                ${MK} clean || exit 1
                    393:                ${MK} || ${MK} || exit 1
                    394:                ${MK} install || exit 1
                    395:                echo ">>> Now rebuild elwix $CMD program ..."
                    396:                ;;
                    397:        bird6)
                    398:                cd ${ADDSRC}/bird
                    399:                LDFLAGS="-L${PKG}/lib" CFLAGS="-I${PKG}/include" ${CEXEC} INSTALL="/usr/bin/install" ./configure \
                    400:                                --enable-ipv6 --sysconfdir=/etc/bird --localstatedir=/var ${PFX} || exit 1
                    401:                ${MK} clean || exit 1
                    402:                ${MK} || ${MK} || exit 1
                    403:                ${MK} install || exit 1
                    404:                echo ">>> Now rebuild elwix $CMD program ..."
                    405:                ;;
                    406:        tmux)
                    407:                cd ${ADDSRC}/tmux
                    408:                ${CEXEC} INSTALL="/usr/bin/install" ./configure ${PFX} || exit 1
                    409:                ${MK} clean || exit 1
                    410:                ${MK} || exit 1
                    411:                ${MK} install || exit 1
                    412:                echo ">>> Now rebuild elwix $CMD program ..."
                    413:                ;;
1.2       misho     414:        pcre)
                    415:                cd ${ADDSRC}/pcre
                    416:                ./configure --enable-utf --enable-unicode-properties --enable-pcre8 \
                    417:                                --enable-pcre16 --enable-pcre32 ${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:        libxml2)
                    424:                cd ${ADDSRC}/libxml2
                    425:                ./configure --without-python ${PFX} || exit 1
                    426:                ${MK} clean || exit 1
                    427:                ${MK} || exit 1
                    428:                ${MK} install || exit 1
                    429:                echo ">>> Now rebuild elwix $CMD program ..."
                    430:                ;;
                    431:        php)
                    432:                cd ${ADDSRC}/php
                    433:                ./configure --with-layout=GNU --localstatedir=/var --with-config-file-scan-dir=/etc/php \
                    434:                        --disable-all --enable-libxml --enable-xml --with-libxml-dir=${P} --with-openssl \
                    435:                        --enable-zip --enable-sqlite-utf8 ${PFX} || exit 1
                    436:                ${MK} clean || exit 1
                    437:                ${MK} || exit 1
                    438:                ${MK} install || exit 1
                    439:                rm -f ${P}/bin/php
                    440:                strip -s ${P}/bin/php-cgi
                    441:                echo ">>> Now rebuild elwix $CMD program ..."
                    442:                ;;
                    443:        scan_ffs)
                    444:                cd ${ADDSRC}/scan_ffs
                    445:                ${MK} clean || exit 1
                    446:                ${MK} || exit 1
                    447:                install scan_ffs ${P}/bin || exit 1
                    448:                echo ">>> Now rebuild elwix $CMD program ..."
                    449:                ;;
                    450:        dnsmasq)
                    451:                cd ${ADDSRC}/dnsmasq
                    452:                ${MK} clean || exit 1
                    453:                ${MK} || exit 1
                    454:                install src/dnsmasq ${P}/bin || exit 1
                    455:                echo ">>> Now rebuild elwix $CMD program ..."
                    456:                ;;
                    457:        rsync)
                    458:                cd ${ADDSRC}/rsync
1.3       misho     459:                ${CEXEC} INSTALL="/usr/bin/install" ./configure.sh --disable-debug --enable-ipv6 --with-rsyncd-conf=/etc/rsyncd.conf \
1.5       misho     460:                        --disable-iconv --disable-xxhash --disable-zstd --disable-lz4 --with-included-popt ${PFX} || exit 1
1.2       misho     461:                ${MK} clean || exit 1
                    462:                ${MK} || exit 1
                    463:                ${MK} install || exit 1
                    464:                echo ">>> Now rebuild elwix $CMD program ..."
                    465:                ;;
1.4       misho     466:        lrzsz)
                    467:                cd ${ADDSRC}/lrzsz
                    468:                LDFLAGS="-L${PKG}/lib" CFLAGS="-I${PKG}/include" ${CEXEC} INSTALL="/usr/bin/install" ./configure \
                    469:                                ${PFX} || exit 1
                    470:                ${MK} clean || exit 1
                    471:                ${MK} || ${MK} || exit 1
                    472:                ${MK} install || exit 1
                    473:                echo ">>> Now rebuild elwix $CMD program ..."
                    474:                ;;
1.2       misho     475:        istgt)
                    476:                cd ${ADDSRC}/istgt
                    477:                ./configure --enable-symlink-device ${PFX} || exit 1
                    478:                ${MK} clean || exit 1
                    479:                ${MK} || exit 1
                    480:                install src/istgt ${P}/bin || exit 1
                    481:                install src/istgtcontrol ${P}/bin || exit 1
                    482:                echo ">>> Now rebuild elwix $CMD program ..."
                    483:                ;;
                    484:        ntp)
                    485:                cd ${ADDSRC}/ntp
                    486:                ./configure --without-ntpsnmpd --with-crypto --enable-ipv6 --enable-BANCOMM \
                    487:                        --enable-GPSVME --enable-ACTS --enable-ARBITER --enable-ARCRON_MSF \
                    488:                        --enable-AS2201 --enable-ATOM --enable-CHRONOLOG --enable-CHU \
                    489:                        --enable-AUDIO_CHU --enable-DATUM --enable-DUMBCLOCK --enable-FG \
                    490:                        --enable-HEATH --enable-HOPFSERIAL --enable-HOPFPCI --enable-HPGPS \
                    491:                        --enable-IRIG --enable-JJY --enable-JUPITER --enable-LEITCH \
                    492:                        --enable-LOCAL_CLOCK --enable-MX4200 --enable-NEOCLOCK4X --enable-NMEA \
                    493:                        --enable-ONCORE --enable-PALISADE --enable-PCF --enable-PST \
                    494:                        --enable-RIPENCC --enable-SHM --enable-SPECTRACOM --enable-TRUETIME \
                    495:                        --enable-ULINK --enable-WWV --enable-ZYFER --enable-COMPUTIME \
                    496:                        --enable-DCF7000 --enable-HOPF6021 --enable-MEINBERG --enable-RAWDCF \
                    497:                        --enable-RCC8000 --enable-SCHMID --enable-TRIMTAIP --enable-TRIMTSIP \
                    498:                        --enable-WHARTON --enable-VARITEXT ${PFX} || exit 1
                    499:                ${MK} clean || exit 1
                    500:                ${MK} || exit 1
                    501:                ${MK} install || exit 1
                    502:                echo ">>> Now rebuild elwix $CMD program ..."
                    503:                ;;
                    504:        nginx)
                    505:                cd ${ADDSRC}/nginx
                    506:                ./configure --conf-path=/etc/nginx.conf --user=www --group=www \
                    507:                        --pid-path=/var/run/nginx.pid \
                    508:                        --error-log-path=/var/log/nginx-error.log \
                    509:                        --lock-path=/var/run/nging.lock \
                    510:                        --http-log-path=/var/log/nginx-access.log --with-ipv6 \
                    511:                        --with-http_ssl_module --with-http_mp4_module ${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:        spawn-fcgi)
                    518:                cd ${ADDSRC}/spawn-fcgi
                    519:                ./configure ${PFX} || exit 1
                    520:                ${MK} clean || exit 1
                    521:                ${MK} || exit 1
                    522:                ${MK} install || exit 1
                    523:                echo ">>> Now rebuild elwix $CMD program ..."
                    524:                ;;
                    525:        lighttpd)
                    526:                cd ${ADDSRC}/lighttpd
1.3       misho     527:                ./configure --libdir=/usr/local/lib/lighttpd --without-attr --without-bzip2 \
                    528:                        --without-gdbm --without-libev --without-lua --without-memcached --with-openssl \
                    529:                        --without-valgrind --enable-static ${PFX} || exit 1
1.2       misho     530:                ${MK} clean || exit 1
                    531:                ${MK} || exit 1
                    532:                ${MK} install || exit 1
                    533:                echo ">>> Now rebuild elwix $CMD program ..."
                    534:                ;;
                    535:        *)
                    536:                echo "Package not supported at this moment ..."
                    537:                exit 1
                    538: esac

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