Changeset 216


Ignore:
Timestamp:
Apr 15, 2011, 9:04:58 PM (8 years ago)
Author:
stappers
Message:

infrastructure for patching hostapd, early release

Location:
debwrt/trunk/debian/package/hostapd
Files:
2 added
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • debwrt/trunk/debian/package/hostapd/build.mk

    r214 r216  
    3838        bash -c \
    3939        "cd /usr/src/hostapd; export ARCH=$(TARGET_ARCH); ./build116.sh"
    40         # dont touch $@
     40        # touch $@
    4141
    4242debian/package/hostapd/prepare: debian/buildenv/create
     
    4646            cp -ar $(DEBIAN_PACKAGES_DIR)/hostapd/debian $(DEBIAN_BUILD_DIR)/usr/src/hostapd; \
    4747        fi
     48        cp -a $(DEBIAN_PACKAGES_DIR)/hostapd/patches   $(DEBIAN_BUILD_DIR)/usr/src/hostapd
    4849        cp -ar $(DEBIAN_PACKAGES_DIR)/hostapd/build.sh $(DEBIAN_BUILD_DIR)/usr/src/hostapd
    4950        cp  $(DEBIAN_PACKAGES_DIR)/hostapd/build116.sh $(DEBIAN_BUILD_DIR)/usr/src/hostapd
     
    5455        cp -ar $(DEBIAN_PACKAGES_DIR)/hostapd/debian \
    5556                $(DEBIAN_BUILD_DIR)/usr/src/hostapd
     57        cp -a $(DEBIAN_PACKAGES_DIR)/hostapd/patches \
     58                $(DEBIAN_BUILD_DIR)/usr/src/hostapd
    5659        cp  $(DEBIAN_PACKAGES_DIR)/hostapd/build116.sh \
     60            $(DEBIAN_PACKAGES_DIR)/hostapd/patch.sh \
    5761                $(DEBIAN_BUILD_DIR)/usr/src/hostapd
    58         # dont touch $@
     62        # touch $@
    5963
    6064debian/package/hostapd/version:
     
    6771        @rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/hostapdversion
    6872
     73# for ticket 116
     74debian/package/hostapd/patch: debian/package/hostapd/prepare debian/package/libnl
     75        $(CHROOT_USER) \
     76        bash -c \
     77        "cd /usr/src/hostapd; export ARCH=$(TARGET_ARCH); ./patch.sh"
     78        # touch $@
     79
    6980debian/package/hostapd/clean:
    7081        rm -f debian/package/hostapd/build
  • debwrt/trunk/debian/package/hostapd/build.sh

    r215 r216  
    6666#sed -i '/CONFIG_DRIVER_MADWIFI/d' ${BUILD_DIR}/src/hostapd/.config
    6767
     68# apply debwrt patches, if any
     69for patch in $( ls patches/*.diff )
     70do
     71    echo "I:patch file = ${patch}"
     72    patch -d ${BUILD_DIR} -p0 < ${patch}
     73done
     74
    6875if [ ! -d debian ]; then
    6976   cd ${BUILD_DIR}
  • debwrt/trunk/debian/package/hostapd/build116.sh

    r212 r216  
    2222BUILD_DIR=${BUILD_BASE_DIR}/${PACKAGE}-${VERSION}
    2323
     24# apply debwrt patches, if any
     25for patch in $( ls patches/*.diff )
     26do
     27    echo "I:patch file = ${patch}"
     28    patch -d ${BUILD_DIR} -p0 < ${patch}
     29done
     30
    2431   cd ${BUILD_DIR}
    2532   dpkg-buildpackage -a${ARCH} -rfakeroot
  • debwrt/trunk/debian/package/hostapd/patch.sh

    r215 r216  
    2222BUILD_DIR=${BUILD_BASE_DIR}/${PACKAGE}-${VERSION}
    2323
    24    cd ${BUILD_DIR}
    25    dpkg-buildpackage -a${ARCH} -rfakeroot
    26    find ${BUILD_BASE_DIR} -maxdepth 1 -name "*.deb"  | xargs -r -t -i sudo dpkg-cross -a ${ARCH} -i {}
     24echo $PWD  cd ${BUILD_DIR}
     25# apply debwrt patches, if any
     26for patch in $( ls patches/*.diff )
     27do
     28    echo "I:patch file = ${patch}"
     29    patch -d ${BUILD_DIR} -p0 < ${patch}
     30done
    2731
    2832# l l
Note: See TracChangeset for help on using the changeset viewer.