Changeset 10272 in hybrid for branches/releng-9.0/nanobsd/tools


Ignore:
Timestamp:
Mar 22, 2012, 11:19:36 AM (13 years ago)
Author:
rick
Message:

Merge package building into the central config file, to make custom
configurations more easy to maintain also done at iris and proxy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-9.0/nanobsd/tools/package-build.sh

    r10181 r10272  
    1212# make options, for package building
    1313LOGDIR=`mktemp -d "/tmp/$(basename $0 .sh)-$(date +%Y%m%d-%H:%M:%S).X"`
    14 TARGET="`cd $(dirname $0);pwd -P`/../pkg/"
    15 
    16 # Package target
    17 MAKE_ARGS="$MAKE_ARGS PACKAGES=$TARGET"
    18 MAKE_ARGS="$MAKE_ARGS BATCH=yes PACKAGE_BUILDING=yes"
    19 
    20 # www/py-cherrypy
    21 MAKE_ARGS="${MAKE_ARGS} WITH_APACHE=yes"
    22 # net-mgmt/net-snmp
    23 MAKE_ARGS="${MAKE_ARGS} WITHOUT_PERL=yes"
    24 # net-mgmt/nagios-plugins
    25 MAKE_ARGS="${MAKE_ARGS} WITH_FPING=yes"
    26 # threads is broken in the version (atleast up to 9.0 - 20120213)
    27 # Should be fix in current version in linux, but for some reason
    28 # Not yet in BSD. We don't need threads
    29 MAKE_ARGS="${MAKE_ARGS} WITHOUT_THREADS=yes"
    3014
    3115p_info Log directory ${LOGDIR}
    3216p_info Make options are:
    33 p_info $(p_list ${MAKE_ARGS})
     17p_info $(p_list ${PKG_MAKE_ARGS})
    3418
    3519p_info Checking whether there are currently unmet dependencies
     
    6145
    6246
    63 if [ -d "${TARGET}/All" ]; then
    64         p_warn "Deleted all (old) packages at ${TARGET}"
    65         rm -R $TARGET/*
     47if [ -d "${NANO_PACKAGE_DIR}" ]; then
     48        p_warn "Deleted all (old) packages at ${NANO_PACKAGE_DIR}"
     49        rm -R ${NANO_PACKAGE_DIR}/*
    6650fi
    67 p_info Created target dir ${TARGET}/All
    68 mkdir -p ${TARGET}/All
     51p_info Created target dir ${NANO_PACKAGE_DIR}
     52mkdir -p ${NANO_PACKAGE_DIR}
    6953
    70 PORTSDIR='/usr/ports'
    71 WL_PORTSDIR="`cd $(dirname $0);pwd -P`/../ports/"
    72 
    73 PACKAGE_LIST=`cat <<EOF | sed 's/#.*$//g'
    74 $PORTSDIR/dns/dnsmasq
    75 $PORTSDIR/www/thttpd
    76 $PORTSDIR/editors/vim-lite
    77 $PORTSDIR/lang/python
    78 $PORTSDIR/net-mgmt/net-snmp
    79 $PORTSDIR/benchmarks/iperf
    80 $PORTSDIR/net/pen
    81 $PORTSDIR/devel/py-yaml
    82 $PORTSDIR/sysutils/ucspi-tcp
    83 $PORTSDIR/www/tinyproxy
    84 $PORTSDIR/editors/vim-lite
    85 $PORTSDIR/security/nmap
    86 $PORTSDIR/ftp/curl
    87 $PORTSDIR/security/openvpn
    88 $PORTSDIR/net/sixxs-aiccu
    89 $WL_PORTSDIR/net/lvrouted
    90 
    91 `
    92 
    93 MAKE="make ${MAKE_ARGS}"
     54MAKE="make ${PKG_MAKE_ARGS}"
    9455
    9556BUILD_LIST=''
     
    149110  ${MAKE} package-links
    150111  PKGNAME=`make extract-message | awk '{print $NF}'`
    151   pkg_create -b $PKGNAME $TARGET/All/${PKGNAME}.tbz
     112  pkg_create -b $PKGNAME ${NANO_PACKAGE_DIR}/${PKGNAME}.tbz
    152113
    153114  p_info Checking dependencies
Note: See TracChangeset for help on using the changeset viewer.