You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.5 KiB

  1. #
  2. # Copyright (C) 2009-2013 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=netatalk
  9. PKG_VERSION:=3.1.11
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=@SF/netatalk
  13. PKG_HASH:=3434472ba96d3bbe3b024274438daad83b784ced720f7662a4c1d0a1078799a6
  14. PKG_BUILD_PARALLEL:=1
  15. PKG_INSTALL:=1
  16. PKG_FIXUP:=autoreconf
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/netatalk
  19. SECTION:=net
  20. CATEGORY:=Network
  21. SUBMENU:=Filesystem
  22. DEPENDS:=+libattr +libdb47 +libgcrypt +libopenssl
  23. TITLE:=netatalk
  24. URL:=http://netatalk.sourceforge.net
  25. MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  26. endef
  27. define Package/netatalk/decription
  28. Netatalk is a freely-available Open Source AFP fileserver.
  29. It also provides a kernel level implementation of the AppleTalk
  30. Protocol Suite.
  31. endef
  32. TARGET_CFLAGS += -std=gnu99
  33. CONFIGURE_ARGS += \
  34. --disable-afs \
  35. --enable-hfs \
  36. --disable-debugging \
  37. --disable-shell-check \
  38. --disable-timelord \
  39. --disable-a2boot \
  40. --disable-cups \
  41. --disable-tcp-wrappers \
  42. --with-cnid-default-backend=dbd \
  43. --with-bdb="$(STAGING_DIR)/usr/" \
  44. --with-libgcrypt-dir="$(STAGING_DIR)/usr" \
  45. --with-ssl-dir="$(STAGING_DIR)/usr" \
  46. --with-uams-path="/usr/lib/uams" \
  47. --without-acls \
  48. --without-kerberos \
  49. --without-mysql \
  50. --with-mysql-config=false \
  51. --without-pam \
  52. --disable-admin-group \
  53. --disable-srvloc \
  54. --disable-zeroconf \
  55. $(if $(CONFIG_SHADOW_PASSWORDS),--with-shadow,--without-shadow) \
  56. --without-ldap
  57. define Package/netatalk/conffiles
  58. /etc/afp.conf
  59. /etc/extmap.conf
  60. /etc/netatalk/
  61. endef
  62. define Package/netatalk/install
  63. $(INSTALL_DIR) $(1)/usr/bin
  64. $(INSTALL_DIR) $(1)/usr/lib
  65. $(INSTALL_DIR) $(1)/usr/sbin
  66. $(INSTALL_DIR) $(1)/usr/lib/uams
  67. $(INSTALL_DIR) $(1)/etc/init.d
  68. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatalk.so* $(1)/usr/lib
  69. $(CP) $(PKG_INSTALL_DIR)/usr/bin/dbd $(1)/usr/bin/
  70. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ad $(1)/usr/bin/
  71. $(CP) $(PKG_INSTALL_DIR)/usr/bin/afppasswd $(1)/usr/bin/
  72. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/afpd $(1)/usr/sbin/
  73. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/cnid_dbd $(1)/usr/sbin/
  74. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/cnid_metad $(1)/usr/sbin/
  75. $(CP) $(PKG_INSTALL_DIR)/usr/lib/uams/*.so $(1)/usr/lib/uams/
  76. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/afp.conf $(1)/etc/
  77. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/extmap.conf $(1)/etc/
  78. $(INSTALL_BIN) ./files/afpd.init $(1)/etc/init.d/afpd
  79. endef
  80. $(eval $(call BuildPackage,netatalk))