Changeset 10272 in hybrid for branches/releng-9.0/nanobsd/tools/package-build.sh
- Timestamp:
- Mar 22, 2012, 11:19:36 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-9.0/nanobsd/tools/package-build.sh
r10181 r10272 12 12 # make options, for package building 13 13 LOGDIR=`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 target17 MAKE_ARGS="$MAKE_ARGS PACKAGES=$TARGET"18 MAKE_ARGS="$MAKE_ARGS BATCH=yes PACKAGE_BUILDING=yes"19 20 # www/py-cherrypy21 MAKE_ARGS="${MAKE_ARGS} WITH_APACHE=yes"22 # net-mgmt/net-snmp23 MAKE_ARGS="${MAKE_ARGS} WITHOUT_PERL=yes"24 # net-mgmt/nagios-plugins25 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 reason28 # Not yet in BSD. We don't need threads29 MAKE_ARGS="${MAKE_ARGS} WITHOUT_THREADS=yes"30 14 31 15 p_info Log directory ${LOGDIR} 32 16 p_info Make options are: 33 p_info $(p_list ${ MAKE_ARGS})17 p_info $(p_list ${PKG_MAKE_ARGS}) 34 18 35 19 p_info Checking whether there are currently unmet dependencies … … 61 45 62 46 63 if [ -d "${ TARGET}/All" ]; then64 p_warn "Deleted all (old) packages at ${ TARGET}"65 rm -R $ TARGET/*47 if [ -d "${NANO_PACKAGE_DIR}" ]; then 48 p_warn "Deleted all (old) packages at ${NANO_PACKAGE_DIR}" 49 rm -R ${NANO_PACKAGE_DIR}/* 66 50 fi 67 p_info Created target dir ${ TARGET}/All68 mkdir -p ${ TARGET}/All51 p_info Created target dir ${NANO_PACKAGE_DIR} 52 mkdir -p ${NANO_PACKAGE_DIR} 69 53 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}" 54 MAKE="make ${PKG_MAKE_ARGS}" 94 55 95 56 BUILD_LIST='' … … 149 110 ${MAKE} package-links 150 111 PKGNAME=`make extract-message | awk '{print $NF}'` 151 pkg_create -b $PKGNAME $ TARGET/All/${PKGNAME}.tbz112 pkg_create -b $PKGNAME ${NANO_PACKAGE_DIR}/${PKGNAME}.tbz 152 113 153 114 p_info Checking dependencies
Note:
See TracChangeset
for help on using the changeset viewer.