|
|

楼主 |
发表于 2005-6-2 11:13:17
|
显示全部楼层
请您在试用之后提出宝贵的意见,我希望把这个工具做得更好。用它安装软件的方式是
只要加上 PRETEND=1,就可以得到一个 shell 函数,dipmt 会调用这个函数来完成用户希望的操作:
- $ dipmt PRETEND=1 package-name
复制代码
例如:
- # dipmt PRETEND=1 xorg-x11
- Based on your settings, operations on package
- xorg-x11-6.8.2-r1
- will be performed. Below is the generated dipmt_do function. Dipmt will
- call this function to do what you want. All functions within dipmt_do
- are defined in either
- /usr/dipmt/x11-base/xorg-x11/xorg-x11-6.8.2-r1.ass
- or scripts with the same last name in directory
- /usr/lib/dipmt/act
- dipmt_do()
- {
- :
- ftc
- clean1
- src_unpack
- usestr
- src_compile
- src_test
- preinst
- src_install
- merge
- postinst
- pkg_config
- clean2
- dinstall
- }
复制代码
如果用户没有修改设置,dipmt 里调用的函数如 clean1、src_unpack 等都会在 /usr/lib/dipmt/act 里,或者在 /usr/dipmt/CATEGORY/PACKAGE-NAME 里的脚本里(脚本里的优先级高)。由于我对安装过程的认识还不太深刻,现在最需要帮助的是 merge 和 unmerge 的更合理的实现。不知道哪位能帮助我。 |
|