#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# LUSTRE-VERSION-GEN
+#
+# Return lustre version string
+#
DEFAULT_VERSION=2.15.54
LVF=LUSTRE-VERSION-FILE
'
if test -d ${GIT_DIR:-.git} -o -f .git &&
- VN=$(git describe --match "[0-9]*" --abbrev=7 HEAD 2>/dev/null) &&
- case "$VN" in
- *$LF*) (exit 1) ;;
- [0-9]*)
- git update-index -q --refresh
- test -z "$(git diff-index --name-only HEAD --)" ||
- VN="$VN-dirty" ;;
- esac
+ VN=$(git describe --match "[0-9]*" --abbrev=7 HEAD 2>/dev/null) &&
+ case "$VN" in
+ *$LF*) (exit 1) ;;
+ [0-9]*)
+ git update-index -q --refresh
+ test -z "$(git diff-index --name-only HEAD --)" ||
+ VN="$VN-dirty" ;;
+ esac
then
- VN=$(echo "$VN" | sed -e 's/-/_/g');
+ VN=$(echo "$VN" | sed -e 's/-/_/g');
elif test -r $LVF
then
- VN=$(sed -e 's/^LUSTRE_VERSION = //' <$LVF)
+ VN=$(sed -e 's/^LUSTRE_VERSION = //' <$LVF)
else
- VN="$DEFAULT_VERSION"
+ VN="$DEFAULT_VERSION"
fi
if test -r $LVF
then
- VC=$(sed -e 's/^LUSTRE_VERSION = //' <$LVF)
+ VC=$(sed -e 's/^LUSTRE_VERSION = //' <$LVF)
else
- VC=unset
+ VC=unset
fi
test "$VN" = "$VC" || {
- echo "LUSTRE_VERSION = $VN" >$LVF
+ echo "LUSTRE_VERSION = $VN" >$LVF
}
echo $VN
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# Makefile.in
+#
+# Template to generate top-level Makefile
+#
+
obj-m += @LDISKFS_SUBDIR@/ libcfs/ lnet/
obj-m += lustre/
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# autoMakefile.am
+#
+# Used by automake to create the top-level autoMakefile.in,
+# which is used by config.status to create the top-level
+# autoMakefile
+#
+
SUBDIRS := @LDISKFS_SUBDIR@ \
. \
@LUSTREIOKIT_SUBDIR@ \
#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# autogen.sh
+#
+# Run various autotools, thereby creating the configure
+# script and top-level make files
+#
+
set -e
pw="$PWD"
for dir in libcfs lnet lustre snmp ; do
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# configure.ac
+#
+# Used by autoconf to create the configure script
+#
+
AC_PREREQ([2.57])
AC_INIT([Lustre], m4_esyscmd_s([./LUSTRE-VERSION-GEN]),
- [https://jira.whamcloud.com/], [lustre])
+ [https://jira.whamcloud.com/], [lustre])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_MACRO_DIR([config])
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# lustre-dkms.spec.in
+#
+# spec file template for RHEL dkms package builds
+#
+
%bcond_without servers
%bcond_without zfs
%bcond_with ldiskfs
%post
for POSTINST in /usr/lib/dkms/common.postinst; do
if [ -f $POSTINST ]; then
- $POSTINST %{module} %{version}
- exit $?
+ $POSTINST %{module} %{version}
+ exit $?
fi
echo "WARNING: $POSTINST does not exist."
done
#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# lustre-dkms_post-build.sh
+#
+# Script run after dkms build
+#
+
+#
# $1 : $module
# $2 : $module_version
# $3 : $kernelver
# beginning of the DKMS build step when its content has to be on-target
# customized during pre_build script. This can lead to incomplete list
# of built Lustre kernel modules then to be saved for next DKMS install step.
+#
+#
# Use this place to also save config.log that has been generated during
# pre_build.
# $7/$1/$2/$3/$5/log repository should have already been created to save
# make.log and $kernel_config
+#
+
mkdir -p "$7/$1/$2/$3/$5/log"
cp -f "$7/$1/$2/build/config.log" "$7/$1/$2/$3/$5/log/config.log" 2>/dev/null
cp -f "$7/$1/$2/build/config.h" \
#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# lustre-dkms_pre-build.sh
+#
+# Script run before dkms build
+#
+
+#
# $1 : $module
# $2 : $module_version
# $3 : $kernelver
# $5 : $arch
# $6 : $source_tree
# $7 : $dkms_tree
+#
case $1 in
lustre-client)
-# lustre.spec
+# SPDX-License-Identifier: GPL-2.0
+
+#
+# This file is part of Lustre, http://www.lustre.org/
+#
+# lustre.spec.in
+#
+# spec file template for RHEL package builds
+#
# Declare rpmbuild --with/--without parameters
%bcond_without servers
# Set the package name prefix
%if %{undefined lustre_name}
%if %{with servers}
- %global lustre_name lustre
+ %global lustre_name lustre
%else
- %global lustre_name lustre-client
+ %global lustre_name lustre-client
%endif
%endif
%if %{with lustre_modules}
%if %{undefined kmoddir}
%if %{defined kernel_module_package_moddir}
- %global kmoddir %{kernel_module_package_moddir}
+ %global kmoddir %{kernel_module_package_moddir}
%else
- %if %{defined suse_kernel_module_package}
- %global kmoddir updates
- %else
- %global kmoddir extra
- %endif
+ %if %{defined suse_kernel_module_package}
+ %global kmoddir updates
+ %else
+ %global kmoddir extra
+ %endif
%endif
%endif