File:  [Coherent Logic Development] / freem / mk-solaris-package
Revision 1.5: download - view: text, annotated - select for diffs
Sat Mar 8 17:42:33 2025 UTC (3 weeks, 5 days ago) by snw
Branches: MAIN
CVS tags: HEAD
Improve solaris packaging script

#!/usr/bin/bash

PKG=CLDfreem
ARCH=$1
OS=$2
VERS=$(cat sem.ver)
SOLVER=$(uname -a | cut -d' ' -f3)
PKGFILE=${PKG}-${VERS}-${OS}${SOLVER}-${ARCH}.pkg

cat <<EOF > pkginfo
PKG=${PKG}
NAME=Coherent Logic Development FreeM programming language and database.
ARCH=${ARCH}
VERSION=${VERS}
CATEGORY=application
BASEDIR=/usr/local
EOF

pkgmk -o -d /tmp -a ${ARCH}
touch ${PKGFILE}
pkgtrans -s /tmp ${PKGFILE} ${PKG}
rm -r /tmp/${PKG}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>