debian/0000775000000000000000000000000012256156136007177 5ustar debian/rules0000775000000000000000000000007312256156025010254 0ustar #!/usr/bin/make -f %: dh $@ --parallel --with autoreconf debian/watch0000664000000000000000000000022211730405264010217 0ustar version=3 opts=dversionmangle=s/[-.+~]?(cvs|svn|git|snapshot|pre|hg|repack)(.*)$//i,pasv \ http://sf.net/afpfs-ng/afpfs-ng-(\d\.[\.\w]+).tar\.bz2 debian/changelog0000664000000000000000000000222512256156076011055 0ustar afpfs-ng (0.8.1-5ubuntu1) trusty; urgency=medium * Use dh-autoreconf to get new libtool macros for ppc64el and update config.{sub,guess} for new arches. -- Logan Rosen Mon, 23 Dec 2013 19:58:08 -0500 afpfs-ng (0.8.1-5) unstable; urgency=low * Allow dev package to be multiarch installable. -- Andres Mejia Fri, 16 Mar 2012 16:31:33 -0400 afpfs-ng (0.8.1-4) unstable; urgency=low * Add afpfs-ng-utils to dependencies for afpfs-ng transitional package. -- Andres Mejia Thu, 15 Mar 2012 12:39:30 -0400 afpfs-ng (0.8.1-3) unstable; urgency=low * Add proper transitional package for old afpfs-ng binary. * Bump to Standards-Version 3.9.3. -- Andres Mejia Sat, 25 Feb 2012 11:38:27 -0500 afpfs-ng (0.8.1-2) unstable; urgency=low * Add options to pass to dpkg-source. * Ensure include headers pick internal headers before system headers. -- Andres Mejia Tue, 10 Jan 2012 18:07:15 -0500 afpfs-ng (0.8.1-1) unstable; urgency=low * Initial release. (Closes: #655180) -- Andres Mejia Sun, 08 Jan 2012 21:25:30 -0500 debian/compat0000664000000000000000000000000211730405264010370 0ustar 9 debian/copyright0000664000000000000000000001062611730405264011132 0ustar Format: http://dep.debian.net/deps/dep5/ Upstream-Name: afpfs-ng Upstream-Contact: Alex deVries Source: http://sourceforge.net/projects/afpfs-ng/ Files: * Copyright: 2006-2008 Alex deVries License: GPL-2+ This Program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . This Program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file '/usr/share/common-licenses/GPL-2'. Files: cmdline/cmdline_main.c Copyright: 1987-2002 Free Software Foundation, Inc. 2007 Alex deVries License: GPL-2+ This Program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . This Program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file '/usr/share/common-licenses/GPL-2'. Files: lib/afp.c lib/proto_login.c lib/uams.c Copyright: 2006 Alex deVries 2007 Derrik Pates License: GPL-2+ This Program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . This Program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file '/usr/share/common-licenses/GPL-2'. Files: lib/unicode.* Copyright: Roland Krause 2002, roland_krause@freenet.de Michael Ulbrich 2007, mul@rentapacs.de License: GPL-2+ This Program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . This Program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file '/usr/share/common-licenses/GPL-2'. Files: debian/* Copyright: 2011, Andres Mejia License: GPL-2+ This Program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. . This Program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file '/usr/share/common-licenses/GPL-2'. debian/source/0000775000000000000000000000000011730405264010472 5ustar debian/source/format0000664000000000000000000000001411730405264011700 0ustar 3.0 (quilt) debian/source/options0000664000000000000000000000005211730405264012105 0ustar unapply-patches abort-on-upstream-changes debian/source/lintian-overrides0000664000000000000000000000021411730405264014050 0ustar # Only Build-Depends on debhelper (>= 8.1.3~) is needed, so ignore this. afpfs-ng source: package-needs-versioned-debhelper-build-depends 9 debian/libafpclient-dev.install0000664000000000000000000000007711730405264013776 0ustar usr/include usr/lib/*/libafpclient.so usr/lib/*/libafpclient.a debian/libafpclient0.install0000664000000000000000000000003411730405264013273 0ustar usr/lib/*/libafpclient.so.* debian/afpfs-ng-utils.links0000664000000000000000000000004511730405264013072 0ustar usr/bin/mount_afp usr/bin/afp_client debian/afpfs-ng-utils.install0000664000000000000000000000010511730405264013415 0ustar usr/bin/afpcmd usr/bin/afpgetstatus usr/bin/mount_afp usr/bin/afpfsd debian/afpfs-ng-utils.manpages0000664000000000000000000000032011730405264013541 0ustar debian/tmp/usr/share/man/man1/afp_client.1 debian/tmp/usr/share/man/man1/afpcmd.1 debian/tmp/usr/share/man/man1/afpgetstatus.1 debian/tmp/usr/share/man/man1/mount_afp.1 debian/tmp/usr/share/man/man1/afpfsd.1 debian/control0000664000000000000000000000454012256156100010574 0ustar Source: afpfs-ng Section: libs Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Andres Mejia Build-Depends: debhelper (>= 8.1.3~), libgcrypt11-dev | libgcrypt-dev, libfuse-dev, libgmp-dev, libreadline-dev, libncurses5-dev | libncurses-dev, dh-autoreconf Standards-Version: 3.9.3 Homepage: http://sites.google.com/site/alexthepuffin/home Vcs-Git: git://anonscm.debian.org/collab-maint/afpfs-ng.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/afpfs-ng.git Package: libafpclient-dev Architecture: any Multi-Arch: same Section: libdevel Depends: libafpclient0 (= ${binary:Version}), ${misc:Depends} Description: Client for the Apple Filing Protocol (AFP) (development files) This is a client for the Apple Filing Protocol (AFP) which will let you mount and access shared volumes from Mac OS X (or netatalk) to Linux, BSD and Mac OS X systems. . This package provides the necessary files needed for development. Package: libafpclient0 Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: Client for the Apple Filing Protocol (AFP) (shared library) This is a client for the Apple Filing Protocol (AFP) which will let you mount and access shared volumes from Mac OS X (or netatalk) to Linux, BSD and Mac OS X systems. . This package provides the shared library. Package: afpfs-ng-utils Architecture: any Depends: libafpclient0 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Provides: afpfs-ng Replaces: afpfs-ng Breaks: afpfs-ng (<< 0.8.1-3) Description: Client for the Apple Filing Protocol (AFP) (utility programs) This is a client for the Apple Filing Protocol (AFP) which will let you mount and access shared volumes from Mac OS X (or netatalk) to Linux, BSD and Mac OS X systems. . This package provides the afpfs-ng utility programs. Package: afpfs-ng Priority: extra Section: oldlibs Architecture: all Depends: ${misc:Depends}, afpfs-ng-utils Description: Client for the Apple Filing Protocol (AFP) (transitional package) This is a client for the Apple Filing Protocol (AFP) which will let you mount and access shared volumes from Mac OS X (or netatalk) to Linux, BSD and Mac OS X systems. . This is a dummy transitional package. It may be safely removed. debian/gbp.conf0000664000000000000000000000003611730405264010610 0ustar [DEFAULT] pristine-tar = True debian/patches/0000775000000000000000000000000011730405264010621 5ustar debian/patches/series0000664000000000000000000000010011730405264012025 0ustar build-error-fixes.patch mount_afp.1.patch header-path-fix.patch debian/patches/include-headers-fix.patch0000664000000000000000000000243511730405264015466 0ustar Description: Include headers for library in installation. Origin: http://anonscm.debian.org/gitweb/?p=collab-maint/afpfs-ng.git;a=blob;f=debian/patches/include-headers-fix.patch --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -4,6 +4,18 @@ lib_LTLIBRARIES = libafpclient.la +libafpclient_adir = $(includedir)/afpfs-ng + +libafpclient_a_HEADERS = $(top_srcdir)/include/afp.h \ + $(top_srcdir)/include/codepage.h \ + $(top_srcdir)/include/libafpclient.h \ + $(top_srcdir)/include/midlevel.h \ + $(top_srcdir)/include/utils.h \ + $(top_srcdir)/include/afp_protocol.h \ + $(top_srcdir)/include/dsi.h \ + $(top_srcdir)/include/map_def.h \ + $(top_srcdir)/include/uams_def.h + libafpclient_la_SOURCES = afp.c codepage.c did.c dsi.c map_def.c uams.c uams_def.c unicode.c users.c utils.c resource.c log.c client.c server.c connect.c loop.c midlevel.c proto_attr.c proto_desktop.c proto_directory.c proto_files.c proto_fork.c proto_login.c proto_map.c proto_replyblock.c proto_server.c proto_volume.c proto_session.c afp_url.c status.c forklist.c debug.c lowlevel.c # libafpclient_la_LDFLAGS = -module -avoid-version debian/patches/build-error-fixes.patch0000664000000000000000000000616011730405264015207 0ustar Description: Fix build errors. Origin: http://anonscm.debian.org/gitweb/?p=collab-maint/afpfs-ng.git;a=blob;f=debian/patches/build-error-fixes.patch --- a/lib/afp_url.c +++ b/lib/afp_url.c @@ -233,7 +233,7 @@ } } - snprintf(url->servername,strlen(p)+1,p); + strcpy(url->servername,p); if (check_servername(url->servername)) { if (verbose) printf("This isn't a valid servername\n"); return -1; @@ -263,7 +263,7 @@ if ((q=escape_strrchr(p,':',":"))) { *q='\0'; q++; - snprintf(url->password,strlen(q)+1,q); + strcpy(url->password,q); if (check_password(url->password)) { if (verbose) printf("This isn't a valid passwd\n"); return -1; @@ -276,7 +276,7 @@ if ((q=strstr(p,";AUTH="))) { *q='\0'; q+=6; - snprintf(url->uamname,strlen(q)+1,q); + strcpy(url->uamname,q); if (check_uamname(url->uamname)) { if (verbose) printf("This isn't a valid uamname\n"); return -1; @@ -284,7 +284,7 @@ } if (strlen(p)>0) { - snprintf(url->username,strlen(p)+1,p); + strcpy(url->username,p); if (check_username(url->username)) { if (verbose) printf("This isn't a valid username\n"); return -1;; @@ -304,12 +304,12 @@ *q='\0'; q++; } - snprintf(url->volumename,strlen(p)+1,p); + strcpy(url->volumename,p); if (q) { url->path[0]='/'; - snprintf(url->path+1,strlen(q)+1,q); + strcpy(url->path+1,q); } done: --- a/fuse/commands.c +++ b/fuse/commands.c @@ -163,8 +163,7 @@ if (c) { len = strlen(c->client_string); - snprintf(c->client_string+len, - MAX_CLIENT_RESPONSE-len, + strcpy(c->client_string+len, message); } else { @@ -468,7 +467,7 @@ volume->mapping=req->map; afp_detect_mapping(volume); - snprintf(volume->mountpoint,255,req->mountpoint); + strcpy(volume->mountpoint,req->mountpoint); /* Create the new thread and block until we get an answer back */ { --- a/fuse/client.c +++ b/fuse/client.c @@ -547,7 +547,7 @@ done: memset(toprint,0,MAX_CLIENT_RESPONSE+200); snprintf(toprint,MAX_CLIENT_RESPONSE+200,"%s",incoming_buffer+sizeof(*answer)); - printf(toprint); + printf("%s",toprint); return ((struct afp_server_response *) incoming_buffer)->result; return 0; --- a/cmdline/cmdline_afp.c +++ b/cmdline/cmdline_afp.c @@ -828,11 +828,11 @@ char text[40960]; afp_status_header(text,&len); - printf(text); + printf("%s",text); len=40960; afp_status_server(server,text,&len); - printf(text); + printf("%s",text); return 0; } --- a/cmdline/cmdline_testafp.c +++ b/cmdline/cmdline_testafp.c @@ -26,12 +26,12 @@ struct afp_url valid_url; afp_default_url(&valid_url); valid_url.protocol=protocol; - sprintf(valid_url.servername,servername); - sprintf(valid_url.volumename,volumename); - sprintf(valid_url.path,path); - sprintf(valid_url.username,username); - sprintf(valid_url.password,password); - sprintf(valid_url.uamname,uamname); + strcpy(valid_url.servername,servername); + strcpy(valid_url.volumename,volumename); + strcpy(valid_url.path,path); + strcpy(valid_url.username,username); + strcpy(valid_url.password,password); + strcpy(valid_url.uamname,uamname); valid_url.port=port; if (afp_url_validate(url_string,&valid_url)) debian/patches/header-path-fix.patch0000664000000000000000000000075011730405264014612 0ustar Description: Ensure internal headers are picked instead of system headers. Origin: http://anonscm.debian.org/gitweb/?p=collab-maint/afpfs-ng.git;a=blob;f=debian/patches/header-path-fix.patch --- a/include/afp.h +++ b/include/afp.h @@ -7,8 +7,8 @@ #include #include #include -#include -#include +#include "afp_protocol.h" +#include "libafpclient.h" #include #include #include debian/patches/mount_afp.1.patch0000664000000000000000000000072711730405264013777 0ustar Description: Provide manpage for mount_afp not under APSL-1.1. Author: Andres Mejia --- /dev/null +++ b/fuse/mount_afp.1 @@ -0,0 +1,8 @@ +.TH MOUNT_AFP "1" "January 2012" "User Commands" +.SH NAME +mount_afp \- mount an AFP (AppleShare) filesystem using FUSE +.SH DESCRIPTION +This is the program which is symlinked by afp_client. See the documentation +for afp_client for information how to use this program. +.SH SEE ALSO +afp_client(1), afpfsd(1) debian/afpfs-ng-get-orig-source0000775000000000000000000000425411730405264013637 0ustar #!/bin/sh set -e # Script used to generate the orig source tarball for afpfs-ng. AFPFS_NG_UPSTREAM_VERSION="0.8.1" AFPFS_NG_DOWNLOAD_URL="http://downloads.sourceforge.net/project/afpfs-ng/afpfs-ng/${AFPFS_NG_UPSTREAM_VERSION}/afpfs-ng-${AFPFS_NG_UPSTREAM_VERSION}.tar.bz2" AFPFS_NG_TARBALL_CHECKSUM="688560de1cde57ab8d9e0ef7dc6436dbf0267fe8884f9014e50ff92b297b01a8" # Download and verify afpfs-ng upstream tarball test -f "afpfs-ng-${AFPFS_NG_UPSTREAM_VERSION}.tar.bz2" || wget -c "${AFPFS_NG_DOWNLOAD_URL}" COMPUTED_CHECKSUM=`sha256sum "afpfs-ng-${AFPFS_NG_UPSTREAM_VERSION}.tar.bz2" | cut -d ' ' -f 1` if [ $AFPFS_NG_TARBALL_CHECKSUM != $COMPUTED_CHECKSUM ] ; then echo "Checksum verification failed. Checksum was $COMPUTED_CHECKSUM Expected checksum $AFPFS_NG_TARBALL_CHECKSUM." exit 1 else echo "Checksum verified. Checksum is $COMPUTED_CHECKSUM." fi rm -rf "afpfs-ng-${AFPFS_NG_UPSTREAM_VERSION}" tar -xjf "afpfs-ng-${AFPFS_NG_UPSTREAM_VERSION}.tar.bz2" cd "afpfs-ng-${AFPFS_NG_UPSTREAM_VERSION}" patch -p1 <"../$(dirname $0)/patches/include-headers-fix.patch" autoreconf -vif cd .. # Remove temp files and other cruft from source tarball # The find command snippet here was taken from debhelper's dh_clean command # with some modification to delete more unneeded files. echo "Removing temp files and other cruft from source tarball" find afpfs-ng-${AFPFS_NG_UPSTREAM_VERSION} \( \( -type f -a \ \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \ -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \ -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \ -o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \ -o -name config.status -o -name config.cache -o -name config.log \ \) -exec rm -f "{}" \; \) -o \ \( -type d -a -name autom4te.cache -prune -exec rm -rf "{}" \; \) \) # Remove file under APSL-1.1 rm -f afpfs-ng-${AFPFS_NG_UPSTREAM_VERSION}/fuse/mount_afp.1 # Remove empty directories echo "Removing empty directories" find afpfs-ng-${AFPFS_NG_UPSTREAM_VERSION} -type d -empty -delete rm -f "afpfs-ng_${AFPFS_NG_UPSTREAM_VERSION}.orig.tar.gz" tar --exclude-vcs -czf "afpfs-ng_${AFPFS_NG_UPSTREAM_VERSION}.orig.tar.gz" \ "afpfs-ng-${AFPFS_NG_UPSTREAM_VERSION}/"