Switch to new download format, update dependencies and source.sh script
This commit is contained in:
@@ -1,10 +1,27 @@
|
|||||||
name: pam
|
name: pam
|
||||||
description: Pluggable Authentication Modules for Linux
|
description: Pluggable Authentication Modules for Linux
|
||||||
version: 1.7.1
|
version: 1.7.1
|
||||||
|
revision: 2
|
||||||
url: https://github.com/linux-pam/linux-pam
|
url: https://github.com/linux-pam/linux-pam
|
||||||
license: GPL2-or-later
|
license: GPL2-or-later
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["glibc","elogind","libnsl","libtirpc","libxcrypt","docbook-xsl-nons"]
|
|
||||||
make_depends: ["flex","libxslt","meson"]
|
|
||||||
keep: ["etc/environment"]
|
|
||||||
type: source
|
type: source
|
||||||
|
keep:
|
||||||
|
- etc/environment
|
||||||
|
depends:
|
||||||
|
- glibc
|
||||||
|
- libelogind
|
||||||
|
- libnsl
|
||||||
|
- libtirpc
|
||||||
|
- libxcrypt
|
||||||
|
- docbook-xsl-nons
|
||||||
|
make_depends:
|
||||||
|
- elogind
|
||||||
|
- flex
|
||||||
|
- libxslt
|
||||||
|
- meson
|
||||||
|
downloads:
|
||||||
|
- url: https://github.com/linux-pam/linux-pam/releases/download/v${BPM_PKG_VERSION}/Linux-PAM-${BPM_PKG_VERSION}.tar.xz
|
||||||
|
extract_to: ${BPM_SOURCE}
|
||||||
|
extract_strip_components: 1
|
||||||
|
checksum: 21dbcec6e01dd578f14789eac9024a18941e6f2702a05cf91b28c232eeb26ab0
|
||||||
|
|||||||
@@ -2,42 +2,23 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
DOWNLOAD="https://github.com/linux-pam/linux-pam/releases/download/v${BPM_PKG_VERSION}/Linux-PAM-${BPM_PKG_VERSION}.tar.xz"
|
|
||||||
FILENAME="${DOWNLOAD##*/}"
|
|
||||||
|
|
||||||
# The prepare function is executed in the root of the temp directory
|
|
||||||
# This function is used for downloading files and putting them into the correct location
|
|
||||||
prepare() {
|
|
||||||
wget "$DOWNLOAD"
|
|
||||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
|
||||||
}
|
|
||||||
|
|
||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
mkdir build
|
meson setup --prefix=/usr build
|
||||||
cd build
|
meson compile -C build
|
||||||
|
|
||||||
meson setup --prefix=/usr \
|
|
||||||
--buildtype=release \
|
|
||||||
-Ddocdir=/usr/share/doc/Linux-PAM ..
|
|
||||||
meson compile
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The check function is executed in the source directory
|
# The check function is executed in the source directory
|
||||||
# This function is used to run tests to verify the package has been compiled correctly
|
# This function is used to run tests to verify the package has been compiled correctly
|
||||||
check() {
|
check() {
|
||||||
cd build
|
meson test -C build --print-errorlogs
|
||||||
|
|
||||||
meson test
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
cd build
|
meson install -C build --destdir="$BPM_OUTPUT"
|
||||||
|
|
||||||
meson install --destdir="$BPM_OUTPUT"
|
|
||||||
|
|
||||||
# Set uid for unix_chkpwd
|
# Set uid for unix_chkpwd
|
||||||
chmod +s "$BPM_OUTPUT"/usr/sbin/unix_chkpwd
|
chmod +s "$BPM_OUTPUT"/usr/sbin/unix_chkpwd
|
||||||
|
|||||||
Reference in New Issue
Block a user