summaryrefslogtreecommitdiff
path: root/recipes/netatalk
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-03-05 16:54:43 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-03-08 07:05:02 +0100
commited68667b918805c7fbef54e9a4fe0a75bf06f22f (patch)
treed82be44386879917885c3edb1ded489b900e9c6c /recipes/netatalk
parentf285e1e75421deff88b474c199cbb2be5759a12a (diff)
netatalk: Upgrade from 2.0.3 to 2.0.5
Addresses CVE-2008-5718. netatalk-2.0.3-db43.patch: Done differently. netatalk-2.0.3-xfs.patch: Drop as the config switch was not used netatalk-2.0.3-setXid.patch: Was not used.
Diffstat (limited to 'recipes/netatalk')
-rw-r--r--recipes/netatalk/netatalk-2.0.3/netatalk-2.0.3-db43.patch32
-rw-r--r--recipes/netatalk/netatalk-2.0.3/netatalk-2.0.3-newerdb.patch28
-rw-r--r--recipes/netatalk/netatalk-2.0.3/netatalk-2.0.3-setXid.patch14
-rw-r--r--recipes/netatalk/netatalk-2.0.3/netatalk-2.0.3-xfs.patch22
-rw-r--r--recipes/netatalk/netatalk-2.0.5/netatalk-dbd.patch35
-rw-r--r--recipes/netatalk/netatalk_2.0.5.bb (renamed from recipes/netatalk/netatalk_2.0.3.bb)8
6 files changed, 39 insertions, 100 deletions
diff --git a/recipes/netatalk/netatalk-2.0.3/netatalk-2.0.3-db43.patch b/recipes/netatalk/netatalk-2.0.3/netatalk-2.0.3-db43.patch
deleted file mode 100644
index 93d3e4b9ea..0000000000
--- a/recipes/netatalk/netatalk-2.0.3/netatalk-2.0.3-db43.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-Index: netatalk-2.0.3/bin/cnid/cnid_index.c
-===================================================================
---- netatalk-2.0.3.orig/bin/cnid/cnid_index.c
-+++ netatalk-2.0.3/bin/cnid/cnid_index.c
-@@ -274,7 +274,11 @@ static int dbif_count(const int dbi, u_i
- DB_BTREE_STAT *sp;
- DB *db = db_table[dbi].db;
-
-+#if DB_VERSION_MAJOR > 4 || ( DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3 )
-+ ret = db->stat(db, db_txn, &sp, 0);
-+#else
- ret = db->stat(db, &sp, 0);
-+#endif
-
- if (ret) {
- LOG(log_error, logtype_cnid, "error getting stat infotmation on database: %s", db_strerror(errno));
-Index: netatalk-2.0.3/etc/cnid_dbd/dbif.c
-===================================================================
---- netatalk-2.0.3.orig/etc/cnid_dbd/dbif.c
-+++ netatalk-2.0.3/etc/cnid_dbd/dbif.c
-@@ -514,7 +514,11 @@ int dbif_count(const int dbi, u_int32_t
- DB_BTREE_STAT *sp;
- DB *db = db_table[dbi].db;
-
-+#if DB_VERSION_MAJOR > 4 || ( DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3 )
-+ ret = db->stat(db, db_txn, &sp, 0);
-+#else
- ret = db->stat(db, &sp, 0);
-+#endif
-
- if (ret) {
- LOG(log_error, logtype_cnid, "error getting stat infotmation on database: %s", db_strerror(errno));
diff --git a/recipes/netatalk/netatalk-2.0.3/netatalk-2.0.3-newerdb.patch b/recipes/netatalk/netatalk-2.0.3/netatalk-2.0.3-newerdb.patch
deleted file mode 100644
index f64c8cf5eb..0000000000
--- a/recipes/netatalk/netatalk-2.0.3/netatalk-2.0.3-newerdb.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-Index: netatalk-2.0.3/macros/db3-check.m4
-===================================================================
---- netatalk-2.0.3.orig/macros/db3-check.m4
-+++ netatalk-2.0.3/macros/db3-check.m4
-@@ -115,6 +115,14 @@ int main(void) {
- AC_DEFUN([NETATALK_BERKELEY_LINK],
- [
- atalk_cv_lib_db=no
-+NETATALK_BDB_LINK_TRY(atalk_cv_db_db_4_dot_4,[-ldb-4.4])
-+NETATALK_BDB_LINK_TRY(atalk_cv_db_db44,[-ldb44])
-+NETATALK_BDB_LINK_TRY(atalk_cv_db_db_44,[-ldb-44])
-+NETATALK_BDB_LINK_TRY(atalk_cv_db_db_4_4,[-ldb-4-4])
-+NETATALK_BDB_LINK_TRY(atalk_cv_db_db_4_dot_3,[-ldb-4.3])
-+NETATALK_BDB_LINK_TRY(atalk_cv_db_db43,[-ldb43])
-+NETATALK_BDB_LINK_TRY(atalk_cv_db_db_43,[-ldb-43])
-+NETATALK_BDB_LINK_TRY(atalk_cv_db_db_4_3,[-ldb-4-3])
- NETATALK_BDB_LINK_TRY(atalk_cv_db_db_4_dot_2,[-ldb-4.2])
- NETATALK_BDB_LINK_TRY(atalk_cv_db_db42,[-ldb42])
- NETATALK_BDB_LINK_TRY(atalk_cv_db_db_42,[-ldb-42])
-@@ -134,7 +142,7 @@ AC_DEFUN([AC_PATH_BDB],
- trybdbdir=""
- dobdbsearch=yes
- bdb_search_dirs="/usr/local/include /usr/include"
-- search_subdirs="/db4.2 /db42 /db4.1 /db41 /db4 /"
-+ search_subdirs="/db4.4 /db44 /db4.3 /db43 /db4.2 /db42 /db4.1 /db41 /db4 /"
-
- dnl required BDB version
- DB_MAJOR_REQ=4
diff --git a/recipes/netatalk/netatalk-2.0.3/netatalk-2.0.3-setXid.patch b/recipes/netatalk/netatalk-2.0.3/netatalk-2.0.3-setXid.patch
deleted file mode 100644
index 70170c134d..0000000000
--- a/recipes/netatalk/netatalk-2.0.3/netatalk-2.0.3-setXid.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-Index: netatalk-2.0.3/bin/afppasswd/Makefile.am
-===================================================================
---- netatalk-2.0.3.orig/bin/afppasswd/Makefile.am
-+++ netatalk-2.0.3/bin/afppasswd/Makefile.am
-@@ -12,7 +12,8 @@ afppasswd_SOURCES = afppasswd.c
- afppasswd_LDADD = $(top_builddir)/libatalk/libatalk.la @SSL_LIBS@
-
- CFLAGS = @CFLAGS@ @SSL_CFLAGS@ -I$(top_srcdir)/sys \
-- -D_PATH_AFPDPWFILE=\"$(pkgconfdir)/afppasswd\"
-+ -D_PATH_AFPDPWFILE=\"$(pkgconfdir)/afppasswd\" \
-+ @BINDNOW_FLAGS@
-
- install-exec-hook:
- if USE_DHX
diff --git a/recipes/netatalk/netatalk-2.0.3/netatalk-2.0.3-xfs.patch b/recipes/netatalk/netatalk-2.0.3/netatalk-2.0.3-xfs.patch
deleted file mode 100644
index e91ebcebd2..0000000000
--- a/recipes/netatalk/netatalk-2.0.3/netatalk-2.0.3-xfs.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-Index: netatalk-2.0.3/configure.in
-===================================================================
---- netatalk-2.0.3.orig/configure.in
-+++ netatalk-2.0.3/configure.in
-@@ -694,12 +694,16 @@ fi
- # AC_MSG_RESULT([enabling quotactl wrapper])
- # )
-
-+AC_ARG_WITH([xfs],
-+ AS_HELP_STRING([--without-xfs], [Build without XFS filesystem quota support]))
-+
-+if test "x$with_xfs" != "xno"; then
- # For quotas on Linux XFS filesystems
- AC_CHECK_HEADERS(linux/xqm.h linux/xfs_fs.h)
- AC_CHECK_HEADERS(xfs/libxfs.h xfs/xqm.h xfs/xfs_fs.h)
- # For linux > 2.5.56
- AC_CHECK_HEADERS(linux/dqblk_xfs.h)
--
-+fi
-
- dnl ----- as far as I can tell, dbtob always does the wrong thing
- dnl ----- on every single version of linux I've ever played with.
diff --git a/recipes/netatalk/netatalk-2.0.5/netatalk-dbd.patch b/recipes/netatalk/netatalk-2.0.5/netatalk-dbd.patch
new file mode 100644
index 0000000000..6d6d03e36b
--- /dev/null
+++ b/recipes/netatalk/netatalk-2.0.5/netatalk-dbd.patch
@@ -0,0 +1,35 @@
+Move back to AC_TRY_LINK...
+
+Index: netatalk-2.0.5/macros/db3-check.m4
+===================================================================
+--- netatalk-2.0.5.orig/macros/db3-check.m4 2010-03-05 17:57:14.000000000 +0100
++++ netatalk-2.0.5/macros/db3-check.m4 2010-03-05 18:33:08.000000000 +0100
+@@ -33,25 +33,13 @@
+ for lib in $atalk_cv_bdb_try_libs ; do
+ LIBS="$lib $savedlibs"
+ AC_MSG_CHECKING([Berkeley DB library ($lib)])
+- AC_TRY_RUN([
++ AC_TRY_LINK([
+ #include <stdio.h>
+ #include <db.h>
+- int main(void) {
+- int major, minor, patch;
++ ], [
++ int minor, major, patch;
+ char *version_str;
+ version_str = db_version(&major, &minor, &patch);
+- if (major < DB_MAJOR_REQ || minor < DB_MINOR_REQ || patch < DB_PATCH_REQ) {
+- printf("linking wrong library version (%d.%d.%d), ",major, minor, patch);
+- return (2);
+- }
+- if ( major != DB_VERSION_MAJOR || minor != DB_VERSION_MINOR || patch != DB_VERSION_PATCH) {
+- printf("header/library version mismatch (%d.%d.%d/%d.%d.%d), ",
+- DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH, major, minor, patch);
+- return (3);
+- }
+- printf("%d.%d.%d ... ",major, minor, patch);
+- return (0);
+- }
+ ],[
+
+ AC_MSG_RESULT(yes)
diff --git a/recipes/netatalk/netatalk_2.0.3.bb b/recipes/netatalk/netatalk_2.0.5.bb
index 0ed580d6f1..8971f07bed 100644
--- a/recipes/netatalk/netatalk_2.0.3.bb
+++ b/recipes/netatalk/netatalk_2.0.5.bb
@@ -4,12 +4,12 @@ LICENSE = "GPL"
DEPENDS = "cups db openssl"
-SRC_URI = "http://ovh.dl.sourceforge.net/sourceforge/netatalk/netatalk-${PV}.tar.gz \
- file://netatalk-2.0.3-db43.patch;patch=1 \
- file://netatalk-2.0.3-newerdb.patch;patch=1 \
- file://netatalk-2.0.3-xfs.patch;patch=1 \
+SRC_URI = "http://ovh.dl.sourceforge.net/sourceforge/netatalk/netatalk-${PV}.tar.gz;name=src \
+ file://netatalk-dbd.patch;patch=1 \
file://netatalk.conf \
file://init"
+SRC_URI[src.md5sum] = "f35cd7a4ce26c780de380cd2bcae5ce6"
+SRC_URI[src.sha256sum] = "7e02b0d2849ec83459c65d240809ff95ee4a857a3ba38af2cafbbe3717d0c672"
inherit autotools update-rc.d