wok-stable rev 1255
Add netatalk
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 13 09:43:42 2008 +0000 (2008-08-13) |
parents | 588285bf0a2a |
children | ed75184861e7 |
files | netatalk-dev/receipt netatalk/receipt netatalk/stuff/netatalk-2.0.3-newer-db.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netatalk-dev/receipt Wed Aug 13 09:43:42 2008 +0000 1.3 @@ -0,0 +1,19 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="netatalk-dev" 1.7 +VERSION="2.0.3" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="The AppleTalk Protocol Suite development files." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +WEB_SITE="http://netatalk.sourceforge.net/" 1.12 +WANTED="netatalk" 1.13 + 1.14 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.15 +genpkg_rules() 1.16 +{ 1.17 + mkdir -p $fs/usr/share $fs/etc/netatalk/uams/ 1.18 + cp -a $_pkg/usr/lib $fs/usr 1.19 + cp -a $_pkg/usr/include $fs/usr 1.20 + cp -a $_pkg/usr/share/netatalk $fs/usr/share 1.21 + cp -a $_pkg/etc/netatalk/uams/*a $fs/etc/netatalk/uams/ 1.22 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/netatalk/receipt Wed Aug 13 09:43:42 2008 +0000 2.3 @@ -0,0 +1,63 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="netatalk" 2.7 +VERSION="2.0.3" 2.8 +CATEGORY="system-tools" 2.9 +SHORT_DESC="The AppleTalk Protocol Suite." 2.10 +MAINTAINER="pascal.bellard@slitaz.org" 2.11 +DEPENDS="perl libdb libcrypto" 2.12 +BUILD_DEPENDS="db-dev libcrypto-dev" 2.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 2.14 +WEB_SITE="http://netatalk.sourceforge.net/" 2.15 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 2.16 +CONFIG_FILES="/etc/netatalk/AppleVolumes.* /etc/netatalk/*.conf" 2.17 + 2.18 +# Rules to configure and make the package. 2.19 +compile_rules() 2.20 +{ 2.21 + cd $src 2.22 + patch -p1 < ../stuff/netatalk-2.0.3-newer-db.patch 2.23 + ./configure --prefix=/usr --sysconfdir=/etc \ 2.24 + --mandir=/usr/share/man $CONFIGURE_ARGS 2.25 + make 2.26 + make DESTDIR=$PWD/_pkg install 2.27 +} 2.28 + 2.29 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.30 +genpkg_rules() 2.31 +{ 2.32 + mkdir -p $fs/usr/share 2.33 + cp -a $_pkg/usr/bin $fs/usr 2.34 + cp -a $_pkg/usr/sbin $fs/usr 2.35 + cp -a $_pkg/usr/libexec $fs/usr 2.36 + cp -a $_pkg/etc $fs 2.37 + rm -f $fs/etc/netatalk/uams/*a 2.38 + # Package all netatalk pkgs 2.39 + for i in $(cd $WOK; ls -d netatalk-*) 2.40 + do 2.41 + tazwok genpkg $i 2.42 + done 2.43 +} 2.44 + 2.45 +# Pre and post install commands for Tazpkg. 2.46 +post_install() 2.47 +{ 2.48 + ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \ 2.49 + $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT 2.50 +$(ls etc/netatalk/AppleVolumes.* etc/netatalk/*.conf) 2.51 +EOT 2.52 + cat <<EOF 2.53 +---- 2.54 +To start $PACKAGE server you can run : 2.55 + 2.56 + /etc/init.d/$PACKAGE start 2.57 + 2.58 +Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf 2.59 +---- 2.60 +EOF 2.61 +} 2.62 + 2.63 +repack_cleanup() 2.64 +{ 2.65 + zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id ) 2.66 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/netatalk/stuff/netatalk-2.0.3-newer-db.patch Wed Aug 13 09:43:42 2008 +0000 3.3 @@ -0,0 +1,94 @@ 3.4 +diff -urN netatalk-2.0.3.orig/bin/cnid/cnid_index.c netatalk-2.0.3/bin/cnid/cnid_index.c 3.5 +--- netatalk-2.0.3.orig/bin/cnid/cnid_index.c 2005-04-10 12:49:18.000000000 +0000 3.6 ++++ netatalk-2.0.3/bin/cnid/cnid_index.c 2007-08-11 17:01:38.000000000 +0000 3.7 +@@ -1,5 +1,5 @@ 3.8 + /* 3.9 +- * $Id: cnid_index.c,v 1.1.2.4 2005/04/10 12:49:18 didg Exp $ 3.10 ++ * $Id: cnid_index.c,v 1.1.2.5 2005/09/13 16:57:44 didg Exp $ 3.11 + * 3.12 + * All Rights Reserved. See COPYING. 3.13 + */ 3.14 +@@ -274,7 +274,11 @@ 3.15 + DB_BTREE_STAT *sp; 3.16 + DB *db = db_table[dbi].db; 3.17 + 3.18 ++#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3) 3.19 ++ ret = db->stat(db, db_txn, &sp, 0); 3.20 ++#else 3.21 + ret = db->stat(db, &sp, 0); 3.22 ++#endif 3.23 + 3.24 + if (ret) { 3.25 + LOG(log_error, logtype_cnid, "error getting stat infotmation on database: %s", db_strerror(errno)); 3.26 +diff -urN netatalk-2.0.3.orig/etc/cnid_dbd/dbif.c netatalk-2.0.3/etc/cnid_dbd/dbif.c 3.27 +--- netatalk-2.0.3.orig/etc/cnid_dbd/dbif.c 2004-12-21 13:36:12.000000000 +0000 3.28 ++++ netatalk-2.0.3/etc/cnid_dbd/dbif.c 2007-08-11 17:10:19.000000000 +0000 3.29 +@@ -1,5 +1,5 @@ 3.30 + /* 3.31 +- * $Id: dbif.c,v 1.1.4.15.2.1 2004/12/21 13:36:12 didg Exp $ 3.32 ++ * $Id: dbif.c,v 1.1.4.15.2.2 2005/09/13 16:57:45 didg Exp $ 3.33 + * 3.34 + * Copyright (C) Joerg Lenneis 2003 3.35 + * All Rights Reserved. See COPYING. 3.36 +@@ -514,7 +514,11 @@ 3.37 + DB_BTREE_STAT *sp; 3.38 + DB *db = db_table[dbi].db; 3.39 + 3.40 ++#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3) 3.41 ++ ret = db->stat(db, db_txn, &sp, 0); 3.42 ++#else 3.43 + ret = db->stat(db, &sp, 0); 3.44 ++#endif 3.45 + 3.46 + if (ret) { 3.47 + LOG(log_error, logtype_cnid, "error getting stat infotmation on database: %s", db_strerror(errno)); 3.48 +diff -urN netatalk-2.0.3.orig/macros/db3-check.m4 netatalk-2.0.3/macros/db3-check.m4 3.49 +--- netatalk-2.0.3.orig/macros/db3-check.m4 2004-08-11 03:01:11.000000000 +0000 3.50 ++++ netatalk-2.0.3/macros/db3-check.m4 2007-08-11 16:57:02.000000000 +0000 3.51 +@@ -1,4 +1,4 @@ 3.52 +-dnl $Id: db3-check.m4,v 1.11.6.9 2004/08/11 03:01:11 bfernhomberg Exp $ 3.53 ++dnl $Id: db3-check.m4,v 1.11.6.9.2.2 2006/09/09 01:36:39 didg Exp $ 3.54 + dnl Autoconf macros to check for the Berkeley DB library 3.55 + 3.56 + 3.57 +@@ -111,7 +111,12 @@ 3.58 + CFLAGS="$savedcflags" 3.59 + ]) 3.60 + 3.61 +- 3.62 ++dnl I don't understand this stuff below 3.63 ++dnl AFAIK it works for 4.1 and 4.2 and (4.3 xor 4.4) 3.64 ++dnl you can have 4.2 and 4.3 installed 3.65 ++dnl but If you have 4.3 and 4.4 it won't work with 4.3 3.66 ++dnl only 4.4 3.67 ++dnl didier 3.68 + AC_DEFUN([NETATALK_BERKELEY_LINK], 3.69 + [ 3.70 + atalk_cv_lib_db=no 3.71 +@@ -119,6 +124,17 @@ 3.72 + NETATALK_BDB_LINK_TRY(atalk_cv_db_db42,[-ldb42]) 3.73 + NETATALK_BDB_LINK_TRY(atalk_cv_db_db_42,[-ldb-42]) 3.74 + NETATALK_BDB_LINK_TRY(atalk_cv_db_db_4_2,[-ldb-4-2]) 3.75 ++ 3.76 ++NETATALK_BDB_LINK_TRY(atalk_cv_db_db_4_dot_2,[-ldb-4.4]) 3.77 ++NETATALK_BDB_LINK_TRY(atalk_cv_db_db42,[-ldb44]) 3.78 ++NETATALK_BDB_LINK_TRY(atalk_cv_db_db_42,[-ldb-44]) 3.79 ++NETATALK_BDB_LINK_TRY(atalk_cv_db_db_4_2,[-ldb-4-4]) 3.80 ++ 3.81 ++NETATALK_BDB_LINK_TRY(atalk_cv_db_db_4_dot_2,[-ldb-4.3]) 3.82 ++NETATALK_BDB_LINK_TRY(atalk_cv_db_db42,[-ldb43]) 3.83 ++NETATALK_BDB_LINK_TRY(atalk_cv_db_db_42,[-ldb-43]) 3.84 ++NETATALK_BDB_LINK_TRY(atalk_cv_db_db_4_2,[-ldb-4-3]) 3.85 ++ 3.86 + NETATALK_BDB_LINK_TRY(atalk_cv_db_db_4_dot_1,[-ldb-4.1]) 3.87 + NETATALK_BDB_LINK_TRY(atalk_cv_db_db41,[-ldb41]) 3.88 + NETATALK_BDB_LINK_TRY(atalk_cv_db_db_41,[-ldb-41]) 3.89 +@@ -134,7 +150,7 @@ 3.90 + trybdbdir="" 3.91 + dobdbsearch=yes 3.92 + bdb_search_dirs="/usr/local/include /usr/include" 3.93 +- search_subdirs="/db4.2 /db42 /db4.1 /db41 /db4 /" 3.94 ++ search_subdirs="/db4.2 /db42 /db4.3 /db43 /db4.4 /db44 /db4.1 /db41 /db4 /" 3.95 + 3.96 + dnl required BDB version 3.97 + DB_MAJOR_REQ=4