Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / packages / Solaris / Makefile.am
blob3062dfe572e43adf89a2dadfd8e288e47defbde4
2 # $Id: Makefile.am,v 1.1.1.1 2008-09-23 16:32:05 hoffman Exp $
5 PKGADD_PKG="@PKGADD_PKG@"
6 PKGADD_NAME="@PACKAGE@-@VERSION@ - @PKGADD_NAME@"
7 PKGADD_VENDOR="@PKGADD_VENDOR@"
8 PKGADD_ARCH="@host_cpu@"
9 PKGADD_DESC="@PACKAGE@-@VERSION@ - @PKGADD_NAME@"
10 PKGADD_CLASSES=none
11 PKGADD_BASEDIR=/
13 PKGADD_FILE=${PKGADD_PKG}-@PACKAGE@-@VERSION@-@host@.pkg
15 package:
16         if [ ! -f release ]; then echo 0 > release; fi
17         if [ `find root -newer release -print|wc -l` -gt 0 ]; then expr `cat release` + 1 > release; fi
18         echo PKG=${PKGADD_PKG} > pkginfo
19         echo NAME=${PKGADD_NAME} >> pkginfo
20         echo VENDOR=${PKGADD_VENDOR} >> pkginfo
21         echo ARCH=${PKGADD_ARCH} >> pkginfo
22         echo DESC=${PKGADD_DESC} >> pkginfo
23         echo CLASSES=${PKGADD_CLASSES} >> pkginfo
24         echo BASEDIR=${PKGADD_BASEDIR} >> pkginfo
25         echo CATEGORY=application >> pkginfo
26         echo VERSION=`cat ./release` >> pkginfo
27         echo > prototype
28         for subdir in opt var etc usr; \
29         do if [ -d root/$$subdir ]; then \
30                 pkgproto root/$$subdir=$$subdir >> prototype;\
31         fi; done
32         for file in pkginfo preinstall postinstall copyright; \
33         do if [ -f $$file ]; then \
34                 echo "i $$file=$$file" >> prototype; \
35         fi; done
36         rm -rf ./tmp
37         mkdir ./tmp
38         pkgmk -o -d ./tmp
39         pkgtrans -so ./tmp ${top_srcdir}/../${PKGADD_FILE} ${PKGADD_PKG}