source: packages/net/netatalk/Makefile @ 20539

Last change on this file since 20539 was 20539, checked in by florian, 6 years ago

[package] add uams libraries, configuration file and init script (#6965)

File size: 1.8 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.1beta1
12PKG_RELEASE:=2
13
14PKG_SOURCE:=netatalk-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/netatalk
16PKG_MD5SUM:=86be058b18270e9df4699a1f393846b0
17
18PKG_FIXUP:=libtool
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/netatalk
23  SECTION:=net
24  CATEGORY:=Network
25  DEPENDS:=+libdb47 +libgcrypt +libopenssl
26  TITLE:=netatalk
27  URL:=http://netatalk.sourceforge.net
28endef
29
30define Package/netatalk/decription
31  Netatalk is an implementation of the AppleTalk protocol suite
32endef
33
34CONFIGURE_VARS += \
35        CFLAGS="$(TARGET_CFLAGS) -std=gnu99 -Drestrict='' -DNO_DEBUG "
36
37CONFIGURE_ARGS += \
38        --disable-timelord \
39        --disable-a2boot \
40        --disable-cups \
41        --disable-tcp-wrappers \
42        --with-cnid-default-backend=dbd \
43        --with-bdb="$(STAGING_DIR)/usr/" \
44        --with-libgcrypt-dir="$(STAGING_DIR)/usr" \
45        --with-ssl-dir="$(STAGING_DIR)/usr" \
46        --with-uams-path="/usr/lib/uams"
47
48define Package/netatalk/install
49        $(INSTALL_DIR) $(1)/usr/bin/
50        $(INSTALL_DIR) $(1)/usr/lib/uams/
51        $(INSTALL_DIR) $(1)/etc/netatalk/
52        $(INSTALL_DIR) $(1)/etc/init.d/
53        $(CP) \
54                $(PKG_BUILD_DIR)/etc/afpd/afpd \
55                $(1)/usr/bin/
56        $(CP) \
57                $(PKG_BUILD_DIR)/etc/cnid_dbd/cnid_dbd \
58                $(1)/usr/bin/
59        $(CP) \
60                $(PKG_BUILD_DIR)/etc/cnid_dbd/cnid_metad \
61                $(1)/usr/bin/
62        $(CP) \
63                $(PKG_BUILD_DIR)/etc/cnid_dbd/dbd \
64                $(1)/usr/bin/
65        $(CP) \
66                $(PKG_BUILD_DIR)/etc/uams/.libs/*.so \
67                $(1)/usr/lib/uams/
68        $(CP) ./files/afpd.init $(1)/etc/init.d/afpd
69        $(CP) ./files/AppleVolumes.default $(1)/etc/netatalk/
70        $(CP) ./files/AppleVolumes.system $(1)/etc/netatalk/
71        $(INSTALL_BIN) ./files/afpd.conf $(1)/etc/netatalk/
72endef
73
74$(eval $(call BuildPackage,netatalk))
Note: See TracBrowser for help on using the repository browser.