if PACKAGE_netatalk-full
- config PACKAGE_NETATALK_APPLETALK
- bool "Enable AppleTalk support."
- default y
+ config PACKAGE_NETATALK_APPLETALK
+ bool "Enable AppleTalk support."
+ default y
- config PACKAGE_NETATALK_ZEROCONF
- bool "Enable Zeroconf support."
- default y
+ config PACKAGE_NETATALK_ZEROCONF
+ bool "Enable Zeroconf support."
+ default y
- config PACKAGE_NETATALK_ACLS
- bool "Enable ACL support."
- default y
+ config PACKAGE_NETATALK_ACLS
+ bool "Enable ACL support."
+ default y
- config PACKAGE_NETATALK_PAM
- bool "Enable PAM support."
- default y
+ config PACKAGE_NETATALK_PAM
+ bool "Enable PAM support."
+ default y
- config PACKAGE_NETATALK_LDAP
- bool "Enable LDAP support."
- default y
+ config PACKAGE_NETATALK_LDAP
+ bool "Enable LDAP support."
+ default y
- config PACKAGE_NETATALK_ICONV
- bool "Use libiconv features."
- default y
+ config PACKAGE_NETATALK_ICONV
+ bool "Use libiconv features."
+ default y
- config PACKAGE_NETATALK_KERBEROS
- bool "Enable kerberos support."
- default y
+ config PACKAGE_NETATALK_KERBEROS
+ bool "Enable kerberos support."
+ default y
- config PACKAGE_NETATALK_LIBWRAP
- bool "Enable TCP wrappers."
- default y
+ config PACKAGE_NETATALK_LIBWRAP
+ bool "Enable TCP wrappers."
+ default y
+
+ choice
+ prompt "CNID backends"
+ default PACKAGE_NETATALK_BOTHBACK
+
+ config PACKAGE_NETATALK_DBDBACK
+ bool "dbd"
+
+ config PACKAGE_NETATALK_SQLITEBACK
+ bool "sqlite"
+
+ config PACKAGE_NETATALK_BOTHBACK
+ bool "dbd,sqlite"
+ endchoice
endif
include $(TOPDIR)/rules.mk
PKG_NAME:=netatalk
-PKG_VERSION:=4.2.2
+PKG_VERSION:=4.3.2
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@SF/netatalk
-PKG_HASH:=8f772804ce4322a4e8fb159528209450927e9df067daa5cc02ab59b35f4b450c
+PKG_HASH:=2977b4fd113182f0cc183337ba23d5701fb2be4e0dfcec7ee575b4d73a738d3a
PKG_LICENSE:=GPL-2.0-or-later
+PACKAGE_NETATALK_LDAP:libopenldap \
+PACKAGE_NETATALK_ICONV:libiconv-full \
+PACKAGE_NETATALK_KERBEROS:krb5-libs \
- +PACKAGE_NETATALK_LIBWRAP:libwrap
+ +PACKAGE_NETATALK_LIBWRAP:libwrap \
+ +PACKAGE_NETATALK_SQLITEBACK:libsqlite3 \
+ +PACKAGE_NETATALK_BOTHBACK:libsqlite3
MENU:=1
endef
endef
define Package/netatalk-full/config
- source "$(SOURCE)/Config.in"
+ source "$(SOURCE)/Config.in"
endef
MESON_ARGS += \
- -Dwith-cnid-default-backend=dbd \
- -Dwith-cnid-dbd-backend=true \
- -Dwith-cnid-mysql-backend=false \
-Dwith-bdb-path="$(STAGING_DIR)/usr/" \
-Dwith-unicode-data-path="$(STAGING_DIR_HOST)/share/gnulib/tests/uniname/" \
-Dwith-libgcrypt-path="$(STAGING_DIR)/usr/" \
ifeq ($(BUILD_VARIANT),small)
MESON_ARGS += \
+ -Dwith-cnid-default-backend=dbd \
+ -Dwith-cnid-backends=dbd \
-Dwith-appletalk=false \
-Dwith-zeroconf=false \
-Dwith-acls=false \
ifeq ($(BUILD_VARIANT),appletalk)
MESON_ARGS += \
+ -Dwith-cnid-default-backend=dbd \
+ -Dwith-cnid-backends=dbd \
-Dwith-appletalk=true \
-Dwith-zeroconf=false \
-Dwith-acls=false \
-Dwith-krbV-uam=$(if $(CONFIG_PACKAGE_NETATALK_KERBEROS),true,false) \
-Dwith-tcp-wrappers=$(if $(CONFIG_PACKAGE_NETATALK_LIBWRAP),true,false) \
+ifdef CONFIG_PACKAGE_NETATALK_DBDBACK
+MESON_ARGS += \
+ -Dwith-cnid-default-backend=dbd \
+ -Dwith-cnid-backends=dbd
+endif
+ifdef CONFIG_PACKAGE_NETATALK_SQLITEBACK
+MESON_ARGS += \
+ -Dwith-cnid-default-backend=sqlite \
+ -Dwith-cnid-backends=sqlite
+endif
+ifdef CONFIG_PACKAGE_NETATALK_BOTHBACK
+MESON_ARGS += \
+ -Dwith-cnid-default-backend=dbd \
+ -Dwith-cnid-backends=dbd,sqlite
+endif
endif
define Package/netatalk/conffiles
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libatalk.so* $(1)/usr/lib/
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbstring.so* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/netatalk/*.so $(1)/usr/lib/netatalk/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/afp.conf $(1)/etc/
endef
define Package/netatalk/install
- $(call Package/netatalk-small/install,$(1))
+ $(call Package/netatalk-small/install,$(1))
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/atalkd.conf $(1)/etc/
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/macipgw.conf $(1)/etc/
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/papd.conf $(1)/etc/
endef
define Package/netatalk-full/install
- $(call Package/netatalk-small/install,$(1))
+ $(call Package/netatalk-small/install,$(1))
$(if $(PACKAGE_NETATALK_APPLETALK),$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/atalkd.conf $(1)/etc/,)
$(if $(PACKAGE_NETATALK_APPLETALK),$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/macipgw.conf $(1)/etc/,)
$(if $(PACKAGE_NETATALK_APPLETALK),$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/papd.conf $(1)/etc/,)
+++ /dev/null
---- a/bin/misc/meson.build
-+++ b/bin/misc/meson.build
-@@ -1,10 +1,13 @@
-+iconv_deps = []
-+
- if have_iconv
-+ iconv_deps += iconv
- executable(
- 'netacnv',
- ['netacnv.c'],
- include_directories: root_includes,
- link_with: libatalk,
-- dependencies: [iconv],
-+ dependencies: [iconv_deps],
- install: false,
- )
- endif
-@@ -14,6 +17,7 @@ executable(
- ['logger_test.c'],
- include_directories: root_includes,
- link_with: libatalk,
-+ dependencies: [iconv_deps],
- install: false,
- )
-
-@@ -22,7 +26,7 @@ executable(
- ['fce.c'],
- include_directories: root_includes,
- link_with: libatalk,
-- dependencies: [iniparser],
-+ dependencies: [iniparser,iconv_deps],
- install: true,
- )
-
-@@ -38,7 +42,7 @@ if have_ldap
- ['uuidtest.c'],
- include_directories: root_includes,
- link_with: libatalk,
-- dependencies: [afpldaptest_deps],
-+ dependencies: [afpldaptest_deps,iconv_deps],
- c_args: confdir,
- install: true,
- build_rpath: rpath_libdir,