OpenPAM: new recipe (#1226)

This commit is contained in:
miqlas
2017-03-20 18:56:29 +01:00
committed by Jérôme Duval
parent d3b0d85ea0
commit 83058c9c8d

View File

@@ -0,0 +1,70 @@
SUMMARY="An open source PAM library"
DESCRIPTION="OpenPAM is a Pluggable Authentication Modules implementation."
HOMEPAGE="http://www.openpam.org/"
COPYRIGHT="2002-2003 Networks Associates Technology, Inc.
2004-2017 Dag-Erling Smørgrav"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="http://downloads.sf.net/openpam/openpam-$portVersion.tar.gz"
CHECKSUM_SHA256="ae8af472bd33c9631a34de56636d30734fc16ce23190d0a991fa15501c090d53"
ARCHITECTURES="?x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
openpam$secondaryArchSuffix = $portVersion
lib:libpam$secondaryArchSuffix = 2.0.0 compat >= 2
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
"
PROVIDES_devel="
openpam${secondaryArchSuffix}_devel = $portVersion
devel:libpam$secondaryArchSuffix = 2.0.0 compat >= 2
"
REQUIRES_devel="
openpam$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
for f in libpam.la pam_deny.la pam_permit.la pam_return.la; do
rm $libDir/$f
done
prepareInstalledDevelLib libpam
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $manDir
fi
packageEntries devel \
$developDir
}
TEST()
{
make check
}