diff options
author | Cris Bailiff <c.bailiff@awayweb.com> | 2001-05-30 04:31:32 +0000 |
---|---|---|
committer | Cris Bailiff <c.bailiff@awayweb.com> | 2001-05-30 04:31:32 +0000 |
commit | c503930b8d5bc62b011961dd5e0b27f80362c322 (patch) | |
tree | 90683b6b520033843844b0d68f8aa6b497eac1a4 /packages/Solaris | |
parent | 5c6859e537bd08b6c34f91a82a03104a79dea9df (diff) | |
download | curl-c503930b8d5bc62b011961dd5e0b27f80362c322.tar.gz |
Added Solaris 'pkgadd' building support to packages collection and autoconf/automake files
Diffstat (limited to 'packages/Solaris')
-rw-r--r-- | packages/Solaris/Makefile.am | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/packages/Solaris/Makefile.am b/packages/Solaris/Makefile.am new file mode 100644 index 000000000..4750a677b --- /dev/null +++ b/packages/Solaris/Makefile.am @@ -0,0 +1,39 @@ +# +# $Id$ +# + +PKGADD_PKG="@PKGADD_PKG@" +PKGADD_NAME="@PACKAGE@-@VERSION@ - @PKGADD_NAME@" +PKGADD_VENDOR="@PKGADD_VENDOR@" +PKGADD_ARCH="@host_cpu@" +PKGADD_DESC="@PACKAGE@-@VERSION@ - @PKGADD_NAME@" +PKGADD_CLASSES=none +PKGADD_BASEDIR=/ + +PKGADD_FILE=${PKGADD_PKG}-@PACKAGE@-@VERSION@-@host@.pkg + +package: + if [ ! -f release ]; then echo 0 > release; fi + if [ `find root -newer release -print|wc -l` -gt 0 ]; then expr `cat release` + 1 > release; fi + echo PKG=${PKGADD_PKG} > pkginfo + echo NAME=${PKGADD_NAME} >> pkginfo + echo VENDOR=${PKGADD_VENDOR} >> pkginfo + echo ARCH=${PKGADD_ARCH} >> pkginfo + echo DESC=${PKGADD_DESC} >> pkginfo + echo CLASSES=${PKGADD_CLASSES} >> pkginfo + echo BASEDIR=${PKGADD_BASEDIR} >> pkginfo + echo CATEGORY=application >> pkginfo + echo VERSION=`cat ./release` >> pkginfo + echo > prototype + for subdir in opt var etc usr; \ + do if [ -d root/$$subdir ]; then \ + pkgproto root/$$subdir=$$subdir >> prototype;\ + fi; done + for file in pkginfo preinstall postinstall copyright; \ + do if [ -f $$file ]; then \ + echo "i $$file=$$file" >> prototype; \ + fi; done + rm -rf ./tmp + mkdir ./tmp + pkgmk -o -d ./tmp + pkgtrans -so ./tmp ${top_srcdir}/../${PKGADD_FILE} ${PKGADD_PKG} |