Merge pull request #193 from chris5560/master
[feed/packages.git] / net / netatalk / Makefile
1 #
2 # Copyright (C) 2009-2013 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.2.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/netatalk
16 PKG_MD5SUM:=40753a32340c24e4ec395aeb55ef056e
17
18 PKG_BUILD_PARALLEL:=1
19 PKG_INSTALL:=1
20 PKG_FIXUP:=autoreconf
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/netatalk
25 SECTION:=net
26 CATEGORY:=Network
27 SUBMENU:=Filesystem
28 DEPENDS:=+attr +libdb47 +libgcrypt +libopenssl $(LIBRPC_DEPENDS)
29 TITLE:=netatalk
30 URL:=http://netatalk.sourceforge.net
31 MAINTAINER:=W. Michael Petullo <mike@flyn.org>
32 endef
33
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
37 Protocol Suite.
38 endef
39
40 define Package/netatalk/conffiles
41 /etc/netatalk/afpd.conf
42 endef
43
44 TARGET_CFLAGS += -std=gnu99
45 TARGET_LDFLAGS += $(LIBRPC)
46
47 CONFIGURE_ARGS += \
48 --disable-afs \
49 --enable-hfs \
50 --disable-debugging \
51 --disable-shell-check \
52 --disable-timelord \
53 --disable-a2boot \
54 --disable-cups \
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" \
61 --without-acls \
62 --without-pam \
63 --disable-admin-group \
64 --disable-srvloc \
65 --disable-zeroconf \
66 $(if $(CONFIG_SHADOW_PASSWORDS),--with-shadow,--without-shadow) \
67 --without-ldap
68
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
84 endef
85
86 $(eval $(call BuildPackage,netatalk))