[net] Filesystem: Moved netatalk (AppleTalk File and Printer Sharing) to Filesystem...
[openwrt/svn-archive/archive.git] / net / netatalk / Makefile
index a97b47b..b1a4613 100644 (file)
@@ -8,27 +8,37 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=netatalk
-PKG_VERSION:=2.0.5
-PKG_RELEASE:=2
+PKG_VERSION:=2.1.3
+PKG_RELEASE:=1
 PKG_SOURCE:=netatalk-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/netatalk/
-PKG_MD5SUM:=f35cd7a4ce26c780de380cd2bcae5ce6
+PKG_BUILD_PARALLEL:=1
+PKG_MD5SUM:=785e287f5b5e5c9cce9397f9bce02a22
 
 include $(INCLUDE_DIR)/package.mk
 
 define Package/netatalk
   SECTION:=net
   CATEGORY:=Network
-  DEPENDS:=+libdb47 +libgcrypt +libopenssl +kmod-appletalk
+  SUBMENU:=Filesystem
+  DEPENDS:=+libdb47 +libgcrypt +libopenssl $(LIBRPC_DEPENDS)
   TITLE:=netatalk
   URL:=http://netatalk.sourceforge.net
+  MAINTAINER:=W. Michael Petullo <mike@flyn.org>
 endef
 
 define Package/netatalk/decription
-  Netatalk is an implementation of the AppleTalk protocol suite
+  Netatalk is a freely-available Open Source AFP fileserver.
+  It also provides a kernel level implementation of the AppleTalk
+  Protocol Suite.
 endef
 
 EXTRA_CFLAGS += -I$(STAGING_DIR)/usr/include
+TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
+TARGET_LDFLAGS += $(LIBRPC)
+
+CONFIGURE_VARS += \
+       CFLAGS="$(TARGET_CFLAGS) -std=gnu99 -DNO_DEBUG "
 
 CONFIGURE_ARGS += \
        --disable-afs \
@@ -52,30 +62,14 @@ define Package/netatalk/install
        $(INSTALL_DIR) $(1)/usr/lib/uams/
        $(INSTALL_DIR) $(1)/etc/netatalk/
        $(INSTALL_DIR) $(1)/etc/init.d/
-       $(CP) \
-               $(PKG_BUILD_DIR)/etc/afpd/afpd \
-               $(1)/usr/sbin/
-       $(CP) \
-               $(PKG_BUILD_DIR)/bin/afppasswd/afppasswd \
-               $(1)/usr/sbin/
-       $(CP) \
-               $(PKG_BUILD_DIR)/etc/cnid_dbd/cnid_dbd \
-               $(1)/usr/sbin/
-       $(CP) \
-               $(PKG_BUILD_DIR)/etc/cnid_dbd/cnid_metad \
-               $(1)/usr/sbin/
-       $(CP) \
-               $(PKG_BUILD_DIR)/etc/uams/.libs/*.so \
-               $(1)/usr/lib/uams/
-       $(CP) \
-               ./files/AppleVolumes.* \
-               $(1)/etc/netatalk/
-       $(CP) \
-               ./files/afpd.conf \
-               $(1)/etc/netatalk/
-       $(CP) \
-               ./files/afpd.init \
-               $(1)/etc/init.d/afpd
+       $(CP) $(PKG_BUILD_DIR)/etc/afpd/afpd $(1)/usr/sbin/
+       $(CP) $(PKG_BUILD_DIR)/bin/afppasswd/afppasswd $(1)/usr/sbin/
+       $(CP) $(PKG_BUILD_DIR)/etc/cnid_dbd/cnid_dbd $(1)/usr/sbin/
+       $(CP) $(PKG_BUILD_DIR)/etc/cnid_dbd/cnid_metad $(1)/usr/sbin/
+       $(CP) $(PKG_BUILD_DIR)/etc/uams/.libs/*.so $(1)/usr/lib/uams/
+       $(CP) ./files/AppleVolumes.* $(1)/etc/netatalk/
+       $(INSTALL_CONF) ./files/afpd.conf $(1)/etc/netatalk/
+       $(INSTALL_BIN) ./files/afpd.init $(1)/etc/init.d/afpd
 endef
 
 $(eval $(call BuildPackage,netatalk))