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@"
13 PKGADD_FILE=${PKGADD_PKG}-@PACKAGE@-@VERSION@-@host@.pkg
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
28 for subdir in opt var etc usr; \
29 do if [ -d root/$$subdir ]; then \
30 pkgproto root/$$subdir=$$subdir >> prototype;\
32 for file in pkginfo preinstall postinstall copyright; \
33 do if [ -f $$file ]; then \
34 echo "i $$file=$$file" >> prototype; \
39 pkgtrans -so ./tmp ${top_srcdir}/../${PKGADD_FILE} ${PKGADD_PKG}