Add more license tags with SPDX identifiers
[openwrt/svn-archive/archive.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 PKG_LICENSE:=GPL-2.0
17 PKG_LICENSE_FILES:=
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/zram-swap
22 SECTION:=utils
23 CATEGORY:=Base system
24 DEPENDS:=+kmod-zram +!BUSYBOX_CONFIG_MKSWAP:swap-utils +!BUSYBOX_CONFIG_SWAPONOFF:block-mount
25 TITLE:=ZRAM swap scripts
26 PKGARCH:=all
27 endef
28
29 define Package/zram-swap/description
30 A script to activate swaping on a compressed zram partition. This
31 could be used to increase the available memory, by using compressed
32 memory.
33 endef
34
35 define Build/Prepare
36 endef
37
38 define Build/Configure
39 endef
40
41 define Build/Compile
42 endef
43
44 define Package/zram-swap/install
45 $(INSTALL_DIR) $(1)/etc/init.d
46 $(INSTALL_BIN) ./files/zram.init $(1)/etc/init.d/zram
47 endef
48
49 $(eval $(call BuildPackage,zram-swap))