| 1 | include $(TOPDIR)/rules.mk |
|---|
| 2 | |
|---|
| 3 | PKG_NAME:=ap51-flash |
|---|
| 4 | PKG_REV:=93 |
|---|
| 5 | PKG_VERSION:=r$(PKG_REV) |
|---|
| 6 | PKG_RELEASE:=1 |
|---|
| 7 | |
|---|
| 8 | PKG_SOURCE_PROTO:=svn |
|---|
| 9 | PKG_SOURCE_VERSION:=$(PKG_REV) |
|---|
| 10 | PKG_SOURCE_SUBDIR:=ap51-flash-$(PKG_VERSION) |
|---|
| 11 | PKG_SOURCE_URL:=http://dev.open-mesh.com/downloads/svn/ap51-flash/trunk |
|---|
| 12 | PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz |
|---|
| 13 | |
|---|
| 14 | PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
|---|
| 15 | |
|---|
| 16 | include $(INCLUDE_DIR)/package.mk |
|---|
| 17 | |
|---|
| 18 | define Package/ap51-flash |
|---|
| 19 | SECTION:=utils |
|---|
| 20 | CATEGORY:=Utilities |
|---|
| 21 | DEPENDS:=+libpcap |
|---|
| 22 | TITLE:=A tool for flashing (nearly) all ap51/ap61 based routers |
|---|
| 23 | URL:=http://dev.open-mesh.com |
|---|
| 24 | endef |
|---|
| 25 | |
|---|
| 26 | define Package/ap51-flash/install |
|---|
| 27 | $(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/usr/sbin |
|---|
| 28 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/ap51-flash $(1)/usr/sbin/ |
|---|
| 29 | $(INSTALL_BIN) ./files/ap51-flash.init $(1)/etc/init.d/ap51-flash |
|---|
| 30 | $(INSTALL_DATA) ./files/ap51-flash.conf $(1)/etc/config/ap51-flash |
|---|
| 31 | endef |
|---|
| 32 | # install -m0755 -d $(1)/usr/sbin |
|---|
| 33 | # install -m0755 $(PKG_BUILD_DIR)/ap51-flash $(1)/usr/sbin/ |
|---|
| 34 | # install -m0755 $(PKG_BUILD_DIR)/src/ifplugd $(1)/usr/sbin/ |
|---|
| 35 | |
|---|
| 36 | $(eval $(call BuildPackage,ap51-flash)) |
|---|