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.

98 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.12
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=@SF/netatalk
  13. PKG_HASH:=1560f83a3da41be97e0b70a96e2402159b8ddc631d38538360b14784beada5d1
  14. PKG_BUILD_PARALLEL:=1
  15. PKG_INSTALL:=1
  16. PKG_FIXUP:=autoreconf
  17. PKG_CPE_ID:=cpe:/a:netatalk:netatalk
  18. PKG_BUILD_DEPENDS:=libevent2
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/netatalk
  21. SECTION:=net
  22. CATEGORY:=Network
  23. SUBMENU:=Filesystem
  24. DEPENDS:=+libattr +libdb47 +libgcrypt +libopenssl
  25. TITLE:=netatalk
  26. URL:=http://netatalk.sourceforge.net
  27. MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
  28. endef
  29. define Package/netatalk/decription
  30. Netatalk is a freely-available Open Source AFP fileserver.
  31. It also provides a kernel level implementation of the AppleTalk
  32. Protocol Suite.
  33. endef
  34. TARGET_CFLAGS += -std=gnu99
  35. CONFIGURE_ARGS += \
  36. --disable-afs \
  37. --enable-hfs \
  38. --disable-debugging \
  39. --disable-shell-check \
  40. --disable-timelord \
  41. --disable-a2boot \
  42. --disable-cups \
  43. --disable-tcp-wrappers \
  44. --with-cnid-default-backend=dbd \
  45. --with-bdb="$(STAGING_DIR)/usr/" \
  46. --with-libevent=no \
  47. --with-libgcrypt-dir="$(STAGING_DIR)/usr" \
  48. --with-ssl-dir="$(STAGING_DIR)/usr" \
  49. --with-uams-path="/usr/lib/uams" \
  50. --without-acls \
  51. --without-kerberos \
  52. --without-mysql \
  53. --with-mysql-config=false \
  54. --without-pam \
  55. --disable-admin-group \
  56. --disable-srvloc \
  57. --disable-zeroconf \
  58. $(if $(CONFIG_SHADOW_PASSWORDS),--with-shadow,--without-shadow) \
  59. --without-dtrace \
  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_DATA) $(PKG_INSTALL_DIR)/etc/afp.conf $(1)/etc/
  81. $(INSTALL_DATA) $(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))