Last active
December 16, 2015 06:09
-
-
Save pbosetti/5389022 to your computer and use it in GitHub Desktop.
Compiling Netatalk 3.0.2 on debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Steps needed to build a .deb package for Netatalk 3.0.2 and install it | |
# Copy and paste one block at a time to your console. | |
# Get the source | |
wget http://prdownloads.sourceforge.net/netatalk/netatalk-3.0.2.tar.gz | |
tar xvf netatalk-3.0.2.tar.gz | |
cd netatalk-3.0.2 | |
# install prerequisites | |
sudo apt-get install avahi-daemon libavahi-client-dev libgcrypt11 libgcrypt11-dev | |
sudo apt-get install automake libtool build-essential pkg-config checkinstall libdb-dev | |
# Compile | |
./configure --with-init-style=debian --with-zeroconf --enable-debian | |
make | |
# Build the .deb package | |
export NETATALK_V=$(date +%Y%m%d%H%M) | |
sudo checkinstall --pkgname=netatalk3 --pkgversion=$NETATALK_V --backup=no --deldoc=yes --default --fstrans=no | |
# remove netatalk 2: | |
sudo dpkg --purge netatalk | |
# install: | |
sudo dpkg -i $(ls -t netatalk3_$NETATALK_V*.deb | head -1) | |
# symlink executable | |
sudo ln -s /usr/local/sbin /sbin | |
# customize | |
sudo pico /usr/local/etc/afp.conf | |
# Enable extended attributes on root vol: | |
# add ,user_xattr to options for / in /etc/fstab | |
# and remount the root volume | |
sudo mount -o remount / | |
# start server | |
sudo /etc/init.d/netatalk start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment