Permalink
Browse files

Add net-fs/afpfs-ng

  • Loading branch information...
1 parent ce1cf32 commit 406edd3b3f37f62fb5e98be573ae8181f13bf853 @a3li committed May 26, 2011
View
@@ -0,0 +1,4 @@
+AUX afpfs-ng-0.8.1-fixes.patch 1011 RMD160 402abd968e605032f3eec9905b79fb2b4c390659 SHA1 470672ffd380e3e3a057b04814ec24b56e49a058 SHA256 16399ba0e64d3c8b3c66f796066d988132c39fd89eeb1c6057628629eba48fc1
+DIST afpfs-ng-0.8.1.tar.bz2 344014 RMD160 39d3e50ce38df188a7c90448b20f7e428027dc43 SHA1 3686d4d752052ea8e98841fcae748cb469991dbb SHA256 688560de1cde57ab8d9e0ef7dc6436dbf0267fe8884f9014e50ff92b297b01a8
+EBUILD afpfs-ng-0.8.1.ebuild 861 RMD160 bfb964661acb56a99e18fbfeaa967a5c5b4ff933 SHA1 4340cfc24b52148573c021d3393cbfc9a46c71df SHA256 f64c43c8ad67689d4dedf3e9372ecf7aa3b5073343539bcf6fb054bc42dd997d
+MISC metadata.xml 401 RMD160 790862f91b1ec0070acc03dacc93713b194b1079 SHA1 34c865cc27b844642bbf7d2137f31e79cb392a7e SHA256 8a2a28276fc5174bd5bf82819c8505729456066bfb0dc6ac94c3c2966bde6d34
@@ -0,0 +1,41 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+inherit autotools base
+
+DESCRIPTION="An Apple Filing Protocol (AFP) client, also providing a FUSE filesystem."
+HOMEPAGE="http://sites.google.com/site/alexthepuffin/home"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+fuse +gcrypt"
+
+DEPEND="
+ dev-libs/gmp
+ fuse? ( sys-fs/fuse )
+ gcrypt? ( dev-libs/libgcrypt )"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-fixes.patch" )
+
+src_prepare() {
+ base_src_prepare
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable fuse) \
+ $(use_enable gcrypt) \
+ --disable-static
+}
+src_install() {
+ base_src_install
+ dodoc docs/{FEATURES.txt,README,REPORTING-BUGS.txt}
+
+ rm -f "${D}"/usr/$(get_libdir)/*.la || die ".la removal failed"
+}
@@ -0,0 +1,32 @@
+diff -Naur afpfs-ng-0.8.1.orig/cmdline/cmdline_afp.c afpfs-ng-0.8.1/cmdline/cmdline_afp.c
+--- afpfs-ng-0.8.1.orig/cmdline/cmdline_afp.c 2008-02-19 02:54:19.000000000 +0100
++++ afpfs-ng-0.8.1/cmdline/cmdline_afp.c 2011-05-19 23:12:31.319157941 +0200
+@@ -417,7 +417,7 @@
+ }
+
+ if (sscanf(modestring,"%o",&mode)!=1) {
+- printf("Mode of %s isn't octal\n");
++ printf("Mode of %s isn't octal\n", modestring);
+ goto error;
+ }
+
+@@ -1217,7 +1217,7 @@
+ {
+ struct passwd * passwd;
+
+- snprintf(curdir,PATH_MAX,"%s",DEFAULT_DIRECTORY);
++ snprintf(curdir,AFP_MAX_PATH,"%s",DEFAULT_DIRECTORY);
+ if (init_uams()<0) return -1;
+
+ afp_default_url(&url);
+diff -Naur afpfs-ng-0.8.1.orig/cmdline/getstatus.c afpfs-ng-0.8.1/cmdline/getstatus.c
+--- afpfs-ng-0.8.1.orig/cmdline/getstatus.c 2008-02-18 04:28:09.000000000 +0100
++++ afpfs-ng-0.8.1/cmdline/getstatus.c 2011-05-19 23:06:37.814406377 +0200
+@@ -1,6 +1,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <pthread.h>
++#include <stdlib.h>
+
+ #include "afp.h"
+
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>a3li@gentoo.org</email>
+ <name>Alex Legler</name>
+ </maintainer>
+ <use>
+ <flag name="fuse">
+ Installs the FUSE filesystem module.
+ </flag>
+ <flag name="gcrypt">
+ Optional support for gcrypt.
+ </flag>
+ </use>
+</pkgmetadata>

0 comments on commit 406edd3

Please sign in to comment.