It appears that "pkg create" works correctly, even though it complains
loudly about unresolved library dependencies. git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@734 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
3bc114befa
commit
8568521d18
23
mkpkgng.in
23
mkpkgng.in
|
@ -154,18 +154,13 @@ info "Generating the file list."
|
|||
done
|
||||
)>>"$manifest"
|
||||
|
||||
# As of pkg 1.1.4, the shlib detection logic in "pkg create" only
|
||||
# works when tmproot == "/", so instead of creating a package directly
|
||||
# from the contents of $tmproot, we have to install to / and package
|
||||
# that.
|
||||
info "Packaging."
|
||||
if [ "$pkgver" \< "1.1.5" ] ; then
|
||||
info "pkg 1.1.4 or older detected."
|
||||
yesno "We must now install to /. Proceed?" || error "Chicken."
|
||||
$make install
|
||||
pkg create -m "$tmproot" -o "$builddir"
|
||||
else
|
||||
pkg create -r "$tmproot" -m "$tmproot" -o "$builddir"
|
||||
fi
|
||||
#
|
||||
# Create the package
|
||||
#
|
||||
info "Creating the package."
|
||||
pkg create -r "$tmproot" -m "$tmproot" -o "$builddir"
|
||||
|
||||
echo "Package created for $package-$version."
|
||||
#
|
||||
# Done
|
||||
#
|
||||
info "Package created for $package-$version."
|
||||
|
|
Loading…
Reference in New Issue