Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
diff -ru lsof_4.81.orig/lsof_4.81_src/lib/Makefile.skel lsof_4.81/lsof_4.81_src/lib/Makefile.skel
|
||||
--- a/lib/Makefile.skel 2001-02-13 03:12:22.000000000 +0100
|
||||
+++ b/lib/Makefile.skel 2006-11-29 13:51:44.000000000 +0100
|
||||
@@ -21,8 +21,8 @@
|
||||
all: ${LIB}
|
||||
|
||||
${LIB}: ${OBJ}
|
||||
- ${AR}
|
||||
- ${RANLIB}
|
||||
+ ${AR} cr ${LIB} ${OBJ}
|
||||
+ ${RANLIB} ${LIB}
|
||||
|
||||
clean: FRC
|
||||
rm -f ${LIB} ${OBJ} errs Makefile.bak a.out core
|
||||
@@ -0,0 +1,18 @@
|
||||
--- a/print.c 2006-08-23 13:37:43.000000000 -0600
|
||||
+++ b/print.c 2006-08-23 13:38:29.000000000 -0600
|
||||
@@ -148,6 +148,7 @@
|
||||
static void
|
||||
fill_portmap()
|
||||
{
|
||||
+#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_RPC__)
|
||||
char buf[128], *cp, *nm;
|
||||
CLIENT *c;
|
||||
int h, port, pr;
|
||||
@@ -266,6 +267,7 @@
|
||||
Pth[pr][h] = pt;
|
||||
}
|
||||
clnt_destroy(c);
|
||||
+#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
--- lsof_4.84/Configure 2008-10-21 18:21:45.000000000 +0200
|
||||
+++ lsof_4.84/Configure 2010-11-03 14:00:00.000000000 +0100
|
||||
@@ -5206,6 +5206,10 @@
|
||||
cp $LSOF_MKFC ${LSOF_LIB}/$LSOF_LIBMKF
|
||||
fi # }
|
||||
cat ./dialects/$LSOF_DIALECT_DIR/$LSOF_REST >> $LSOF_MKFC
|
||||
+if test "X$LSOF_CFLAGS_OVERRIDE" != "X" # {
|
||||
+then
|
||||
+ sed -i -e 's/^CFLAGS=/override CFLAGS=/' $LSOF_MKFC
|
||||
+fi # }
|
||||
if test "X$LSOF_LIB_NO" = "X" # {
|
||||
then
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
diff -rdup lsof_4.81.orig/lsof_4.81_src/dialects/linux/machine.h lsof_4.81/lsof_4.81_src/dialects/linux/machine.h
|
||||
--- a/dialects/linux/machine.h 2007-04-24 18:20:58.000000000 +0200
|
||||
+++ b/dialects/linux/machine.h 2007-05-15 12:17:03.000000000 +0200
|
||||
@@ -616,6 +616,6 @@
|
||||
* zeromem is a macro that uses bzero or memset.
|
||||
*/
|
||||
|
||||
-#define zeromem(a, l) bzero(a, l)
|
||||
+#define zeromem(a, l) memset(a, 0, l)
|
||||
|
||||
#endif /* !defined(LSOF_MACHINE_H) */
|
||||
|
||||
9
deprecated/firmware/buildroot/package/lsof/Config.in
Normal file
9
deprecated/firmware/buildroot/package/lsof/Config.in
Normal file
@@ -0,0 +1,9 @@
|
||||
config BR2_PACKAGE_LSOF
|
||||
bool "lsof"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
lsof (LiSt Open Files)
|
||||
The lsof tool lists information about files opened by
|
||||
processes.
|
||||
|
||||
http://people.freebsd.org/~abe/
|
||||
2
deprecated/firmware/buildroot/package/lsof/lsof.hash
Normal file
2
deprecated/firmware/buildroot/package/lsof/lsof.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 81ac2fc5fdc944793baf41a14002b6deb5a29096b387744e28f8c30a360a3718 lsof_4.89.tar.bz2
|
||||
57
deprecated/firmware/buildroot/package/lsof/lsof.mk
Normal file
57
deprecated/firmware/buildroot/package/lsof/lsof.mk
Normal file
@@ -0,0 +1,57 @@
|
||||
################################################################################
|
||||
#
|
||||
# lsof
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LSOF_VERSION = 4.89
|
||||
LSOF_SOURCE = lsof_$(LSOF_VERSION).tar.bz2
|
||||
# Use http mirror since master ftp site access is very draconian
|
||||
LSOF_SITE = http://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof
|
||||
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
|
||||
|
||||
# Make certain full-blown lsof gets built after the busybox version (1.20+)
|
||||
LSOF_DEPENDENCIES += $(if $(BR2_PACKAGE_BUSYBOX),busybox)
|
||||
|
||||
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
|
||||
|
||||
# The .tar.bz2 contains another .tar, which contains the source code.
|
||||
define LSOF_EXTRACT_CMDS
|
||||
$(call suitable-extractor,$(LSOF_SOURCE)) $(DL_DIR)/$(LSOF_SOURCE) | \
|
||||
$(TAR) -O $(TAR_OPTIONS) - lsof_$(LSOF_VERSION)/lsof_$(LSOF_VERSION)_src.tar | \
|
||||
$(TAR) --strip-components=1 -C $(LSOF_DIR) $(TAR_OPTIONS) -
|
||||
endef
|
||||
|
||||
define LSOF_CONFIGURE_CMDS
|
||||
(cd $(@D) ; \
|
||||
echo n | $(TARGET_CONFIGURE_OPTS) DEBUG="$(TARGET_CFLAGS)" \
|
||||
LSOF_INCLUDE="$(STAGING_DIR)/usr/include" LSOF_CFLAGS_OVERRIDE=1 \
|
||||
LINUX_CLIB=-DGLIBCV=2 ./Configure linux)
|
||||
$(LSOF_CONFIGURE_WCHAR_FIXUPS)
|
||||
$(LSOF_CONFIGURE_LOCALE_FIXUPS)
|
||||
endef
|
||||
|
||||
define LSOF_BUILD_CMDS
|
||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) DEBUG="$(TARGET_CFLAGS)" -C $(@D)
|
||||
endef
|
||||
|
||||
define LSOF_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 755 $(@D)/lsof $(TARGET_DIR)/usr/bin/lsof
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user