SHA256
1
0
forked from pool/libcli
Files
libcli/libcli-Makefile-lib64.diff
Joop Boonen edd3f18ea8 Accepting request 975726 from home:polslinux:branches:network:utilities
- Update to version 1.10.7+git.20211009:
  * Fix memory leak in help line wrapper code
  * Allow compile time choice of 'select()' or 'poll()' when monitoring the libcli
    command file descriptor in cli_loop(). 
  * If the 'select()' call is chosen above, do a range validation to ensure the file
    descriptor is less than FD_SETSIZE
  * Fix incorrect help message if there is a validation problem for the value of
    an optional argument.
  * Fix confusing help message shown if there is a parsing problem for a subcommand
  * Fix a number of possible issues identified by static code analysis. As a result,
    the 'full' name of all commands is generated in cli_register_command(),
    instead of on the fly as was done before
  * Fix formatting of 'long' commands. If a command name is longer than 22 characters
    the help message will start indented on a new line, instead of being appended
    immediately behind the command name with no separation.
  * Some minor changes to clitest.c to show correct behavior due to above changes.
  * Fix segfault issue during tab/help processing
  * Minor cosmetic change to how help messages are generated, minor edits
    to some comments, minor cosmetic change to clitest demo code
  * Tweak to buildmode to only show optargs 'after' the point at
    which buildmode was entered.
  * Add new 'cli_dump_optargs_and_args() function for development/debug
    Designed to be called from a callback to show output of optarg and
    argument processing.
  * Updated CLI_CMD_OPTIONAL_FLAG parsing to use an validator function
    (if provided) to determine if the word being looked is a match for
    the optional flag. If no validator function is provided then the
    word much match the name of the optional flag exactly.
  * Enhance how cli_parse_line handles quotes when parsine the command
    line. This includs mixed single/double quotes, embedded quoted
    substrings, and handling 'escaped' quotes using the '' character.
  * Ensure that buildmode preserves 'empty' strings
    (ex: "", or '') when regenerating the cmdline after the user 'executes'
    the command.
- Rebase libcli-Makefile-lib64.diff

OBS-URL: https://build.opensuse.org/request/show/975726
OBS-URL: https://build.opensuse.org/package/show/network:utilities/libcli?expand=0&rev=6
2022-05-09 09:56:30 +00:00

32 lines
1.2 KiB
Diff

Index: libcli-1.10.7+git.20211009/Makefile
===================================================================
--- libcli-1.10.7+git.20211009.orig/Makefile
+++ libcli-1.10.7+git.20211009/Makefile
@@ -7,6 +7,7 @@ TESTS ?= 1
UNAME = $(shell sh -c 'uname -s 2>/dev/null || echo not')
DESTDIR =
+LIBDIR = /usr/lib
PREFIX = /usr/local
MAJOR = 1
@@ -64,14 +65,14 @@ clean:
rm -f *.o $(LIB)* $(LIB_STATIC) clitest libcli-$(MAJOR).$(MINOR).$(REVISION).tar.gz
install: $(TARGET_LIBS)
- install -d $(DESTDIR)$(PREFIX)/include $(DESTDIR)$(PREFIX)/lib
+ install -d $(DESTDIR)$(PREFIX)/include $(DESTDIR)$(LIBDIR)
install -m 0644 libcli.h $(DESTDIR)$(PREFIX)/include
ifeq (1,$(STATIC_LIB))
- install -m 0644 $(LIB_STATIC) $(DESTDIR)$(PREFIX)/lib
+ install -m 0644 $(LIB_STATIC) $(DESTDIR)$(LIBDIR)
endif
ifeq (1,$(DYNAMIC_LIB))
- install -m 0755 $(LIB).$(MAJOR).$(MINOR).$(REVISION) $(DESTDIR)$(PREFIX)/lib
- cd $(DESTDIR)$(PREFIX)/lib && \
+ install -m 0755 $(LIB).$(MAJOR).$(MINOR).$(REVISION) $(DESTDIR)$(LIBDIR)
+ cd $(DESTDIR)$(LIBDIR) && \
ln -fs $(LIB).$(MAJOR).$(MINOR).$(REVISION) $(LIB).$(MAJOR).$(MINOR) && \
ln -fs $(LIB).$(MAJOR).$(MINOR) $(LIB)
endif