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.

95 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:=4
  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. PKG_BUILD_DEPENDS:=libevent2
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/netatalk
  20. SECTION:=net
  21. CATEGORY:=Network
  22. SUBMENU:=Filesystem
  23. DEPENDS:=+libattr +libdb47 +libgcrypt +libopenssl
  24. TITLE:=netatalk
  25. URL:=http://netatalk.sourceforge.net
  26. MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  27. endef
  28. define Package/netatalk/decription
  29. Netatalk is a freely-available Open Source AFP fileserver.
  30. It also provides a kernel level implementation of the AppleTalk
  31. Protocol Suite.
  32. endef
  33. TARGET_CFLAGS += -std=gnu99
  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-libevent=no \
  46. --with-libgcrypt-dir="$(STAGING_DIR)/usr" \
  47. --with-ssl-dir="$(STAGING_DIR)/usr" \
  48. --with-uams-path="/usr/lib/uams" \
  49. --without-acls \
  50. --without-kerberos \
  51. --without-mysql \
  52. --with-mysql-config=false \
  53. --without-pam \
  54. --disable-admin-group \
  55. --disable-srvloc \
  56. --disable-zeroconf \
  57. $(if $(CONFIG_SHADOW_PASSWORDS),--with-shadow,--without-shadow) \
  58. --without-ldap
  59. define Package/netatalk/conffiles
  60. /etc/afp.conf
  61. /etc/extmap.conf
  62. /etc/netatalk/
  63. endef
  64. define Package/netatalk/install
  65. $(INSTALL_DIR) $(1)/usr/bin
  66. $(INSTALL_DIR) $(1)/usr/lib
  67. $(INSTALL_DIR) $(1)/usr/sbin
  68. $(INSTALL_DIR) $(1)/usr/lib/uams
  69. $(INSTALL_DIR) $(1)/etc/init.d
  70. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatalk.so* $(1)/usr/lib
  71. $(CP) $(PKG_INSTALL_DIR)/usr/bin/dbd $(1)/usr/bin/
  72. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ad $(1)/usr/bin/
  73. $(CP) $(PKG_INSTALL_DIR)/usr/bin/afppasswd $(1)/usr/bin/
  74. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/afpd $(1)/usr/sbin/
  75. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/cnid_dbd $(1)/usr/sbin/
  76. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/cnid_metad $(1)/usr/sbin/
  77. $(CP) $(PKG_INSTALL_DIR)/usr/lib/uams/*.so $(1)/usr/lib/uams/
  78. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/afp.conf $(1)/etc/
  79. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/extmap.conf $(1)/etc/
  80. $(INSTALL_BIN) ./files/afpd.init $(1)/etc/init.d/afpd
  81. endef
  82. $(eval $(call BuildPackage,netatalk))