Get latest mkpkgng script from OpenPAM.

This commit is contained in:
Dag-Erling Smørgrav 2014-12-20 02:58:11 +00:00 committed by des
parent f82bbc1400
commit 1a76a0cbb0
2 changed files with 18 additions and 19 deletions

View file

@ -160,5 +160,6 @@ AC_CONFIG_FILES([
lib/rsaref/Makefile lib/rsaref/Makefile
t/Makefile t/Makefile
]) ])
AC_CONFIG_FILES([mkpkgng], [chmod +x mkpkgng])
AC_CONFIG_FILES([tools/coverage.sh], [chmod +x tools/coverage.sh]) AC_CONFIG_FILES([tools/coverage.sh], [chmod +x tools/coverage.sh])
AC_OUTPUT AC_OUTPUT

View file

@ -27,8 +27,6 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE. # SUCH DAMAGE.
# #
# $Id: mkpkgng.in 787 2014-03-10 15:43:17Z des $
#
# Print an informational message # Print an informational message
info() { info() {
@ -61,8 +59,6 @@ yesno() {
# Locate source and build directory # Locate source and build directory
# #
srcdir="@abs_top_srcdir@" srcdir="@abs_top_srcdir@"
[ -f "$srcdir/include/security/openpam.h" ] || \
error "Unable to locate source directory."
builddir="@abs_top_builddir@" builddir="@abs_top_builddir@"
cd "$srcdir" cd "$srcdir"
@ -83,7 +79,8 @@ if ! expr "$version" : "[0-9]{1,}$" >/dev/null ; then
svnversion="$(svnversion 2>&1)" svnversion="$(svnversion 2>&1)"
svnversion=$(expr "$svnversion" : '\([0-9][0-9]*\)[A-Z]\{0,1\}$') svnversion=$(expr "$svnversion" : '\([0-9][0-9]*\)[A-Z]\{0,1\}$')
if [ -n "$svnversion" ] ; then if [ -n "$svnversion" ] ; then
version="$version-r${svnversion}" package="$package-$version"
version="r$svnversion"
fi fi
fi fi
@ -123,6 +120,10 @@ while read mandir ; do
while read manpage ; do while read manpage ; do
gzip "$manpage" gzip "$manpage"
done done
find $mandir -type l -name '*.[0-9]' |
while read manlink ; do
ln -s "$(readlink $manlink).gz" "$manlink.gz"
done
done done
# #
@ -134,35 +135,32 @@ cat >"$manifest" <<EOF
name: $package name: $package
version: $version version: $version
origin: local/$package origin: local/$package
comment: BSD-licensed PAM implementation comment: BSD-licensed cryptographic libraries
arch: $pkgabi arch: $pkgabi
www: @PACKAGE_URL@ www: @PACKAGE_URL@
maintainer: @PACKAGE_BUGREPORT@ maintainer: @PACKAGE_BUGREPORT@
prefix: @prefix@ prefix: @prefix@
desc: categories: [ security ]
OpenPAM is an open source PAM library that focuses on simplicity,
correctness, and cleanliness.
OpenPAM aims to gather the best features of Solaris PAM, XSSO and
Linux-PAM, plus some innovations of its own. In areas where these
implementations disagree, OpenPAM tries to remain compatible with
Solaris, at the expense of XSSO conformance and Linux-PAM
compatibility.
categories: local, security
EOF EOF
cp "$srcdir/README" "$tmproot/+DESC"
# #
# Generate file list # Generate file list
# #
info "Generating the file list." info "Generating the file list."
( (
echo "files:" echo "files: {"
find -s "$tmproot" -type f | while read file ; do find -s "$tmproot@prefix@" -type f -or -type l | while read file ; do
[ "$file" = "$manifest" ] && continue case $file in
*.la)
continue
;;
esac
mode=$(stat -f%p "$file" | cut -c 3-) mode=$(stat -f%p "$file" | cut -c 3-)
file="${file#$tmproot}" file="${file#$tmproot}"
echo " $file: { uname: root, gname: wheel, perm: $mode }" echo " $file: { uname: root, gname: wheel, perm: $mode }"
done done
echo "}"
)>>"$manifest" )>>"$manifest"
# #