diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-30 20:39:07 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-30 20:39:07 +0200 |
commit | ba3359722cbf8aa7b0ed39e1f81d1d74ec88fecd (patch) | |
tree | 10c726d162bc0ded85eb7aeacf8f246bd39ad63a /package/heimdal/Makefile | |
parent | bbd610f15a71b27c955175cb98392b114717fd47 (diff) |
optimize ipkg package management
- generate ipkg control file from PKG_* variables
- automatically install init scripts from ./files/*.init
set #PKG pkgname to set the binary package
- rename FWINIT -> INIT
- move postinst and conffiles meta data to ./files
- update the packages to the latest upstream version
- remove some unready or unused package (strongswan,..)
more cleanups needed after allmodconfig
Diffstat (limited to 'package/heimdal/Makefile')
-rw-r--r-- | package/heimdal/Makefile | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/package/heimdal/Makefile b/package/heimdal/Makefile index 1f1c10c3a..8106ee2ec 100644 --- a/package/heimdal/Makefile +++ b/package/heimdal/Makefile @@ -9,15 +9,31 @@ PKG_NAME:= heimdal PKG_VERSION:= 1.2.1 PKG_RELEASE:= 1 PKG_MD5SUM:= 6e5028077e2a6b101a4a72801ba71b9e -MASTER_SITES:= http://www.h5l.org/dist/src/ +PKG_DESCR:= Kerberos 5 server +PKG_SECTION:= net +PKG_DEPENDS:= heimdal-libs heimdal-client-libs libncurses +PKG_URL:= http://www.h5l.org +PKG_SITES:= http://www.h5l.org/dist/src/ + +PKG_DESCR_1:= Kerberos 5 server libraries +PKG_SECTION_1:= libs + +PKG_DESCR_2:= Kerberos 5 client libraries +PKG_SECTION_2:= libs include $(TOPDIR)/mk/package.mk -$(eval $(call PKG_template,HEIMDAL_SERVER,heimdal-server,$(PKG_VERSION)-$(PKG_RELEASE))) -$(eval $(call PKG_template,HEIMDAL_LIBS,heimdal-libs,$(PKG_VERSION)-$(PKG_RELEASE))) -$(eval $(call PKG_template,HEIMDAL_CLIENT_LIBS,heimdal-client-libs,$(PKG_VERSION)-$(PKG_RELEASE))) +ifeq ($(ADK_COMPILE_HEIMDAL_WITH_DB_BDB),y) +PKG_DEPENDS+= libdb +endif -PKG_DEPENDS:= heimdal-libs, heimdal-client-libs, libncurses, +ifeq ($(ADK_COMPILE_HEIMDAL_WITH_DB_LDAP),y) +PKG_DEPENDS+= libopenldap +endif + +$(eval $(call PKG_template,HEIMDAL_SERVER,heimdal-server,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +$(eval $(call PKG_template,HEIMDAL_LIBS,heimdal-libs,$(PKG_VERSION)-${PKG_RELEASE},,${PKG_DESCR_1},${PKG_SECTION_1})) +$(eval $(call PKG_template,HEIMDAL_CLIENT_LIBS,heimdal-client-libs,$(PKG_VERSION)-${PKG_RELEASE},,${PKG_DESCR_2},${PKG_SECTION_2})) CONFIGURE_OPTS:= --with-hdbdir=/etc/heimdal \ --disable-otp \ @@ -33,7 +49,6 @@ endif ifeq ($(ADK_COMPILE_HEIMDAL_WITH_DB_BDB),y) CONFIGURE_ARGS+= --enable-berkeley-db -PKG_DEPENDS+= libdb else CONFIGURE_ARGS+= --disable-berkeley-db endif @@ -42,7 +57,6 @@ ifeq ($(ADK_COMPILE_HEIMDAL_WITH_DB_LDAP),y) CONFIGURE_ARGS+= --with-openldap=yes CONFIGURE_ARGS+= --with-openldap-include=${STAGING_DIR}/usr CONFIGURE_ARGS+= --with-openldap-lib=${STAGING_DIR}/usr -PKG_DEPENDS+= libopenldap else CONFIGURE_ARGS+= --without-openldap endif @@ -85,7 +99,6 @@ ifeq (${ADK_COMPILE_HEIMDAL_WITH_DB_LDAP},y) ${INSTALL_DATA} ${WRKBUILD}/lib/hdb/hdb.schema \ ${IDIR_HEIMDAL_SERVER}/etc/openldap/schema endif - ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/etc/init.d ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/etc/heimdal ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/usr/sbin ${INSTALL_DIR} ${IDIR_HEIMDAL_SERVER}/usr/lib @@ -93,8 +106,6 @@ endif ${CP} ${WRKINST}/usr/lib/libkadm5srv.so* ${IDIR_HEIMDAL_SERVER}/usr/lib ${CP} ${WRKINST}/usr/lib/libhdb.so* ${IDIR_HEIMDAL_SERVER}/usr/lib ${INSTALL_DATA} ./files/krb5.conf ${IDIR_HEIMDAL_SERVER}/etc/heimdal - ${INSTALL_DATA} ./files/heimdal.init \ - ${IDIR_HEIMDAL_SERVER}/etc/init.d/heimdal ${INSTALL_DATA} ./files/kdc.conf ${IDIR_HEIMDAL_SERVER}/etc/heimdal ${INSTALL_DATA} ./files/kadmind.acl ${IDIR_HEIMDAL_SERVER}/etc/heimdal ${INSTALL_BIN} ${WRKINST}/usr/sbin/kdc ${IDIR_HEIMDAL_SERVER}/usr/sbin/ @@ -121,6 +132,5 @@ endif ${CP} ${WRKINST}/usr/lib/libeditline.so* ${IDIR_HEIMDAL_CLIENT_LIBS}/usr/lib ${CP} ${WRKINST}/usr/lib/libsl.so* ${IDIR_HEIMDAL_CLIENT_LIBS}/usr/lib ${CP} ${WRKINST}/usr/lib/libkadm5clnt.so* ${IDIR_HEIMDAL_CLIENT_LIBS}/usr/lib - echo 'Depends: ${PKG_DEPENDS}' >> ${IDIR_HEIMDAL_SERVER}/CONTROL/control include ${TOPDIR}/mk/pkg-bottom.mk |