2009-09-28 18:38:03 +00:00
|
|
|
#
|
2012-04-16 19:12:51 +00:00
|
|
|
# Copyright (C) 2009-2012 OpenWrt.org
|
2009-09-28 18:38:03 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=netatalk
|
2011-10-17 14:00:16 +00:00
|
|
|
PKG_VERSION:=2.2.1
|
2012-04-16 19:12:51 +00:00
|
|
|
PKG_RELEASE:=4
|
2011-07-17 18:07:42 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=@SF/netatalk
|
2011-10-17 14:00:16 +00:00
|
|
|
PKG_MD5SUM:=4a371025daf96adb73fa491efdbfef28
|
2011-07-17 18:07:42 +00:00
|
|
|
|
2010-09-07 10:04:42 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2011-07-17 18:07:42 +00:00
|
|
|
PKG_INSTALL:=1
|
2011-10-17 14:52:22 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2010-02-19 00:14:01 +00:00
|
|
|
|
2009-09-28 18:38:03 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/netatalk
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2011-03-12 07:48:25 +00:00
|
|
|
SUBMENU:=Filesystem
|
2011-03-03 01:47:47 +00:00
|
|
|
DEPENDS:=+libdb47 +libgcrypt +libopenssl $(LIBRPC_DEPENDS)
|
2009-09-28 18:38:03 +00:00
|
|
|
TITLE:=netatalk
|
|
|
|
URL:=http://netatalk.sourceforge.net
|
2010-11-02 16:18:13 +00:00
|
|
|
MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
2009-09-28 18:38:03 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/netatalk/decription
|
2010-04-10 18:33:01 +00:00
|
|
|
Netatalk is a freely-available Open Source AFP fileserver.
|
|
|
|
It also provides a kernel level implementation of the AppleTalk
|
|
|
|
Protocol Suite.
|
2009-09-28 18:38:03 +00:00
|
|
|
endef
|
|
|
|
|
2011-07-17 18:07:42 +00:00
|
|
|
define Package/netatalk/conffiles
|
|
|
|
/etc/netatalk/afpd.conf
|
|
|
|
endef
|
|
|
|
|
2011-10-25 23:10:13 +00:00
|
|
|
TARGET_CFLAGS += -std=gnu99 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
2011-02-14 20:31:48 +00:00
|
|
|
TARGET_LDFLAGS += $(LIBRPC)
|
2010-02-20 11:43:34 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
2010-03-28 17:04:28 +00:00
|
|
|
--disable-afs \
|
|
|
|
--enable-hfs \
|
|
|
|
--disable-debugging \
|
|
|
|
--disable-shell-check \
|
2010-02-20 11:43:34 +00:00
|
|
|
--disable-timelord \
|
|
|
|
--disable-a2boot \
|
|
|
|
--disable-cups \
|
|
|
|
--disable-tcp-wrappers \
|
|
|
|
--with-cnid-default-backend=dbd \
|
|
|
|
--with-bdb="$(STAGING_DIR)/usr/" \
|
|
|
|
--with-libgcrypt-dir="$(STAGING_DIR)/usr" \
|
2010-03-28 13:21:56 +00:00
|
|
|
--with-ssl-dir="$(STAGING_DIR)/usr" \
|
2010-03-28 17:04:28 +00:00
|
|
|
--with-uams-path="/usr/lib/uams" \
|
|
|
|
--disable-admin-group \
|
2011-10-17 14:00:16 +00:00
|
|
|
--disable-srvloc \
|
|
|
|
--disable-zeroconf \
|
|
|
|
--without-shadow \
|
|
|
|
--without-ldap
|
2009-09-28 18:38:03 +00:00
|
|
|
|
|
|
|
define Package/netatalk/install
|
2011-07-17 18:07:42 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/uams
|
|
|
|
$(INSTALL_DIR) $(1)/etc/netatalk
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/afppasswd $(1)/usr/bin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/afpd $(1)/usr/sbin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/cnid_dbd $(1)/usr/sbin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/cnid_metad $(1)/usr/sbin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/uams/*.so $(1)/usr/lib/uams/
|
|
|
|
$(CP) ./files/AppleVolumes.default $(1)/etc/netatalk/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/netatalk/AppleVolumes.system $(1)/etc/netatalk/
|
2010-04-10 18:33:01 +00:00
|
|
|
$(INSTALL_CONF) ./files/afpd.conf $(1)/etc/netatalk/
|
|
|
|
$(INSTALL_BIN) ./files/afpd.init $(1)/etc/init.d/afpd
|
2009-09-28 18:38:03 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,netatalk))
|