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.

85 lines
2.3 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:=2.2.4
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=@SF/netatalk
  13. PKG_MD5SUM:=40753a32340c24e4ec395aeb55ef056e
  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:=+attr +libdb47 +libgcrypt +libopenssl $(LIBRPC_DEPENDS)
  23. TITLE:=netatalk
  24. URL:=http://netatalk.sourceforge.net
  25. MAINTAINER:=W. Michael Petullo <mike@flyn.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-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/install
  58. $(INSTALL_DIR) $(1)/usr/bin
  59. $(INSTALL_DIR) $(1)/usr/sbin
  60. $(INSTALL_DIR) $(1)/usr/lib/uams
  61. $(INSTALL_DIR) $(1)/etc/netatalk
  62. $(INSTALL_DIR) $(1)/etc/init.d
  63. $(CP) $(PKG_INSTALL_DIR)/usr/bin/afppasswd $(1)/usr/bin/
  64. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/afpd $(1)/usr/sbin/
  65. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/cnid_dbd $(1)/usr/sbin/
  66. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/cnid_metad $(1)/usr/sbin/
  67. $(CP) $(PKG_INSTALL_DIR)/usr/lib/uams/*.so $(1)/usr/lib/uams/
  68. $(CP) ./files/AppleVolumes.default $(1)/etc/netatalk/
  69. $(CP) $(PKG_INSTALL_DIR)/etc/netatalk/AppleVolumes.system $(1)/etc/netatalk/
  70. $(INSTALL_CONF) ./files/afpd.conf $(1)/etc/netatalk/
  71. $(INSTALL_BIN) ./files/afpd.init $(1)/etc/init.d/afpd
  72. endef
  73. $(eval $(call BuildPackage,netatalk))