Skip to contentSkip to conversation

Add Netatalk

PATCH New Maxime Hadjinlian 2 participants 3 messages Apr 25, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add Netatalk

This patch add the Netatalk package to Buildroot, it also update the Berkeley DB package as it was required by Netatalk. I did not go extensively through the configure option but they works for me.

Note : I must add that I had a strange problem while building. I have the openssl-dev package on my machine (Debian testing) and Buildroot did not built openssl package, later the build of Netatalk complained about my /usr/include/openssl/ folder (which is obviously, not correct). After moving this folder to openssl.old (on my machine not the staging dir), Buildroot built openssl and Netatalk was happy. I don't know what happened there but, you are informed.

Also, a big thanks to Maxime Ripad for his help and for introducing me to buildroot :)

---
 package/Config.in                |    1 +
 package/berkeleydb/berkeleydb.mk |    3 +-
 package/netatalk/Config.in       |   11 +++
 package/netatalk/S50netatalk     |  152 ++++++++++++++++++++++++++++++++++++++
 package/netatalk/netatalk.mk     |   33 +++++++++
 5 files changed, 198 insertions(+), 2 deletions(-)
 create mode 100644 package/netatalk/Config.in
 create mode 100755 package/netatalk/S50netatalk
 create mode 100644 package/netatalk/netatalk.mk
package/Config.in +1 -0
index 5ae1c81..7c19ed9 100644
@@ -487,6 +487,7 @@ source "package/netcat/Config.in"
 source "package/netkitbase/Config.in"
 source "package/netkittelnet/Config.in"
 endif
+source "package/netatalk/Config.in"
 source "package/netplug/Config.in"
 source "package/netsnmp/Config.in"
 source "package/netstat-nat/Config.in"
package/berkeleydb/berkeleydb.mk +1 -2
index ed70486..3d57852 100644
@@ -3,7 +3,7 @@
 # berkeley db
 #
 #############################################################
-BERKELEYDB_VERSION:=4.4.20
+BERKELEYDB_VERSION:=5.3.15
 BERKELEYDB_SITE:=http://download.oracle.com/berkeley-db
 BERKELEYDB_SOURCE:=db-$(BERKELEYDB_VERSION).NC.tar.gz
 BERKELEYDB_SUBDIR=build_unix
@@ -33,7 +33,6 @@ define BERKELEYDB_CONFIGURE_CMDS
 		--with-gnu-ld \
 		--disable-cxx \
 		--disable-java \
-		--disable-rpc \
 		--disable-tcl \
 		--disable-compat185 \
 		$(SHARED_STATIC_LIBS_OPTS) \
package/netatalk/Config.in new file +11 -0
new file mode 100644
index 0000000..5adbce9
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_NETATALK
+	bool "netatalk"
+    select BR2_PACKAGE_BERKELEYDB
+    select BR2_PACKAGE_OPENSSL
+    select BR2_PACKAGE_LIBGCRYPT
+    select BR2_PACKAGE_LIBGPG_ERROR
+    help
+      Netatalk can be used to turn a *NIX machine into an extremely 
+      high-performance and reliable file server for Macintosh computers.
+
+	  http://netatalk.sourceforge.net/
package/netatalk/S50netatalk new file +152 -0

152 lines not on this page · raw message

package/netatalk/netatalk.mk new file +33 -0
new file mode 100644
index 0000000..f370136
@@ -0,0 +1,33 @@
+#############################################################
+#
+# netatalk
+#
+#############################################################
+NETATALK_VERSION = 2.2.2
+NETATALK_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/netatalk/netatalk/$(NETATALK_VERSION)/
+NETATALK_SOURCE = netatalk-$(NETATALK_VERSION).tar.bz2
+NETATALK_CFLAGS += -DNO_DEBUG
+
+NETALATK_DEPENDENCIES = openssl berkeleydb libgcrypt libgpg-error
+NETATALK_CONF_OPT += --sysconfdir=/etc \
+	--with-cnid-cdb-backend \
+	--disable-cups \
+	--with-bdb=${STAGING_DIR}/usr \
+	--disable-cups \
+	--disable-zeroconf \
+	--with-ssl-dir=$(STAGING_DIR)/usr \
+	--with-libgcrypt-dir=$(STAGING_DIR)/usr \
+	--with-shadow \
+	--disable-shell-check \
+	--without-pam \
+	--prefix=$(STAGING_DIR)
+
+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 $(call AUTOTARGETS))
Signature · 1 line
1.7.10
#1 lore raw

