Navigation


Changeset 498:753c9ed8f19a in freeDiameter for contrib


Ignore:
Timestamp:
Aug 17, 2010, 3:04:50 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Initial working freeDiameter package

Location:
contrib/OpenWRT
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • contrib/OpenWRT/HOWTO

    r491 r498  
    66
    77Table of contents:
     80) Quick HOWTO: optimistic step-by-step instructions.
    891) Prerequisites: get the OpenWRT development environment ready.
    9102) Supplied packages: use the existing packages when possible (gnutls, ...)
     
    1617
    1718
     19==============================================
     200) Quick HOWTO
     21==============================================
     22The following instructions should allow you to put freeDiameter on your OpenWRT-compatible router.
     23In case something goes wrong, you should follow the detailed instructions in the remaining of
     24this file.
     25
     26Be warned: playing with the software in your router may brick it, i.e. make it unusable forever.
     27Do it at your own risk.
     28
     291) Get the OpenWRT environment:
     30$ git clone git://nbd.name/openwrt.git
     31$ cd openwrt
     32
     332) Get the feeds
     34$ cp feeds.conf.default feeds.conf
     35$ echo "src-hg freediameter http://www.freediameter.net/hg/fD-OWRT-packages" >> feeds.conf
     36$ scripts/feeds update
     37$ scripts/feeds install freeDiameter
     38
     393) Configure your image
     40$ make menuconfig
     41(set Target System and Target Profile as needed for your equipment)
     42
     43- Network --->
     44   freeDiameter (M)
     45
     464) Build the image and packages, this takes a while
     47$ make world
     48
     495) Export the bin/* directory through a webserver.
     50   We assume it is available at http://192.168.1.25/owrt
     51   
     526) Flash the router with your new image -- THIS DESTROYS ALL CONFIG ON THE ROUTER!
     53$ ssh root@192.168.1.1
     54# cd /tmp
     55# wget http://192.168.1.25/owrt/openwrt-brcm47xx-squashfs.trx
     56    ;; change the file name with yours
     57# mtd -r write openwrt-brcm47xx-squashfs.trx linux
     58    ;; wait for reboot
     59$ telnet 192.168.1.1
     60# passwd
     61# sync
     62
     637) Update the opkg router's config to get your new packages
     64ssh root@192.168.1.1
     65# echo "src/gz chavroux http://192.168.1.25/owrt/packages" >> /etc/opkg.conf
     66# opkg update
     67
     688) Install freeDiameter, you're done. Optionnaly, install also certtool and libgnutls-extra on the router before, to
     69   generate the TLS certificate.
     70# opkg install freeDiameter
    1871
    1972==============================================
     
    184237
    185238Now, your environment should be ready to compile the freeDiameter ipkg package.
    186 $ ./scripts/feeds install freediameter
    187 
    188 Note that in order to build this package, you need to have cmake on your compilation machine.
     239$ scripts/feeds install freeDiameter
     240
     241Note that in order to build this package, you need to have cmake & flex on your compilation machine.
    189242
    190243$ make menuconfig
  • contrib/OpenWRT/packages/sctp/Makefile

    r491 r498  
    4747                $(PKG_INSTALL_DIR)/usr/lib/libsctp.so* \
    4848                $(1)/usr/lib/
     49        # And in staging for dependent packages
     50        $(INSTALL_DIR) $(STAGING_DIR)/usr/include/netinet
     51        $(CP) \
     52                $(PKG_INSTALL_DIR)/usr/include/netinet/* \
     53                $(STAGING_DIR)/usr/include/netinet/
     54        $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
     55        $(CP) \
     56                $(PKG_INSTALL_DIR)/usr/lib/libsctp.so* \
     57                $(STAGING_DIR)/usr/lib/
     58       
    4959endef
    5060
     
    7080     $(call AutoLoad,30,crc32c libcrc32c,1) \
    7181     $(call AutoLoad,35,sctp)
    72   DEPENDS:=@LINUX_2_6 +kmod-crypto-core +kmod-crypto-misc
     82  DEPENDS:=@LINUX_2_6 +kmod-crypto-core +kmod-crypto-misc +kmod-crypto-md5 +kmod-crypto-hmac
    7383endef
    7484
Note: See TracChangeset for help on using the changeset viewer.