Changeset 10272 in hybrid


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.

Location:
branches/releng-9.0/nanobsd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-9.0/nanobsd/cfg/nanobsd.wleiden

    r10124 r10272  
    2828NANO_PACKAGE_DIR=$NANO_CONF_DIR/../pkg/All
    2929
    30 # XXX: Create function which populate the right packages and fixes the
    31 # dependencies. Package build script could benefit from this list, as it
    32 # could build this list beforehand
    33 ## pkg_info -qr pkg/All/*
     30PORTSDIR='/usr/ports'
     31WL_PORTSDIR="$NANO_CONF_DIR/../ports/"
     32# Dirty quirk to allow comments in part below
     33PACKAGE_LIST=`cat <<EOF | sed 's/#.*$//g'
     34$PORTSDIR/dns/dnsmasq
     35$PORTSDIR/www/thttpd
     36$PORTSDIR/editors/vim-lite
     37$PORTSDIR/lang/python
     38$PORTSDIR/net-mgmt/net-snmp
     39$PORTSDIR/benchmarks/iperf
     40$PORTSDIR/net/pen
     41$PORTSDIR/devel/py-yaml
     42$PORTSDIR/sysutils/ucspi-tcp
     43$PORTSDIR/www/tinyproxy
     44$PORTSDIR/editors/vim-lite
     45$PORTSDIR/security/nmap
     46$PORTSDIR/ftp/curl
     47$PORTSDIR/security/openvpn
     48$PORTSDIR/net/sixxs-aiccu
     49
     50
     51# Wireless Leiden ports at $WL_PORTSDIR
     52$WL_PORTSDIR/net/lvrouted
     53`
     54# Package target
     55# Dirty quirk to allow comments in part below
     56PKG_MAKE_ARGS=`cat <<EOF | sed 's/#.*$//g'
     57PACKAGES=$(dirname $NANO_PACKAGE_DIR)
     58BATCH=yes PACKAGE_BUILDING=yes
     59# www/py-cherrypy
     60WITH_APACHE=yes
     61# net-mgmt/net-snmp
     62WITHOUT_PERL=yes
     63# net-mgmt/nagios-plugins
     64WITH_FPING=yes
     65# threads is broken in the version (atleast up to 9.0 - 20120213)
     66# Should be fix in current version in linux, but for some reason
     67# Not yet in BSD. We don't need threads
     68WITHOUT_THREADS=yes
     69`
     70
    3471##NANO_PACKAGE_LIST=
    3572
  • 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.