X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/bce9978c108910dcc1bb58eee32dd9d39ebba5ff..a3eeda1387d629c7f9f25e480bca2a0636835560:/package/compcache/Makefile?ds=inline diff --git a/package/compcache/Makefile b/package/compcache/Makefile index 13a9056db..5106293e8 100644 --- a/package/compcache/Makefile +++ b/package/compcache/Makefile @@ -1,17 +1,16 @@ # -# Copyright (C) 2009 OpenWrt.org +# Copyright (C) 2009-2010 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # -# $Id: Makefile 6562 2009-10-05 08:30:14 ghd $ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=compcache PKG_VERSION:=0.6.2 -PKG_RELEASE:=$(PKG_VERSION)-1 +PKG_RELEASE:=2 PKG_SOURCE_URL:=http://compcache.googlecode.com/files/ PKG_MD5SUM:=27aec78dc50e34fb800c74e879057743 @@ -19,16 +18,24 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz include $(INCLUDE_DIR)/package.mk -define KernelPackage/compcache +define KernelPackage/ramzswap SUBMENU:=Other modules - DEPENDS:=@LINUX_2_6 @BUSYBOX_CONFIG_SWAPONOFF + DEPENDS:=@BUSYBOX_CONFIG_SWAPONOFF TITLE:=Driver for compressed ram swap device VERSION:=$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)+$(PKG_RELEASE) - FILES:=$(PKG_BUILD_DIR)/ramzswap.$(LINUX_KMOD_SUFFIX) \ - $(PKG_BUILD_DIR)/sub-projects/compression/lzo-kmod/lzo1x.$(LINUX_KMOD_SUFFIX) - MENU:=1 + FILES:=$(PKG_BUILD_DIR)/ramzswap.ko \ + $(PKG_BUILD_DIR)/sub-projects/compression/lzo-kmod/lzo1x.ko + URL:=http://code.google.com/p/compcache/ endef +define Package/compcache + SECTION:=util + CATEGORY:=Utilities + DEPENDS:=+kmod-ramzswap + TITLE:=Compressed ram swap device + URL:=http://code.google.com/p/compcache/ + MENU:=1 +endef include $(INCLUDE_DIR)/kernel-defaults.mk @@ -47,7 +54,7 @@ define Build/Compile $(TARGET_CC) $(TARGET_CFLAGS) $(RZSCFLAGS) $(PKG_BUILD_DIR)/$(RZSC)/rzscontrol.c -o $(PKG_BUILD_DIR)/rzscontrol endef -define KernelPackage/compcache/install +define Package/compcache/install $(INSTALL_DIR) $(1)/etc/config $(INSTALL_DATA) ./files/compcache.config $(1)/etc/config/compcache $(SED) 's,%ENABLED%,$(if $(CONFIG_COMPCACHE_ENABLE),1,0),g' \ @@ -60,8 +67,9 @@ define KernelPackage/compcache/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/rzscontrol $(1)/sbin/rzscontrol endef -define KernelPackage/compcache/config +define Package/compcache/config source "$(SOURCE)/Config.in" endef -$(eval $(call KernelPackage,compcache)) +$(eval $(call BuildPackage,compcache)) +$(eval $(call KernelPackage,ramzswap))