cosmetic: remove trailing whitespaces
[openwrt/staging/chunkeey.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_VERSION:=1
12 PKG_RELEASE:=2
13
14 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/zram-swap
19 SECTION:=utils
20 CATEGORY:=Base system
21 DEPENDS:=+kmod-zram +!BUSYBOX_CONFIG_MKSWAP:swap-utils +!BUSYBOX_CONFIG_SWAPONOFF:block-mount
22 TITLE:=ZRAM swap scripts
23 PKGARCH:=all
24 endef
25
26 define Package/zram-swap/description
27 A script to activate swaping on a compressed zram partition. This
28 could be used to increase the available memory, by using compressed
29 memory.
30 endef
31
32 define Build/Prepare
33 endef
34
35 define Build/Configure
36 endef
37
38 define Build/Compile
39 endef
40
41 define Package/zram-swap/install
42 $(INSTALL_DIR) $(1)/etc/init.d
43 $(INSTALL_BIN) ./files/zram.init $(1)/etc/init.d/zram
44 endef
45
46 $(eval $(call BuildPackage,zram-swap))