generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
11
package/s6/Config.in
Normal file
11
package/s6/Config.in
Normal file
@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_S6
|
||||
bool "s6"
|
||||
depends on BR2_USE_MMU # execline
|
||||
select BR2_PACKAGE_EXECLINE
|
||||
help
|
||||
s6 is a small suite of programs for UNIX, designed to allow
|
||||
process supervision (a.k.a service supervision), in the line
|
||||
of daemontools and runit, as well as various operations on
|
||||
processes and daemons.
|
||||
|
||||
http://skarnet.org/software/s6/
|
||||
3
package/s6/s6.hash
Normal file
3
package/s6/s6.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally generated
|
||||
sha256 1d21373151704150df0e8ed199f097f6ee5d2befb9a68aca4f20f3862e5d8757 s6-2.10.0.3.tar.gz
|
||||
sha256 adecb8bedfaae27fcfe65ecb3ef0e2e71aa2a2b49dc21886a200bc677d93e6ec COPYING
|
||||
70
package/s6/s6.mk
Normal file
70
package/s6/s6.mk
Normal file
@ -0,0 +1,70 @@
|
||||
################################################################################
|
||||
#
|
||||
# s6
|
||||
#
|
||||
################################################################################
|
||||
|
||||
S6_VERSION = 2.10.0.3
|
||||
S6_SITE = http://skarnet.org/software/s6
|
||||
S6_LICENSE = ISC
|
||||
S6_LICENSE_FILES = COPYING
|
||||
S6_INSTALL_STAGING = YES
|
||||
S6_DEPENDENCIES = execline
|
||||
|
||||
S6_CONF_OPTS = \
|
||||
--prefix=/ \
|
||||
--with-sysdeps=$(STAGING_DIR)/lib/skalibs/sysdeps \
|
||||
--with-include=$(STAGING_DIR)/include \
|
||||
--with-dynlib=$(STAGING_DIR)/lib \
|
||||
--with-lib=$(STAGING_DIR)/lib/execline \
|
||||
--with-lib=$(STAGING_DIR)/lib/skalibs \
|
||||
$(if $(BR2_STATIC_LIBS),,--disable-allstatic) \
|
||||
$(SHARED_STATIC_LIBS_OPTS)
|
||||
|
||||
define S6_CONFIGURE_CMDS
|
||||
(cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure $(S6_CONF_OPTS))
|
||||
endef
|
||||
|
||||
define S6_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define S6_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
||||
endef
|
||||
|
||||
define S6_REMOVE_STATIC_LIB_DIR
|
||||
rm -rf $(TARGET_DIR)/usr/lib/s6
|
||||
endef
|
||||
|
||||
S6_POST_INSTALL_TARGET_HOOKS += S6_REMOVE_STATIC_LIB_DIR
|
||||
|
||||
define S6_INSTALL_STAGING_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
||||
endef
|
||||
|
||||
HOST_S6_DEPENDENCIES = host-execline
|
||||
|
||||
HOST_S6_CONF_OPTS = \
|
||||
--prefix=$(HOST_DIR) \
|
||||
--with-sysdeps=$(HOST_DIR)/lib/skalibs/sysdeps \
|
||||
--with-include=$(HOST_DIR)/include \
|
||||
--with-dynlib=$(HOST_DIR)/lib \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--disable-allstatic
|
||||
|
||||
define HOST_S6_CONFIGURE_CMDS
|
||||
(cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure $(HOST_S6_CONF_OPTS))
|
||||
endef
|
||||
|
||||
define HOST_S6_BUILD_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define HOST_S6_INSTALL_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) install-dynlib install-include
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
$(eval $(host-generic-package))
|
||||
Reference in New Issue
Block a user