OpenPAM

Check-in [3578152b2c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Change manifest syntax from YAML to UCL to match recent versions of pkg. Also, move the description out of the script.
Timelines: family | ancestors | descendants | both | trunk | svn-rev-832
Files: files | file ages | folders
SHA1: 3578152b2cfa803948c6a6eecf99e49b22b64ffa
User & Date: des 2014-10-24 11:14:51
Context
2014-10-28
09:03
Use $() instead of @@ in Makefiles. Don't build OATH man pages if --without-oath. check-in: e4210b6251 user: des tags: trunk, svn-rev-833
2014-10-24
11:14
Change manifest syntax from YAML to UCL to match recent versions of pkg. Also, move the description out of the script. check-in: 3578152b2c user: des tags: trunk, svn-rev-832
10:58
Remove obsolete text. check-in: dc817a2483 user: des tags: trunk, svn-rev-831
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to mkpkgng.in.

79
80
81
82
83
84
85
86

87
88
89
90
91
92
93
...
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152

153
154
155
156
157
158
159
160
161
162
163
164
165

166
167
168
169
170
171
172
173
174
175
176
177
#
package="@PACKAGE@"
version="@PACKAGE_VERSION@"
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}"

	fi
fi

#
# Locate GNU make
#
if which gmake >/dev/null ; then
................................................................................
version: $version
origin: local/$package
comment: BSD-licensed PAM implementation
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
EOF


#
# Generate file list
#
info "Generating the file list."
(
	echo "files:"
	find -s "$tmproot" -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

)>>"$manifest"

#
# Create the package
#
info "Creating the package."
pkg create -r "$tmproot" -m "$tmproot" -o "$builddir"

#
# Done
#
info "Package created for $package-$version."







|
>







 







<
<
<
<
<
<
<
<
<
|

>






|
|





>












79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
...
136
137
138
139
140
141
142









143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
#
package="@PACKAGE@"
version="@PACKAGE_VERSION@"
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
		package="$package-$version"
		version="r$svnversion"
	fi
fi

#
# Locate GNU make
#
if which gmake >/dev/null ; then
................................................................................
version: $version
origin: local/$package
comment: BSD-licensed PAM implementation
arch: $pkgabi
www: @PACKAGE_URL@
maintainer: @PACKAGE_BUGREPORT@
prefix: @prefix@









categories: [ local, security ]
EOF
cp "$srcdir/README" "$tmproot/+DESC"

#
# Generate file list
#
info "Generating the file list."
(
	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"

#
# Create the package
#
info "Creating the package."
pkg create -r "$tmproot" -m "$tmproot" -o "$builddir"

#
# Done
#
info "Package created for $package-$version."