Makefile.am 1.2 KB

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