Fix dependencies, fix tgetent error, add comments and add license
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
name: inetutils
|
name: inetutils
|
||||||
description: A collection of common network program
|
description: A collection of common network program
|
||||||
version: 2.5
|
version: 2.5
|
||||||
revision: 2
|
revision: 3
|
||||||
url: https://www.gnu.org/software/inetutils/
|
url: https://www.gnu.org/software/inetutils/
|
||||||
license: GPL3-or-later
|
license: GPL3-or-later
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["gcc","glibc","ncurses","readline"]
|
depends: ["glibc","ncurses","readline"]
|
||||||
make_depends: ["bash","binutils","coreutils","gcc","glibc","grep","make","ncurses","patch","sed","texinfo","zlib"]
|
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -15,6 +15,9 @@ prepare() {
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
|
# Fix tgetent error
|
||||||
|
sed -i 's/def HAVE_TERMCAP_TGETENT/ 1/' telnet/telnet.c
|
||||||
|
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--bindir=/usr/bin \
|
--bindir=/usr/bin \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
@@ -38,6 +41,11 @@ check() {
|
|||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
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
|
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