diff --git a/pkg.info b/pkg.info index 229dbb9..0d19067 100644 --- a/pkg.info +++ b/pkg.info @@ -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 diff --git a/source.sh b/source.sh index 84df6a4..c7f34b8 100644 --- a/source.sh +++ b/source.sh @@ -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 }