2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-04-26 09:41:47 +02:00
|
|
|
#
|
|
|
|
# netatalk
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2014-12-03 21:53:48 +01:00
|
|
|
NETATALK_VERSION = 3.1.7
|
2012-10-01 08:23:36 +02:00
|
|
|
NETATALK_SITE = http://downloads.sourceforge.net/project/netatalk/netatalk/$(NETATALK_VERSION)
|
2012-04-26 09:41:47 +02:00
|
|
|
NETATALK_SOURCE = netatalk-$(NETATALK_VERSION).tar.bz2
|
2014-12-03 21:53:48 +01:00
|
|
|
# For 0001-Fix-setting-of-LD_LIBRARY_FLAGS-shlibpath_var.patch
|
2012-12-17 12:48:11 +01:00
|
|
|
NETATALK_AUTORECONF = YES
|
2013-05-10 08:29:32 +02:00
|
|
|
NETATALK_CONFIG_SCRIPTS = netatalk-config
|
2013-08-30 23:59:56 +02:00
|
|
|
NETATALK_DEPENDENCIES = host-pkgconf openssl berkeleydb libgcrypt libgpg-error \
|
|
|
|
libevent
|
2013-10-08 21:02:31 +02:00
|
|
|
NETATALK_LICENSE = GPLv2+, LGPLv3+, MIT-like
|
|
|
|
NETATALK_LICENSE_FILES = COPYING COPYRIGHT
|
2012-12-17 12:48:11 +01:00
|
|
|
|
2013-08-30 23:59:56 +02:00
|
|
|
# Don't run ldconfig!
|
|
|
|
NETATALK_CONF_ENV += CC="$(TARGET_CC) -std=gnu99" \
|
|
|
|
ac_cv_path_NETA_LDCONFIG=""
|
2015-03-31 09:21:57 +02:00
|
|
|
NETATALK_CONF_OPTS += \
|
|
|
|
--with-cnid-cdb-backend \
|
2012-04-26 09:41:47 +02:00
|
|
|
--with-bdb=$(STAGING_DIR)/usr \
|
|
|
|
--with-ssl-dir=$(STAGING_DIR)/usr \
|
|
|
|
--with-libgcrypt-dir=$(STAGING_DIR)/usr \
|
|
|
|
--with-shadow \
|
|
|
|
--disable-shell-check \
|
2012-10-01 08:23:36 +02:00
|
|
|
--without-kerberos \
|
2013-08-30 23:59:56 +02:00
|
|
|
--without-pam \
|
2013-10-05 15:52:05 +02:00
|
|
|
--with-libevent=no \
|
2014-06-16 20:23:29 +02:00
|
|
|
--with-dtrace=no \
|
|
|
|
--with-mysql-config=no
|
2012-04-26 09:41:47 +02:00
|
|
|
|
2014-06-16 20:23:31 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ACL),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
NETATALK_DEPENDENCIES += acl
|
2014-06-16 20:23:31 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
NETATALK_CONF_OPTS += --with-acls=no
|
2014-06-16 20:23:31 +02:00
|
|
|
endif
|
|
|
|
|
2014-06-16 20:23:30 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yy)
|
2015-03-31 09:21:57 +02:00
|
|
|
NETATALK_DEPENDENCIES += avahi
|
|
|
|
NETATALK_CONF_OPTS += --enable-zeroconf=$(STAGING_DIR)/usr
|
2014-06-16 20:23:30 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
NETATALK_CONF_OPTS += --disable-zeroconf
|
2014-06-16 20:23:30 +02:00
|
|
|
endif
|
|
|
|
|
2012-04-26 09:41:47 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_CUPS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
NETATALK_DEPENDENCIES += cups
|
|
|
|
NETATALK_CONF_ENV += ac_cv_path_CUPS_CONFIG=$(STAGING_DIR)/usr/bin/cups-config
|
|
|
|
NETATALK_CONF_OPTS += --enable-cups
|
2012-04-26 09:41:47 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
NETATALK_CONF_OPTS += --disable-cups
|
2012-04-26 09:41:47 +02:00
|
|
|
endif
|
|
|
|
|
2014-11-30 15:18:05 +01:00
|
|
|
define NETATALK_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -m 0755 -D package/netatalk/S50netatalk \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S50netatalk
|
2012-04-26 09:41:47 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|