bind: update to 9.18.32
[openadk.git] / package / krb5 / Makefile
blobaba0d774117656498d09e6e652a8ac118701f9e9
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= krb5
7 PKG_VERSION:= 1.18
8 PKG_RELEASE:= 1
9 PKG_HASH:= 73913934d711dcf9d5f5605803578edb44b9a11786df3c1b2711f4e1752f2c88
10 PKG_DESCR:= kerberos server
11 PKG_SECTION:= app/crypto
12 PKG_DEPENDS:= libkrb5 libncurses keyutils
13 PKG_BUILDDEP:= ncurses bison-host
14 PKG_NEEDS:= threads intl
15 PKG_URL:= http://web.mit.edu/kerberos/
16 PKG_SITES:= https://kerberos.org/dist/krb5/1.18/
17 PKG_LIBNAME:= libkrb5
18 PKG_OPTS:= dev noscripts
19 PKG_NOPARALLEL:= 1
21 PKG_SUBPKGS:= KRB5_SERVER KRB5_CLIENT LIBKRB5
22 PKGSD_LIBKRB5:= kerberos libraries
23 PKGSC_LIBKRB5:= libs/crypto
24 PKGSD_KRB5_CLIENT:= kerberos client tools
25 PKGSC_KRB5_CLIENT:= app/crypto
26 PKGSS_KRB5_CLIENT:= libkrb5 libncurses
28 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
29 WRKSRC= ${WRKDIST}/src
31 include $(ADK_TOPDIR)/mk/package.mk
33 $(eval $(call PKG_template,KRB5_SERVER,krb5-server,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
34 $(eval $(call PKG_template,KRB5_CLIENT,krb5-client,$(PKG_VERSION)-${PKG_RELEASE},${PKGSS_KRB5_CLIENT},${PKGSD_KRB5_CLIENT},${PKGSC_KRB5_CLIENT}))
35 $(eval $(call PKG_template,LIBKRB5,libkrb5,$(PKG_VERSION)-${PKG_RELEASE},,${PKGSD_LIBKRB5},${PKGSC_LIBKRB5},${PKG_OPTS}))
37 CONFIGURE_ARGS+= --disable-static \
38 --disable-profiled \
39 --disable-pkinit \
40 --without-system-et \
41 --without-system-ss \
42 --without-system-verto \
43 --without-tcl
44 CONFIGURE_ENV+= krb5_cv_attr_constructor_destructor=yes,yes \
45 ac_cv_func_regcomp=yes \
46 ac_cv_printf_positional=yes \
47 ac_cv_file__etc_environment=no \
48 ac_cv_file__etc_TIMEZONE=no
51 pre-build:
52 # fix nm call in script, we need the GNU version of nm
53 $(SED) "s#@@NM@@#${NM}#" ${WRKSRC}/util/export-check.pl
55 krb5-server-install:
56 ${INSTALL_DIR} ${IDIR_KRB5_SERVER}/etc/krb5kdc
57 ${INSTALL_DIR} ${IDIR_KRB5_SERVER}/usr/sbin
58 ${INSTALL_DIR} ${IDIR_KRB5_SERVER}/usr/lib/krb5/plugins/kdb
59 ${INSTALL_DATA} ./files/kdc.conf ${IDIR_KRB5_SERVER}/etc/krb5kdc
60 ${INSTALL_DATA} ./files/kadm5.acl ${IDIR_KRB5_SERVER}/etc/krb5kdc
61 ${INSTALL_BIN} ${WRKINST}/usr/bin/kadmin \
62 ${IDIR_KRB5_SERVER}/usr/sbin
63 ${INSTALL_BIN} ${WRKINST}/usr/sbin/{kdb5_util,krb5kdc,kadmind,kadmin.local} \
64 ${IDIR_KRB5_SERVER}/usr/sbin
65 ${INSTALL_DATA} ${WRKINST}/usr/lib/krb5/plugins/kdb/db2.so \
66 ${IDIR_KRB5_SERVER}/usr/lib/krb5/plugins/kdb
68 krb5-client-install:
69 ${INSTALL_DIR} ${IDIR_KRB5_CLIENT}/usr/bin
70 ${INSTALL_BIN} ${WRKINST}/usr/bin/{kinit,kpasswd,klist,kdestroy,ktutil} \
71 ${IDIR_KRB5_CLIENT}/usr/bin
73 libkrb5-install:
74 ${INSTALL_DIR} ${IDIR_LIBKRB5}/etc
75 ${INSTALL_DIR} ${IDIR_LIBKRB5}/usr/lib
76 ${INSTALL_DATA} ./files/krb5.conf ${IDIR_LIBKRB5}/etc
77 ${CP} ${WRKINST}/usr/lib/lib{verto,gssrpc,kadm5clnt*,kadm5srv*,kdb5}.so* \
78 ${IDIR_LIBKRB5}/usr/lib
79 ${CP} ${WRKINST}/usr/lib/lib{gssapi_krb5,k5crypto,krb5,krb5support,com_err}.so* \
80 ${IDIR_LIBKRB5}/usr/lib
81 echo '/usr/lib/libgssapi_krb5.so mechglue_internal_krb5_init' \
82 > ${IDIR_LIBKRB5}/etc/gssapi_mech.conf
84 include ${ADK_TOPDIR}/mk/pkg-bottom.mk