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.

93 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:=2
  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 $(LIBRPC_DEPENDS)
  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. TARGET_LDFLAGS += $(LIBRPC)
  34. CONFIGURE_ARGS += \
  35. --disable-afs \
  36. --enable-hfs \
  37. --disable-debugging \
  38. --disable-shell-check \
  39. --disable-timelord \
  40. --disable-a2boot \
  41. --disable-cups \
  42. --disable-tcp-wrappers \
  43. --with-cnid-default-backend=dbd \
  44. --with-bdb="$(STAGING_DIR)/usr/" \
  45. --with-libgcrypt-dir="$(STAGING_DIR)/usr" \
  46. --with-ssl-dir="$(STAGING_DIR)/usr" \
  47. --with-uams-path="/usr/lib/uams" \
  48. --without-acls \
  49. --without-kerberos \
  50. --without-mysql \
  51. --with-mysql-config=false \
  52. --without-pam \
  53. --disable-admin-group \
  54. --disable-srvloc \
  55. --disable-zeroconf \
  56. $(if $(CONFIG_SHADOW_PASSWORDS),--with-shadow,--without-shadow) \
  57. --without-ldap
  58. define Package/netatalk/conffiles
  59. /etc/afp.conf
  60. /etc/extmap.conf
  61. /etc/netatalk/
  62. endef
  63. define Package/netatalk/install
  64. $(INSTALL_DIR) $(1)/usr/bin
  65. $(INSTALL_DIR) $(1)/usr/lib
  66. $(INSTALL_DIR) $(1)/usr/sbin
  67. $(INSTALL_DIR) $(1)/usr/lib/uams
  68. $(INSTALL_DIR) $(1)/etc/init.d
  69. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatalk.so* $(1)/usr/lib
  70. $(CP) $(PKG_INSTALL_DIR)/usr/bin/dbd $(1)/usr/bin/
  71. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ad $(1)/usr/bin/
  72. $(CP) $(PKG_INSTALL_DIR)/usr/bin/afppasswd $(1)/usr/bin/
  73. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/afpd $(1)/usr/sbin/
  74. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/cnid_dbd $(1)/usr/sbin/
  75. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/cnid_metad $(1)/usr/sbin/
  76. $(CP) $(PKG_INSTALL_DIR)/usr/lib/uams/*.so $(1)/usr/lib/uams/
  77. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/afp.conf $(1)/etc/
  78. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/extmap.conf $(1)/etc/
  79. $(INSTALL_BIN) ./files/afpd.init $(1)/etc/init.d/afpd
  80. endef
  81. $(eval $(call BuildPackage,netatalk))