c3b459efeb01dc0ee6d07a1884152d9386c2bf80
[openwrt/svn-archive/archive.git] / net / netatalk / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=netatalk
11 PKG_VERSION:=2.0.5
12 PKG_RELEASE:=4
13 PKG_SOURCE:=netatalk-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=@SF/netatalk/
15 PKG_MD5SUM:=f35cd7a4ce26c780de380cd2bcae5ce6
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/netatalk
20 SECTION:=net
21 CATEGORY:=Network
22 DEPENDS:=+libdb47 +libgcrypt +libopenssl
23 TITLE:=netatalk
24 URL:=http://netatalk.sourceforge.net
25 endef
26
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
30 Protocol Suite.
31 endef
32
33 EXTRA_CFLAGS += -I$(STAGING_DIR)/usr/include
34
35 CONFIGURE_ARGS += \
36 --disable-afs \
37 --enable-hfs \
38 --disable-debugging \
39 --disable-shell-check \
40 --disable-timelord \
41 --disable-a2boot \
42 --disable-cups \
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 \
50 --disable-srvloc \
51
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
65 endef
66
67 $(eval $(call BuildPackage,netatalk))