Skip to content

Commit

Permalink
tftp-hpa: build for cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Jan 30, 2025
1 parent 46af768 commit 0046e34
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
6 changes: 4 additions & 2 deletions tftp-hpa/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down Expand Up @@ -33,7 +33,7 @@ sha256sums=('afee361df96a2f88344e191f6a25480fd714e1d28d176c3f10cc43fa206b718b'
'3dcc0ca2e47c7b9cf789fe125ecd29318f7ced1c303c6427a182250db0d11343'
'43d6964a88f9ad6d4ef035ce9576f15176b2d37418d6dda421398c93b842891c'
'4862bc4bf61b8abbcfc22c4bc6714a5cf8d52e9db1b1d7f7b4c5059ef89ced2f'
'bc7a2a6a03846b76680d6e8745607c52225d42efc09f299e3b61578bb22f3bf8')
'ddfef9d17160bfc6cbd2e66180ab874dec93f0ab6eebea85a18afcac6b5f0422')

prepare() {
cd ${pkgname}-${pkgver}
Expand Down Expand Up @@ -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 \
Expand Down
19 changes: 7 additions & 12 deletions tftp-hpa/msysize.patch
Original file line number Diff line number Diff line change
@@ -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@[email protected] -liberty@g'` ;;
+ esac
+ ;;
esac
esac

PA_SEARCH_LIBS_AND_ADD(bsd_signal, bsd, bsdsignal)

0 comments on commit 0046e34

Please sign in to comment.