Convert aodv-uu to the KernelPackage template
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 8 Jan 2007 09:44:35 +0000 (09:44 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 8 Jan 2007 09:44:35 +0000 (09:44 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6027 3c298f89-4303-0410-b956-a3cf2f4a3e73

net/aodv-uu/Makefile

index 773053b..ea42a7f 100644 (file)
@@ -40,14 +40,16 @@ define Package/aodv-uu
        This package contains the AODV userland daemon.
 endef
 
-define Package/kmod-aodv-uu
+define KernelPackage/aodv-uu
   $(call Package/aodv-uu/Default)
-  SECTION:=kernel
-  CATEGORY=Kernel drivers
   TITLE+= (kernel module)
   DESCRIPTION+=\\\
        \\\
        This package contains the AODV kernel module.
+  FILES:=$(PKG_BUILD_DIR)/lnx/kaodv.$(LINUX_KMOD_SUFFIX)
+  SUBMENU:=Network Support
+  AUTOLOAD:=$(call AutoLoad,80,$(shell cat ./files/aodv-uu.modules))
+  VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
 endef
 
 ifeq ($(CONFIG_LINUX_2_6),y)
@@ -97,4 +99,4 @@ define Package/kmod-aodv-uu/install
 endef
 
 $(eval $(call BuildPackage,aodv-uu))
-$(eval $(call BuildPackage,kmod-aodv-uu))
+$(eval $(call KernelPackage,aodv-uu))