1
0

Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= openafs
  5. PKG_VERSION:= 1.6.5.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= e33e0b031760d4f90815d40b8ab3c540
  8. PKG_DESCR:= AFS implementation
  9. PKG_SECTION:= net/fs
  10. PKG_URL:= http://openafs.org
  11. PKG_SITES:= http://www.openafs.org/dl/openafs/${PKG_VERSION}/
  12. PKG_LIBC_DEPENDS:= glibc musl
  13. PKG_CFLINE_OPENAFS+= select ADK_KERNEL_KEYS
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}-src.tar.bz2
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,OPENAFS,openafs,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  18. CONFIGURE_ENV+= ac_cv_path_PATH_CPP=$(TARGET_CROSS)cpp
  19. CONFIGURE_ARGS:= --with-afs-sysname=$(ARCH)_linux26 \
  20. --with-linux-kernel-headers=${LINUX_DIR} \
  21. --disable-strip-binaries \
  22. --disable-linux-syscall-probing
  23. openafs-install:
  24. $(INSTALL_DIR) $(IDIR_OPENAFS)/usr/bin
  25. $(INSTALL_DIR) $(IDIR_OPENAFS)/usr/lib
  26. $(INSTALL_DIR) $(IDIR_OPENAFS)/usr/sbin
  27. $(INSTALL_DIR) $(IDIR_OPENAFS)/usr/libexec/openafs
  28. $(INSTALL_BIN) $(WRKINST)/usr/bin/* \
  29. $(IDIR_OPENAFS)/usr/bin
  30. $(INSTALL_BIN) $(WRKINST)/usr/sbin/* \
  31. $(IDIR_OPENAFS)/usr/sbin
  32. $(INSTALL_BIN) $(WRKINST)/usr/libexec/openafs/* \
  33. $(IDIR_OPENAFS)/usr/libexec/openafs
  34. $(CP) $(WRKINST)/usr/lib/*.so* \
  35. $(IDIR_OPENAFS)/usr/lib
  36. ${INSTALL_DIR} ${IDIR_OPENAFS}/etc/modules.d/
  37. echo "libafs" > ${IDIR_OPENAFS}/etc/modules.d/90-libafs
  38. ${INSTALL_DIR} ${IDIR_OPENAFS}/lib/modules/${KERNEL_VERSION}
  39. $(CP) $(WRKINST)/usr/lib/openafs/libafs-${KERNEL_VERSION}.ko \
  40. $(IDIR_OPENAFS)/lib/modules/${KERNEL_VERSION}/libafs.ko
  41. include ${TOPDIR}/mk/pkg-bottom.mk