tftp-hpa: build for cygwin

This commit is contained in:
Christoph Reiter 2025-01-30 08:52:49 +01:00
parent 46af768d94
commit 0046e3410a
2 changed files with 11 additions and 14 deletions

View File

@ -2,7 +2,7 @@
pkgname=tftp-hpa
pkgver=5.2
pkgrel=4
pkgrel=5
pkgdesc="Official tftp server"
arch=('i686' 'x86_64')
url="https://www.kernel.org/pub/software/network/tftp/tftp-hpa/"
@ -33,7 +33,7 @@ sha256sums=('afee361df96a2f88344e191f6a25480fd714e1d28d176c3f10cc43fa206b718b'
'3dcc0ca2e47c7b9cf789fe125ecd29318f7ced1c303c6427a182250db0d11343'
'43d6964a88f9ad6d4ef035ce9576f15176b2d37418d6dda421398c93b842891c'
'4862bc4bf61b8abbcfc22c4bc6714a5cf8d52e9db1b1d7f7b4c5059ef89ced2f'
'bc7a2a6a03846b76680d6e8745607c52225d42efc09f299e3b61578bb22f3bf8')
'ddfef9d17160bfc6cbd2e66180ab874dec93f0ab6eebea85a18afcac6b5f0422')
prepare() {
cd ${pkgname}-${pkgver}
@ -65,7 +65,9 @@ build() {
CFLAGS+=" -fcommon"
local CYGWIN_CHOST="${CHOST/-msys/-cygwin}"
./configure --prefix=/usr \
--build=${CYGWIN_CHOST} \
--mandir=/usr/share/man \
--sbindir=/usr/bin \
--without-tcpwrappers \

View File

@ -1,16 +1,11 @@
--- tftp-hpa-5.2-orig/configure.in 2014-12-12 13:15:56.678600000 +0300
+++ tftp-hpa-5.2/configure.in 2014-12-12 13:17:06.879400000 +0300
@@ -168,6 +168,13 @@
--- tftp-hpa-5.2/configure.in.orig 2025-01-30 07:54:22.617057900 +0100
+++ tftp-hpa-5.2/configure.in 2025-01-30 07:54:52.723183200 +0100
@@ -166,7 +166,7 @@
*-*-cygwin*)
case "$LIBS" in
*-liberty* )
LIBS=`echo $LIBS | sed -e 's@-liberty@-lcygwin -liberty@g'` ;;
esac
+ ;;
+ *-*-msys*)
+ case "$LIBS" in
+ *-liberty* )
- LIBS=`echo $LIBS | sed -e 's@-liberty@-lcygwin -liberty@g'` ;;
+ LIBS=`echo $LIBS | sed -e 's@-liberty@-lmsys-2.0 -liberty@g'` ;;
+ esac
+ ;;
esac
esac
PA_SEARCH_LIBS_AND_ADD(bsd_signal, bsd, bsdsignal)