Merge pull request #8361 from jandelgado/add_udptunnel_package
[feed/packages.git] / net / krb5 / Makefile
1 #
2 # Copyright (C) 2009-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=krb5
11 PKG_VERSION:=1.17
12 PKG_RELEASE:=2
13
14 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
15
16 PKG_LICENSE:=MIT
17 PKG_LICENSE_FILES:=NOTICE
18
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_SOURCE_URL:=https://web.mit.edu/kerberos/dist/krb5/1.17
21 PKG_HASH:=5a6e2284a53de5702d3dc2be3b9339c963f9b5397d3fbbc53beb249380a781f5
22
23 PKG_BUILD_PARALLEL:=1
24 PKG_INSTALL:=1
25 PKG_USE_MIPS16:=0
26
27 include $(INCLUDE_DIR)/package.mk
28
29 MAKE_PATH:=src
30
31 define Package/krb5/Default
32 SECTION:=net
33 CATEGORY:=Network
34 TITLE:=Kerberos
35 URL:=https://web.mit.edu/kerberos/
36 endef
37
38 define Package/krb5-libs
39 SECTION:=net
40 CATEGORY:=Network
41 TITLE:=Kerberos
42 DEPENDS:=+libncurses +libss +libcomerr
43 TITLE:=Kerberos 5 Shared Libraries
44 URL:=http://web.mit.edu/kerberos/
45 endef
46
47 define Package/krb5-server
48 $(call Package/krb5/Default)
49 DEPENDS:=+krb5-libs +libpthread
50 TITLE:=Kerberos 5 Server
51 endef
52
53 define Package/krb5-server-extras
54 $(call Package/krb5/Default)
55 DEPENDS:=+krb5-libs +libpthread
56 TITLE:=Kerberos 5 Admin Server
57 endef
58
59 define Package/krb5-client
60 $(call Package/krb5/Default)
61 DEPENDS:=+krb5-libs
62 TITLE:=Kerberos 5 Client
63 endef
64
65 define Package/krb5/description
66 Kerberos is a network authentication protocol.
67 It is designed to provide strong authentication for client/server applications by using secret-key cryptography.
68 endef
69
70 CONFIGURE_PATH = ./src
71
72 CONFIGURE_VARS += \
73 cross_compiling=yes \
74 krb5_cv_attr_constructor_destructor=yes,yes \
75 krb5_cv_sys_rcdir=/tmp \
76 ac_cv_func_regcomp=yes \
77 ac_cv_printf_positional=yes \
78 ac_cv_file__etc_environment=no \
79 ac_cv_file__etc_TIMEZONE=no \
80 ac_cv_header_keyutils_h=no
81
82 CONFIGURE_ARGS += \
83 --localstatedir=/etc \
84 --with-system-ss \
85 --with-system-et \
86 --without-system-verto \
87 --without-tcl \
88 --without-tls-impl \
89 --without-libedit \
90 --without-readline \
91 --disable-rpath \
92 --disable-pkinit \
93 --with-size-optimizations \
94 --with-crypto-impl=builtin
95
96 define Build/InstallDev
97 $(INSTALL_DIR) $(1)/usr/include
98 $(CP) $(PKG_INSTALL_DIR)/usr/include $(1)/usr
99 $(INSTALL_DIR) $(1)/usr
100 $(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr
101 # needed for samba4, to detect system-krb5
102 $(INSTALL_DIR) $(1)/usr/bin
103 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/krb5-config $(1)/usr/bin
104 endef
105
106 define Package/krb5-libs/install
107 $(INSTALL_DIR) $(1)/usr/lib
108 $(INSTALL_DIR) $(1)/usr/lib/krb5
109 $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins
110 $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins/kdb
111 $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins/libkrb5
112 $(CP) $(PKG_INSTALL_DIR)/usr/lib/krb5/plugins/kdb/db2.so $(1)/usr/lib/krb5/plugins/kdb
113 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
114 endef
115
116 define Package/krb5-client/install
117 $(INSTALL_DIR) $(1)/usr/bin
118 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kdestroy $(1)/usr/bin
119 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kinit $(1)/usr/bin
120 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/klist $(1)/usr/bin
121 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kpasswd $(1)/usr/bin
122 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ksu $(1)/usr/bin
123 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kvno $(1)/usr/bin
124 $(INSTALL_DIR) $(1)/usr/sbin
125 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/krb5-send-pr $(1)/usr/sbin
126 endef
127
128 # Removed some server-side software to reduce package size. This should be
129 # put in a separate package if needed.
130 define Package/krb5-server/install
131 $(INSTALL_DIR) $(1)/etc/init.d
132 $(INSTALL_BIN) ./files/krb5kdc $(1)/etc/init.d/krb5kdc
133 $(INSTALL_DIR) $(1)/usr/sbin
134 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kadmin.local $(1)/usr/sbin
135 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kdb5_util $(1)/usr/sbin
136 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/krb5kdc $(1)/usr/sbin
137 endef
138
139 define Package/krb5-server-extras/install
140 $(INSTALL_DIR) $(1)/usr/sbin
141 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kadmind $(1)/usr/sbin
142 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kprop $(1)/usr/sbin
143 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kpropd $(1)/usr/sbin
144 endef
145
146 define Package/krb5-server/postinst
147 mkdir -p $${IPKG_INSTROOT}/etc/krb5kdc
148 touch $${IPKG_INSTROOT}/etc/krb5kdc/kadm5.acl
149 endef
150
151 $(eval $(call BuildPackage,krb5-libs))
152 $(eval $(call BuildPackage,krb5-server))
153 $(eval $(call BuildPackage,krb5-server-extras))
154 $(eval $(call BuildPackage,krb5-client))