[Mod] First commit

This commit is contained in:
2022-10-31 22:18:58 +08:00
commit 1c8a3d9709
13090 changed files with 526733 additions and 0 deletions

10
package/lsof/Config.in Normal file
View File

@ -0,0 +1,10 @@
config BR2_PACKAGE_LSOF
bool "lsof"
depends on BR2_USE_MMU # fork()
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
help
lsof (LiSt Open Files)
The lsof tool lists information about files opened by
processes.
https://github.com/lsof-org/lsof

3
package/lsof/lsof.hash Normal file
View File

@ -0,0 +1,3 @@
# Locally calculated
sha256 e9faa0fbcc48638c1d1f143e93573ac43b65e76646150f83e24bd8c18786303c lsof_4.95.0.linux.tar.bz2
sha256 32a728188b19bf86917659d904ab29d0a294b4506e1c98b8b7f1c70ab4975fe1 dialects/linux/dproto.h

52
package/lsof/lsof.mk Normal file
View File

@ -0,0 +1,52 @@
################################################################################
#
# lsof
#
################################################################################
LSOF_VERSION = 4.95.0
LSOF_SOURCE = lsof_$(LSOF_VERSION).linux.tar.bz2
LSOF_SITE = https://github.com/lsof-org/lsof/releases/download/$(LSOF_VERSION)
LSOF_LICENSE = lsof license
# License is repeated in each file, this is a relatively small one.
# It is also defined in 00README, but that contains a lot of other cruft.
LSOF_LICENSE_FILES = dialects/linux/dproto.h
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
LSOF_DEPENDENCIES += libtirpc
endif
ifeq ($(BR2_USE_WCHAR),)
define LSOF_CONFIGURE_WCHAR_FIXUPS
$(SED) 's,^#define[[:space:]]*HASWIDECHAR.*,#undef HASWIDECHAR,' \
$(@D)/machine.h
endef
endif
ifeq ($(BR2_ENABLE_LOCALE),)
define LSOF_CONFIGURE_LOCALE_FIXUPS
$(SED) 's,^#define[[:space:]]*HASSETLOCALE.*,#undef HASSETLOCALE,' \
$(@D)/machine.h
endef
endif
define LSOF_CONFIGURE_CMDS
(cd $(@D) ; \
echo n | $(TARGET_CONFIGURE_OPTS) DEBUG="$(TARGET_CFLAGS)" \
LSOF_AR="$(TARGET_AR) cr" LSOF_CC="$(TARGET_CC)" \
LSOF_INCLUDE="$(STAGING_DIR)/usr/include" \
LINUX_CLIB=-DGLIBCV=2 LSOF_CFGL="$(TARGET_LDFLAGS)" \
./Configure linux)
$(LSOF_CONFIGURE_WCHAR_FIXUPS)
$(LSOF_CONFIGURE_LOCALE_FIXUPS)
endef
define LSOF_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
endef
define LSOF_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 755 $(@D)/lsof $(TARGET_DIR)/usr/bin/lsof
endef
$(eval $(generic-package))