2 # Copyright (C) 2009-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=netatalk-
$(PKG_VERSION
).
tar.gz
14 PKG_SOURCE_URL
:=@SF
/netatalk
/
15 PKG_MD5SUM
:=f35cd7a4ce26c780de380cd2bcae5ce6
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/netatalk
22 DEPENDS
:=+libdb47
+libgcrypt
+libopenssl
24 URL
:=http
://netatalk.sourceforge.net
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
33 EXTRA_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include
39 --disable-shell-check \
43 --disable-tcp-wrappers \
44 --with-cnid-default-backend
=dbd \
45 --with-bdb
="$(STAGING_DIR)/usr/" \
46 --with-libgcrypt-dir
="$(STAGING_DIR)/usr" \
47 --with-ssl-dir
="$(STAGING_DIR)/usr" \
48 --with-uams-path
="/usr/lib/uams" \
49 --disable-admin-group \
52 define Package
/netatalk
/install
53 $(INSTALL_DIR
) $(1)/usr
/sbin
/
54 $(INSTALL_DIR
) $(1)/usr
/lib
/uams
/
55 $(INSTALL_DIR
) $(1)/etc
/netatalk
/
56 $(INSTALL_DIR
) $(1)/etc
/init.d
/
57 $(CP
) $(PKG_BUILD_DIR
)/etc
/afpd
/afpd
$(1)/usr
/sbin
/
58 $(CP
) $(PKG_BUILD_DIR
)/bin
/afppasswd
/afppasswd
$(1)/usr
/sbin
/
59 $(CP
) $(PKG_BUILD_DIR
)/etc
/cnid_dbd
/cnid_dbd
$(1)/usr
/sbin
/
60 $(CP
) $(PKG_BUILD_DIR
)/etc
/cnid_dbd
/cnid_metad
$(1)/usr
/sbin
/
61 $(CP
) $(PKG_BUILD_DIR
)/etc
/uams
/.libs
/*.so
$(1)/usr
/lib
/uams
/
62 $(CP
) .
/files
/AppleVolumes.
* $(1)/etc
/netatalk
/
63 $(INSTALL_CONF
) .
/files
/afpd.conf
$(1)/etc
/netatalk
/
64 $(INSTALL_BIN
) .
/files
/afpd.init
$(1)/etc
/init.d
/afpd
67 $(eval
$(call BuildPackage
,netatalk
))