@ -22,11 +22,9 @@ PKG_LICENSE_FILES:=
PKG_MAINTAINER := John Crispin <john@phrozen.org>
PKG_MAINTAINER := John Crispin <john@phrozen.org>
PKG_FLAGS := nonshared
PKG_CONFIG_DEPENDS := \
PKG_CONFIG_DEPENDS := \
CONFIG_TARGET_INIT_PATH CONFIG_KERNEL_SECCOMP \
CONFIG_TARGET_INIT_PATH CONFIG_KERNEL_SECCOMP \
CONFIG_NAND_SUPPORT CONFIG_ PROCD_SHOW_BOOT CONFIG_PROCD_ZRAM_TMPFS \
CONFIG_PROCD_SHOW_BOOT CONFIG_PROCD_ZRAM_TMPFS \
CONFIG_KERNEL_NAMESPACES CONFIG_PACKAGE_procd-ujail CONFIG_PACKAGE_procd-seccomp
CONFIG_KERNEL_NAMESPACES CONFIG_PACKAGE_procd-ujail CONFIG_PACKAGE_procd-seccomp
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
@ -42,7 +40,7 @@ TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lrt)
d e f i n e P a c k a g e / p r o c d
d e f i n e P a c k a g e / p r o c d
SECTION:= base
SECTION:= base
CATEGORY:= Base system
CATEGORY:= Base system
DEPENDS:= +ubusd +ubus +libjson-script +ubox +USE_GLIBC:librt +libubox +libubus +NAND_SUPPORT:procd-nand
DEPENDS:= +ubusd +ubus +libjson-script +ubox +USE_GLIBC:librt +libubox +libubus
TITLE:= OpenWrt system process manager
TITLE:= OpenWrt system process manager
e n d e f
e n d e f
@ -60,20 +58,6 @@ define Package/procd-seccomp
TITLE:= OpenWrt process seccomp helper + utrace
TITLE:= OpenWrt process seccomp helper + utrace
e n d e f
e n d e f
d e f i n e P a c k a g e / p r o c d - n a n d
SECTION:= utils
CATEGORY:= Utilities
DEPENDS:= @NAND_SUPPORT +ubi-utils
TITLE:= OpenWrt sysupgrade nand helper
e n d e f
d e f i n e P a c k a g e / p r o c d - n a n d - f i r s t b o o t
SECTION:= utils
CATEGORY:= Utilities
DEPENDS:= procd-nand
TITLE:= OpenWrt firstboot nand helper
e n d e f
d e f i n e P a c k a g e / p r o c d / c o n f i g
d e f i n e P a c k a g e / p r o c d / c o n f i g
m e n u "Configuration"
m e n u "Configuration"
depends on PACKAGE_procd
depends on PACKAGE_procd
@ -91,10 +75,6 @@ endmenu
e n d e f
e n d e f
i f e q ( $( CONFIG_NAND_SUPPORT ) , y )
CMAKE_OPTIONS += -DBUILD_UPGRADED= 1
e n d i f
i f e q ( $( CONFIG_PROCD_SHOW_BOOT ) , y )
i f e q ( $( CONFIG_PROCD_SHOW_BOOT ) , y )
CMAKE_OPTIONS += -DSHOW_BOOT_ON_CONSOLE= 1
CMAKE_OPTIONS += -DSHOW_BOOT_ON_CONSOLE= 1
e n d i f
e n d i f
@ -114,7 +94,7 @@ endif
d e f i n e P a c k a g e / p r o c d / i n s t a l l
d e f i n e P a c k a g e / p r o c d / i n s t a l l
$( INSTALL_DIR) $( 1) /sbin $( 1) /etc $( 1) /lib/functions
$( INSTALL_DIR) $( 1) /sbin $( 1) /etc $( 1) /lib/functions
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin/{ init,procd,askfirst,udevtrigger} $( 1) /sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin/{ init,procd,askfirst,udevtrigger,upgraded } $( 1) /sbin/
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/lib/libsetlbf.so $( 1) /lib
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/lib/libsetlbf.so $( 1) /lib
$( INSTALL_BIN) ./files/reload_config $( 1) /sbin/
$( INSTALL_BIN) ./files/reload_config $( 1) /sbin/
$( INSTALL_DATA) ./files/hotplug*.json $( 1) /etc/
$( INSTALL_DATA) ./files/hotplug*.json $( 1) /etc/
@ -133,21 +113,6 @@ define Package/procd-seccomp/install
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/lib/libpreload-trace.so $( 1) /lib
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/lib/libpreload-trace.so $( 1) /lib
e n d e f
e n d e f
d e f i n e P a c k a g e / p r o c d - n a n d / i n s t a l l
$( INSTALL_DIR) $( 1) /sbin $( 1) /lib/upgrade
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin/upgraded $( 1) /sbin/
$( INSTALL_DATA) ./files/nand.sh $( 1) /lib/upgrade/
e n d e f
d e f i n e P a c k a g e / p r o c d - n a n d - f i r s t b o o t / i n s t a l l
$( INSTALL_DIR) $( 1) /lib/preinit
$( INSTALL_DATA) ./files/nand-preinit.sh $( 1) /lib/preinit/60-nand-firstboot.sh
e n d e f
$( eval $ ( call BuildPackage ,procd ) )
$( eval $ ( call BuildPackage ,procd ) )
$( eval $ ( call BuildPackage ,procd -ujail ) )
$( eval $ ( call BuildPackage ,procd -ujail ) )
$( eval $ ( call BuildPackage ,procd -seccomp ) )
$( eval $ ( call BuildPackage ,procd -seccomp ) )
$( eval $ ( call BuildPackage ,procd -nand ) )
$( eval $ ( call BuildPackage ,procd -nand -firstboot ) )