packages/net/netatalk/Makefile
swalker cf25b7e089 [packages] netatalk: fix PKG_VERSION variable
git-svn-id: svn://svn.openwrt.org/openwrt/packages@20562 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-28 23:05:44 +00:00

82 lines
1.8 KiB
Makefile

#
# Copyright (C) 2009-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=netatalk
PKG_VERSION:=2.0.5
PKG_RELEASE:=2
PKG_SOURCE:=netatalk-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/netatalk/
PKG_MD5SUM:=f35cd7a4ce26c780de380cd2bcae5ce6
include $(INCLUDE_DIR)/package.mk
define Package/netatalk
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libdb47 +libgcrypt +libopenssl +kmod-appletalk
TITLE:=netatalk
URL:=http://netatalk.sourceforge.net
endef
define Package/netatalk/decription
Netatalk is an implementation of the AppleTalk protocol suite
endef
EXTRA_CFLAGS += -I$(STAGING_DIR)/usr/include
CONFIGURE_ARGS += \
--disable-afs \
--enable-hfs \
--disable-debugging \
--disable-shell-check \
--disable-timelord \
--disable-a2boot \
--disable-cups \
--disable-tcp-wrappers \
--with-cnid-default-backend=dbd \
--with-bdb="$(STAGING_DIR)/usr/" \
--with-libgcrypt-dir="$(STAGING_DIR)/usr" \
--with-ssl-dir="$(STAGING_DIR)/usr" \
--with-uams-path="/usr/lib/uams" \
--disable-admin-group \
--disable-srvloc \
define Package/netatalk/install
$(INSTALL_DIR) $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/usr/lib/uams/
$(INSTALL_DIR) $(1)/etc/netatalk/
$(INSTALL_DIR) $(1)/etc/init.d/
$(CP) \
$(PKG_BUILD_DIR)/etc/afpd/afpd \
$(1)/usr/sbin/
$(CP) \
$(PKG_BUILD_DIR)/bin/afppasswd/afppasswd \
$(1)/usr/sbin/
$(CP) \
$(PKG_BUILD_DIR)/etc/cnid_dbd/cnid_dbd \
$(1)/usr/sbin/
$(CP) \
$(PKG_BUILD_DIR)/etc/cnid_dbd/cnid_metad \
$(1)/usr/sbin/
$(CP) \
$(PKG_BUILD_DIR)/etc/uams/.libs/*.so \
$(1)/usr/lib/uams/
$(CP) \
./files/AppleVolumes.* \
$(1)/etc/netatalk/
$(CP) \
./files/afpd.conf \
$(1)/etc/netatalk/
$(CP) \
./files/afpd.init \
$(1)/etc/init.d/afpd
endef
$(eval $(call BuildPackage,netatalk))