| 1 |
# $FreeWRT$ |
| 2 |
#- |
| 3 |
# This file is part of the FreeWRT project. FreeWRT is copyrighted |
| 4 |
# material, please see the LICENCE file in the top-level directory |
| 5 |
# or at http://www.freewrt.org/licence for details. |
| 6 |
|
| 7 |
include $(TOPDIR)/rules.mk |
| 8 |
|
| 9 |
PKG_NAME:= fwrtc |
| 10 |
PKG_VERSION:= 0.1 |
| 11 |
PKG_RELEASE:= 0 |
| 12 |
|
| 13 |
DISTFILES:= |
| 14 |
|
| 15 |
include $(TOPDIR)/mk/package.mk |
| 16 |
|
| 17 |
$(eval $(call PKG_template,FWRTC,fwrtc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) |
| 18 |
|
| 19 |
$(WRKBUILD)/.prepared: |
| 20 |
mkdir -p $(WRKBUILD) |
| 21 |
touch $@ |
| 22 |
|
| 23 |
$(WRKBUILD)/.configured: |
| 24 |
touch $@ |
| 25 |
|
| 26 |
$(WRKBUILD)/.built: $(WRKBUILD)/.configured |
| 27 |
touch $@ |
| 28 |
|
| 29 |
$(IPKG_FWRTC): |
| 30 |
mkdir -p $(IDIR_FWRTC)/etc/{hotplug.d/net,modules.d} |
| 31 |
$(INSTALL_BIN) ./files/hotplug-fwrtc \ |
| 32 |
$(IDIR_FWRTC)/etc/hotplug.d/net/10-fwrtc |
| 33 |
$(INSTALL_DATA) ./files/fwrtc.conf $(IDIR_FWRTC)/etc/ |
| 34 |
$(INSTALL_DATA) ./files/modules-fwrtc \ |
| 35 |
$(IDIR_FWRTC)/etc/modules.d/40-fwrtc |
| 36 |
$(IPKG_BUILD) $(IDIR_FWRTC) $(PACKAGE_DIR) |