PATCH 1/1 Add Netatalk

Hello Maxime,

Thanks for your contribution! A few comments below.

Le Wed, 25 Apr 2012 10:24:50 +0200,
Maxime Hadjinlian <[email protected]> a ?crit :

Quoted 11 lines

This patch add the Netatalk package to Buildroot, it also update the Berkeley DB package as it was required by Netatalk. I did not go extensively through the configure option but they works for me.

Note : I must add that I had a strange problem while building. I have the openssl-dev package on my machine (Debian testing) and Buildroot did not built openssl package, later the build of Netatalk complained about my /usr/include/openssl/ folder (which is obviously, not correct). After moving this folder to openssl.old (on my machine not the staging dir), Buildroot built openssl and Netatalk was happy. I don't know what happened there but, you are informed.

This is not normal, and should be investigated. It is very likely that Buildroot users will have OpenSSL development files installed on their host, and this should not conflict with the build. We don't want to force people to rename /usr/include/openssl to /usr/include/openssl.old.

If you have issues in finding what's going on, please report with more details, i.e with the config.log generated by netatalk ./configure script. We can help you investigating this.

Quoted 2 lines
 package/Config.in                |    1 +
 package/berkeleydb/berkeleydb.mk |    3 +-

The berkeleydb bump should be in a separate patch.

Quoted 7 lines
package/netatalk/Config.in new file +1 -0
new file mode 100644
index 0000000..5adbce9
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_NETATALK

package/netatalk/Config.in line 11

Quoted 10 lines
package/netatalk/Config.in new file +10 -0
+	bool "netatalk"
+    select BR2_PACKAGE_BERKELEYDB
+    select BR2_PACKAGE_OPENSSL
+    select BR2_PACKAGE_LIBGCRYPT
+    select BR2_PACKAGE_LIBGPG_ERROR
+    help
+      Netatalk can be used to turn a *NIX machine into an extremely 
+      high-performance and reliable file server for Macintosh computers.
+
+	  http://netatalk.sourceforge.net/

Indentation is wrong here:

* one tab before "select" and "help"
* one tab + two spaces before the help text itself

package/netatalk/S50netatalk

Quoted 5 lines
package/netatalk/S50netatalk new file +0 -0
new file mode 100755
index 0000000..c46f58f

The init script is quite complicated, but I guess it's because netatalk is complicated :)

Quoted 6 lines
package/netatalk/netatalk.mk new file +0 -0
new file mode 100644
index 0000000..f370136

package/netatalk/netatalk.mk line 9

Quoted 9 lines
package/netatalk/netatalk.mk new file +9 -0
@@ -0,0 +1,33 @@
+#############################################################
+#
+# netatalk
+#
+#############################################################
+NETATALK_VERSION = 2.2.2
+NETATALK_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/netatalk/netatalk/$(NETATALK_VERSION)/
+NETATALK_SOURCE = netatalk-$(NETATALK_VERSION).tar.bz2
+NETATALK_CFLAGS += -DNO_DEBUG

This line isn't doing anything. Unless I'm wrong, we don't do anything with the <pkg>_CFLAGS variable.

package/netatalk/netatalk.mk line 15

Quoted 5 lines
package/netatalk/netatalk.mk new file +5 -0
+NETALATK_DEPENDENCIES = openssl berkeleydb libgcrypt libgpg-error
+NETATALK_CONF_OPT += --sysconfdir=/etc \
+	--with-cnid-cdb-backend \
+	--disable-cups \
+	--with-bdb=${STAGING_DIR}/usr \

This should be $(STAGING_DIR)/usr. We use the $() syntax everywhere to access make variables.

package/netatalk/netatalk.mk line 23

Quoted 8 lines
package/netatalk/netatalk.mk new file +8 -0
+	--disable-cups \
+	--disable-zeroconf \
+	--with-ssl-dir=$(STAGING_DIR)/usr \
+	--with-libgcrypt-dir=$(STAGING_DIR)/usr \
+	--with-shadow \
+	--disable-shell-check \
+	--without-pam \
+	--prefix=$(STAGING_DIR)

No, don't override the prefix, it should remain to its default value passed by the autotargets infrastructure, which is /usr.

Best regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw

PATCH 1/1 Add Netatalk

Hi Thomas,

I sent a new set of patches. Hope it will be ok this time.

Quoted 113 lines · Thomas Petazzoni

