Re: [OpenWrt-Devel] [PATCH] Update dnsmasq to 2.66

2013-04-19 Thread g . esp


- Mail original -
 De: Christoph König christoph.koe...@gmail.com
 À: openwrt-devel@lists.openwrt.org
 Envoyé: Jeudi 18 Avril 2013 22:03:57
 Objet: [OpenWrt-Devel] [PATCH] Update dnsmasq to 2.66
 
 This patch updates dnsmasq to version 2.66
 

You probably should add the patch in
http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2013q2/007052.html

-  memset(buffer, 0, sizeof(buffer));
+  memset(buffer, 0, BUFF_SZ);


Gilles


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] About kernel package dev

2013-04-19 Thread schk00
 		 Hi OpenWRT Dev Team.I'm newbie openWRT developer and trying to do some practice with it.After looking up whole source of OpenWRT, I made a conclusion that my practice needs kernel packages about Network(ex. kmod-ipt-core...). So I found the way to download the source of these packages but failed to do it.Was my search ability awful? Or was it natural result?Is there any way for me to play with openwrt kernel packages? If so, Where can I find their source codes?I'll be happy if you send me reply about these questions.
 


	



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] About kernel package dev

2013-04-19 Thread Jiri Slachta
Dne 19.4.2013 14:59, schk00 napsal(a):
 Hi OpenWRT Dev Team.
 
  /divI'm newbie openWRT developer and trying to do some practice with it.
 After looking up whole source of OpenWRT, I made a conclusion that my 
 practice needs kernel packages about Network(ex. kmod-ipt-core...). So I 
 found the way to download the source of these packages but failed to do it.
 Was my search ability awful? Or was it natural result?
 
 Is there any way for me to play with openwrt kernel packages? If so, Where 
 can I find their source codes?
 
 I'll be happy if you send me reply about these questions.
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel
 

Hello schk00,

in short - the whole OpenWrt is based on OpenWrt buildroot - a set of patches, 
Makefiles and configure files. Those elements just says how to compile 
toolchain for OpenWrt and how to compilebuild the whole OpenWrt image by 
compiled toolchain. There's no such kernel source codes, just patches and 
Makefiles which defines what should be in kernel config, how should compiler 
compile it, what should be included in OpenWrt image etc..

I would suggest to explore the whole OpenWrt platform first. Also the whole 
source codes and existing packages are good way to understand how OpenWrt 
works. Take a look at buildroot documentation:

(quite outdated, but minor things have been changed) - 
http://downloads.openwrt.org/docs/buildroot-documentation.html
(Developing section) - http://wiki.openwrt.org/doc/start

There are several macro definitions which should be used for package creation - 
Build/Configure, Build/Compile, Build/InstallDev, 
{Package,KernelPackage}/name/install. Those are a bit descriptive, what those 
really does. Take a look at existing packages, it really helps a lot!

Also, please take a look at:

(Creating packages for kernel modules) - 
http://wiki.openwrt.org/doc/devel/packages

This wiki article shows the exact way how to create a kernel package in both 
ways - the module from within the kernel source code or third-party kernel 
module.

Happy experimenting and discovering OpenWrt world!

~ Jiri






___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] porting and packaging tlsdate to/for OpenWRT

2013-04-19 Thread Jacob Appelbaum
Hi,

I'm working on porting tlsdate to various different platforms as
documented here:

 https://github.com/ioerror/tlsdate/blob/master/INSTALL

OpenWRT is one platform where I'd like to see it available and sadly, I
don't have any systems with which to use or build OpenWRT at the moment.

I wonder if anyone could give me feedback? If this seems to build and is
useable, I'd be happy to put some more energy into it.

I've made a basic package and included it here as well as as an attachment:

#
# Copyright (C) 2008-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# Want to test this package? Try this:
# make package/tor-alpha/{clean,compile,install} V=99
#

include $(TOPDIR)/rules.mk

PKG_NAME:=tlsdate
PKG_VERSION:=0.0.6-git-tip
PKG_RELEASE:=1

