|
|
1.小弟尝试制作了一下 benliud 的 ebuild。主要问题有三:一是无法确定程序的依赖关系,我用 ldd 得到“not a dynamic executable”;二是无法确定下载地址,下载是在 googlegroup 下,地址不确定;三是可能非常不标准,我是在 ebuild 中用 echo 创建 desktop 文件,好像是不可以的。
- # Copyright 1999-2008 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- # $Header: $
- DESCRIPTION="A fast BT download client"
- HOMEPAGE="http://groups.google.com/group/benliud"
- SRC_URI="benliud-socrates-u710.tar.bz2
- newlogo_48.png"
- SLOT="0"
- IUSE=""
- LICENSE=""
- KEYWORDS="~x86"
- RDEPEND="x11-libs/gtk+
- gnome-base/libglade
- dev-cpp/libglademm
- "
- RESTRICT="fetch mirror"
- pkg_nofetch() {
- einfo "As the addresses of the files are always changing, you should"
- einfo "download them by yourself. Visit:"
- einfo "${HOMEPAGE}/files"
- einfo "and download following files:"
- einfo ${SRC_URI}
- einfo "Then place them into ${DISTDIR} and restart the emerge."
- }
- src_unpack() {
- unpack benliud-socrates-u710.tar.bz2
- }
- src_install() {
- insinto /usr/share/icons/hicolor/48x48/apps
- newins ${DISTDIR}/newlogo_48.png benliud.png
- dodir /opt/benliud
- chown -R root:root ${D}/opt/benliud/
- chmod -R 755 ${D}/opt/benliud/
- cp -rf * ${D}/opt/benliud
- echo "[Desktop Entry]" >> benliud.desktop
- echo "Name=Benliud" >> benliud.desktop
- echo "Comment=A fast BT client" >> benliud.desktop
- echo "Exec=/opt/benliud/benliud %U" >> benliud.desktop
- echo "Icon=/usr/share/icons/hicolor/48x48/apps/benliud.png" >> benliud.desktop
- echo "Terminal=false" >> benliud.desktop
- echo "Type=Application" >> benliud.desktop
- echo "Categories=Application;Network;" >> benliud.desktop
- insinto /usr/share/applications
- doins benliud.desktop
- }
复制代码
2.
问题表述:我已经在内核中使用 Asus/Medion Laptop Extras 选项。在 Alt+F12 上看到使用静音等键有反应,但是使用<多媒体键设置指南>中 showkey 命令,无论 -s 或 -k 后按相应键均无反应。请教如何设置?
历史表述:新内核要求用内核中 Asus Extra 选项以代替 acpi4asus,但是我开了那个选项 xev 却一样无法识别我的快捷键。有何解决办法?
谢谢大家! |
|