Fix dependencies, fix tgetent error, add comments and add license
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user