diff --git a/net/netatalk/Makefile b/net/netatalk/Makefile index b4d0709da01e62..1e29a51cc18614 100644 --- a/net/netatalk/Makefile +++ b/net/netatalk/Makefile @@ -8,81 +8,90 @@ include $(TOPDIR)/rules.mk PKG_NAME:=netatalk -PKG_VERSION:=3.2.5 +PKG_VERSION:=4.0.2 PKG_RELEASE:=1 -PKG_LICENSE:=GPL-2.0-or-later -#PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@SF/netatalk -PKG_HASH:=57de9a7ed411029d6176e429a14ef314460251d8aebe7139aeadc35633d9584b - -PKG_BUILD_PARALLEL:=1 -PKG_INSTALL:=1 -PKG_FIXUP:=autoreconf +PKG_HASH:=8e0a0bf88eed0f64a3945fa0789882e9aba11e9ba2ee09e87defd6c88be737fc +PKG_MAINTAINER:=Antonio Pastor +PKG_LICENSE:=GPL-2.0-or-later +PKG_LICENSE_FILES:=COPYING PKG_CPE_ID:=cpe:/a:netatalk:netatalk -PKG_BUILD_DEPENDS:=libevent2 - include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk +include $(INCLUDE_DIR)/meson.mk + +PKG_BUILD_PARALLEL:=1 +PKG_INSTALL:=0 +PKG_FIXUP:=autoreconf + +#PKG_BUILD_DEPENDS:=meson/host libevent2 +#PKG_BUILD_DEPENDS:=+libevent2 +libdb47 define Package/netatalk - SECTION:=net - CATEGORY:=Network - SUBMENU:=Filesystem - DEPENDS:=+libattr +libdb47 +libgcrypt +libopenssl +libevent2 - TITLE:=netatalk - URL:=http://netatalk.sourceforge.net - MAINTAINER:=An Pa + SECTION:=net + CATEGORY:=Network + SUBMENU:=Filesystem + TITLE:=Netatalk - Open Source file server that implements the Apple Filing Protocol (AFP) + URL:=http://netatalk.sourceforge.net + DEPENDS:=+libevent2 +libdb47 +libgcrypt endef define Package/netatalk/decription - Netatalk is a freely-available Open Source AFP fileserver. - It also provides a kernel level implementation of the AppleTalk - Protocol Suite. + Netatalk is an Open Source Apple Filing Protocol (AFP) fileserver. + Implements a service that allows Macintosh file sharing + and Time Machine backups. Modern MacOS prefers Samba network shares + but AFP has shown superior throughput. High Sierra and older MacOS + only support AFP for Time Machine backups. + Does not support old AppleTalk protocols to talk to non OSX Macs. endef -TARGET_CFLAGS += -std=gnu99 +MESON_ARGS += \ + -Dwith-appletalk=false \ + -Dwith-zeroconf=false \ + -Dwith-cups=false \ + -Dwith-quota=false \ + -Dwith-afpstats=false \ + -Dwith-acls=false \ + -Dwith-ldap=false \ + -Dwith-cnid-default-backend=dbd \ + -Dwith-cnid-dbd-backend=true \ + -Dwith-cnid-mysql-backend=false \ + -Dwith-pam=false \ + -Dwith-tests=false \ + -Dwith-testsuite=false \ + -Dwith-bdb-path="$(STAGING_DIR)/usr/" \ + -Dwith-libgcrypt-path="$(STAGING_DIR)/usr" \ + -Dwith-libiconv=false \ + $(if $(CONFIG_SHADOW_PASSWORDS),-Dwith-shadow=true,-Dwith-shadow=false) \ + -Dwith-dtrace=false \ + -Dwith-tcp-wrappers=false \ + -Dwith-debug=false \ + -Dwith-shell-check=false \ + -Dwith-readmes=false \ + -Dwith-manual=none \ + -Dwith-kerberos=false \ + -Dwith-init-style=none \ -CONFIGURE_ARGS += \ - --disable-afs \ - --disable-hfs \ - --enable-debugging \ - --disable-shell-check \ - --disable-timelord \ - --disable-a2boot \ - --disable-cups \ - --disable-tcp-wrappers \ - --with-cnid-default-backend=dbd \ - --with-bdb="$(STAGING_DIR)/usr/" \ - --with-libevent=no \ - --with-libgcrypt-dir="$(STAGING_DIR)/usr" \ - --with-ssl-dir="$(STAGING_DIR)/usr" \ - --with-uams-path="/usr/lib/uams" \ - --without-acls \ - --without-kerberos \ - --without-mysql \ - --with-mysql-config=false \ - --without-pam \ - --disable-admin-group \ - --disable-srvloc \ - --disable-zeroconf \ - $(if $(CONFIG_SHADOW_PASSWORDS),--with-shadow,--without-shadow) \ - --without-dtrace \ - --without-ldap + #-Dwith-uams-path="/usr/lib/uams" \ + #-Dwith-ssl-dir="$(STAGING_DIR)/usr" \ + #-Ddisable-admin-group=true \ + #-Ddisable-srvloc=true \ define Package/netatalk/conffiles -/etc/afp.conf -/etc/extmap.conf -/etc/netatalk/ + /etc/afp.conf + /etc/extmap.conf + /etc/netatalk/ endef define Package/netatalk/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/sbin - $(INSTALL_DIR) $(1)/usr/lib/uams + $(INSTALL_DIR) $(1)/usr/lib/netatalk $(INSTALL_DIR) $(1)/etc/init.d $(CP) $(PKG_INSTALL_DIR)/usr/lib/libatalk.so* $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/bin/dbd $(1)/usr/bin/ @@ -91,7 +100,7 @@ define Package/netatalk/install $(CP) $(PKG_INSTALL_DIR)/usr/sbin/afpd $(1)/usr/sbin/ $(CP) $(PKG_INSTALL_DIR)/usr/sbin/cnid_dbd $(1)/usr/sbin/ $(CP) $(PKG_INSTALL_DIR)/usr/sbin/cnid_metad $(1)/usr/sbin/ - $(CP) $(PKG_INSTALL_DIR)/usr/lib/uams/*.so $(1)/usr/lib/uams/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/netatalk/*.so $(1)/usr/lib/netatalk/ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/afp.conf $(1)/etc/ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/extmap.conf $(1)/etc/ $(INSTALL_BIN) ./files/afpd.init $(1)/etc/init.d/afpd