Ticket #6619: netatalk.patch

File netatalk.patch, 6.3 KB (added by jake1981 <oskari.rauta@…>, 6 years ago)

Patch that downgrades from 2.1beta to 2.0.5 and fixes kernel module dependancy list.

  • net/netatalk/patches/configure.patch

     
     1diff -Naur netatalk-2.0.5.orig/configure netatalk-2.0.5/configure 
     2--- netatalk-2.0.5.orig/configure       2009-10-05 11:27:29.000000000 +0300 
     3+++ netatalk-2.0.5/configure    2010-01-31 22:03:19.000000000 +0200 
     4@@ -26504,10 +26504,7 @@ 
     5 if test $ac_cv_lib_afsauthent_pioctl = yes; then 
     6   netatalk_cv_afs=yes 
     7 else 
     8-  { { echo "$as_me:$LINENO: error: AFS installation not found" >&5 
     9-echo "$as_me: error: AFS installation not found" >&2;} 
     10-   { (exit 1); exit 1; }; } 
     11- 
     12+  netatalk_cv_afs=yes 
     13 fi 
     14  
     15                                AFS_LIBS=-lresolv -lafsrpc -lafsauthent 
     16@@ -30832,7 +30829,7 @@ 
     17     trybdbdir="" 
     18     dobdbsearch=yes 
     19     bdb_search_dirs="/usr/local /usr" 
     20-    search_subdirs="/ /db4.7 /db47 /db4.6 /db46 /db4.5 /db45 /db4.4 /db44 /db4.3 /db43 /db4.2 /db42 /db4.1 /db41 /db4" 
     21+    search_subdirs="/ /db4.7 /db47 /db4.6 /db46 /db4.5 /db45 /db4.4 /db44 /db4.3 /db43 /db4.2 /db42 /db4.1 /db41 /db4 /./" 
     22  
     23         DB_MAJOR_REQ=4 
     24     DB_MINOR_REQ=1 
     25@@ -30932,11 +30929,7 @@ 
     26         { echo "$as_me:$LINENO: checking Berkeley DB library ($lib)" >&5 
     27 echo $ECHO_N "checking Berkeley DB library ($lib)... $ECHO_C" >&6; } 
     28         if test "$cross_compiling" = yes; then 
     29-  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 
     30-See \`config.log' for more details." >&5 
     31-echo "$as_me: error: cannot run test program while cross compiling 
     32-See \`config.log' for more details." >&2;} 
     33-   { (exit 1); exit 1; }; } 
     34+   { { echo "$as_me:$LINENO: result yes" >&5; echo "${ECHO_T}yes" >&6; }; } 
     35 else 
     36   cat >conftest.$ac_ext <<_ACEOF 
     37 /* confdefs.h.  */ 
     38@@ -31042,23 +31035,7 @@ 
     39     if test "x$bdbfound" = "xyes"; then 
     40         : 
     41     else 
     42- 
     43-               { echo "$as_me:$LINENO: result: " >&5 
     44-echo "${ECHO_T}" >&6; } 
     45-               { echo "$as_me:$LINENO: result: Make sure you have the required Berkeley DB libraries AND headers installed." >&5 
     46-echo "${ECHO_T}Make sure you have the required Berkeley DB libraries AND headers installed." >&6; } 
     47-               { echo "$as_me:$LINENO: result: You can download the latest version from http://www.sleepycat.com." >&5 
     48-echo "${ECHO_T}You can download the latest version from http://www.sleepycat.com." >&6; } 
     49-               { echo "$as_me:$LINENO: result: If you have installed BDB in a non standard location use the" >&5 
     50-echo "${ECHO_T}If you have installed BDB in a non standard location use the" >&6; } 
     51-               { echo "$as_me:$LINENO: result: --with-bdb=/path/to/bdb configure option and make sure" >&5 
     52-echo "${ECHO_T}--with-bdb=/path/to/bdb configure option and make sure" >&6; } 
     53-               { echo "$as_me:$LINENO: result: your linker is configured to check for libraries there." >&5 
     54-echo "${ECHO_T}your linker is configured to check for libraries there." >&6; } 
     55-               { { echo "$as_me:$LINENO: error: Berkeley DB library required but not found!" >&5 
     56-echo "$as_me: error: Berkeley DB library required but not found!" >&2;} 
     57-   { (exit 1); exit 1; }; } 
     58- 
     59+       : 
     60     fi 
     61  
     62  
     63@@ -31080,6 +31057,7 @@ 
     64     esac 
     65   done 
     66   BDB_LIBS=$ac_new_flags 
     67+  BDB_LIBS="-ldb-4.7" 
     68  
     69  
     70  
  • net/netatalk/Makefile

     
    11# 
    2 # Copyright (C) 2009-2010 OpenWrt.org 
     2# Copyright (C) 2009 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
    55# See /LICENSE for more information. 
     
    88include $(TOPDIR)/rules.mk 
    99 
    1010PKG_NAME:=netatalk 
    11 PKG_VERSION:=2.1beta1 
     11PKG_VERSION=2.0.5 
    1212PKG_RELEASE:=2 
    13  
    1413PKG_SOURCE:=netatalk-$(PKG_VERSION).tar.gz 
    15 PKG_SOURCE_URL:=@SF/netatalk 
    16 PKG_MD5SUM:=86be058b18270e9df4699a1f393846b0 
     14PKG_SOURCE_URL:=@SF/netatalk/ 
     15PKG_MD5SUM:=f35cd7a4ce26c780de380cd2bcae5ce6 
    1716 
    18 PKG_FIXUP:=libtool 
    19  
    2017include $(INCLUDE_DIR)/package.mk 
    2118 
    2219define Package/netatalk 
    2320  SECTION:=net 
    2421  CATEGORY:=Network 
    25   DEPENDS:=+libdb47 +libgcrypt +libopenssl 
     22  DEPENDS:=+libdb47 +libgcrypt +libopenssl +kmod-appletalk 
    2623  TITLE:=netatalk 
    2724  URL:=http://netatalk.sourceforge.net 
    2825endef 
     
    3128  Netatalk is an implementation of the AppleTalk protocol suite 
    3229endef 
    3330 
    34 CONFIGURE_VARS += \ 
    35         CFLAGS="$(TARGET_CFLAGS) -std=gnu99 -Drestrict='' -DNO_DEBUG " 
     31EXTRA_CFLAGS += -I$(STAGING_DIR)/usr/include 
    3632 
    37 CONFIGURE_ARGS += \ 
    38         --disable-timelord \ 
    39         --disable-a2boot \ 
    40         --disable-cups \ 
    41         --disable-tcp-wrappers \ 
    42         --with-cnid-default-backend=dbd \ 
    43         --with-bdb="$(STAGING_DIR)/usr/" \ 
    44         --with-libgcrypt-dir="$(STAGING_DIR)/usr" \ 
    45         --with-ssl-dir="$(STAGING_DIR)/usr" \ 
    46         --with-uams-path="/usr/lib/uams" 
     33define Build/Configure 
     34        $(call Build/Configure/Default, \ 
     35                --disable-afs \ 
     36                --enable-hfs \ 
     37                --disable-debugging \ 
     38                --disable-shell-check \ 
     39                --disable-timelord \ 
     40                --disable-a2boot \ 
     41                --disable-cups \ 
     42                --disable-tcp-wrappers \ 
     43                --with-cnid-default-backend=dbd \ 
     44                --with-bdb="$(STAGING_DIR)/usr/" \ 
     45                --with-libgcrypt-dir="$(STAGING_DIR)/usr" \ 
     46                --with-ssl-dir="$(STAGING_DIR)/usr" \ 
     47                --with-uams-path="/usr/lib/uams" \ 
     48                --disable-admin-group \ 
     49                --disable-srvloc \ 
     50        ) 
     51endef 
    4752 
    4853define Package/netatalk/install 
    49         $(INSTALL_DIR) $(1)/usr/bin/ 
     54        $(INSTALL_DIR) $(1)/usr/sbin/ 
    5055        $(INSTALL_DIR) $(1)/usr/lib/uams/ 
    5156        $(INSTALL_DIR) $(1)/etc/netatalk/ 
    5257        $(INSTALL_DIR) $(1)/etc/init.d/ 
    5358        $(CP) \ 
    5459                $(PKG_BUILD_DIR)/etc/afpd/afpd \ 
    55                 $(1)/usr/bin/ 
     60                $(1)/usr/sbin/ 
    5661        $(CP) \ 
     62                $(PKG_BUILD_DIR)/bin/afppasswd/afppasswd \ 
     63                $(1)/usr/sbin/ 
     64        $(CP) \ 
    5765                $(PKG_BUILD_DIR)/etc/cnid_dbd/cnid_dbd \ 
    58                 $(1)/usr/bin/ 
     66                $(1)/usr/sbin/ 
    5967        $(CP) \ 
    6068                $(PKG_BUILD_DIR)/etc/cnid_dbd/cnid_metad \ 
    61                 $(1)/usr/bin/ 
     69                $(1)/usr/sbin/ 
    6270        $(CP) \ 
    63                 $(PKG_BUILD_DIR)/etc/cnid_dbd/dbd \ 
    64                 $(1)/usr/bin/ 
    65         $(CP) \ 
    6671                $(PKG_BUILD_DIR)/etc/uams/.libs/*.so \ 
    6772                $(1)/usr/lib/uams/ 
    68         $(CP) ./files/afpd.init $(1)/etc/init.d/afpd 
    69         $(CP) ./files/AppleVolumes.default $(1)/etc/netatalk/ 
    70         $(CP) ./files/AppleVolumes.system $(1)/etc/netatalk/ 
    71         $(INSTALL_BIN) ./files/afpd.conf $(1)/etc/netatalk/ 
     73        $(CP) \ 
     74                ./files/AppleVolumes.* \ 
     75                $(1)/etc/netatalk/ 
     76        $(CP) \ 
     77                ./files/afpd.conf \ 
     78                $(1)/etc/netatalk/ 
     79        $(CP) \ 
     80                ./files/afpd.init \ 
     81                $(1)/etc/init.d/afpd 
    7282endef 
    7383 
    7484$(eval $(call BuildPackage,netatalk))