- Mitglied seit
- 24 Dez 2009
- Beiträge
- 15
- Punkte für Reaktionen
- 0
- Punkte
- 0
hey,
this topic belongs to a self-baked freetz package i will report about.
for everyone who dont know what i am going to talk about i will give a short abstract.
umurmur is a very small opensource teamspeak server based on murmur/mumble created to be run on routers using less resources than his big brother.
have a look at http://code.google.com/p/umurmur/ for the umurmur package.
in fact i wanted to use some kind of teamspeak in my home lan i thought about creating an umurmur package for freetz.
first of all some facts about my environment:
- freetz-1.1.2
- Fritz!Box Fon WLAN 7112
- Linux 2.6.13.1-ohio mips
what i had done
to start up i downloaded the umurmur sources for version 0.2.1.
as i read umurmur is able to use ssl so i decided to use polarssl because it requires less memory than the openssl library.
umurmur additionally needs libconfig and parts of libprotobuf_c.
the above mentioned sources provides at least the libprotobuf_c files.
i decided to create a source package including all dependency sources that are not yet included in the umurmur source.
a little bit of editing the make files of all sources and a few hours later i finally got as a result of crossbuilding a binary umurmurd staticlly linked to the polarssl and libconfig libraries included in my new firmware image.
the binary is approximately 400 up to 500 KB small.
what you need to do
in fact that this package is not included in freetz you need to add it manually so it can be found by 'make menuconfig' as mentioned at
http://trac.freetz.org/wiki/help/howtos/development/developer_information/package_development_start .
additinally u have to add the configuration file umurmur.conf which you can exemplarly find in the umurmur sources. you also have to add your generated certificate files key.key and cert.crt.
your config file has to be placed in the subdirectory of the freetz source: root/etc/umurmur.conf.
your certificatefiles schould be stored in here:
root/etc/umurmur/key.key.
root/etc/umurmur/cert.crt.
so they will be included into the systemstructure of the box system.
at least you need to edit the package specific make file in the freetz directory under make/umurmur/umurmur.mk. add the following contents so all headers and libraries can be found during compilation process:
when you now run 'make menuconfig' u can find the package where u placed it in the used Config.in files. choose it and it will be build using the freetz's crosscompiler
i hope its clear enough to retrace. do not skip the above links. perhaps u need to read them first to get this topic more clear.
this topic belongs to a self-baked freetz package i will report about.
for everyone who dont know what i am going to talk about i will give a short abstract.
umurmur is a very small opensource teamspeak server based on murmur/mumble created to be run on routers using less resources than his big brother.
have a look at http://code.google.com/p/umurmur/ for the umurmur package.
in fact i wanted to use some kind of teamspeak in my home lan i thought about creating an umurmur package for freetz.
first of all some facts about my environment:
- freetz-1.1.2
- Fritz!Box Fon WLAN 7112
- Linux 2.6.13.1-ohio mips
what i had done
to start up i downloaded the umurmur sources for version 0.2.1.
as i read umurmur is able to use ssl so i decided to use polarssl because it requires less memory than the openssl library.
umurmur additionally needs libconfig and parts of libprotobuf_c.
the above mentioned sources provides at least the libprotobuf_c files.
i decided to create a source package including all dependency sources that are not yet included in the umurmur source.
a little bit of editing the make files of all sources and a few hours later i finally got as a result of crossbuilding a binary umurmurd staticlly linked to the polarssl and libconfig libraries included in my new firmware image.
the binary is approximately 400 up to 500 KB small.
what you need to do
in fact that this package is not included in freetz you need to add it manually so it can be found by 'make menuconfig' as mentioned at
http://trac.freetz.org/wiki/help/howtos/development/developer_information/package_development_start .
additinally u have to add the configuration file umurmur.conf which you can exemplarly find in the umurmur sources. you also have to add your generated certificate files key.key and cert.crt.
your config file has to be placed in the subdirectory of the freetz source: root/etc/umurmur.conf.
your certificatefiles schould be stored in here:
root/etc/umurmur/key.key.
root/etc/umurmur/cert.crt.
so they will be included into the systemstructure of the box system.
at least you need to edit the package specific make file in the freetz directory under make/umurmur/umurmur.mk. add the following contents so all headers and libraries can be found during compilation process:
Code:
$(call PKG_INIT_BIN, 0.2.1)
$(PKG)_SOURCE:=umurmur-$($(PKG)_VERSION).tgz
$(PKG)_BINARY:=$($(PKG)_DIR)/umurmurd
$(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/bin/umurmurd
MY_UMURMUR_DIR:=/home/freetz/freetz-1.1.2/$(UMURMUR_DIR)
MY_CFLAGS:=-I$(MY_UMURMUR_DIR) -Wall -DUSE_POLARSSL -I$(MY_UMURMUR_DIR)/polarssl/include/ -I$(MY_UMURMUR_DIR)/libconfig/
lib/
$($(PKG)_BINARY): $($(PKG)_DIR)/.configured
PATH="$(TARGET_PATH)" \
$(MAKE) -C $(UMURMUR_DIR) all \
CC="$(TARGET_CC)" \
CFLAGS="$(MY_CFLAGS) $(TARGET_CFLAGS)" \
LDFLAGS="-static"
when you now run 'make menuconfig' u can find the package where u placed it in the used Config.in files. choose it and it will be build using the freetz's crosscompiler
i hope its clear enough to retrace. do not skip the above links. perhaps u need to read them first to get this topic more clear.