Tuesday, June 17, 2008

Perl Module IPK Packaging Building for OpenWRT/OptWare

After building several perl module packages for OpenWRT/optware, I found it's necessary to simplify the makefile. So, I rewrite the makefile as a template, which can be downloaded here. And now, the makefile for each module looks like this:

###########################################################
#
# perl-error
#
###########################################################

PERL-MODULE_BASENAME=perl-error
PERL-MODULE_ORG_BASENAME=Error
PERL-MODULE_SITE=http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF
PERL-MODULE_VERSION=0.17014

PERL-MODULE_MAINTAINER?=Yale Huang

include make/perl-module.mk.inc

Labels:

Monday, June 16, 2008

ipkg-make-index Patch for TAR Issue

When I'm setting up my ipkg repository, ipkg-make-index generated following error messages:


tar: Pattern matching characters used in file names. Please,
tar: use --wildcards to enable pattern matching, or --no-wildcards to
tar: suppress this warning.
tar: *control.tar.gz: Not found in archive
tar: Error exit delayed from previous errors


It's caused by incompatible tar options. It can be resolved by following patch:


--- ipkg.py.org 2008-06-16 12:01:25.000000000 +0800
+++ ipkg.py 2008-06-16 12:10:23.000000000 +0800
@@ -93,9 +93,9 @@
self.filename = os.path.basename(fn)
## sys.stderr.write(" extracting control.tar.gz from %s\n"% (fn,))
if self.isdeb:
- control = os.popen("ar p "+fn+" control.tar.gz | tar xfzO - '*control'","r")
+ control = os.popen("ar p "+fn+" control.tar.gz | tar xzO --wildcards -f - '*control'","r")
else:
- control = os.popen("tar xfzO "+fn+" '*control.tar.gz' | tar xfzO - '*control'","r")
+ control = os.popen("tar xzO --wildcards -f "+fn+" '*control.tar.gz' | tar xzO --wildcards -f - '*control'","r")
line = control.readline()
while 1:
if not line: break
@@ -122,7 +122,7 @@
if self.isdeb:
data = os.popen("ar p "+fn+" data.tar.gz | tar tfz -","r")
else:
- data = os.popen("tar xfzO "+fn+" '*data.tar.gz' | tar tfz -","r")
+ data = os.popen("tar xz0 --wildcards -f "+fn+" '*data.tar.gz' | tar tfz -","r")
while 1:
line = data.readline()
if not line: break

Labels:

Friday, June 6, 2008

Eee, 别长大

俺是瘾科技的 Fans , 原因之一是瘾科技有很多轻省笔电(好吧, 我承认, 这个名字不够雄壮). 可日见着各家的轻省笔电越长越大, 颇有点失望.

就我自己的情况来说, 不计那些邪恶的 OpenWRT boxes 和 Desktop, 光 Laptop 就已经有两台. 现在出门只会带那台轻的, 或者一台也不呆. 因为就算轻的那台, 加上电源也要 2.5kg 了. 在没有 Laptop 的时候, 就得靠 Nokia E61 了, 虽然比其它手机好点, 但打这样一个帖子也不是件轻松的事情. 所以, 一台 1kg 以内, 待机时间长, 开机迅速的机器的确是我所需. 当然, 还要足够便宜. 性能不必太强, 最常用的无非 Web, Mail, SSH, 偶尔看看视频而已.

所以, Eee PC 们, 请不要长大. 让我可以随时从小包里抽出来打几个字就好.

DKIM for OpenWRT

It's still possible to make my OpenWRT boxes work with DKIM. The mail server I have been using for 1 year is powered by XMail, which has no built-in support of DKIM. So, I have two can options: sendmail with a DKIM milter, or a DKIM proxy of perl. My gateway of Asus WL-500G may be not powerful enough for these services, but my Belkin with 64MB RAM should be. So, I'm setting up optware building env for customized ipkgs now. Wish it will work soon.

Labels:

Wednesday, June 4, 2008

Blocked Mails from LRFZ.com

This blog hasn't been updated for a long time. One of the reasons is mails from my mail server, the OpenWRT box, is blocked by various mail servers, including blogger.com. While mail is the most frequently used blog posting approach for me, quite some posts are blocked.So, I spent some hours on this issue, but still filled. I added SPF record for my domain, but the servers requires more than that: GMail requires DKIM, while Yahoo requires DomainKey. To match these requirements, I'll have to recompile sendmail with DKIM milter for my OpenWRT. So, I gave up at this moment and started to write this post with another mail account hosted at Google. Maybe I will build the package later.

Labels: