diff options
-rw-r--r-- | package/cifs-utils/Makefile | 5 | ||||
-rw-r--r-- | package/cifs-utils/patches/patch-Makefile_am | 21 | ||||
-rw-r--r-- | package/cifs-utils/patches/patch-cifs_idmap_c | 16 | ||||
-rw-r--r-- | package/cifs-utils/patches/patch-configure_ac | 33 | ||||
-rw-r--r-- | package/cifs-utils/patches/patch-mount_cifs_c | 24 | ||||
-rw-r--r-- | package/cifs-utils/patches/patch-mtab_c | 10 |
6 files changed, 14 insertions, 95 deletions
diff --git a/package/cifs-utils/Makefile b/package/cifs-utils/Makefile index 1ce067624..37084f9f3 100644 --- a/package/cifs-utils/Makefile +++ b/package/cifs-utils/Makefile @@ -4,9 +4,9 @@ include $(ADK_TOPDIR)/rules.mk PKG_NAME:= cifs-utils -PKG_VERSION:= 6.7 +PKG_VERSION:= 7.0 PKG_RELEASE:= 1 -PKG_HASH:= b2f21612474ab012e75accd167aab607a0614ff67efb56ea0f36789fa785cfab +PKG_HASH:= 0defaab85bd3ea46ffc45ab41fb0d0ad54d05ae2cfaa7e503de86d4f12bc8161 PKG_DESCR:= network filesystem utilities PKG_SECTION:= net/fs PKG_KDEPENDS:= cifs @@ -20,6 +20,7 @@ include $(ADK_TOPDIR)/mk/package.mk $(eval $(call PKG_template,CIFS_UTILS,cifs-utils,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) AUTOTOOL_STYLE:= autoreconf +CONFIGURE_ENV+= ac_cv_func_malloc_0_nonnull=yes CONFIGURE_ARGS+= --disable-cifsupcall \ --disable-cifsidmap \ --disable-cifsacl \ diff --git a/package/cifs-utils/patches/patch-Makefile_am b/package/cifs-utils/patches/patch-Makefile_am index 81f21cd5a..98d2d616b 100644 --- a/package/cifs-utils/patches/patch-Makefile_am +++ b/package/cifs-utils/patches/patch-Makefile_am @@ -1,11 +1,12 @@ ---- cifs-utils-6.3.orig/Makefile.am 2014-01-09 17:19:53.000000000 +0100 -+++ cifs-utils-6.3/Makefile.am 2014-05-06 13:53:28.814703381 +0200 -@@ -4,7 +4,7 @@ ACLOCAL_AMFLAGS = -I aclocal - root_sbindir = $(ROOTSBINDIR) - root_sbin_PROGRAMS = mount.cifs - mount_cifs_SOURCES = mount.cifs.c mtab.c resolve_host.c util.c --mount_cifs_LDADD = $(LIBCAP) $(CAPNG_LDADD) $(RT_LDADD) -+mount_cifs_LDADD = $(LIBCAP) $(CAPNG_LDADD) $(RT_LDADD) $(LIBOBJS) +--- cifs-utils-7.0.orig/Makefile.am 2022-08-11 22:40:15.000000000 +0200 ++++ cifs-utils-7.0/Makefile.am 2024-01-04 12:50:47.888452316 +0100 +@@ -117,9 +117,6 @@ endif - man_MANS = mount.cifs.8 - include_HEADERS = cifsidmap.h + SUBDIRS = contrib + +-install-exec-hook: install-sbinPROGRAMS +- (cd $(DESTDIR)$(ROOTSBINDIR) && ln -sf mount.cifs mount.smb3) +- + install-data-hook: + if CONFIG_MAN + ( cd $(DESTDIR)$(man8dir) && ln -sf mount.cifs.8 mount.smb3.8) diff --git a/package/cifs-utils/patches/patch-cifs_idmap_c b/package/cifs-utils/patches/patch-cifs_idmap_c deleted file mode 100644 index be55be79f..000000000 --- a/package/cifs-utils/patches/patch-cifs_idmap_c +++ /dev/null @@ -1,16 +0,0 @@ ---- cifs-utils-6.1.orig/cifs.idmap.c 2013-07-02 21:13:33.000000000 +0200 -+++ cifs-utils-6.1/cifs.idmap.c 2013-10-28 07:33:27.000000000 +0100 -@@ -27,7 +27,13 @@ - #endif /* HAVE_CONFIG_H */ - - #include <string.h> -+#ifdef HAVE_GNU_GETOPT_LONG - #include <getopt.h> -+#else -+#include "gnu_getopt.h" -+#define getopt_long gnu_getopt_long -+#define option gnu_option -+#endif - #include <syslog.h> - #include <dirent.h> - #include <sys/types.h> diff --git a/package/cifs-utils/patches/patch-configure_ac b/package/cifs-utils/patches/patch-configure_ac deleted file mode 100644 index 7355a238c..000000000 --- a/package/cifs-utils/patches/patch-configure_ac +++ /dev/null @@ -1,33 +0,0 @@ ---- cifs-utils-6.7.orig/configure.ac 2017-03-02 17:51:05.000000000 +0100 -+++ cifs-utils-6.7/configure.ac 2017-03-27 01:54:09.082783577 +0200 -@@ -93,13 +93,25 @@ AC_CHECK_TYPES([ptrdiff_t, ssize_t, uint - - # Checks for library functions. - AC_FUNC_GETMNTENT --AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK --AC_FUNC_MALLOC --AC_FUNC_REALLOC --AC_FUNC_STRNLEN - - # check for required functions --AC_CHECK_FUNCS([alarm atexit endpwent getmntent getpass gettimeofday inet_ntop memset realpath setenv strchr strcmp strdup strerror strncasecmp strndup strpbrk strrchr strstr strtol strtoul tolower uname], , [AC_MSG_ERROR([necessary functions(s) not found])]) -+AC_CHECK_FUNCS([alarm atexit endpwent getmntent getpass gettimeofday inet_ntop malloc memset realloc realpath setenv strchr strcmp strdup strerror strncasecmp strndup strnlen strpbrk strrchr strstr strtol strtoul tolower uname], , [AC_MSG_ERROR([necessary functions(s) not found])]) -+ -+AC_CHECK_FUNCS([getopt_long], , [AC_MSG_ERROR([getopt_long function not found])]) -+AC_MSG_CHECKING([if getopt_long is GNU specific]) -+AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[ -+#include <features.h> -+#ifndef __GLIBC__ -+#error No GNU extension -+#endif -+ ]],[[;]]) -+ ],[ -+ AC_DEFINE(HAVE_GNU_GETOPT_LONG, 1, [Whether getopt_long has GNU extensions]) -+ AC_MSG_RESULT([yes]) -+ ],[ -+ AC_LIBOBJ([gnu_getopt]) -+ AC_MSG_RESULT([no]) -+]) - - AC_CHECK_FUNCS(clock_gettime, [], [ - AC_CHECK_LIB(rt, clock_gettime, [ diff --git a/package/cifs-utils/patches/patch-mount_cifs_c b/package/cifs-utils/patches/patch-mount_cifs_c deleted file mode 100644 index 583514808..000000000 --- a/package/cifs-utils/patches/patch-mount_cifs_c +++ /dev/null @@ -1,24 +0,0 @@ ---- cifs-utils-6.7.orig/mount.cifs.c 2017-03-02 17:51:05.000000000 +0100 -+++ cifs-utils-6.7/mount.cifs.c 2017-03-27 18:57:14.519371156 +0200 -@@ -34,7 +34,13 @@ - #include <sys/utsname.h> - #include <sys/socket.h> - #include <arpa/inet.h> -+#ifdef HAVE_GNU_GETOPT_LONG - #include <getopt.h> -+#else -+#include "gnu_getopt.h" -+#define getopt_long gnu_getopt_long -+#define option gnu_option -+#endif - #include <errno.h> - #include <netdb.h> - #include <string.h> -@@ -61,7 +67,6 @@ - #include "mount.h" - #include "util.h" - #include "resolve_host.h" --#include "data_blob.h" - - #ifndef MS_MOVE - #define MS_MOVE 8192 diff --git a/package/cifs-utils/patches/patch-mtab_c b/package/cifs-utils/patches/patch-mtab_c deleted file mode 100644 index 90655935f..000000000 --- a/package/cifs-utils/patches/patch-mtab_c +++ /dev/null @@ -1,10 +0,0 @@ ---- cifs-utils-6.7.orig/mtab.c 2017-03-02 17:51:05.000000000 +0100 -+++ cifs-utils-6.7/mtab.c 2017-03-27 01:54:09.094784041 +0200 -@@ -36,6 +36,7 @@ - #include <time.h> - #include <fcntl.h> - #include <mntent.h> -+#include <paths.h> - #include <stdlib.h> - #include <signal.h> - #include <paths.h> |