I want to fork the wifidog project and compile my own version of it to install on my router. To begin compiling I copied the wifidog folder and modified the makefile with my own information. This is what I did:
svn co svn://svn.openwrt.org/openwrt/trunk/ openwrt-trunk
cd openwrt-trunk
./scripts/feeds update -a
./scripts/feeds install wifidog
cd feeds/packages/net/
cp -r wifidog copydog
vi copydog/Makefile
./scripts/feeds update -a
./scripts/feeds install copydog
Then I had some trouble, I got some errors about the toolchain so I downloaded that and replaced it in wifi-trunk:
cd ~
wget http://downloads.openwrt.org/attitude_adjustment/12.09-beta/ar71xx/generic/OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-0.9.33.2.tar.bz2
tar -jxvf OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-0.9.33.2.tar.bz2
mv OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-0.9.33.2 openwrt-toolchain
cd -r openwrt-toolchain/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2 ~/openwrt-trunk/staging_dir/
Then I tried to compile:
cd ~/openwrt-trunk
make menuconfig
make tools/install
But I had some errors on some link that was not replaceable with a directory:
cd staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/mips-openwrt-linux/
mv lib lib-old
make toolchain/install
make package/feeds/packages/copydog/compile V=99
But now I am getting some iptables error that libip4tc.so* is missing. This shouldn't be this hard to compile a package? What am I doing wrong?!