source: packages/net/netatalk/Makefile @ 25842

Last change on this file since 25842 was 25842, checked in by jow, 6 years ago

[packages] use LIBRPC_DEPENDS (#8962)

File size: 2.1 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=netatalk
11PKG_VERSION:=2.1.3
12PKG_RELEASE:=1
13PKG_SOURCE:=netatalk-$(PKG_VERSION).tar.gz
14PKG_SOURCE_URL:=@SF/netatalk/
15PKG_BUILD_PARALLEL:=1
16PKG_MD5SUM:=785e287f5b5e5c9cce9397f9bce02a22
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/netatalk
21  SECTION:=net
22  CATEGORY:=Network
23  DEPENDS:=+libdb47 +libgcrypt +libopenssl $(LIBRPC_DEPENDS)
24  TITLE:=netatalk
25  URL:=http://netatalk.sourceforge.net
26  MAINTAINER:=W. Michael Petullo <mike@flyn.org>
27endef
28
29define Package/netatalk/decription
30  Netatalk is a freely-available Open Source AFP fileserver.
31  It also provides a kernel level implementation of the AppleTalk
32  Protocol Suite.
33endef
34
35EXTRA_CFLAGS += -I$(STAGING_DIR)/usr/include
36TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
37TARGET_LDFLAGS += $(LIBRPC)
38
39CONFIGURE_VARS += \
40        CFLAGS="$(TARGET_CFLAGS) -std=gnu99 -DNO_DEBUG "
41
42CONFIGURE_ARGS += \
43        --disable-afs \
44        --enable-hfs \
45        --disable-debugging \
46        --disable-shell-check \
47        --disable-timelord \
48        --disable-a2boot \
49        --disable-cups \
50        --disable-tcp-wrappers \
51        --with-cnid-default-backend=dbd \
52        --with-bdb="$(STAGING_DIR)/usr/" \
53        --with-libgcrypt-dir="$(STAGING_DIR)/usr" \
54        --with-ssl-dir="$(STAGING_DIR)/usr" \
55        --with-uams-path="/usr/lib/uams" \
56        --disable-admin-group \
57        --disable-srvloc \
58
59define Package/netatalk/install
60        $(INSTALL_DIR) $(1)/usr/sbin/
61        $(INSTALL_DIR) $(1)/usr/lib/uams/
62        $(INSTALL_DIR) $(1)/etc/netatalk/
63        $(INSTALL_DIR) $(1)/etc/init.d/
64        $(CP) $(PKG_BUILD_DIR)/etc/afpd/afpd $(1)/usr/sbin/
65        $(CP) $(PKG_BUILD_DIR)/bin/afppasswd/afppasswd $(1)/usr/sbin/
66        $(CP) $(PKG_BUILD_DIR)/etc/cnid_dbd/cnid_dbd $(1)/usr/sbin/
67        $(CP) $(PKG_BUILD_DIR)/etc/cnid_dbd/cnid_metad $(1)/usr/sbin/
68        $(CP) $(PKG_BUILD_DIR)/etc/uams/.libs/*.so $(1)/usr/lib/uams/
69        $(CP) ./files/AppleVolumes.* $(1)/etc/netatalk/
70        $(INSTALL_CONF) ./files/afpd.conf $(1)/etc/netatalk/
71        $(INSTALL_BIN) ./files/afpd.init $(1)/etc/init.d/afpd
72endef
73
74$(eval $(call BuildPackage,netatalk))
Note: See TracBrowser for help on using the repository browser.