2 # Copyright (C) 2009-2011 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=@SF
/netatalk
16 PKG_MD5SUM
:=2495f832643cef131bc3032274fbf926
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/netatalk
27 DEPENDS
:=+libdb47
+libgcrypt
+libopenssl
$(LIBRPC_DEPENDS
)
29 URL
:=http
://netatalk.sourceforge.net
30 MAINTAINER
:=W. Michael Petullo
<mike@flyn.org
>
33 define Package
/netatalk
/decription
34 Netatalk is a freely-available Open Source AFP fileserver.
35 It also provides a kernel level implementation of the AppleTalk
39 define Package
/netatalk
/conffiles
40 /etc
/netatalk
/afpd.conf
43 EXTRA_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include
44 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include
45 TARGET_LDFLAGS
+= $(LIBRPC
)
48 CFLAGS
="$(TARGET_CFLAGS) -std=gnu99 -DNO_DEBUG "
54 --disable-shell-check \
58 --disable-tcp-wrappers \
59 --with-cnid-default-backend
=dbd \
60 --with-bdb
="$(STAGING_DIR)/usr/" \
61 --with-libgcrypt-dir
="$(STAGING_DIR)/usr" \
62 --with-ssl-dir
="$(STAGING_DIR)/usr" \
63 --with-uams-path
="/usr/lib/uams" \
64 --disable-admin-group \
67 define Package
/netatalk
/install
68 $(INSTALL_DIR
) $(1)/usr
/bin
69 $(INSTALL_DIR
) $(1)/usr
/sbin
70 $(INSTALL_DIR
) $(1)/usr
/lib
/uams
71 $(INSTALL_DIR
) $(1)/etc
/netatalk
72 $(INSTALL_DIR
) $(1)/etc
/init.d
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/afppasswd
$(1)/usr
/bin
/
74 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/afpd
$(1)/usr
/sbin
/
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/cnid_dbd
$(1)/usr
/sbin
/
76 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/cnid_metad
$(1)/usr
/sbin
/
77 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/uams
/*.so
$(1)/usr
/lib
/uams
/
78 $(CP
) .
/files
/AppleVolumes.default
$(1)/etc
/netatalk
/
79 $(CP
) $(PKG_INSTALL_DIR
)/etc
/netatalk
/AppleVolumes.system
$(1)/etc
/netatalk
/
80 $(INSTALL_CONF
) .
/files
/afpd.conf
$(1)/etc
/netatalk
/
81 $(INSTALL_BIN
) .
/files
/afpd.init
$(1)/etc
/init.d
/afpd
84 $(eval
$(call BuildPackage
,netatalk
))