forked from breeze303/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
106 lines (87 loc) · 2.96 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#
# Copyright (C) 2017 Val Kulkov <[email protected]>
#
# This is free software, licensed under the GNU General Public License v3.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=opendkim
PKG_VERSION:=2.10.3
PKG_RELEASE:=6
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
PKG_HASH:=43a0ba57bf942095fe159d0748d8933c6b1dd1117caf0273fa9a0003215e681b
PKG_MAINTAINER:=Val Kulkov <[email protected]>
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE LICENSE.Sendmail
PKG_INSTALL:=1
PKG_BUILD_DEPENDS:=openssl
PKG_FIXUP:=autoreconf
include $(INCLUDE_DIR)/package.mk
define Package/opendkim
SECTION:=mail
CATEGORY:=Mail
DEPENDS:=+libopendkim
TITLE:=Open source milter for providing DKIM service
URL:=http://opendkim.org/
USERID:=opendkim:opendkim
endef
define Package/opendkim/description
The OpenDKIM daemon application and the opendkim-genkey Perl script for generating public/private key pairs.
endef
define Package/libopendkim
SECTION:=mail
CATEGORY:=Libraries
DEPENDS:=+libopenssl +libmilter-sendmail +USE_GLIBC:libbsd
TITLE:=Library for signing and verifying DKIM signatures
URL:=http://opendkim.org/
endef
define Package/libopendkim/description
Library for signing and verifying DomainKeys Identified Mail (DKIM) signatures.
endef
define Package/opendkim-tools
SECTION:=mail
CATEGORY:=Mail
DEPENDS:=+libopendkim
TITLE:=genzone, testkey and testmsg tools for OpenDKIM
URL:=http://opendkim.org/
endef
define Package/opendkim-tools/description
opendkim-genzone, opendkim-testkey and opendkim-testmsg tools.
endef
CONFIGURE_ARGS += \
--without-db \
--without-gcov \
--without-gprof \
--without-lcov \
$(if $(CONFIG_USE_GLIBC),,--without-libbsd) \
--with-milter=$(STAGING_DIR)/usr \
--with-pic
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/lib $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opendkim $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opendkim-{genkey,genzone,testkey,testmsg} $(1)/usr/sbin/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libopendkim.so* $(1)/usr/lib/
endef
define Package/opendkim/conffiles
/etc/opendkim.conf
/etc/opendkim/
endef
define Package/opendkim/install
$(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/opendkim $(1)/etc/init.d
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opendkim $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opendkim-genkey $(1)/usr/sbin/opendkim-genkey.pl
$(INSTALL_BIN) ./files/opendkim-genkey $(1)/usr/sbin/
$(INSTALL_DATA) ./files/opendkim.conf.simple $(1)/etc/opendkim/
$(INSTALL_BIN) ./files/opendkim.init $(1)/etc/init.d/opendkim
endef
define Package/libopendkim/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libopendkim.so* $(1)/usr/lib/
endef
define Package/opendkim-tools/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opendkim-{genzone,testkey,testmsg} $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,opendkim))
$(eval $(call BuildPackage,libopendkim))
$(eval $(call BuildPackage,opendkim-tools))