Files
bpfire/lfs/lsof
Adolf Belka 6220917d87 lsof: Update to version 4.99.3
- Update from version 4.98.0 to 4.99.3
- Update of rootfile not required
- Changelog
    4.99.3
	Fix a spaces vs. tabs issue in 00DIST.
    4.99.2
	Fix version file for CI
    4.99.1
        Fix compilation error when HASIPv6 is not defined. (@chenrui333)
        Add configure option --disable-liblsof to disable installation
         of liblsof. (@subnut, #300)
        [freebsd] fix segfault from fs info (FreeBSD bug 267760)
    4.99.0
	[netbsd] Get device numer of tmpfs instead of reporting zero
	[openbsd] Rewrite OpenBSD support because OpenBSD disallows
	 kernel memory access and lsof has to switch to user mode API.
	 Currently, most features are working, but file path reporting
	 and lock status are not working for lack of kernel support.
	 As a consequence, OpenBSD dialect is separated in a new folder.
	[darwin] Remove /dev/kmem backend because it no longer exists on
	 current macOS releases. Use libproc backend instead.
	[linux] Do not hard-code fd numbers in epoll test, fixing tests
	 on Void Linux
	[freebsd] Use kf_file_nlink if provided by kernel instead of
	 stat(). This commit requires kernel with
	 https://reviews.freebsd.org/D38169. It brings back the ability
	 to list deleted files via `lsof +L1`. Closes #264.
	[linux] Add --with-selinux configure option.
	[solaris] Re-introduce support for recent Solaris & OpenIndiana
	 releases.
	[darwin] Display kern ctl info, learned from apple lsof version.
	[linux] Improve performance by using closefrom(). Closes #281.
	[aix] Fix compilation on AIX 7.2 and add autotools build system
	 support for AIX.
	[aix] Suppress warnings properly on AIX version greater than
	 5.0. Closes #187.
	Introduce alpha version of liblsof which allows users to use
	 lsof functionality via C functions instead of spawning a
	 subprocess and parsing the output. This version may contain BUGs
	 and memory leaks, and the API may change before it stablizes.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2023-12-30 07:29:51 +00:00

78 lines
3.2 KiB
Plaintext

###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2023 IPFire Team <info@ipfire.org> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
# #
###############################################################################
###############################################################################
# Definitions
###############################################################################
include Config
VER = 4.99.3
THISAPP = lsof-$(VER)
DL_FILE = $(THISAPP).tar.gz
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
###############################################################################
# Top-level Rules
###############################################################################
objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
$(DL_FILE)_BLAKE2 = 71049bd2c3b6788260d9970e8c6828128999b5040fb23cee0e288ee7e353e5e0510b8b1e5a5275158f1ff37f18066a36766a80b56d24ff57be1f3243910482e7
install : $(TARGET)
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
download :$(patsubst %,$(DIR_DL)/%,$(objects))
b2 : $(subst %,%_BLAKE2,$(objects))
###############################################################################
# Downloading, checking, b2sum
###############################################################################
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
@$(CHECK)
$(patsubst %,$(DIR_DL)/%,$(objects)) :
@$(LOAD)
$(subst %,%_BLAKE2,$(objects)) :
@$(B2SUM)
###############################################################################
# Installation Details
###############################################################################
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xzf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && ./Configure linux
cd $(DIR_APP) && make $(MAKETUNING) CC="cc $(CFLAGS) $(LDFLAGS)"
cd $(DIR_APP) && install -m 755 -o root -g root lsof /usr/bin
@rm -rf $(DIR_APP)
@$(POSTBUILD)