diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..3065d24 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +URL="https://www.openldap.org/software/download/" + +# Get version number from tag name +VERSION=$(curl -s -L "$URL" | grep -o -E 'OpenLDAP-[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}') + +# Trim prefix +VERSION=${VERSION//OpenLDAP-/} + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 14a5aca..1dc8588 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: openldap description: Open source implementation of the Lightweight Directory Access Protocol -version: 2.6.7 +version: 2.6.10 url: https://www.openldap.org/ license: custom architecture: any diff --git a/source.sh b/source.sh index f89d5a9..36a4b78 100644 --- a/source.sh +++ b/source.sh @@ -10,12 +10,14 @@ FILENAME="${DOWNLOAD##*/}" prepare() { wget "$DOWNLOAD" tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" + + cd "$BPM_SOURCE" + autoreconf -fi } # The build function is executed in the source directory # This function is used to compile the source code build() { - autoconf ./configure --prefix=/usr --sysconfdir=/etc --disable-static --enable-dynamic --disable-debug --disable-slapd make depend make