工具/软件:Linux
您好!
我想为 tnftpd 创建 IPK 软件包。
据我所知、我可以向 Arago 项目添加图层和方法来构建 ipks。
我们还有其他简单的方法来实现这一点吗? 或在目标 EVM 板中创建。
提前感谢。
此致。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:Linux
您好!
我想为 tnftpd 创建 IPK 软件包。
据我所知、我可以向 Arago 项目添加图层和方法来构建 ipks。
我们还有其他简单的方法来实现这一点吗? 或在目标 EVM 板中创建。
提前感谢。
此致。
您好、Robert、
使用 OE 构建系统创建 IPK 文件非常容易。 您只需将 tnftpd_20130325.bb 配方复制到 /sources/meta-openembedded/meta-networking/recipes-support/tnftp 和 tnftpd-autotools.patch /sources/meta-openembedded/meta-networking/recipes-support/tnftp/tnftpd 目录、然后运行 machine=am335x-evm bitbake tnftpd -c DO _package_write_ipk 命令。
或者、您也可以通过使用下面填充的内容创建控制和数据目录来手动构建这三个目录中的 IPK。
/控制
封装:tnftpd
版本:20130325-r0
说明:增强型 NetBSD FTP 服务器
tnftpd (以前称为 lukemftpd)是 NetBSD FTP 服务器的端口
其他系统。 与传统 BSD 相比、它提供了许多增强功能
FTP 服务器、包括命令行编辑、FTP 的命令行提取
和 HTTP URL (包括通过代理)、FTP URL 的命令行上载、
上下文相关的单词完成、动态进度条、IPv6支持、
修改时间保留、本地和远程文件寻呼、被动
模式支持(可回退至活动模式)、SOCKS 支持、TIS FWTK
Gate-FTP 服务器支持和传输速率限制。
部分:净额
优先级:可选
维护人员:OE 内核开发人员
许可证:BSD-4-Clause
架构:armv7ahf-neon
OE:tnftpd
取决于:libc6 (>=2.25), update-options-opkg
资料来源:tnftpd_20130325.bb
/postinst
!/bin/sh
更新替代方法--install /usr/bin/ftpd ftpd /usr/libexec/tnftpd 100
/prerm
!/bin/sh
更新替代方法--install /usr/bin/ftpd ftpd /usr/libexec/tnftpd 100
使用 tnftpd 二进制文件创建数据目录。
/usr/libexec/tnftpd
使用 opkg-build 命令创建 IPK。
用法:./opkg-build [-c][-C][-Z 压缩机][-o][-o 所有者][-g 组] [ ]
如果您的计算机中没有构建操作系统、您可以在中找到一个 /build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/opkg-utils-native /image/ /build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/opkg-utils-native /recipe-sysroot-native/usr/bin 目录。
要在目标 EVM 板中创建 IPK、您需要从安装 opkg-utils 包 /build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/opkg-utils /deploy-ipks/armv7ahf-neon 在 EVM 中、本机编译 tnftpd 并使用上述相同的填充内容创建相同的控制和数据目录、并使用相同的 opkg-build 命令创建 IPK。
此致、
Kemal