Hello Maxime,

Thanks for your contribution! A few comments below.

Le Wed, 25 Apr 2012 10:24:50 +0200,
Maxime Hadjinlian <[email protected]> a ?crit :

Quoted 11 lines

This patch add the Netatalk package to Buildroot, it also update the Berkeley DB package as it was required by Netatalk. ?I did not go extensively through the configure option but they works for me.

Note : I must add that I had a strange problem while building. I have the openssl-dev package on my machine (Debian testing) and Buildroot did not built openssl package, later the build of Netatalk complained about my /usr/include/openssl/ folder (which is obviously, not correct). After moving this folder to openssl.old (on my machine not the staging dir), Buildroot built openssl and Netatalk was happy. I don't know what happened there but, you are informed.

This is not normal, and should be investigated. It is very likely that Buildroot users will have OpenSSL development files installed on their host, and this should not conflict with the build. We don't want to force people to rename /usr/include/openssl to /usr/include/openssl.old.

If you have issues in finding what's going on, please report with more details, i.e with the config.log generated by netatalk ./configure script. We can help you investigating this.

Quoted 2 lines

?package/Config.in ? ? ? ? ? ? ? ?| ? ?1 +
?package/berkeleydb/berkeleydb.mk | ? ?3 +-

The berkeleydb bump should be in a separate patch.

Quoted 7 lines
package/netatalk/Config.in new file +1 -0
new file mode 100644
index 0000000..5adbce9
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_NETATALK

package/netatalk/Config.in line 11

Quoted 10 lines
package/netatalk/Config.in new file +10 -0
+ ? ? bool "netatalk"
+ ? ?select BR2_PACKAGE_BERKELEYDB
+ ? ?select BR2_PACKAGE_OPENSSL
+ ? ?select BR2_PACKAGE_LIBGCRYPT
+ ? ?select BR2_PACKAGE_LIBGPG_ERROR
+ ? ?help
+ ? ? ?Netatalk can be used to turn a *NIX machine into an extremely
+ ? ? ?high-performance and reliable file server for Macintosh computers.
+
+ ? ? ? http://netatalk.sourceforge.net/

Indentation is wrong here:

?* one tab before "select" and "help"
?* one tab + two spaces before the help text itself

package/netatalk/S50netatalk

Quoted 5 lines
package/netatalk/S50netatalk new file +0 -0
new file mode 100755
index 0000000..c46f58f

The init script is quite complicated, but I guess it's because netatalk is complicated :)

Quoted 6 lines
package/netatalk/netatalk.mk new file +0 -0
new file mode 100644
index 0000000..f370136

package/netatalk/netatalk.mk line 9

Quoted 9 lines
package/netatalk/netatalk.mk new file +9 -0
@@ -0,0 +1,33 @@
+#############################################################
+#
+# netatalk
+#
+#############################################################
+NETATALK_VERSION = 2.2.2
+NETATALK_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/netatalk/netatalk/$(NETATALK_VERSION)/
+NETATALK_SOURCE = netatalk-$(NETATALK_VERSION).tar.bz2
+NETATALK_CFLAGS += -DNO_DEBUG

This line isn't doing anything. Unless I'm wrong, we don't do anything with the <pkg>_CFLAGS variable.

package/netatalk/netatalk.mk line 14

Quoted 5 lines
package/netatalk/netatalk.mk new file +5 -0
+NETALATK_DEPENDENCIES = openssl berkeleydb libgcrypt libgpg-error
+NETATALK_CONF_OPT += --sysconfdir=/etc \
+ ? ? --with-cnid-cdb-backend \
+ ? ? --disable-cups \
+ ? ? --with-bdb=${STAGING_DIR}/usr \

This should be $(STAGING_DIR)/usr. We use the $() syntax everywhere to access make variables.

package/netatalk/netatalk.mk line 22

Quoted 8 lines
package/netatalk/netatalk.mk new file +8 -0
+ ? ? --disable-cups \
+ ? ? --disable-zeroconf \
+ ? ? --with-ssl-dir=$(STAGING_DIR)/usr \
+ ? ? --with-libgcrypt-dir=$(STAGING_DIR)/usr \
+ ? ? --with-shadow \
+ ? ? --disable-shell-check \
+ ? ? --without-pam \
+ ? ? --prefix=$(STAGING_DIR)

No, don't override the prefix, it should remain to its default value passed by the autotargets infrastructure, which is /usr.

Best regards,

Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com