diff --git a/pkg.info b/pkg.info index 1dc8588..ed4512a 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,20 @@ name: openldap description: Open source implementation of the Lightweight Directory Access Protocol -version: 2.6.10 +version: 2.6.12 +revision: 1 url: https://www.openldap.org/ license: custom +maintainers: + - enumdev@enumerated.dev architecture: any -depends: ["libtool","perl"] -make_depends: ["util-linux"] type: source +depends: + - libtool + - perl +make_depends: + - util-linux +downloads: + - url: https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-${BPM_PKG_VERSION}.tgz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 1716ad779e85d743694c3e3b05277fb71b6a5eadca43c7a958aa62683b22208e diff --git a/source.sh b/source.sh index 36a4b78..f77b64c 100644 --- a/source.sh +++ b/source.sh @@ -2,15 +2,9 @@ # 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 -DOWNLOAD="https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-${BPM_PKG_VERSION}.tgz" -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 +# This function is used for putting downloaded files to the correct location or applying patches prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" - cd "$BPM_SOURCE" autoreconf -fi } @@ -28,5 +22,6 @@ build() { package() { make DESTDIR="$BPM_OUTPUT" install + # Install package license install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/openldap/LICENSE }