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.

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