buildroot/package/netatalk/netatalk.mk
Gustavo Zacarias eba9e55bae netatalk: add support for ACLs
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-06-18 14:19:58 +02:00

62 lines
1.8 KiB
Makefile

################################################################################
#
# netatalk
#
################################################################################
NETATALK_VERSION = 3.1.2
NETATALK_SITE = http://downloads.sourceforge.net/project/netatalk/netatalk/$(NETATALK_VERSION)
NETATALK_SOURCE = netatalk-$(NETATALK_VERSION).tar.bz2
NETATALK_AUTORECONF = YES
NETATALK_CONFIG_SCRIPTS = netatalk-config
NETATALK_DEPENDENCIES = host-pkgconf openssl berkeleydb libgcrypt libgpg-error \
libevent
NETATALK_LICENSE = GPLv2+, LGPLv3+, MIT-like
NETATALK_LICENSE_FILES = COPYING COPYRIGHT
# Don't run ldconfig!
NETATALK_CONF_ENV += CC="$(TARGET_CC) -std=gnu99" \
ac_cv_path_NETA_LDCONFIG=""
NETATALK_CONF_OPT += --with-cnid-cdb-backend \
--with-bdb=$(STAGING_DIR)/usr \
--with-ssl-dir=$(STAGING_DIR)/usr \
--with-libgcrypt-dir=$(STAGING_DIR)/usr \
--with-shadow \
--disable-shell-check \
--without-kerberos \
--without-pam \
--with-libevent=no \
--with-dtrace=no \
--with-mysql-config=no
ifeq ($(BR2_PACKAGE_ACL),y)
NETATALK_DEPENDENCIES += acl
else
NETATALK_CONF_OPT += --with-acls=no
endif
ifeq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yy)
NETATALK_DEPENDENCIES += avahi
NETATALK_CONF_OPT += --enable-zeroconf=$(STAGING_DIR)/usr
else
NETATALK_CONF_OPT += --disable-zeroconf
endif
ifeq ($(BR2_PACKAGE_CUPS),y)
NETATALK_DEPENDENCIES += cups
NETATALK_CONF_ENV += ac_cv_path_CUPS_CONFIG=$(STAGING_DIR)/usr/bin/cups-config
NETATALK_CONF_OPT += --enable-cups
else
NETATALK_CONF_OPT += --disable-cups
endif
define NETATALK_INSTALL_EXTRA_FILES
[ -f $(TARGET_DIR)/etc/init.d/S50netatalk ] || \
$(INSTALL) -m 0755 -D package/netatalk/S50netatalk \
$(TARGET_DIR)/etc/init.d/S50netatalk
endef
NETATALK_POST_INSTALL_TARGET_HOOKS += NETATALK_INSTALL_EXTRA_FILES
$(eval $(autotools-package))