procd: make mDNS TXT record parsing more solid
[openwrt/openwrt.git] / package / system / zram-swap / Makefile
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # Copyright (C) 2013-2021 OpenWrt.org
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=zram-swap
8 PKG_RELEASE:=$(AUTORELEASE)
9
10 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
11
12 include $(INCLUDE_DIR)/package.mk
13
14 define Package/zram-swap
15 SECTION:=utils
16 CATEGORY:=Base system
17 DEPENDS:= \
18 +@BUSYBOX_CONFIG_FEATURE_SWAPON_DISCARD \
19 +@BUSYBOX_CONFIG_FEATURE_SWAPON_PRI \
20 +@BUSYBOX_CONFIG_MKSWAP \
21 +@BUSYBOX_CONFIG_SWAPOFF \
22 +@BUSYBOX_CONFIG_SWAPON \
23 +kmod-zram
24 TITLE:=ZRAM swap scripts
25 PKGARCH:=all
26 endef
27
28 define Package/zram-swap/description
29 A script to activate swaping on a compressed zram partition. This
30 could be used to increase the available memory, by using compressed
31 memory.
32 endef
33
34 define Build/Prepare
35 endef
36
37 define Build/Configure
38 endef
39
40 define Build/Compile
41 endef
42
43 define Package/zram-swap/install
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_BIN) ./files/zram.init $(1)/etc/init.d/zram
46 endef
47
48 $(eval $(call BuildPackage,zram-swap))