summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rwxr-xr-xnet/xinetd/BUILD9
-rwxr-xr-xnet/xinetd/DEPENDS6
-rw-r--r--net/xinetd/HISTORY3
-rwxr-xr-xnet/xinetd/PRE_BUILD2
4 files changed, 18 insertions, 2 deletions
diff --git a/net/xinetd/BUILD b/net/xinetd/BUILD
index 87f2e17022..c58882bb99 100755
--- a/net/xinetd/BUILD
+++ b/net/xinetd/BUILD
@@ -1,4 +1,11 @@
-export LIBS=$LDFLAGS && # Makes stripping work
+case "$HOST" in
+ (*-musl)
+ CFLAGS+=" $(pkg-config libtirpc --cflags)" &&
+ LIBS+=" $(pkg-config libtirpc --libs)" &&
+ OPTS+=' xinetd_cv_type_rlim_t=yes'
+esac &&
+LIBS+=" $LDFLAGS" && # Makes stripping work
+export LIBS &&
OPTS="$XINETD_IPV6 \
$XINETD_LOADAVG \
diff --git a/net/xinetd/DEPENDS b/net/xinetd/DEPENDS
index 6bc3731889..b14a51ba60 100755
--- a/net/xinetd/DEPENDS
+++ b/net/xinetd/DEPENDS
@@ -1,3 +1,9 @@
+case "$HOST" in
+ (*-musl)
+ depends pkgconfig &&
+ depends libtirpc
+ ;;
+esac &&
depends SYSTEM-LOGGER &&
optional_depends tcp_wrappers \
diff --git a/net/xinetd/HISTORY b/net/xinetd/HISTORY
index e36025edaf..79ed9b9737 100644
--- a/net/xinetd/HISTORY
+++ b/net/xinetd/HISTORY
@@ -1,3 +1,6 @@
+2021-07-16 Ismael Luceno <ismael@sourcemage.org>
+ * BUILD, DEPENDS, PRE_BUILD: Fixed build against musl
+
2016-05-05 Vlad Glagolev <stealth@sourcemage.org>
* DETAILS: updated mirror to ftp.sourcemage.us
diff --git a/net/xinetd/PRE_BUILD b/net/xinetd/PRE_BUILD
index b462536da1..e26a0a42ca 100755
--- a/net/xinetd/PRE_BUILD
+++ b/net/xinetd/PRE_BUILD
@@ -1,4 +1,4 @@
default_pre_build &&
cd "$SOURCE_DIRECTORY" &&
-
+sedit 's!maybe_os in$!& linux-musl*|\\!' config.sub &&
patch -p1 < "$SPELL_DIRECTORY/tcpmux.patch"