Fix krb5 category and add maintainer
[openwrt/svn-archive/archive.git] / net / krb5 / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=krb5
4 PKG_VERSION:=1.8
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=krb5-$(PKG_VERSION)-signed.tar
8 PKG_SOURCE_URL:=http://web.mit.edu/kerberos/dist/krb5/$(PKG_VERSION)/
9 PKG_MD5SUM:=74257d68373a8df8b9391fc093d594be
10
11 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
12
13 PKG_BUILD_PARALLEL:=1
14 PKG_INSTALL:=1
15
16 include $(INCLUDE_DIR)/package.mk
17
18 MAKE_PATH:=src
19
20 define Package/krb5/Default
21 SECTION:=net
22 CATEGORY:=Network
23 TITLE:=Kerberos
24 URL:=http://web.mit.edu/kerberos/
25 MAINTAINER:=W. Michael Petullo <mike@flyn.org>
26 endef
27
28 define Package/krb5-libs
29 SECTION:=net
30 CATEGORY:=Network
31 TITLE:=Kerberos
32 DEPENDS:=+libncurses
33 TITLE:=Kerberos 5 Shared Libraries
34 URL:=http://web.mit.edu/kerberos/
35 MAINTAINER:=W. Michael Petullo <mike@flyn.org>
36 endef
37
38 define Package/krb5-server
39 $(call Package/krb5/Default)
40 DEPENDS:=+krb5-libs +libpthread
41 TITLE:=Kerberos 5 Server
42 endef
43
44 define Package/krb5-client
45 $(call Package/krb5/Default)
46 TITLE:=Kerberos 5 Client
47 endef
48
49 define Package/krb5/decription
50 Kerberos
51 endef
52
53 define Build/Prepare
54 # Krb5 tarball contains signature and a second tarball
55 # containing source code.
56 tar xf "$(DL_DIR)/$(PKG_SOURCE)" -C "$(BUILD_DIR)"
57 tar xzf "$(BUILD_DIR)/krb5-$(PKG_VERSION).tar.gz" -C "$(BUILD_DIR)"
58 patch -p1 -d "$(PKG_BUILD_DIR)" < "$(PATCH_DIR)/001-krb5kdc-dir-to-etc.patch"
59 endef
60
61 CONFIGURE_PATH = ./src
62
63 CONFIGURE_VARS += \
64 cross_compiling=yes \
65 krb5_cv_attr_constructor_destructor=yes,yes \
66 ac_cv_func_regcomp=yes \
67 ac_cv_printf_positional=yes \
68 ac_cv_file__etc_environment=no \
69 ac_cv_file__etc_TIMEZONE=no
70
71 CONFIGURE_ARGS += \
72 --enable-thread-support \
73 --without-krb4 \
74 --without-tcl \
75 --disable-ipv6
76
77 define Build/InstallDev
78 $(INSTALL_DIR) $(1)/usr
79 $(CP) \
80 $(PKG_INSTALL_DIR)/usr/include \
81 $(PKG_INSTALL_DIR)/usr/lib \
82 $(1)/usr/
83 endef
84
85 define Package/krb5-libs/install
86 $(INSTALL_DIR) $(1)/usr/lib
87 $(INSTALL_DIR) $(1)/usr/lib/krb5
88 $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins
89 $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins/kdb
90 $(INSTALL_DIR) $(1)/usr/lib/krb5/plugins/libkrb5
91 $(CP) $(PKG_INSTALL_DIR)/usr/lib/krb5/plugins/kdb/db2.so $(1)/usr/lib/krb5/plugins/kdb
92 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib
93 endef
94
95 define Package/krb5-client/install
96 $(INSTALL_DIR) $(1)/usr/bin
97 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kdestroy $(1)/usr/bin
98 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kinit $(1)/usr/bin
99 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/klist $(1)/usr/bin
100 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kpasswd $(1)/usr/bin
101 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ksu $(1)/usr/bin
102 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kvno $(1)/usr/bin
103 $(INSTALL_DIR) $(1)/usr/sbin
104 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/krb5-send-pr $(1)/usr/sbin
105 endef
106
107 define Package/krb5-server/install
108 $(INSTALL_DIR) $(1)/etc/init.d
109 $(INSTALL_BIN) ./files/krb5kdc $(1)/etc/init.d/krb5kdc
110 $(INSTALL_DIR) $(1)/usr/bin
111 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sclient $(1)/usr/bin
112 $(INSTALL_DIR) $(1)/usr/sbin
113 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kadmin.local $(1)/usr/sbin
114 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kadmind $(1)/usr/sbin
115 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kdb5_util $(1)/usr/sbin
116 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kdb5_util $(1)/usr/sbin
117 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kprop $(1)/usr/sbin
118 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kpropd $(1)/usr/sbin
119 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/krb5kdc $(1)/usr/sbin
120 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sim_server $(1)/usr/sbin
121 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sserver $(1)/usr/sbin
122 endef
123
124 $(eval $(call BuildPackage,krb5-libs))
125 $(eval $(call BuildPackage,krb5-server))
126 $(eval $(call BuildPackage,krb5-client))