You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
2.9 KiB

  1. #
  2. # Copyright (C) 2017 Val Kulkov <val.kulkov@gmail.com>
  3. #
  4. # This is free software, licensed under the GNU General Public License v3.
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=opendkim
  8. PKG_VERSION:=2.10.3
  9. PKG_RELEASE:=1
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=@SF/$(PKG_NAME)
  12. PKG_HASH:=43a0ba57bf942095fe159d0748d8933c6b1dd1117caf0273fa9a0003215e681b
  13. PKG_MAINTAINER:=Val Kulkov <val.kulkov@gmail.com>
  14. PKG_LICENSE:=BSD-3-Clause
  15. PKG_LICENSE_FILES:=LICENSE LICENSE.Sendmail
  16. PKG_INSTALL:=1
  17. PKG_BUILD_DEPENDS:=openssl
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/opendkim
  20. SECTION:=mail
  21. CATEGORY:=Mail
  22. DEPENDS:=+libopendkim
  23. TITLE:=Open source milter for providing DKIM service
  24. URL:=http://opendkim.org/
  25. USERID:=opendkim:opendkim
  26. endef
  27. define Package/opendkim/description
  28. The OpenDKIM daemon application and the opendkim-genkey Perl script for generating public/private key pairs.
  29. endef
  30. define Package/libopendkim
  31. SECTION:=mail
  32. CATEGORY:=Libraries
  33. DEPENDS:=+libopenssl +libmilter-sendmail
  34. TITLE:=Library for signing and verifying DKIM signatures
  35. URL:=http://opendkim.org/
  36. endef
  37. define Package/libopendkim/description
  38. Library for signing and verifying DomainKeys Identified Mail (DKIM) signatures.
  39. endef
  40. define Package/opendkim-tools
  41. SECTION:=mail
  42. CATEGORY:=Mail
  43. DEPENDS:=+libopendkim
  44. TITLE:=genzone, testkey and testmsg tools for OpenDKIM
  45. URL:=http://opendkim.org/
  46. endef
  47. define Package/opendkim-tools/description
  48. opendkim-genzone, opendkim-testkey and opendkim-testmsg tools.
  49. endef
  50. TARGET_CFLAGS += $(FPIC)
  51. CONFIGURE_ARGS += \
  52. --without-db \
  53. --without-gcov \
  54. --without-gprof \
  55. --without-lcov \
  56. --with-milter=$(STAGING_DIR)/usr
  57. define Build/InstallDev
  58. $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/sbin
  59. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opendkim $(1)/usr/sbin/
  60. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opendkim-{genkey,genzone,testkey,testmsg} $(1)/usr/sbin/
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopendkim.so* $(1)/usr/lib/
  62. endef
  63. define Package/opendkim/conffiles
  64. /etc/opendkim.conf
  65. /etc/opendkim/
  66. endef
  67. define Package/opendkim/install
  68. $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/opendkim $(1)/etc/init.d
  69. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opendkim $(1)/usr/sbin/
  70. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opendkim-genkey $(1)/usr/sbin/opendkim-genkey.pl
  71. $(INSTALL_BIN) ./files/opendkim-genkey $(1)/usr/sbin/
  72. $(INSTALL_DATA) ./files/opendkim.conf.simple $(1)/etc/opendkim/
  73. $(INSTALL_BIN) ./files/opendkim.init $(1)/etc/init.d/opendkim
  74. endef
  75. define Package/libopendkim/install
  76. $(INSTALL_DIR) $(1)/usr/lib
  77. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopendkim.so* $(1)/usr/lib/
  78. endef
  79. define Package/opendkim-tools/install
  80. $(INSTALL_DIR) $(1)/usr/sbin
  81. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opendkim-{genzone,testkey,testmsg} $(1)/usr/sbin/
  82. endef
  83. $(eval $(call BuildPackage,opendkim))
  84. $(eval $(call BuildPackage,libopendkim))
  85. $(eval $(call BuildPackage,opendkim-tools))