Files
bpfire/lfs/lsof
Adolf Belka 80274cc875 lsof: Update to version 4.96.4
- Update from version 4.95.0 to 4.96.4
- Update of rootfile not required
- bz2 version of source tarball is no longer provided.
- Changelog
    4.96.4		October 18, 2022
		[FreeBSD] sys/files.h no longer needs _KERNEL defined to
                 include it (bsdimp #256)
		docs: Describe fd number truncation in output (#261)
    4.96.3		September 16, 2022
                [FreeBSD] Fix kqueue compat for releases < 14
    4.96.2		September 16, 2022
                [FreeBSD] fix FreeBSD < 14
    4.96.1		September 16, 2022
                [FreeBSD] Unconditionally define HASKQUEUE (mjguzik)
    4.96.0		September 16, 2022
		[linux] fix hash functions used for finding local tcp/udp IPCs
		 There were typos in the code calculating hash values. The typos might
		 break the flatness of hashtables where the endpoint information about
		 locally used tcp/udp was stored. Theoretically, this fix may improve
		 the performance of lsof with [+|-]E option.
		 Inspired by the issue #206 reported by Tomasz Kłoczko (@kloczek).
		Show copyright notice in --version output.
		[linux] compile with -Wall option
		[linux] Avoid some easy collissions for udp/udp6 sockets when hashing
		[linux] Changing the number of ipcbuckets to 4096
		[darwin] fix build with -fno-common (Cfp redefinition)
		 gcc-10 and llvm-11 changed the default from -fcommon to -fno-common:
		 https://gcc.gnu.org/PR85678
		 As a result build fails as:
			duplicate symbol '_Cfp' in: ddev.o dfile.o
		 Cfp is already explicitly defined in dstore.c. The change turns
		 header definition into declaration.
		 Provided by Sergei Trofimovich (@trofi) in #221. The same fix is
		 applied to libproc backend by Jiajie Chen (@jiegec) in #226.
		[linux] Make build reproducible by checking SOURCE_DATE_EPOCH
		 and considering LSOF_{HOST,LOGNAME,SYSINFO,USER} as "none" when
		 it is set.
		 Provided by Danilo Spinella in #217
		[darwin] remove /usr/include prefix from include for Darwin 19+
		 The /usr/include path is missing since macOS Catalina.
		 Fixes issue #234.
		 Provided by Jiajie Chen in #235
		[linux] obtain correct information of memory-mapped file.
		 Provided by Teng Hu in #239
		[FreeBSD] configure: suggest variable to set if FreeBSD sys not found
        	 submitted by @emaste
		Updated 00FAQ with lookup to open files via mountpoint
		 Provided by Jacob Chapman in #240
                [FreeBSD] modernize API usage and remove legacy FreeBSD releases
                 Contributor DamjanJovanovic (#184) Ed Maste (#250, #251, #252),
                 Warner Losh (#253)

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
2022-11-29 13:39:25 +01:00

78 lines
3.2 KiB
Plaintext

###############################################################################
# #
# IPFire.org - A linux based firewall #
# Copyright (C) 2007-2022 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.96.4
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 = c420e2f928ffa8148a62298ba7176f860b15f9e78f4c2dc299162614a1d9b94a85c42ee93ef5e92b8a99f1c67e496cf2c848874b844c22c287aab53bfe211c58
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 axf $(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)