Makefile.am 1.2 KB

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