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.

106 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:=5
  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. PKG_FIXUP:=autoreconf
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/opendkim
  21. SECTION:=mail
  22. CATEGORY:=Mail
  23. DEPENDS:=+libopendkim
  24. TITLE:=Open source milter for providing DKIM service
  25. URL:=http://opendkim.org/
  26. USERID:=opendkim:opendkim
  27. endef
  28. define Package/opendkim/description
  29. The OpenDKIM daemon application and the opendkim-genkey Perl script for generating public/private key pairs.
  30. endef
  31. define Package/libopendkim
  32. SECTION:=mail
  33. CATEGORY:=Libraries
  34. DEPENDS:=+libopenssl +libmilter-sendmail +USE_GLIBC:libbsd
  35. TITLE:=Library for signing and verifying DKIM signatures
  36. URL:=http://opendkim.org/
  37. endef
  38. define Package/libopendkim/description
  39. Library for signing and verifying DomainKeys Identified Mail (DKIM) signatures.
  40. endef
  41. define Package/opendkim-tools
  42. SECTION:=mail
  43. CATEGORY:=Mail
  44. DEPENDS:=+libopendkim
  45. TITLE:=genzone, testkey and testmsg tools for OpenDKIM
  46. URL:=http://opendkim.org/
  47. endef
  48. define Package/opendkim-tools/description
  49. opendkim-genzone, opendkim-testkey and opendkim-testmsg tools.
  50. endef
  51. TARGET_CFLAGS += $(FPIC)
  52. CONFIGURE_ARGS += \
  53. --without-db \
  54. --without-gcov \
  55. --without-gprof \
  56. --without-lcov \
  57. --with-milter=$(STAGING_DIR)/usr
  58. define Build/InstallDev
  59. $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/sbin
  60. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opendkim $(1)/usr/sbin/
  61. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opendkim-{genkey,genzone,testkey,testmsg} $(1)/usr/sbin/
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopendkim.so* $(1)/usr/lib/
  63. endef
  64. define Package/opendkim/conffiles
  65. /etc/opendkim.conf
  66. /etc/opendkim/
  67. endef
  68. define Package/opendkim/install
  69. $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/opendkim $(1)/etc/init.d
  70. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opendkim $(1)/usr/sbin/
  71. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opendkim-genkey $(1)/usr/sbin/opendkim-genkey.pl
  72. $(INSTALL_BIN) ./files/opendkim-genkey $(1)/usr/sbin/
  73. $(INSTALL_DATA) ./files/opendkim.conf.simple $(1)/etc/opendkim/
  74. $(INSTALL_BIN) ./files/opendkim.init $(1)/etc/init.d/opendkim
  75. endef
  76. define Package/libopendkim/install
  77. $(INSTALL_DIR) $(1)/usr/lib
  78. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libopendkim.so* $(1)/usr/lib/
  79. endef
  80. define Package/opendkim-tools/install
  81. $(INSTALL_DIR) $(1)/usr/sbin
  82. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opendkim-{genzone,testkey,testmsg} $(1)/usr/sbin/
  83. endef
  84. $(eval $(call BuildPackage,opendkim))
  85. $(eval $(call BuildPackage,libopendkim))
  86. $(eval $(call BuildPackage,opendkim-tools))