summaryrefslogtreecommitdiffstats
path: root/disk
diff options
context:
space:
mode:
authorIsmael Luceno2021-05-04 01:07:00 +0200
committerIsmael Luceno2021-05-04 01:46:00 +0200
commitbd7f33b5d682984b798d51a905d15472be8a5cbc (patch)
tree94f24b940b0b6180c1874a25e5030867da8d0485 /disk
parent3d55df3ed9f2a64db6cddd42647b599bdcf7a3e5 (diff)
autofs 5.1.7
Diffstat (limited to 'disk')
-rwxr-xr-xdisk/autofs/DEPENDS23
-rwxr-xr-xdisk/autofs/DETAILS16
-rw-r--r--disk/autofs/HISTORY12
-rwxr-xr-xdisk/autofs/PRE_BUILD3
-rw-r--r--disk/autofs/patches/0001-Fix-build-against-musl.patch56
-rw-r--r--disk/autofs/patches/0002-Fix-zero-key_thread_attempt_id-case.patch13
-rw-r--r--disk/autofs/patches/0003-Replace-__S_IEXEC-with-S_IXUSR.patch51
7 files changed, 160 insertions, 14 deletions
diff --git a/disk/autofs/DEPENDS b/disk/autofs/DEPENDS
index 415b388981..7074278950 100755
--- a/disk/autofs/DEPENDS
+++ b/disk/autofs/DEPENDS
@@ -1,4 +1,19 @@
-optional_depends openldap \
- "--with-openldap" \
- "--without-openldap" \
- "for ldap support"
+case "$HOST" in
+ (*-musl)
+ depends libtirpc --with-libtirpc
+ ;;
+ (*)
+ optional_depends libtirpc \
+ --{with,without}-libtirpc \
+ 'use instead of the RPC implementation in the libc'
+ ;;
+esac &&
+optional_depends LIBSASL \
+ --{with,without}-sasl \
+ 'for SASL support for LDAP maps' &&
+optional_depends openldap \
+ --{with,without}-openldap \
+ 'for LDAP map support' &&
+optional_depends systemd \
+ --{with,without}-systemd \
+ 'for Systemd support'
diff --git a/disk/autofs/DETAILS b/disk/autofs/DETAILS
index 06f2a1e540..0d93667552 100755
--- a/disk/autofs/DETAILS
+++ b/disk/autofs/DETAILS
@@ -1,16 +1,12 @@
SPELL=autofs
- VERSION=4.1.4
- SOURCE=$SPELL-$VERSION.tar.bz2
- SOURCE2=${SOURCE}.sign
+ VERSION=5.1.7
+ SOURCE=$SPELL-$VERSION.tar.xz
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
- SOURCE_URL[0]=$KERNEL_URL/pub/linux/daemons/$SPELL/v4/$SOURCE
- SOURCE_URL[1]=ftp://ftp.kernel.org/pub/linux/daemons/$SPELL/v4/$SOURCE
- SOURCE2_URL[0]=$KERNEL_URL/pub/linux/daemons/$SPELL/v4/$SOURCE2
- SOURCE2_URL[1]=ftp://ftp.kernel.org/pub/linux/daemons/$SPELL/v4/$SOURCE2
- SOURCE2_IGNORE=signature
- SOURCE_GPG="kernel.gpg:$SOURCE2"
+ SOURCE_URL[0]="$KERNEL_URL/pub/linux/daemons/$SPELL/v${VERSION%%.*}/$SOURCE"
+ SOURCE_URL[1]="ftp://ftp.kernel.org/pub/linux/daemons/$SPELL/v${VERSION%%.*}/$SOURCE"
+ SOURCE_HASH=sha512:cf994d0e68d5f6a5647235000743811a791150ece0a90ed9e1cb9bb131259f52769371c6a06d968b7191b10e709c9c90de611cc3ee310fbbea87f60034b3d4e1
+ WEB_SITE="https://www.kernel.org/pub/linux/daemons/autofs/"
ENTERED=20020220
- UPDATED=20031119
LICENSE[0]=GPL
KEYWORDS="daemons disk"
SHORT="kernel automounter userspace daemons"
diff --git a/disk/autofs/HISTORY b/disk/autofs/HISTORY
index c06f72b068..f1003b28f8 100644
--- a/disk/autofs/HISTORY
+++ b/disk/autofs/HISTORY
@@ -1,3 +1,15 @@
+2021-05-03 Ismael Luceno <ismael@sourcemage.org>
+ * DETAILS: converted to hash checking
+ added WEB_SITE
+ updated spell to 5.1.7
+ * PRE_BUILD, patches/0001-Fix-build-against-musl.patch,
+ patches/0002-Fix-zero-key_thread_attempt_id-case.patch,
+ patches/0003-Replace-__S_IEXEC-with-S_IXUSR.patch:
+ fixed build against musl
+ * DEPENDS: added optional dependency on systemd
+ added optional dependency on libtirpc
+ added optional dependency on LIBSASL
+
2008-02-06 Vlad Glagolev <stealth@sourcemage.org>
* DEPENDS: removed mktemp (deprecated), is a part
of coreutils now (which included in basesystem)
diff --git a/disk/autofs/PRE_BUILD b/disk/autofs/PRE_BUILD
new file mode 100755
index 0000000000..c230ad14bf
--- /dev/null
+++ b/disk/autofs/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+apply_patch_dir patches
diff --git a/disk/autofs/patches/0001-Fix-build-against-musl.patch b/disk/autofs/patches/0001-Fix-build-against-musl.patch
new file mode 100644
index 0000000000..af0c9a4464
--- /dev/null
+++ b/disk/autofs/patches/0001-Fix-build-against-musl.patch
@@ -0,0 +1,56 @@
+Subject: [PATCH 1/3] Fix build against musl
+
+--- a/lib/nss_parse.y
++++ b/lib/nss_parse.y
+@@ -28,6 +28,10 @@
+ #include "nsswitch.h"
+ #include "nss_parse.tab.h"
+
++#ifndef _PATH_NSSWITCH_CONF
++#define _PATH_NSSWITCH_CONF "/etc/nsswitch.conf"
++#endif
++
+ static pthread_mutex_t parse_mutex = PTHREAD_MUTEX_INITIALIZER;
+
+ static struct list_head *nss_list;
+--- a/daemon/automount.c
++++ b/daemon/automount.c
+@@ -40,6 +40,14 @@
+ #include <sys/vfs.h>
+ #include <sys/utsname.h>
+
++#ifndef __SWORD_TYPE
++# if __WORDSIZE == 32 /* System word size */
++# define __SWORD_TYPE int
++# else /* __WORDSIZE == 64 */
++# define __SWORD_TYPE long int
++# endif
++#endif
++
+ #include "automount.h"
+ #if defined(LIBXML2_WORKAROUND) || defined(TIRPC_WORKAROUND)
+ #include <dlfcn.h>
+--- a/include/log.h
++++ b/include/log.h
+@@ -16,6 +16,7 @@
+
+ #ifndef LOG_H
+ #define LOG_H
++#include <sys/types.h> /* for pid_t */
+
+ /* Define logging functions */
+
+--- a/include/hash.h
++++ b/include/hash.h
+@@ -5,6 +5,11 @@
+
+ #include <sys/types.h>
+ #include <stdint.h>
++#include <linux/stddef.h>
++
++#ifndef __GLIBC__
++#include <sys/reg.h>
++#endif
+
+ /*
+ * The "GOLDEN_RATIO_PRIME" is used in ifs/btrfs/brtfs_inode.h and
diff --git a/disk/autofs/patches/0002-Fix-zero-key_thread_attempt_id-case.patch b/disk/autofs/patches/0002-Fix-zero-key_thread_attempt_id-case.patch
new file mode 100644
index 0000000000..4bf61dbf56
--- /dev/null
+++ b/disk/autofs/patches/0002-Fix-zero-key_thread_attempt_id-case.patch
@@ -0,0 +1,13 @@
+Subject: [PATCH 2/3] Fix zero key_thread_attempt_id case
+
+--- a/lib/log.c
++++ b/lib/log.c
+@@ -38,7 +38,7 @@
+ char buffer[ATTEMPT_ID_SIZE + 1];
+ char *prefixed_msg = NULL;
+
+- attempt_id = pthread_getspecific(key_thread_attempt_id);
++ attempt_id = key_thread_attempt_id ? pthread_getspecific(key_thread_attempt_id) : 0;
+ if (attempt_id) {
+ int len = sizeof(buffer) + 1 + strlen(msg) + 1;
+
diff --git a/disk/autofs/patches/0003-Replace-__S_IEXEC-with-S_IXUSR.patch b/disk/autofs/patches/0003-Replace-__S_IEXEC-with-S_IXUSR.patch
new file mode 100644
index 0000000000..b3d828cdd2
--- /dev/null
+++ b/disk/autofs/patches/0003-Replace-__S_IEXEC-with-S_IXUSR.patch
@@ -0,0 +1,51 @@
+Subject: [PATCH 3/3] Replace __S_IEXEC with S_IXUSR
+
+--- a/daemon/lookup.c
++++ b/daemon/lookup.c
+@@ -397,7 +397,7 @@
+ return NSS_STATUS_NOTFOUND;
+ }
+
+- if (st.st_mode & __S_IEXEC)
++ if (st.st_mode & S_IXUSR)
+ type = src_prog;
+ else
+ type = src_file;
+@@ -930,7 +930,7 @@
+ return NSS_STATUS_NOTFOUND;
+ }
+
+- if (st.st_mode & __S_IEXEC)
++ if (st.st_mode & S_IXUSR)
+ type = src_prog;
+ else
+ type = src_file;
+@@ -1077,7 +1077,7 @@
+ if (!S_ISREG(st.st_mode))
+ return NULL;
+
+- if (st.st_mode & __S_IEXEC)
++ if (st.st_mode & S_IXUSR)
+ type = "program";
+ else
+ type = "file";
+--- a/modules/lookup_multi.c
++++ b/modules/lookup_multi.c
+@@ -247,7 +247,7 @@ static struct lookup_mod *nss_open_lookup(const char *format, int argc, const ch
+ continue;
+ }
+
+- if (st.st_mode & __S_IEXEC)
++ if (st.st_mode & S_IXUSR)
+ type = src_prog;
+ else
+ type = src_file;
+@@ -452,7 +452,7 @@ int lookup_reinit(const char *my_mapfmt,
+ continue;
+ }
+
+- if (st.st_mode & __S_IEXEC)
++ if (st.st_mode & S_IXUSR)
+ type = src_prog;
+ else
+ type = src_file;