### this file is sourced not run
PKGVER=1.2.6
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=miredo-$PKGVER.tar.xz
MD5SUM=5bcdbaced54f40b6cb1e9c9a8dbac411 
SRC_URL=http://www.remlab.net/files/miredo/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="miredo: miredo $PKGVER (IPv6 tunnel)  
miredo:  
miredo: Miredo is an open-source Teredo IPv6 tunneling software, for Linux and 
miredo: the BSD operating systems. It includes functional implementations of 
miredo: all components of the Teredo specification (client, relay and server). 
miredo: It is meant to provide IPv6 connectivity even from behind NAT devices. 
miredo:  
miredo: 
miredo: 
miredo: 
miredo: http://www.remlab.net/miredo/ 
"

### default pkg_download
### default pkg_prepare
### package - add startup script
pkg_package() {
	mkdir -p etc/init.d &&
	cp $CHROOT_DIR/tmp/pkg/55-miredo etc/init.d
}

### build
pkg_build() {
	pkg_build_autoconf &&
	pkg_build_slackdesc &&
	
	# replace the default server to teredo.trex.fi
	sed -i -e 's/^ServerAddress/#ServerAddress/' /etc/miredo/miredo.conf &&
	echo "ServerAddress teredo.trex.fi" >> /etc/miredo/miredo.conf
}