# Eventually: PKG_SOURCE:=tlsdate-$(PKG_VERSION).tar.gz
# For testing we're using this url:
PKG_SOURCE:=tlsdate-git-tip-dist.tar.gz
PKG_SOURCE_URL:=https://people.torproject.org/~ioerror/src/
PKG_MD5SUM:=5c8d08478c731ae4abeca967342d1493
PKG_BUILD_DIR=$(BUILD_DIR)/tor-$(PKG_VERSION)/

PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

define Package/tlsdate
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=+libopenssl
  TITLE:=secure parasitic rdate replacement
  URL:=https://www.github.com/ioerror/tlsdate
endef

define Package/tlsdate/description
 tlsdate sets the local clock by securely connecting with TLS to remote
 servers and extracting the remote time out of the secure handshake. Unlike
 ntpdate, tlsdate uses TCP, for instance connecting to a remote HTTPS or TLS
 enabled service, and provides some protection against adversaries that
try to
 feed you malicious time information.
endef

define Package/tlsdate/conffiles
/etc/tlsdate/tlsdated.conf
/etc/tlsdate/ca-roots/tlsdate-ca-roots.conf
endef

CONFIGURE_ARGS += \
--with-ssl-dir=$(STAGING_DIR)/usr \

CONFIGURE_VARS += \
CROSS_COMPILE=yes \

# pass CFLAGS again to override -O2 set by configure
MAKE_FLAGS += \
CFLAGS=$(TARGET_CFLAGS) \

define Package/tlsdate/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tlsdate $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tlsdated $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tlsdate-helper $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tlsdate-routeup $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/tlsdate/
$(INSTALL_DIR) $(1)/etc/tlsdate/ca-roots/
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/tlsdate/tlsdated.conf
$(1)/etc/tlsdate/tlsdated.conf
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/tlsdate/tlsdate-ca-roots.conf
$(1)/etc/tlsdate/ca-roots/tlsdate-ca-roots.conf
endef

$(eval $(call BuildPackage,tlsdate))
# EOF

I'm open to suggestions - I'd like to add OpenWRT as an officially
supported build platform for tlsdate. I'd also like to ensure that it is
easy to install even for people who aren't interested in compiling it
from source themselves.

All the best,
Jacob
#
# Copyright (C) 2008-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# Want to test this package? Try this:
# make package/tor-alpha/{clean,compile,install} V=99
# 

include $(TOPDIR)/rules.mk

PKG_NAME:=tlsdate
PKG_VERSION:=0.0.6-git-tip
PKG_RELEASE:=1

# Eventually: PKG_SOURCE:=tlsdate-$(PKG_VERSION).tar.gz
# For testing we're using this url:
PKG_SOURCE:=tlsdate-git-tip-dist.tar.gz
PKG_SOURCE_URL:=https://people.torproject.org/~ioerror/src/
PKG_MD5SUM:=5c8d08478c731ae4abeca967342d1493
PKG_BUILD_DIR=$(BUILD_DIR)/tor-$(PKG_VERSION)/

PKG_INSTALL:=1

include $(INCLUDE_DIR)/package.mk

define Package/tlsdate
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=+libopenssl
  TITLE:=secure parasitic rdate replacement
  URL:=https://www.github.com/ioerror/tlsdate
endef

define Package/tlsdate/description
 tlsdate sets the local clock by securely connecting with TLS to remote
 servers and extracting the remote time out of the secure handshake. Unlike
 ntpdate, tlsdate uses TCP, for instance connecting to a remote HTTPS or TLS
 enabled service, and provides some protection against adversaries that try to
 feed you malicious time information.
endef

define Package/tlsdate/conffiles
/etc/tlsdate/tlsdated.conf
/etc/tlsdate/ca-roots/tlsdate-ca-roots.conf
endef

CONFIGURE_ARGS += \
--with-ssl-dir=$(STAGING_DIR)/usr \

CONFIGURE_VARS += \
CROSS_COMPILE=yes \

# pass CFLAGS again to override -O2 set by configure
MAKE_FLAGS += \
CFLAGS=$(TARGET_CFLAGS) \

define Package/tlsdate/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tlsdate $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tlsdated $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tlsdate-helper $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tlsdate-routeup