Add a script that creates a FreeBSD pkgng package. It does not currently
work as intended due to a bug in pkgng's shlib handling. git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@692 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
efe4bec74a
commit
b578b6a715
|
@ -2,7 +2,7 @@ dnl $Id$
|
|||
|
||||
AC_PREREQ([2.62])
|
||||
AC_REVISION([$Id$])
|
||||
AC_INIT([OpenPAM], [trunk], [des@des.no])
|
||||
AC_INIT([OpenPAM], [trunk], [des@des.no], [openpam], [http://www.openpam.org/])
|
||||
AC_CONFIG_SRCDIR([lib/libpam/pam_start.c])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
AM_INIT_AUTOMAKE([foreign])
|
||||
|
@ -145,4 +145,5 @@ AC_CONFIG_FILES([
|
|||
t/Makefile
|
||||
])
|
||||
AC_CONFIG_FILES([pamgdb],[chmod +x pamgdb])
|
||||
AC_CONFIG_FILES([mkpkgng],[chmod +x mkpkgng])
|
||||
AC_OUTPUT
|
||||
|
|
|
@ -0,0 +1,62 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
srcdir="@abs_top_srcdir@"
|
||||
builddir="@abs_top_builddir@"
|
||||
|
||||
pkgabi=$(pkg -vv | awk '$1 == "ABI:" { print $2 }')
|
||||
|
||||
error() {
|
||||
echo "$@" 1>&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
if which gmake >/dev/null ; then
|
||||
make=gmake
|
||||
else
|
||||
make=make
|
||||
fi
|
||||
|
||||
tmproot=$(mktemp -d)
|
||||
[ -n "$tmproot" -a -d "$tmproot" ] || error "unable to create temporary directory"
|
||||
trap "echo deleting temporary directory ; rm -rf '$tmproot'" EXIT
|
||||
set -e
|
||||
|
||||
$make install DESTDIR="$tmproot"
|
||||
|
||||
manifest="$tmproot/+MANIFEST"
|
||||
|
||||
cat >"$manifest" <<EOF
|
||||
name: @PACKAGE@
|
||||
version: @PACKAGE_VERSION@
|
||||
origin: local/openpam
|
||||
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
|
||||
|
||||
(
|
||||
echo "files:"
|
||||
find "$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"
|
||||
|
||||
pkg create -r "$tmproot" -m "$tmproot" -o "$builddir"
|
Loading…
Reference in New Issue