2 # Copyright (C) 2009-2013 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
:=40753a32340c24e4ec395aeb55ef056e
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/netatalk
28 DEPENDS
:=+attr
+libdb47
+libgcrypt
+libopenssl
$(LIBRPC_DEPENDS
)
30 URL
:=http
://netatalk.sourceforge.net
31 MAINTAINER
:=W. Michael Petullo
<mike@flyn.org
>
34 define Package
/netatalk
/decription
35 Netatalk is a freely-available Open Source AFP fileserver.
36 It also provides a kernel level implementation of the AppleTalk
40 define Package
/netatalk
/conffiles
41 /etc
/netatalk
/afpd.conf
44 TARGET_CFLAGS
+= -std
=gnu99
45 TARGET_LDFLAGS
+= $(LIBRPC
)
51 --disable-shell-check \
55 --disable-tcp-wrappers \
56 --with-cnid-default-backend
=dbd \
57 --with-bdb
="$(STAGING_DIR)/usr/" \
58 --with-libgcrypt-dir
="$(STAGING_DIR)/usr" \
59 --with-ssl-dir
="$(STAGING_DIR)/usr" \
60 --with-uams-path
="/usr/lib/uams" \
63 --disable-admin-group \
66 $(if
$(CONFIG_SHADOW_PASSWORDS
),--with-shadow
,--without-shadow
) \
69 define Package
/netatalk
/install
70 $(INSTALL_DIR
) $(1)/usr
/bin
71 $(INSTALL_DIR
) $(1)/usr
/sbin
72 $(INSTALL_DIR
) $(1)/usr
/lib
/uams
73 $(INSTALL_DIR
) $(1)/etc
/netatalk
74 $(INSTALL_DIR
) $(1)/etc
/init.d
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 $(CP
) .
/files
/AppleVolumes.default
$(1)/etc
/netatalk
/
81 $(CP
) $(PKG_INSTALL_DIR
)/etc
/netatalk
/AppleVolumes.system
$(1)/etc
/netatalk
/
82 $(INSTALL_CONF
) .
/files
/afpd.conf
$(1)/etc
/netatalk
/
83 $(INSTALL_BIN
) .
/files
/afpd.init
$(1)/etc
/init.d
/afpd
86 $(eval
$(call BuildPackage
,netatalk
))