From 37baf24e779649c65d4db98d85780a2086987b63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Fri, 24 Oct 2014 11:14:51 +0000 Subject: [PATCH] Change manifest syntax from YAML to UCL to match recent versions of pkg. Also, move the description out of the script. git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@832 185d5e19-27fe-0310-9dcf-9bff6b9f3609 --- mkpkgng.in | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/mkpkgng.in b/mkpkgng.in index 7dd7064..e70a1b1 100644 --- a/mkpkgng.in +++ b/mkpkgng.in @@ -83,7 +83,8 @@ if ! expr "$version" : "[0-9]{1,}$" >/dev/null ; then svnversion="$(svnversion 2>&1)" svnversion=$(expr "$svnversion" : '\([0-9][0-9]*\)[A-Z]\{0,1\}$') if [ -n "$svnversion" ] ; then - version="$version-r${svnversion}" + package="$package-$version" + version="r$svnversion" fi fi @@ -139,30 +140,23 @@ arch: $pkgabi www: @PACKAGE_URL@ maintainer: @PACKAGE_BUGREPORT@ prefix: @prefix@ -desc: - 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 +categories: [ local, security ] EOF +cp "$srcdir/README" "$tmproot/+DESC" # # Generate file list # info "Generating the file list." ( - echo "files:" - find -s "$tmproot" -type f | while read file ; do + echo "files: {" + find -s "$tmproot@prefix@" -type f | while read file ; do [ "$file" = "$manifest" ] && continue mode=$(stat -f%p "$file" | cut -c 3-) file="${file#$tmproot}" echo " $file: { uname: root, gname: wheel, perm: $mode }" done + echo "}" )>>"$manifest" #