2009-12-18 19:46:07 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=krb5
|
2010-10-07 17:12:34 +00:00
|
|
|
PKG_VERSION:=1.8
|
2011-02-16 11:58:00 +00:00
|
|
|
PKG_RELEASE:=2
|
2009-12-18 19:46:07 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=krb5-$(PKG_VERSION)-signed.tar
|
2010-10-07 17:12:34 +00:00
|
|
|
PKG_SOURCE_URL:=http://web.mit.edu/kerberos/dist/krb5/$(PKG_VERSION)/
|
|
|
|
PKG_MD5SUM:=74257d68373a8df8b9391fc093d594be
|
2009-12-18 19:46:07 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
2010-10-08 17:11:24 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2009-12-18 19:46:07 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
MAKE_PATH:=src
|
|
|
|
|
2009-12-18 19:46:07 +00:00
|
|
|
define Package/krb5/Default
|
|
|
|
SECTION:=net
|
2010-11-02 16:17:34 +00:00
|
|
|
CATEGORY:=Network
|
2009-12-18 19:46:07 +00:00
|
|
|
TITLE:=Kerberos
|
|
|
|
URL:=http://web.mit.edu/kerberos/
|
2010-11-02 16:17:34 +00:00
|
|
|
MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
2009-12-18 19:46:07 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/krb5-libs
|
|
|
|
SECTION:=net
|
2010-11-02 16:17:34 +00:00
|
|
|
CATEGORY:=Network
|
2009-12-18 19:46:07 +00:00
|
|
|
TITLE:=Kerberos
|
|
|
|
DEPENDS:=+libncurses
|
|
|
|
TITLE:=Kerberos 5 Shared Libraries
|
|
|
|
URL:=http://web.mit.edu/kerberos/
|
2010-11-02 16:17:34 +00:00
|
|
|
MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
2009-12-18 19:46:07 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/krb5-server
|
|
|
|
$(call Package/krb5/Default)
|
2010-01-23 21:47:35 +00:00
|
|
|
DEPENDS:=+krb5-libs +libpthread
|
2009-12-18 19:46:07 +00:00
|
|
|
TITLE:=Kerberos 5 Server
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/krb5-client
|
|
|
|
$(call Package/krb5/Default)
|
2012-06-12 23:47:29 +00:00
|
|
|
DEPENDS:=+krb5-libs
|
2009-12-18 19:46:07 +00:00
|
|
|
TITLE:=Kerberos 5 Client
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/krb5/decription
|
|
|
|
Kerberos
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
# Krb5 tarball contains signature and a second tarball
|
|
|
|
# containing source code.
|
|
|
|
tar xf "$(DL_DIR)/$(PKG_SOURCE)" -C "$(BUILD_DIR)"
|
|
|
|
tar xzf "$(BUILD_DIR)/krb5-$(PKG_VERSION).tar.gz" -C "$(BUILD_DIR)"
|
2010-10-16 06:14:27 +00:00
|
|
|
patch -p1 -d "$(PKG_BUILD_DIR)" < "$(PATCH_DIR)/001-krb5kdc-dir-to-etc.patch"
|
2011-02-16 11:54:11 +00:00
|
|
|
patch -p1 -d "$(PKG_BUILD_DIR)" < "$(PATCH_DIR)/002-MITKRB5-SA-2011-002.patch"
|
2009-12-18 19:46:07 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_PATH = ./src
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
cross_compiling=yes \
|
|
|
|
krb5_cv_attr_constructor_destructor=yes,yes \
|
|
|
|
ac_cv_func_regcomp=yes \
|
|
|
|
ac_cv_printf_positional=yes \
|
|
|
|
ac_cv_file__etc_environment=no \
|
|
|
|
ac_cv_file__etc_TIMEZONE=no
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-thread-support \
|
|
|
|
--without-krb4 \
|
|
|
|
--without-tcl \
|
|
|
|
--disable-ipv6
|
|
|
|
|
2010-10-24 11:13:18 +00:00
|
|
|
define Build/InstallDev
|
2011-12-13 15:27:05 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include \
|
|
|
|
$(1)/usr/include/krb5
|
2010-10-24 11:13:18 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr
|
2011-12-13 15:27:05 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib \
|
|
|
|
$(1)/usr
|
2010-10-24 11:13:18 +00:00
|
|
|
endef
|
|
|
|
|
2009-12-18 19:46:07 +00:00
|
|
|
define Package/krb5-libs/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/krb5
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/krb5/plugins
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/krb5/plugins/kdb
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/krb5/plugins/libkrb5
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/krb5/plugins/kdb/db2.so $(1)/usr/lib/krb5/plugins/kdb
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/krb5-client/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kdestroy $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kinit $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/klist $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kpasswd $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ksu $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kvno $(1)/usr/bin
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/krb5-send-pr $(1)/usr/sbin
|
|
|
|
endef
|
|
|
|
|
2010-12-17 04:06:02 +00:00
|
|
|
# Removed some server-side software to reduce package size. This should be
|
|
|
|
# put in a separate package if needed.
|
2009-12-18 19:46:07 +00:00
|
|
|
define Package/krb5-server/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/krb5kdc $(1)/etc/init.d/krb5kdc
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sclient $(1)/usr/bin
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kadmin.local $(1)/usr/sbin
|
2010-12-17 04:06:02 +00:00
|
|
|
# $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kadmind $(1)/usr/sbin
|
2009-12-18 19:46:07 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kdb5_util $(1)/usr/sbin
|
2010-12-17 04:06:02 +00:00
|
|
|
# $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kprop $(1)/usr/sbin
|
|
|
|
# $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kpropd $(1)/usr/sbin
|
2009-12-18 19:46:07 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/krb5kdc $(1)/usr/sbin
|
2010-12-17 04:06:02 +00:00
|
|
|
# $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sim_server $(1)/usr/sbin
|
2009-12-18 19:46:07 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,krb5-libs))
|
|
|
|
$(eval $(call BuildPackage,krb5-server))
|
|
|
|
$(eval $(call BuildPackage,krb5-client))
|