OpenWrt Forum Archive

Topic: Build Netgear WNDR3700 Image with additional packages or compile them

The content of this topic has been archived on 24 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,
I want to install additional packages like dsniff because users should only access websites from an whitelist.
Some of these websites are SSL so I cannot use a proxy because I'm getting certificate errors.
I created topics but that doesn't brought me to my target:
[1] https://forum.openwrt.org/viewtopic.php?id=44559
[2] https://forum.openwrt.org/viewtopic.php?id=46694

I have installed the following image:
[3] http://downloads.openwrt.org/attitude_a … actory.img

But as you know the dsniff, libpcap and other packages are not on the feed but it is on the sources:
[4] http://downloads.openwrt.org/sources/

Package: dsniff
Version: 2.4b1-2
Depends: libpcap, libnids, libnet0, libopenssl, libgdbm
Source: /home/san1/tests/openwrt/packages/net/dsniff
Section: net
Priority: optional
Maintainer: OpenWrt Developers Team <openwrt-devel@openwrt.org>
Architecture: mipsel
Description: A collection of tools for betwork auditing and penetration testing

I installed the buildroot on debian wheezy following this wiki site: [5] http://wiki.openwrt.org/doc/howto/buildroot.exigence
I applied the steps 1, 2, 4 and 5. On step 3 I did this:

cd ~/openwrt/trunk
./scripts/feeds update -a

Then I searched and found the package dsniff with find ~/openwrt/trunk/ -name *dsniff*

/home/user/openwrt/trunk/tmp/info/.packageinfo-feeds_packages_dsniff
/home/user/openwrt/trunk/feeds/packages/net/dsniff
/home/user/openwrt/trunk/feeds/packages.tmp/info/.packageinfo-net_dsniff
/home/user/openwrt/trunk/package/feeds/packages/dsniff

Now I have 2 possibilities:
1. compile the necessary packages, create an ipk and install it
2. select the necessary packages in make menuconfig and build an own image

For possiblility 1.: How to do this?
Normally I do this on the machine I work:

./configure
make
make install

For possiblility 2.: Where can I find the settings file with which the image [3] has been created so that I can load it in make menuconfig to be sure to build the same working image?
At the moment I cannot select dsniff in make menuconfig.

More ressources I found:
[6] http://wiki.openwrt.org/doc/howto/build
[7] http://wiki.openwrt.org/doc/devel/crosscompile
[8] https://forum.openwrt.org/viewtopic.php?id=24779
[9] https://forum.openwrt.org/viewtopic.php?id=20224
[10] http://wiki.openwrt.org/doc/howto/obtai … e.generate
[11] http://hanez.org/openwrt-building-softw … kages.html

(Last edited by blueice_haller on 14 Oct 2013, 15:29)

Have you already done "./scripts/feeds install -a" ?
That is needed before make menuconfig. 

First select the package in make menuconfig
Then say "make package/XXX/compile"

Then transfer the opkg installable package XXX-xxx.ipk from <buildroot>/bin/ar71xx/ you your router (via ftp, scp, or whatever you have installed...). Transfer it e.g. to router's /tmp directory

Then login to router console and say "opkg install /tmp/XXX-xxx.ipk".


EDIT:
Why don't you install those packages from the 12.09 package repository?
Ready-compiled add-on packages are there.
opkg update
opkg install xxxx

(Last edited by hnyman on 14 Oct 2013, 15:08)

I have done "./scripts/feeds install -a"  but make menuconfig does not show dsniff under Network --->.

Are you sure?

root@WNDR3700:~# opkg update
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/attitude_adjustment.
root@WNDR3700:~# opkg install dsniff
Unknown package 'dsniff'.
Collected errors:
 * opkg_install_cmd: Cannot install package dsniff.
root@WNDR3700:~# opkg search *dsniff*
root@WNDR3700:~# opkg list | grep dsniff
root@WNDR3700:~#

(Last edited by blueice_haller on 14 Oct 2013, 15:19)

The package is there, only it is marked as broken, to make it visible:
# make menuconfig
go into the submenu:  Advanced configuration options (for developers)
and select Show broken platforms / packages
then all the packages marked as broken can be selected.

Package dsniff is under the submenu: Network

to compile and create the ipk you can type:
# make package/dsniff/{compile,install}
the package (.ipk) then can be found under ./bin/*/packages/

Anyway goodluck.

https://dev.openwrt.org/changeset/33222 … f/Makefile
http://wiki.openwrt.org/doc/devel/packa … ency.types
http://wiki.openwrt.org/doc/howtobuild/single.package

(Last edited by FriedZombie on 14 Oct 2013, 23:25)

The discussion might have continued from here.