Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Zaurus 中文论坛 Forum Index » pdaXrom & debain & openBSD

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
我的ipkg打包工具,不用建工作目录,自带control文件模板和安装脚本模板
View previous topic :: View next topic  
Author Message
joerkky



Joined: 10 Dec 2006
Posts: 75

小企鹅: 2359

PostPosted: 2007-Mar-01 Thu, pm3:03 Reply with quote
 Post subject: 我的ipkg打包工具,不用建工作目录,自带control文件模板和安装脚本模板

pdaxrom的ipkg打包脚本,制作ipk文件的时候使用。

把ipkgmake拷贝到/usr/bin下,制作ipk文件的时候输入命令:
ipkgmake [-i] 包名 版本号 文件列表
即可
-i开关是是否使用安装脚本。安装脚本包括preinst,postinst,prerm,postrm,分别是安装前执行,安装后配置,删除前执行,删除后配置。
比如打包fcitx:

ipkgmake fcitx 3.4.1 /usr/local/bin/fcitx /usr/local/share/fcitx/* /usr/local/bin/mb2*
这个命令会在当前目录生成一个不带安装脚本的ipk包。首先输入上面的命令,ipkgmake会调用leafpad来编辑control文件,你可以在里面输入你想输入的内容。输入完保存之后关闭leafpad,程序就会在当前目录生成一个叫做fcitx-3.4.1.ipk的包。

如果你想使用安装脚本,输入:
ipkgmake -i fcitx 3.4.1 /usr/local/bin/fcitx /usr/local/sharefcitx/* /usr/local/bin/mb2*
ipkgmake首先会调用leafpad来编辑control文件,编辑保存后然后会调用leafpad编辑脚本文件。你可以在脚本文件中添加你的代码。



ipkgmake.zip
 Description:

Download
 Filename:  ipkgmake.zip
 Filesize:  831 Bytes
 Downloaded:  47 Time(s)

Back to top
View user's profile Send private message
Display posts from previous:     
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Zaurus 中文论坛 Forum Index » pdaXrom & debain & openBSD All times are GMT + 8 Hours
Page 1 of 1

 
Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

[ 页面生成时间: 秒 ] :: [ 次查询 ] :: [ ]
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional