Makefile 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= mgetty
  7. PKG_VERSION:= 1.1.35
  8. PKG_XVERSION:= Feb22
  9. PKG_RELEASE:= 1
  10. PKG_MD5SUM:= 6805f8e31423bb777be80e3a856001cb
  11. PKG_DESCR:= mgetty + sendfax
  12. PKG_SECTION:= misc
  13. PKG_SITES:= ftp://alpha.greenie.net/pub/mgetty/source/1.1/
  14. DISTFILES:= ${PKG_NAME}${PKG_VERSION}-${PKG_XVERSION}.tar.gz
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,MGETTY,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. pre-configure:
  18. cp ${WRKBUILD}/policy.h-dist ${WRKBUILD}/policy.h
  19. echo "#define AUTO_PPP" >> ${WRKBUILD}/policy.h
  20. echo "#undef FAX_NOTIFY_PROGRAM" >> ${WRKBUILD}/policy.h
  21. echo "#define FAX_NOTIFY_PROGRAM \"/usr/lib/mgetty+sendfax/new_fax\"" >> ${WRKBUILD}/policy.h
  22. echo "#undef DATA_FLOW" >> ${WRKBUILD}/policy.h
  23. echo "#define DATA_FLOW FLOW_HARD" >> ${WRKBUILD}/policy.h
  24. echo "#undef DEVICE_GROUP" >> ${WRKBUILD}/policy.h
  25. echo "#undef DEVICE_OWNER" >> ${WRKBUILD}/policy.h
  26. echo "#define DEVICE_OWNER \"root\"" >> ${WRKBUILD}/policy.h
  27. echo "#undef FAXREC_FLOW" >> ${WRKBUILD}/policy.h
  28. echo "#define FAXREC_FLOW FLOW_SOFT" >> ${WRKBUILD}/policy.h
  29. echo "#undef FAXSEND_FLOW" >> ${WRKBUILD}/policy.h
  30. echo "#define FAXSEND_FLOW FLOW_SOFT" >> ${WRKBUILD}/policy.h
  31. do-build:
  32. ${INSTALL_DIR} ${WRKINST}/usr/bin ${WRKINST}/usr/sbin
  33. ${INSTALL_DIR} ${WRKINST}/usr/lib/mgetty+sendfax ${WRKINST}/etc/mgetty+sendfax
  34. ${MAKE} -C ${WRKBUILD} \
  35. ${TARGET_CONFIGURE_OPTS} \
  36. prefix="${WRKINST}/usr" \
  37. CONFDIR=/etc/mgetty+sendfax \
  38. bin-all
  39. ${INSTALL_BIN} ${WRKBUILD}/mgetty ${WRKINST}/usr/sbin
  40. ${INSTALL_BIN} ${WRKBUILD}/sendfax ${WRKINST}/usr/sbin
  41. ${INSTALL_BIN} ${WRKBUILD}/fax/faxrunqd ${WRKINST}/usr/sbin
  42. ${CP} ${WRKBUILD}/fax/faxq-helper ${WRKINST}/usr/lib/mgetty+sendfax
  43. chmod u+s ${WRKINST}/usr/lib/mgetty+sendfax/faxq-helper
  44. ${CP} ${WRKBUILD}/fax/cour25n.pbm ${WRKINST}/usr/lib/mgetty+sendfax
  45. ${CP} ${WRKBUILD}/fax/cour25.pbm ${WRKINST}/usr/lib/mgetty+sendfax
  46. ${CP} ${WRKBUILD}/fax/faxq ${WRKINST}/usr/bin
  47. ${CP} ${WRKBUILD}/fax/faxrm ${WRKINST}/usr/bin
  48. ${CP} ${WRKBUILD}/fax/faxrunq ${WRKINST}/usr/bin
  49. ${CP} ${WRKBUILD}/fax/faxspool ${WRKINST}/usr/bin
  50. ${CP} ${WRKBUILD}/g3/g32pbm ${WRKINST}/usr/bin
  51. (cd ${WRKINST}/usr/bin;\
  52. ln -snf g32pbm g3topbm;\
  53. );
  54. ${INSTALL_BIN} ${WRKBUILD}/g3/g3cat ${WRKINST}/usr/bin
  55. ${INSTALL_BIN} ${WRKBUILD}/g3/pbm2g3 ${WRKINST}/usr/bin
  56. ${INSTALL_BIN} ${WRKBUILD}/g3/sff2g3 ${WRKINST}/usr/bin
  57. # Installation into /etc
  58. ${CP} ${WRKBUILD}/dialin.config ${WRKINST}/etc/mgetty+sendfax
  59. ${CP} ${WRKBUILD}/fax/faxheader ${WRKINST}/etc/mgetty+sendfax
  60. ${CP} ${WRKBUILD}/faxrunq.config ${WRKINST}/etc/mgetty+sendfax
  61. ${CP} ${WRKBUILD}/fax/faxspool.rules ${WRKINST}/etc/mgetty+sendfax/faxspool.rules.sample
  62. ${WRKBUILD}/sedscript < ${WRKBUILD}/login.cfg.in > ${WRKINST}/etc/mgetty+sendfax/login.config
  63. ${WRKBUILD}/sedscript < ${WRKBUILD}/mgetty.cfg.in > ${WRKINST}/etc/mgetty+sendfax/mgetty.config
  64. ${WRKBUILD}/sedscript < ${WRKBUILD}/sendfax.cfg.in > ${WRKINST}/etc/mgetty+sendfax/sendfax.config
  65. ISBIN:=${IDIR_MGETTY}/usr/sbin
  66. IBIN:=${IDIR_MGETTY}/usr/bin
  67. ILIB:=${IDIR_MGETTY}/usr/lib/mgetty+sendfax
  68. IETC:=${IDIR_MGETTY}/etc/mgetty+sendfax
  69. do-install:
  70. ${INSTALL_DIR} ${ISBIN} ${IBIN} ${ILIB} ${IETC}
  71. ${INSTALL_BIN} \
  72. ${WRKINST}/usr/bin/faxq \
  73. ${WRKINST}/usr/bin/faxrm \
  74. ${WRKINST}/usr/bin/faxrunq \
  75. ${WRKINST}/usr/bin/faxspool \
  76. ${WRKINST}/usr/bin/g32pbm \
  77. ${WRKINST}/usr/bin/g3cat \
  78. ${WRKINST}/usr/bin/pbm2g3 \
  79. ${WRKINST}/usr/bin/sff2g3 \
  80. ${IBIN}
  81. ${INSTALL_BIN} \
  82. ${WRKINST}/usr/sbin/mgetty \
  83. ${WRKINST}/usr/sbin/sendfax \
  84. ${WRKINST}/usr/sbin/faxrunqd \
  85. ${ISBIN}
  86. install -m4755 \
  87. ${WRKINST}/usr/lib/mgetty+sendfax/faxq-helper \
  88. ${ILIB}
  89. ${INSTALL_DATA} \
  90. ${WRKINST}/usr/lib/mgetty+sendfax/cour25n.pbm \
  91. ${WRKINST}/usr/lib/mgetty+sendfax/cour25.pbm \
  92. ${ILIB}
  93. install -m600 \
  94. ${WRKINST}/etc/mgetty+sendfax/dialin.config \
  95. ${WRKINST}/etc/mgetty+sendfax/faxheader \
  96. ${WRKINST}/etc/mgetty+sendfax/faxrunq.config \
  97. ${WRKINST}/etc/mgetty+sendfax/faxspool.rules.sample \
  98. ${WRKINST}/etc/mgetty+sendfax/login.config \
  99. ${WRKINST}/etc/mgetty+sendfax/mgetty.config \
  100. ${WRKINST}/etc/mgetty+sendfax/sendfax.config \
  101. ${IETC}
  102. include ${TOPDIR}/mk/pkg-bottom.mk