Fix dependencies, fix tgetent error, add comments and add license

This commit is contained in:
2025-05-11 12:11:54 +03:00
parent 5ed412cef5
commit 220f58c8e8
2 changed files with 11 additions and 4 deletions
+2 -3
View File
@@ -1,10 +1,9 @@
name: inetutils
description: A collection of common network program
version: 2.5
revision: 2
revision: 3
url: https://www.gnu.org/software/inetutils/
license: GPL3-or-later
architecture: any
depends: ["gcc","glibc","ncurses","readline"]
make_depends: ["bash","binutils","coreutils","gcc","glibc","grep","make","ncurses","patch","sed","texinfo","zlib"]
depends: ["glibc","ncurses","readline"]
type: source
+9 -1
View File
@@ -15,6 +15,9 @@ prepare() {
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
# Fix tgetent error
sed -i 's/def HAVE_TERMCAP_TGETENT/ 1/' telnet/telnet.c
./configure --prefix=/usr \
--bindir=/usr/bin \
--localstatedir=/var \
@@ -38,6 +41,11 @@ check() {
# This function is used to move the compiled files into the output directory
package() {
make DESTDIR="$BPM_OUTPUT" install
mkdir -p "$BPM_OUTPUT"/usr/sbin
# Move ifconfig to sbin directory
install -d "$BPM_OUTPUT"/usr/sbin
mv -v "$BPM_OUTPUT"/usr/{,s}bin/ifconfig
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/inetutils/COPYING
}