mac80211 ozonet updates
[openwrt/.git] / package / system / zram-swap / Makefile
1 #
2 # Copyright (C) 2013 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=zram-swap
11 PKG_RELEASE:=6
12
13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/zram-swap
18   SECTION:=utils
19   CATEGORY:=Base system
20   DEPENDS:=+kmod-zram +!(BUSYBOX_CONFIG_MKSWAP&&BUSYBOX_CONFIG_SWAPON&&BUSYBOX_CONFIG_SWAPOFF):swap-utils
21   TITLE:=ZRAM swap scripts
22   PKGARCH:=all
23 endef
24
25 define Package/zram-swap/description
26  A script to activate swaping on a compressed zram partition. This 
27  could be used to increase the available memory, by using compressed 
28  memory.
29 endef
30
31 define Build/Prepare
32 endef
33
34 define Build/Configure
35 endef
36
37 define Build/Compile
38 endef
39
40 define Package/zram-swap/install
41         $(INSTALL_DIR) $(1)/etc/init.d
42         $(INSTALL_BIN) ./files/zram.init $(1)/etc/init.d/zram
43 endef
44
45 $(eval $(call BuildPackage,zram-swap))