source: trunk/debian/package/iw/iw.sh @ 517

Last change on this file since 517 was 517, checked in by amain, 6 years ago

Merge contrib branch 340:516. Main features added:

  • updated plugin architecture
  • improved patch system
  • bitten continous integration support
  • sever build fixed over time to remain in sync with OpenWrt
  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#!/bin/bash
2#
3# 1. Download package and unpack package
4# 2. Copy debian/directory to it
5# 3. Run dpkg-buildpackage --arch=<ARCH> -rfakeroot
6
7export DEBFULLNAME="Amain (DebWrt.net)"
8export LC_ALL=C
9VERBOSE=1
10
11[ "1" == $VERBOSE ] && set -x
12
13PACKAGE=iw
14VERSION=0.9.19
15RELEASE=1
16PACKAGE_SOURCE=${PACKAGE}-${VERSION}.tar.bz2
17#DOWNLOAD_URL=http://wireless.kernel.org/download/iw/${PACKAGE_SOURCE}
18#DOWNLOAD_URL=http://linuxwireless.org/download/iw/${PACKAGE_SOURCE}
19DOWNLOAD_URL=http://www.kernel.org/pub/software/network/iw/${PACKAGE_SOURCE}
20DEP=
21
22BASE_DIR=/usr/src
23BUILD_BASE_DIR=${BASE_DIR}/${PACKAGE}
24BUILD_DIR=${BUILD_BASE_DIR}/${PACKAGE}-${VERSION}
25DOWNLOAD_DIR=${BASE_DIR}/dl
26
27mkdir -p $DOWNLOAD_DIR
28rm -rf ${BUILD_DIR}
29mkdir -p ${BUILD_DIR}
30if [ ! -s ${DOWNLOAD_DIR}/${PACKAGE_SOURCE} ]; then rm -f ${DOWNLOAD_DIR}/${PACKAGE_SOURCE}; wget -O ${DOWNLOAD_DIR}/${PACKAGE_SOURCE} $DOWNLOAD_URL; fi
31tar xjf ${DOWNLOAD_DIR}/${PACKAGE_SOURCE} -C ${BUILD_DIR} --strip 1
32
33if [ ! -d debian ]; then
34   cd ${BUILD_DIR} 
35   dh_make -c gpl -e "amain@debwrt.net" -s -f ../../dl/iw-$VERSION.tar.bz2
36   echo "Please complete debian package configuration. When done: cp -ra ${BUILD_DIR}/debian ."
37else
38   cp -rav debian ${BUILD_DIR}
39   cd ${BUILD_DIR}
40   dpkg-buildpackage -a${ARCH} -rfakeroot
41   #find ${BUILD_BASE_DIR} -maxdepth 1 -name "*.deb"  | xargs -r -t -i sudo dpkg-cross -a ${ARCH} -i {} || true
42fi
43
Note: See TracBrowser for help on using the repository browser.