You are not logged in.
Pages: 1
Greetings,
I am simply wondering whether or not anyone has gotten the netatalk package in the AUR to work. Here is a link; I am one of the most recent commenters.
Basically, there appears to be something wrong with the code, and it might have something to do with those patch files, but as I am not an experienced programmer I don't really know.
I am reluctant to just compile from source because I really like having the package manager sort out updates or removal if necessary. I have the required dependencies installed, and I am typing " makepkg -s " like I am supposed to.
I can post any more information if required, but I am also happy if someone simply has a working version of the package.
http://aur.archlinux.org/packages.php?ID=10032
Thank you all, I hope this question isn't too stupid. Just wondering if it's me or something else. Everything else in my Arch experience has been fantastic!
Offline
I also have trouble with this package.
that be sweet if someone could figure out how to make it work
Offline
I posted a new PKGBUILD to the AUR page as a comment, that lets netatalk compile cleanly.
Offline
I was trying to install netatalk and it told me that it is not available for x86_64
Now I'm stuck. Is there anything I could/should do?
Many thanks
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
toad: Use the PKGBUILD from the last comment on the netatalk AUR page.
1000
Offline
Thanks byte,
I suppose I'd better learn what a PKGBUILD is and what I am supposed to do with it...
Bit daunting when you haven't got a clue
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
Okay, so I grabbed this PCKBUILD:
# Contributor: William Udovich <nerdzrule7@earthlink.net>
pkgname=netatalk
pkgver=2.0.3
pkgrel=3
pkgdesc="A kernel level implementation of the AppleTalk Protocol Suite"
arch=('i686', 'x86_64')
url="http://netatalk.sourceforge.net"
options=('!libtool')
license="GPL"
backup=('etc/netatalk/afpd.conf' 'etc/netatalk/netatalk.conf' 'etc/netatalk/atalkd.conf' 'etc/netatalk/papd.conf' 'etc/netatalk/AppleVolumes.default' 'etc/netatalk/AppleVolumes.system')
depends=('libcups' 'tcp_wrappers' 'avahi' 'openssl' 'pam')
source=(http://dl.sourceforge.net/sourceforge/netatalk/netatalk-$pkgver.tar.bz2 \
afpd-zeroconf.diff zeroconf.diff \
afpd atalkd papd netatalk-xfs.patch newerdb.patch netatalk-bdb.patch)
md5sums=('28092763085783805dc2f00aa2127a3e' \
'6346de9e3633ece69842a586c5f4986c' '83e74461d3323e4679eb8190c7f10613'\
'15967f6dc663394fc23ea24f0fb499d5' '2d05de4a16faf7d4af21b5f14e33fa82'\
'b16a687c96dd1ca7ffefd7c995356c0d' 'a1e73577e8378dc4344f7f6cb8931210'
'639bb4691ca75d255c6f34b82e23b06a' 'f2e89e25768d7a0514221330623f0a56')
build() {
cd $startdir/src/netatalk-$pkgver
patch -Np0 -i ../afpd-zeroconf.diff
patch -p1 -i ../zeroconf.diff
patch -p1 -i ../netatalk-xfs.patch
patch -p1 -i ../newerdb.patch
patch -p1 -i ../netatalk-bdb.patch
./configure --prefix=/usr --with-ssl-dir=/usr --localstatedir=/var --enable-fhs --enable-zeroconf=/usr --disable-srvloc --without-xfs
make || return 1
make DESTDIR=$startdir/pkg install
mv $startdir/pkg/usr/include/netatalk{,2}
install -d $startdir/pkg/etc/rc.d
install -m755 ../{afpd,atalkd,papd} $startdir/pkg/etc/rc.d
}
It then tells me:
==> ERROR: afpd-zeroconf.diff was not found in the build directory and is not a URL.
Now I know that afpd-zeroconf.diff was mentioned as a source, but I don't know what that means or entails. The wiki does not cover my particular knowledge gap either or at least I haven't found it.
Any pointers out there?
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
On the netatalk AUR page (http://aur.archlinux.org/packages.php?ID=10032) there is a box of sources. A link to that file is there (http://aur.archlinux.org/packages/netat … oconf.diff), just download it and put it in the same directory as your PKGBUILD.
Another way would be to download the entire netatalk tarball by downloading the "tarball" link on the AUR page (http://aur.archlinux.org/packages/netat … alk.tar.gz). This will download the PKGBUILD and the local source files (patches, etc).
Offline
Thank you all for your patience...
@ tom5760
your route #1 resulted in:
toad@deskarch 961\11 ~/bin/netatalk > makepkg
==> Making package: netatalk 2.0.3-3 x86_64 (Wed Mar 11 20:09:56 CET 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Found netatalk-2.0.3.tar.bz2 in build dir
-> Found afpd-zeroconf.diff in build dir
-> Found zeroconf.diff in build dir
-> Found afpd in build dir
-> Found atalkd in build dir
-> Found papd in build dir
-> Found netatalk-xfs.patch in build dir
-> Found newerdb.patch in build dir
==> ERROR: netatalk-bdb.patch was not found in the build directory and is not a URL.
I haven't pursued that one yet although the error message is meaningful.
Your route #2 resulted in:
toad@deskarch 949\19 ~/bin/netatalk > makepkg
==> Making package: netatalk 2.0.3-3 x86_64 (Wed Mar 11 20:13:18 CET 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
-> Downloading netatalk-2.0.3.tar.bz2...
--2009-03-11 20:13:18-- http://dl.sourceforge.net/sourceforge/netatalk/netatalk-2.0.3.tar.bz2
Resolving dl.sourceforge.net... 216.34.181.56, 64.74.207.41, 69.9.164.2, ...
Connecting to dl.sourceforge.net|216.34.181.56|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1471804 (1.4M) [application/octet-stream]
Saving to: `netatalk-2.0.3.tar.bz2.part'
100%[==================================================================================================>] 1,471,804 23.8K/s in 38s
2009-03-11 20:13:59 (38.0 KB/s) - `netatalk-2.0.3.tar.bz2.part' saved [1471804/1471804]
==> ERROR: afpd-zeroconf.diff was not found in the build directory and is not a URL.
Again, meaningful and worth pursuing.
I am a total newbie to building packages having always relied on apt, aptitude, pacman and yaourt. Interesting, yet frustrating. Hopefully there is a huge, massive, ginormous chocolate bar waiting for me at the other end...
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
...
==> Leaving fakeroot environment.
==> Finished making: netatalk 2.0.3-3 x86_64 (Wed Mar 11 20:30:42 CET 2009)toad@deskarch 950\38 ~/bin/netatalk >
Alright, now for using the bastard...
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
toad@deskarch 953\41 ~/bin/netatalk > sudo /etc/rc.d/netatalk start
sudo: /etc/rc.d/netatalk: command not found
Do I have to reboot or log out or something? If so, does anybody know why?
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
Ah, I bet I know what you forgot...
pacman -U netatalk-2.0.3-3-x86_64.pkg.tar.gz
"makepkg" does only that, makes a package. You then need to install it with pacman.
Offline
Cheers tom5760,
I had done that but still no joy
Now I found a /usr/local/etc/netatalk as well as a /etc/netatalk and a /etc/pam.d/netatalk
In addition I only have 196M space left on my 10GB / I don't have the data on the amount of free space before I built the package but I am sure that it was closer to gigabytes rather than megabytes!
Wherediditgo??? The space I mean? So the build-essential lot took up some space, but gigabytes???
Grateful for any commands which sniff out files larger than 500MB, in the meantime I'll sift through my /usr with du...
Last edited by toad (2009-03-12 06:50:54)
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
One thing to note, you can do the following to see all files in a package you have installed:
pacman -Ql netatalk
Is the rc.d script in the package? If not, then it sounds like there might be something wrong with the PKGBUILD you used.
Offline
Hm, q and capital i, didn't know It does indeed show this line
netatalk /etc/rc.d/
BUT
toad@deskarch 990\4 /etc/rc.d > ls|grep net
netfs
network
xinetd
Does that mean that the build went haywire and fluffed it?
toad@deskarch 1001\1 ~ > pacman -Ql netatalk
netatalk /etc/
netatalk /etc/netatalk/
netatalk /etc/netatalk/AppleVolumes.default
netatalk /etc/netatalk/AppleVolumes.system
netatalk /etc/netatalk/afpd.conf
netatalk /etc/netatalk/atalkd.conf
netatalk /etc/netatalk/netatalk.conf
netatalk /etc/netatalk/papd.conf
netatalk /etc/pam.d/
netatalk /etc/pam.d/netatalk
netatalk /etc/rc.d/
netatalk /etc/rc.d/afpd
netatalk /etc/rc.d/atalkd
netatalk /etc/rc.d/papd
netatalk /usr/
netatalk /usr/bin/
netatalk /usr/bin/achfile
netatalk /usr/bin/acleandir.rc
netatalk /usr/bin/adv1tov2
netatalk /usr/bin/aecho
netatalk /usr/bin/afile
netatalk /usr/bin/afpd-mtab.pl
netatalk /usr/bin/afppasswd
netatalk /usr/bin/apple_cp
netatalk /usr/bin/apple_mv
netatalk /usr/bin/apple_rm
netatalk /usr/bin/asip-status.pl
netatalk /usr/bin/binheader
netatalk /usr/bin/cleanappledouble.pl
netatalk /usr/bin/cnid2_create
netatalk /usr/bin/cnid_index
netatalk /usr/bin/cnid_maint
netatalk /usr/bin/getzones
netatalk /usr/bin/hqx2bin
netatalk /usr/bin/lp2pap.sh
netatalk /usr/bin/macbinary
netatalk /usr/bin/macusers
netatalk /usr/bin/megatron
netatalk /usr/bin/nadheader
netatalk /usr/bin/nbplkup
netatalk /usr/bin/nbprgstr
netatalk /usr/bin/nbpunrgstr
netatalk /usr/bin/netatalk-config
netatalk /usr/bin/nu
netatalk /usr/bin/pap
netatalk /usr/bin/papstatus
netatalk /usr/bin/psorder
netatalk /usr/bin/showppd
netatalk /usr/bin/single2bin
netatalk /usr/bin/timeout
netatalk /usr/bin/unbin
netatalk /usr/bin/unhex
netatalk /usr/bin/uniconv
netatalk /usr/bin/unsingle
netatalk /usr/include/
netatalk /usr/include/atalk/
netatalk /usr/include/atalk/adouble.h
netatalk /usr/include/atalk/aep.h
netatalk /usr/include/atalk/afp.h
netatalk /usr/include/atalk/asp.h
netatalk /usr/include/atalk/atp.h
netatalk /usr/include/atalk/boolean.h
netatalk /usr/include/atalk/cnid.h
netatalk /usr/include/atalk/compat.h
netatalk /usr/include/atalk/ddp.h
netatalk /usr/include/atalk/dsi.h
netatalk /usr/include/atalk/list.h
netatalk /usr/include/atalk/logger.h
netatalk /usr/include/atalk/nbp.h
netatalk /usr/include/atalk/netddp.h
netatalk /usr/include/atalk/pap.h
netatalk /usr/include/atalk/paths.h
netatalk /usr/include/atalk/rtmp.h
netatalk /usr/include/atalk/server_child.h
netatalk /usr/include/atalk/tdb.h
netatalk /usr/include/atalk/uam.h
netatalk /usr/include/atalk/unicode.h
netatalk /usr/include/atalk/util.h
netatalk /usr/include/atalk/zip.h
netatalk /usr/include/netatalk2/
netatalk /usr/include/netatalk2/aarp.h
netatalk /usr/include/netatalk2/at.h
netatalk /usr/include/netatalk2/at_var.h
netatalk /usr/include/netatalk2/ddp.h
netatalk /usr/include/netatalk2/ddp_var.h
netatalk /usr/include/netatalk2/endian.h
netatalk /usr/include/netatalk2/phase2.h
netatalk /usr/lib/
netatalk /usr/lib/libatalk.a
netatalk /usr/lib/netatalk/
netatalk /usr/lib/netatalk/uams_clrtxt.so
netatalk /usr/lib/netatalk/uams_dhx.so
netatalk /usr/lib/netatalk/uams_dhx_pam.a
netatalk /usr/lib/netatalk/uams_dhx_pam.so
netatalk /usr/lib/netatalk/uams_dhx_passwd.a
netatalk /usr/lib/netatalk/uams_dhx_passwd.so
netatalk /usr/lib/netatalk/uams_guest.a
netatalk /usr/lib/netatalk/uams_guest.so
netatalk /usr/lib/netatalk/uams_pam.a
netatalk /usr/lib/netatalk/uams_pam.so
netatalk /usr/lib/netatalk/uams_passwd.a
netatalk /usr/lib/netatalk/uams_passwd.so
netatalk /usr/lib/netatalk/uams_randnum.a
netatalk /usr/lib/netatalk/uams_randnum.so
netatalk /usr/libexec/
netatalk /usr/libexec/etc2ps.sh
netatalk /usr/libexec/ifmpap
netatalk /usr/libexec/ifmpaprev
netatalk /usr/libexec/ifpap
netatalk /usr/libexec/ifpaprev
netatalk /usr/libexec/ifwmpap
netatalk /usr/libexec/ifwmpaprev
netatalk /usr/libexec/ifwpap
netatalk /usr/libexec/ifwpaprev
netatalk /usr/libexec/ofmpap
netatalk /usr/libexec/ofpap
netatalk /usr/libexec/ofwmpap
netatalk /usr/libexec/ofwpap
netatalk /usr/libexec/psa
netatalk /usr/libexec/psf
netatalk /usr/libexec/tfmpap
netatalk /usr/libexec/tfmpaprev
netatalk /usr/libexec/tfpap
netatalk /usr/libexec/tfpaprev
netatalk /usr/libexec/tfwmpap
netatalk /usr/libexec/tfwmpaprev
netatalk /usr/libexec/tfwpap
netatalk /usr/libexec/tfwpaprev
netatalk /usr/sbin/
netatalk /usr/sbin/afpd
netatalk /usr/sbin/atalkd
netatalk /usr/sbin/cnid_dbd
netatalk /usr/sbin/cnid_metad
netatalk /usr/sbin/papd
netatalk /usr/share/
netatalk /usr/share/aclocal/
netatalk /usr/share/aclocal/netatalk.m4
netatalk /usr/share/man/
netatalk /usr/share/man/man1/
netatalk /usr/share/man/man1/achfile.1.gz
netatalk /usr/share/man/man1/acleandir.1.gz
netatalk /usr/share/man/man1/aecho.1.gz
netatalk /usr/share/man/man1/afile.1.gz
netatalk /usr/share/man/man1/afppasswd.1.gz
netatalk /usr/share/man/man1/apple_cp.1.gz
netatalk /usr/share/man/man1/apple_mv.1.gz
netatalk /usr/share/man/man1/apple_rm.1.gz
netatalk /usr/share/man/man1/asip-status.pl.1.gz
netatalk /usr/share/man/man1/cnid_index.1.gz
netatalk /usr/share/man/man1/getzones.1.gz
netatalk /usr/share/man/man1/hqx2bin.1.gz
netatalk /usr/share/man/man1/macbinary.1.gz
netatalk /usr/share/man/man1/megatron.1.gz
netatalk /usr/share/man/man1/nbp.1.gz
netatalk /usr/share/man/man1/nbplkup.1.gz
netatalk /usr/share/man/man1/nbprgstr.1.gz
netatalk /usr/share/man/man1/nbpunrgstr.1.gz
netatalk /usr/share/man/man1/netatalk-config.1.gz
netatalk /usr/share/man/man1/pap.1.gz
netatalk /usr/share/man/man1/papstatus.1.gz
netatalk /usr/share/man/man1/psorder.1.gz
netatalk /usr/share/man/man1/single2bin.1.gz
netatalk /usr/share/man/man1/timeout.1.gz
netatalk /usr/share/man/man1/unbin.1.gz
netatalk /usr/share/man/man1/unhex.1.gz
netatalk /usr/share/man/man1/uniconv.1.gz
netatalk /usr/share/man/man1/unsingle.1.gz
netatalk /usr/share/man/man3/
netatalk /usr/share/man/man3/atalk_aton.3.gz
netatalk /usr/share/man/man3/nbp_name.3.gz
netatalk /usr/share/man/man4/
netatalk /usr/share/man/man4/atalk.4.gz
netatalk /usr/share/man/man5/
netatalk /usr/share/man/man5/AppleVolumes.default.5.gz
netatalk /usr/share/man/man5/afpd.conf.5.gz
netatalk /usr/share/man/man5/atalkd.conf.5.gz
netatalk /usr/share/man/man5/netatalk.conf.5.gz
netatalk /usr/share/man/man5/papd.conf.5.gz
netatalk /usr/share/man/man8/
netatalk /usr/share/man/man8/afpd.8.gz
netatalk /usr/share/man/man8/atalkd.8.gz
netatalk /usr/share/man/man8/cnid_dbd.8.gz
netatalk /usr/share/man/man8/cnid_metad.8.gz
netatalk /usr/share/man/man8/papd.8.gz
netatalk /usr/share/man/man8/papstatus.8.gz
netatalk /usr/share/man/man8/psf.8.gz
netatalk /usr/share/man/man8/timelord.8.gz
netatalk /usr/share/netatalk/
netatalk /usr/share/netatalk/pagecount.ps
netatalk /var/
netatalk /var/spool/
netatalk /var/spool/netatalk/
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
/etc/rc.d/atalkd
This is what you want (I think).
Offline
Tom, you should be glad you're in Philly and I'm across the pond otherwise I'd kiss you
Cheers and your next pint is on me
I've learned a lot thanks to your gentle nudges in the right direction. Much appreciated.
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
No problem! Good luck!
Offline
is it difficult to set this package up for x86_64? I am new to Arch, coming from Gentoo...
Offline
Nope, it is a doddle once you know how!
Make sure you have everything on your system for building stuff (see wiki). Then go here http://aur.archlinux.org/packages.php?ID=10032 and download the tarball, PKGBUILD and scroll down to the patch. Copy and paste and save it as netatalk-bdb.patch in the build directory. Then enter makepkg and it should work.
Please come back in case of questions.
fwiw, here the PKGBUILD I used
# Contributor: William Udovich <nerdzrule7@earthlink.net>
pkgname=netatalk
pkgver=2.0.3
pkgrel=3
pkgdesc="A kernel level implementation of the AppleTalk Protocol Suite"
arch=('i686', 'x86_64')
url="http://netatalk.sourceforge.net"
options=('!libtool')
license="GPL"
backup=('etc/netatalk/afpd.conf' 'etc/netatalk/netatalk.conf' 'etc/netatalk/atalkd.conf' 'etc/netatalk/papd.conf' 'etc/netatalk/AppleVolumes.default' 'etc/netatalk/AppleVolumes.system')
depends=('libcups' 'tcp_wrappers' 'avahi' 'openssl' 'pam')
source=(http://dl.sourceforge.net/sourceforge/netatalk/netatalk-$pkgver.tar.bz2 \
afpd-zeroconf.diff zeroconf.diff \
afpd atalkd papd netatalk-xfs.patch newerdb.patch netatalk-bdb.patch)
md5sums=('28092763085783805dc2f00aa2127a3e' \
'6346de9e3633ece69842a586c5f4986c' '83e74461d3323e4679eb8190c7f10613'\
'15967f6dc663394fc23ea24f0fb499d5' '2d05de4a16faf7d4af21b5f14e33fa82'\
'b16a687c96dd1ca7ffefd7c995356c0d' 'a1e73577e8378dc4344f7f6cb8931210'
'639bb4691ca75d255c6f34b82e23b06a' 'f2e89e25768d7a0514221330623f0a56')
build() {
cd $startdir/src/netatalk-$pkgver
patch -Np0 -i ../afpd-zeroconf.diff
patch -p1 -i ../zeroconf.diff
patch -p1 -i ../netatalk-xfs.patch
patch -p1 -i ../newerdb.patch
patch -p1 -i ../netatalk-bdb.patch
./configure --prefix=/usr --with-ssl-dir=/usr --localstatedir=/var --enable-fhs --enable-zeroconf=/usr --disable-srvloc --without-xfs
make || return 1
make DESTDIR=$startdir/pkg install
mv $startdir/pkg/usr/include/netatalk{,2}
install -d $startdir/pkg/etc/rc.d
install -m755 ../{afpd,atalkd,papd} $startdir/pkg/etc/rc.d
}
And here the patch:
diff -ur netatalk-2.0.3.orig/bin/cnid/cnid_index.c netatalk-2.0.3/bin/cnid/cnid_index.c
--- netatalk-2.0.3.orig/bin/cnid/cnid_index.c 2005-04-10 14:49:18.000000000 +0200
+++ netatalk-2.0.3/bin/cnid/cnid_index.c 2009-01-19 11:04:21.000000000 +0100
@@ -274,7 +274,7 @@
DB_BTREE_STAT *sp;
DB *db = db_table[dbi].db;
- ret = db->stat(db, &sp, 0);
+ ret = db->stat(db, NULL, &sp, 0);
if (ret) {
LOG(log_error, logtype_cnid, "error getting stat infotmation on database: %s", db_strerror(errno));
diff -ur netatalk-2.0.3.orig/etc/cnid_dbd/dbif.c netatalk-2.0.3/etc/cnid_dbd/dbif.c
--- netatalk-2.0.3.orig/etc/cnid_dbd/dbif.c 2004-12-21 14:36:12.000000000 +0100
+++ netatalk-2.0.3/etc/cnid_dbd/dbif.c 2009-01-19 11:04:28.000000000 +0100
@@ -514,7 +514,7 @@
DB_BTREE_STAT *sp;
DB *db = db_table[dbi].db;
- ret = db->stat(db, &sp, 0);
+ ret = db->stat(db, NULL, &sp, 0);
if (ret) {
LOG(log_error, logtype_cnid, "error getting stat infotmation on database: %s", db_strerror(errno));
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
Thanks that worked. Now I just have to figure out why my connections are failing... I have used the same config files I have on my Gentoo server for apple shares.
Edit: really helps to check /etc/hosts.allow!
Last edited by cwall64 (2009-03-17 17:21:20)
Offline
Hm, I can see my deskarch (192.168.1.100) on the OSX machine but connection fails every time. My hosts.allow
sshd: ALL
nfsd: 192.168.1.1/255.255.255.0
portmap: 192.168.1.1/255.255.255.0
mountd: 192.168.1.1/255.255.255.0
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
Pages: 1