X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=package%2Fsystem%2Fprocd%2FMakefile;h=bfb0e002fd3fc20804f1f2dc366d3fa80c57e409;hb=6f7c308ce89af15820aeee20aa3361d659dd1ce6;hp=912ec527cbc56888892cf42225a9ec92cb93a30b;hpb=9ea5277315654835858defcd39bc6d6323c9d306;p=openwrt.git diff --git a/package/system/procd/Makefile b/package/system/procd/Makefile index 912ec527cb..bfb0e002fd 100644 --- a/package/system/procd/Makefile +++ b/package/system/procd/Makefile @@ -8,18 +8,18 @@ include $(TOPDIR)/rules.mk PKG_NAME:=procd -PKG_VERSION:=2014-11-01 +PKG_VERSION:=2015-01-09 PKG_RELEASE=$(PKG_SOURCE_VERSION) PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=git://nbd.name/luci2/procd.git PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -PKG_SOURCE_VERSION:=174777181850705df7c6dbe234bd7e93d352666a +PKG_SOURCE_VERSION:=e10fca6b88a8b57fe5a9e80dfd941ae6d98cb970 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz CMAKE_INSTALL:=1 -PKG_LICENSE:=GPLv2 +PKG_LICENSE:=GPL-2.0 PKG_LICENSE_FILES:= PKG_MAINTAINER:=John Crispin @@ -43,6 +43,13 @@ define Package/procd-nand TITLE:=OpenWrt sysupgrade nand helper endef +define Package/procd-nand-firstboot + SECTION:=utils + CATEGORY:=Utilities + DEPENDS:=procd-nand + TITLE:=OpenWrt firstboot nand helper +endef + define Package/procd/config menu "Configuration" depends on PACKAGE_procd @@ -51,13 +58,22 @@ config PROCD_SHOW_BOOT bool default n prompt "Print the shutdown to the console as well as logging it to syslog" + +config PROCD_ZRAM_TMPFS + bool + default n + prompt "Mount /tmp using zram." endmenu endef -PKG_CONFIG_DEPENDS:= PROCD_SHOW_BOOT +PKG_CONFIG_DEPENDS:= PROCD_SHOW_BOOT PROCD_ZRAM_TMPFS + +ifeq ($(CONFIG_PROCD_SHOW_BOOT),y) + CMAKE_OPTIONS += -DSHOW_BOOT_ON_CONSOLE=1 +endif -ifeq ($(CONFIG_PACKAGE_PROCD_SHOW_BOOT),y) - CMAKE_OPTIONS += -DSHOW_BOOT_ON_CONSOLE +ifeq ($(CONFIG_PROCD_ZRAM_TMPFS),y) + CMAKE_OPTIONS += -DZRAM_TMPFS=1 endif define Package/procd/install @@ -76,5 +92,12 @@ define Package/procd-nand/install $(INSTALL_DATA) ./files/nand.sh $(1)/lib/upgrade/ endef +define Package/procd-nand-firstboot/install + $(INSTALL_DIR) $(1)/lib/preinit + + $(INSTALL_DATA) ./files/nand-preinit.sh $(1)/lib/preinit/60-nand-firstboot.sh +endef + $(eval $(call BuildPackage,procd)) $(eval $(call BuildPackage,procd-nand)) +$(eval $(call BuildPackage,procd-nand-firstboot))