wok rev 2187
Add netatalk-pam
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 09 09:48:49 2009 +0000 (2009-02-09) |
parents | ebf2041fbd1f |
children | d06bc1bc7ba2 |
files | netatalk-pam/receipt netatalk-pam/stuff/netatalk-2.0.3-newer-db.patch netatalk/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netatalk-pam/receipt Mon Feb 09 09:48:49 2009 +0000 1.3 @@ -0,0 +1,53 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="netatalk-pam" 1.7 +VERSION="2.0.3" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="The AppleTalk Protocol Suite using PAM." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +DEPENDS="perl libdb libcrypto" 1.12 +BUILD_DEPENDS="db-dev libcrypto-dev" 1.13 +SOURCE="netatalk" 1.14 +TARBALL="$SOURCE-$VERSION.tar.bz2" 1.15 +WEB_SITE="http://netatalk.sourceforge.net/" 1.16 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.17 +CONFIG_FILES="/etc/netatalk/AppleVolumes.* /etc/netatalk/*.conf" 1.18 +PROVIDE="netatalk:pam" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + cd $src 1.24 + [ -f done.netatalk-2.0.3-newer-db.patch ] || \ 1.25 + patch -p1 < ../stuff/netatalk-2.0.3-newer-db.patch 1.26 + touch done.netatalk-2.0.3-newer-db.patch 1.27 + ./configure --with-pam --prefix=/usr --sysconfdir=/etc \ 1.28 + --mandir=/usr/share/man $CONFIGURE_ARGS && 1.29 + make && 1.30 + make DESTDIR=$PWD/_pkg install 1.31 +} 1.32 + 1.33 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.34 +genpkg_rules() 1.35 +{ 1.36 + mkdir -p $fs/usr/share 1.37 + cp -a $_pkg/usr/bin $fs/usr 1.38 + cp -a $_pkg/usr/sbin $fs/usr 1.39 + cp -a $_pkg/usr/libexec $fs/usr 1.40 + cp -a $_pkg/etc $fs 1.41 + rm -f $fs/etc/netatalk/uams/*a 1.42 +} 1.43 + 1.44 +# Pre and post install commands for Tazpkg. 1.45 +post_install() 1.46 +{ 1.47 + cat <<EOF 1.48 +---- 1.49 +To start $PACKAGE server you can run : 1.50 + 1.51 + /etc/init.d/$PACKAGE start 1.52 + 1.53 +Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf 1.54 +---- 1.55 +EOF 1.56 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/netatalk-pam/stuff/netatalk-2.0.3-newer-db.patch Mon Feb 09 09:48:49 2009 +0000 2.3 @@ -0,0 +1,94 @@ 2.4 +diff -urN netatalk-2.0.3.orig/bin/cnid/cnid_index.c netatalk-2.0.3/bin/cnid/cnid_index.c 2.5 +--- netatalk-2.0.3.orig/bin/cnid/cnid_index.c 2005-04-10 12:49:18.000000000 +0000 2.6 ++++ netatalk-2.0.3/bin/cnid/cnid_index.c 2007-08-11 17:01:38.000000000 +0000 2.7 +@@ -1,5 +1,5 @@ 2.8 + /* 2.9 +- * $Id: cnid_index.c,v 1.1.2.4 2005/04/10 12:49:18 didg Exp $ 2.10 ++ * $Id: cnid_index.c,v 1.1.2.5 2005/09/13 16:57:44 didg Exp $ 2.11 + * 2.12 + * All Rights Reserved. See COPYING. 2.13 + */ 2.14 +@@ -274,7 +274,11 @@ 2.15 + DB_BTREE_STAT *sp; 2.16 + DB *db = db_table[dbi].db; 2.17 + 2.18 ++#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3) 2.19 ++ ret = db->stat(db, db_txn, &sp, 0); 2.20 ++#else 2.21 + ret = db->stat(db, &sp, 0); 2.22 ++#endif 2.23 + 2.24 + if (ret) { 2.25 + LOG(log_error, logtype_cnid, "error getting stat infotmation on database: %s", db_strerror(errno)); 2.26 +diff -urN netatalk-2.0.3.orig/etc/cnid_dbd/dbif.c netatalk-2.0.3/etc/cnid_dbd/dbif.c 2.27 +--- netatalk-2.0.3.orig/etc/cnid_dbd/dbif.c 2004-12-21 13:36:12.000000000 +0000 2.28 ++++ netatalk-2.0.3/etc/cnid_dbd/dbif.c 2007-08-11 17:10:19.000000000 +0000 2.29 +@@ -1,5 +1,5 @@ 2.30 + /* 2.31 +- * $Id: dbif.c,v 1.1.4.15.2.1 2004/12/21 13:36:12 didg Exp $ 2.32 ++ * $Id: dbif.c,v 1.1.4.15.2.2 2005/09/13 16:57:45 didg Exp $ 2.33 + * 2.34 + * Copyright (C) Joerg Lenneis 2003 2.35 + * All Rights Reserved. See COPYING. 2.36 +@@ -514,7 +514,11 @@ 2.37 + DB_BTREE_STAT *sp; 2.38 + DB *db = db_table[dbi].db; 2.39 + 2.40 ++#if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3) 2.41 ++ ret = db->stat(db, db_txn, &sp, 0); 2.42 ++#else 2.43 + ret = db->stat(db, &sp, 0); 2.44 ++#endif 2.45 + 2.46 + if (ret) { 2.47 + LOG(log_error, logtype_cnid, "error getting stat infotmation on database: %s", db_strerror(errno)); 2.48 +diff -urN netatalk-2.0.3.orig/macros/db3-check.m4 netatalk-2.0.3/macros/db3-check.m4 2.49 +--- netatalk-2.0.3.orig/macros/db3-check.m4 2004-08-11 03:01:11.000000000 +0000 2.50 ++++ netatalk-2.0.3/macros/db3-check.m4 2007-08-11 16:57:02.000000000 +0000 2.51 +@@ -1,4 +1,4 @@ 2.52 +-dnl $Id: db3-check.m4,v 1.11.6.9 2004/08/11 03:01:11 bfernhomberg Exp $ 2.53 ++dnl $Id: db3-check.m4,v 1.11.6.9.2.2 2006/09/09 01:36:39 didg Exp $ 2.54 + dnl Autoconf macros to check for the Berkeley DB library 2.55 + 2.56 + 2.57 +@@ -111,7 +111,12 @@ 2.58 + CFLAGS="$savedcflags" 2.59 + ]) 2.60 + 2.61 +- 2.62 ++dnl I don't understand this stuff below 2.63 ++dnl AFAIK it works for 4.1 and 4.2 and (4.3 xor 4.4) 2.64 ++dnl you can have 4.2 and 4.3 installed 2.65 ++dnl but If you have 4.3 and 4.4 it won't work with 4.3 2.66 ++dnl only 4.4 2.67 ++dnl didier 2.68 + AC_DEFUN([NETATALK_BERKELEY_LINK], 2.69 + [ 2.70 + atalk_cv_lib_db=no 2.71 +@@ -119,6 +124,17 @@ 2.72 + NETATALK_BDB_LINK_TRY(atalk_cv_db_db42,[-ldb42]) 2.73 + NETATALK_BDB_LINK_TRY(atalk_cv_db_db_42,[-ldb-42]) 2.74 + NETATALK_BDB_LINK_TRY(atalk_cv_db_db_4_2,[-ldb-4-2]) 2.75 ++ 2.76 ++NETATALK_BDB_LINK_TRY(atalk_cv_db_db_4_dot_2,[-ldb-4.4]) 2.77 ++NETATALK_BDB_LINK_TRY(atalk_cv_db_db42,[-ldb44]) 2.78 ++NETATALK_BDB_LINK_TRY(atalk_cv_db_db_42,[-ldb-44]) 2.79 ++NETATALK_BDB_LINK_TRY(atalk_cv_db_db_4_2,[-ldb-4-4]) 2.80 ++ 2.81 ++NETATALK_BDB_LINK_TRY(atalk_cv_db_db_4_dot_2,[-ldb-4.3]) 2.82 ++NETATALK_BDB_LINK_TRY(atalk_cv_db_db42,[-ldb43]) 2.83 ++NETATALK_BDB_LINK_TRY(atalk_cv_db_db_42,[-ldb-43]) 2.84 ++NETATALK_BDB_LINK_TRY(atalk_cv_db_db_4_2,[-ldb-4-3]) 2.85 ++ 2.86 + NETATALK_BDB_LINK_TRY(atalk_cv_db_db_4_dot_1,[-ldb-4.1]) 2.87 + NETATALK_BDB_LINK_TRY(atalk_cv_db_db41,[-ldb41]) 2.88 + NETATALK_BDB_LINK_TRY(atalk_cv_db_db_41,[-ldb-41]) 2.89 +@@ -134,7 +150,7 @@ 2.90 + trybdbdir="" 2.91 + dobdbsearch=yes 2.92 + bdb_search_dirs="/usr/local/include /usr/include" 2.93 +- search_subdirs="/db4.2 /db42 /db4.1 /db41 /db4 /" 2.94 ++ search_subdirs="/db4.2 /db42 /db4.3 /db43 /db4.4 /db44 /db4.1 /db41 /db4 /" 2.95 + 2.96 + dnl required BDB version 2.97 + DB_MAJOR_REQ=4
3.1 --- a/netatalk/receipt Mon Feb 09 09:44:28 2009 +0000 3.2 +++ b/netatalk/receipt Mon Feb 09 09:48:49 2009 +0000 3.3 @@ -19,7 +19,7 @@ 3.4 [ -f done.netatalk-2.0.3-newer-db.patch ] || \ 3.5 patch -p1 < ../stuff/netatalk-2.0.3-newer-db.patch 3.6 touch done.netatalk-2.0.3-newer-db.patch 3.7 - ./configure --prefix=/usr --sysconfdir=/etc \ 3.8 + ./configure --with-pam --prefix=/usr --sysconfdir=/etc \ 3.9 --mandir=/usr/share/man $CONFIGURE_ARGS && 3.10 make && 3.11 make DESTDIR=$PWD/_pkg install