mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 21:07:04 +04:00
- convert the patch to a make option - Add -J/-j options for JSON and JSON Lines output format. - lsof_free_result(): handle result == NULL - Fix missing parenthesis in lstat error message format - Fix use-after-free in lsof_select_process_regex - Fix truncated fd numbers in -F field output - Display connection state for UDP sockets with -T option Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=lsof
|
|
PKG_VERSION:=4.99.7
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://github.com/lsof-org/lsof/releases/download/$(PKG_VERSION)
|
|
PKG_HASH:=4a10391aab0b8ce1f539e82a1966693b2a6cf225972a6504ebb7ec4fa71675de
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
|
|
PKG_LICENSE:=lsof
|
|
PKG_LICENSE_FILES:=COPYING
|
|
PKG_CPE_ID:=cpe:/a:lsof_project:lsof
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
DISABLE_NLS:=
|
|
|
|
define Package/lsof
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=LiSt Open Files - a diagnostic tool
|
|
URL:=https://lsof.readthedocs.io/en/latest/
|
|
endef
|
|
|
|
CONFIGURE_ARGS += \
|
|
--without-selinux \
|
|
--without-libtirpc \
|
|
--disable-liblsof
|
|
|
|
MAKE_FLAGS += man8_MANS=
|
|
|
|
define Package/lsof/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lsof $(1)/usr/bin
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,lsof))
|