[gentoo-commits] repo/gentoo:master commit in: net-analyzer/dsniff/files/, net-analyzer/dsniff/
commit: f69e68db135958c271d24c5bb9277671e2910605 Author: Christopher Fore posteo net> AuthorDate: Wed Dec 13 02:37:23 2023 + Commit: Sam James gentoo org> CommitDate: Fri Dec 15 03:15:34 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f69e68db net-analyzer/dsniff: add 2.4_beta1_p31, fix GCC 14 compile Patch attached fixes compilation on GCC 14 and some warnings about print formatting. Closes: https://bugs.gentoo.org/919503 Signed-off-by: Christopher Fore posteo.net> Closes: https://github.com/gentoo/gentoo/pull/34258 Signed-off-by: Sam James gentoo.org> net-analyzer/dsniff/Manifest | 1 + net-analyzer/dsniff/dsniff-2.4_beta1_p31.ebuild| 74 ++ .../files/dsniff-2.4_beta1_p31-c99-fixes.patch | 36 +++ 3 files changed, 111 insertions(+) diff --git a/net-analyzer/dsniff/Manifest b/net-analyzer/dsniff/Manifest index cd9131c35ad9..f299e852f03d 100644 --- a/net-analyzer/dsniff/Manifest +++ b/net-analyzer/dsniff/Manifest @@ -1,2 +1,3 @@ DIST dsniff_2.4b1+debian-30.debian.tar.xz 30788 BLAKE2B 8605b1dcca36f626f31410d88d25a57e6661b57b941155cdbde951991b09fb2dd7c147b1fdd1a22eded1cf904c890317b1844a7829cd6e43fd2fc5defc79b5f3 SHA512 45ffe34fcd30cd1461a354891b9d5567038cc176dbfa79c67020075cd40ae09b7092954925019e583d0d69cae76a558049b489745454a8034ce3e9e832c58f64 +DIST dsniff_2.4b1+debian-31.debian.tar.xz 30848 BLAKE2B 46bdfa08170fbfbba35fcc67340fc35352ef276dd5e8e00a540da39d28364c3198198eefeb6b85cb05e74d3785fc61c7e8e58d6ce37e0b62e6018e4842d938ad SHA512 da927bb887db6761a07dc2460bdeb834b386ccc5b8aa50ebce804ee130f89379268412cddd83ad64cc763e98e2f42a7efc23b7ca77db59445533272cb408088f DIST dsniff_2.4b1+debian.orig.tar.gz 130220 BLAKE2B e6953a5bfc5331b030e1a5335987c51fa4cf2c644fc4e7ac9aefe17f52373a1f66ccef36c5d9136542f68a475350138b1f3e501bc9494a0fd4988c7c5a7b2eef SHA512 09c3a864f112f81b8fdf93436886b14eb8f603ec751b13f18cf027307f24098c018eacf98b3ae353731a0cf6f1c9cacfafbb534a0db8b9f0cc793e7515c41b5a diff --git a/net-analyzer/dsniff/dsniff-2.4_beta1_p31.ebuild b/net-analyzer/dsniff/dsniff-2.4_beta1_p31.ebuild new file mode 100644 index ..f7cbbc6b9514 --- /dev/null +++ b/net-analyzer/dsniff/dsniff-2.4_beta1_p31.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools toolchain-funcs + +MY_PV="${PV/_beta/b}" +MY_PV="${MY_PV/_p*/}" +MY_PV="$(ver_rs 1 '.' "${MY_PV}")" +# 2.4_beta1_p30 -> 2.4beta1-30 +MY_DEB_PV="$(ver_cut 1-2)$(ver_cut 3-4)-$(ver_cut 6)" + +DESCRIPTION="A collection of tools for network auditing and penetration testing" +HOMEPAGE="https://monkey.org/~dugsong/dsniff/; +SRC_URI="mirror://debian/pool/main/${PN::1}/${PN}/${PN}_${MY_PV}+debian.orig.tar.gz + mirror://debian/pool/main/${PN::1}/${PN}/${PN}_${MY_PV}+debian-${PV/*_p}.debian.tar.xz" +S="${WORKDIR}/${P/_beta1*/}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="X" + +# There's a berkdb configure option but we get a build failure if +# we try to disable it. Not clear how useful the package is +# without it anyway. +RDEPEND="net-libs/libpcap + >=net-libs/libnet-1.1.2.1-r1 + >=net-libs/libnids-1.21 + net-libs/libnsl:= + net-libs/libtirpc:= + dev-libs/openssl:= + >=sys-libs/db-4:= + X? ( x11-libs/libXmu )" +DEPEND="${DEPEND} + net-libs/rpcsvc-proto" +# Calls rpcgen during build +BDEPEND="net-libs/rpcsvc-proto" + +PATCHES=( + "${WORKDIR}"/debian/patches/ + "${FILESDIR}"/${PN}-2.4_beta1_p30-httppostfix.patch + "${FILESDIR}"/${PN}-2.4_beta1_p30-libdir-configure.patch + "${FILESDIR}"/${PN}-2.4_beta1_p30-respect-AR.patch + "${FILESDIR}"/${PN}-2.4_beta1_p31-c99-fixes.patch +) + +src_prepare() { + default + + mv configure.{in,ac} || die + eautoreconf +} + +src_configure() { + tc-export AR + + econf \ + $(use_with X x) +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + emake install install_prefix="${D}" + + dodir /etc/dsniff + cp "${ED}"/usr/share/dsniff/{dnsspoof.hosts,dsniff.{magic,services}} \ + "${ED}"/etc/dsniff/ || die + dodoc CHANGES README TODO +} diff --git a/net-analyzer/dsniff/files/dsniff-2.4_beta1_p31-c99-fixes.patch b/net-analyzer/dsniff/files/dsniff-2.4_beta1_p31-c99-fixes.patch new file mode 100644 index ..f77d21ea9510 --- /dev/null +++ b/net-analyzer/dsniff/files/dsniff-2.4_beta1_p31-c99-fixes.patch @@ -0,0 +1,36 @@ +# Gentoo bug: https://bugs.gentoo.org/919503 + +diff --git a/tcpkill.c b/tcpkill.c +index 1a64d40..de7ad00 100644 +--- a/tcpkill.c b/tcpkill.c +@@ -19,6 +19,7 @@ + #include + #include + #include ++#include + + #include "pcaputil.h" + #include "version.h" +@@ -84,7 +85,7 @@ tcp_kill_cb(u_char *user, const struct pcap_pkthdr *pcap, const u_char *pkt) + if (libnet_write(l) < 0) +
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/dsniff/files/, net-analyzer/dsniff/
commit: ffd19f440039ff1c2b4e4e1234c1f9c89a7ae806 Author: Sam James gentoo org> AuthorDate: Tue Dec 7 02:56:16 2021 + Commit: Sam James gentoo org> CommitDate: Tue Dec 7 06:44:25 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffd19f44 net-analyzer/dsniff: initial import (revival) Removed in 1aa904188ff115f14f6d5fac4e0483152a08ed37. Now using (substantial) Debian patchset. Closes: https://bugs.gentoo.org/643460 Closes: https://bugs.gentoo.org/674192 Closes: https://bugs.gentoo.org/571446 Signed-off-by: Sam James gentoo.org> net-analyzer/dsniff/Manifest | 2 + net-analyzer/dsniff/dsniff-2.4_beta1_p30.ebuild| 73 ++ .../files/dsniff-2.4_beta1_p30-httppostfix.patch | 21 + .../dsniff-2.4_beta1_p30-libdir-configure.patch| 105 + .../files/dsniff-2.4_beta1_p30-respect-AR.patch| 22 + net-analyzer/dsniff/metadata.xml | 17 6 files changed, 240 insertions(+) diff --git a/net-analyzer/dsniff/Manifest b/net-analyzer/dsniff/Manifest new file mode 100644 index ..cd9131c35ad9 --- /dev/null +++ b/net-analyzer/dsniff/Manifest @@ -0,0 +1,2 @@ +DIST dsniff_2.4b1+debian-30.debian.tar.xz 30788 BLAKE2B 8605b1dcca36f626f31410d88d25a57e6661b57b941155cdbde951991b09fb2dd7c147b1fdd1a22eded1cf904c890317b1844a7829cd6e43fd2fc5defc79b5f3 SHA512 45ffe34fcd30cd1461a354891b9d5567038cc176dbfa79c67020075cd40ae09b7092954925019e583d0d69cae76a558049b489745454a8034ce3e9e832c58f64 +DIST dsniff_2.4b1+debian.orig.tar.gz 130220 BLAKE2B e6953a5bfc5331b030e1a5335987c51fa4cf2c644fc4e7ac9aefe17f52373a1f66ccef36c5d9136542f68a475350138b1f3e501bc9494a0fd4988c7c5a7b2eef SHA512 09c3a864f112f81b8fdf93436886b14eb8f603ec751b13f18cf027307f24098c018eacf98b3ae353731a0cf6f1c9cacfafbb534a0db8b9f0cc793e7515c41b5a diff --git a/net-analyzer/dsniff/dsniff-2.4_beta1_p30.ebuild b/net-analyzer/dsniff/dsniff-2.4_beta1_p30.ebuild new file mode 100644 index ..adb46e181081 --- /dev/null +++ b/net-analyzer/dsniff/dsniff-2.4_beta1_p30.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools toolchain-funcs + +MY_PV="${PV/_beta/b}" +MY_PV="${MY_PV/_p*/}" +MY_PV="$(ver_rs 1 '.' "${MY_PV}")" +# 2.4_beta1_p30 -> 2.4beta1-30 +MY_DEB_PV="$(ver_cut 1-2)$(ver_cut 3-4)-$(ver_cut 6)" + +DESCRIPTION="A collection of tools for network auditing and penetration testing" +HOMEPAGE="https://monkey.org/~dugsong/dsniff/; +SRC_URI="mirror://debian/pool/main/${PN::1}/${PN}/${PN}_${MY_PV}+debian.orig.tar.gz + mirror://debian/pool/main/${PN::1}/${PN}/${PN}_${MY_PV}+debian-${PV/*_p}.debian.tar.xz" +S="${WORKDIR}/${P/_beta1*/}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="X" + +# There's a berkdb configure option but we get a build failure if +# we try to disable it. Not clear how useful the package is +# without it anyway. +RDEPEND="net-libs/libpcap + >=net-libs/libnet-1.1.2.1-r1 + >=net-libs/libnids-1.21 + net-libs/libnsl:= + net-libs/libtirpc:= + dev-libs/openssl:= + >=sys-libs/db-4:= + X? ( x11-libs/libXmu )" +DEPEND="${DEPEND} + net-libs/rpcsvc-proto" +# Calls rpcgen during build +BDEPEND="net-libs/rpcsvc-proto" + +PATCHES=( + "${WORKDIR}"/debian/patches/ + "${FILESDIR}"/${PN}-2.4_beta1_p30-httppostfix.patch + "${FILESDIR}"/${PN}-2.4_beta1_p30-libdir-configure.patch + "${FILESDIR}"/${PN}-2.4_beta1_p30-respect-AR.patch +) + +src_prepare() { + default + + mv configure.{in,ac} || die + eautoreconf +} + +src_configure() { + tc-export AR + + econf \ + $(use_with X x) +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + emake install install_prefix="${D}" + + dodir /etc/dsniff + cp "${ED}"/usr/share/dsniff/{dnsspoof.hosts,dsniff.{magic,services}} \ + "${ED}"/etc/dsniff/ || die + dodoc CHANGES README TODO +} diff --git a/net-analyzer/dsniff/files/dsniff-2.4_beta1_p30-httppostfix.patch b/net-analyzer/dsniff/files/dsniff-2.4_beta1_p30-httppostfix.patch new file mode 100644 index ..487e45321662 --- /dev/null +++ b/net-analyzer/dsniff/files/dsniff-2.4_beta1_p30-httppostfix.patch @@ -0,0 +1,21 @@ +Allow mixed case in some fields. +--- a/decode_http.c b/decode_http.c +@@ -139,14 +139,14 @@ + host = p; + } + else if (req[0] == 'P') { +- if (strncmp(p, "Content-type: ", 14) == 0) { +- if (strncmp(p + 14, "application/" ++ if (strncasecmp(p, "Content-type: ", 14) == 0) { ++ if (strncasecmp(p + 14, "application/" + "x-www-form-urlencoded", +
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/dsniff/files/, net-analyzer/dsniff/
commit: 1aa904188ff115f14f6d5fac4e0483152a08ed37 Author: Mikle Kolyada gentoo org> AuthorDate: Thu May 2 18:50:01 2019 + Commit: Mikle Kolyada gentoo org> CommitDate: Thu May 2 18:50:01 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1aa90418 sci-chemistry/ball: remove last rited package Signed-off-by: Mikle Kolyada gentoo.org> net-analyzer/dsniff/Manifest | 3 - net-analyzer/dsniff/dsniff-2.4_beta1-r10.ebuild| 83 - net-analyzer/dsniff/dsniff-2.4_beta1-r4.ebuild | 59 --- net-analyzer/dsniff/dsniff-2.4_beta1-r7.ebuild | 68 - net-analyzer/dsniff/dsniff-2.4_beta1-r9.ebuild | 86 -- net-analyzer/dsniff/files/2.3-makefile.patch | 29 .../dsniff/files/2.4_beta1-httppostfix.patch | 20 - net-analyzer/dsniff/files/2.4_beta1-libtirpc.patch | 22 -- .../files/2.4_beta1-macof-size-calculation.patch | 11 --- net-analyzer/dsniff/files/2.4_beta1-make.patch | 62 net-analyzer/dsniff/files/2.4_beta1-rpc.patch | 39 -- .../files/2.4_beta1-urlsnarf-pcap_timestamps.patch | 15 net-analyzer/dsniff/metadata.xml | 17 - 13 files changed, 514 deletions(-) diff --git a/net-analyzer/dsniff/Manifest b/net-analyzer/dsniff/Manifest deleted file mode 100644 index 67ce02cb7fd..000 --- a/net-analyzer/dsniff/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -DIST dsniff-2.4b1.tar.gz 131666 BLAKE2B f0cc3c875ed37ee573a28d2c54e7dc89bd14df233b047273ebb054820c2f8c61be22b0310c9354446a9ca6e99fdcd7f027fa7a122da667d4a809362dcb8c957f SHA512 62dafab293de6dc3e9b01561b3627d63ca334467c01c3550a6318d8bcbe99d5a301ec16967af34065a14e8bca1c4b6a41da766cbd51ebd8338615b950c4f642f -DIST dsniff_2.4b1+debian-18.diff.gz 44819 BLAKE2B 79b5614cbe4f36c2d321cd392cbfd2db94530680fbbab35f5069850ab6bda0fab6b7a2a93a983773793b9f645499c24393d6c652f0aba6c48651ae17ff4b24fe SHA512 9f219dfa7fd68399126cd2b373a7054168638606c03e8297af46a89c242f81e45f99857922e6782cab608b8cafab528bcfaeb37acd3cca85f5b4a8efd91e71d5 -DIST dsniff_2.4b1+debian-22.1.debian.tar.gz 29657 BLAKE2B 88333aad1498cb5b4fd68776f8e0599672c9c69ee5b0d5424f0a8e9f0958412fb420a6d6ae6d46dc5e6c73c4ab39b1fedbef1a4c6879bb4c2bd363271cb6d98b SHA512 11c6a3c04b5a8b3afb78901003132186964e88019011bea69b43a000c31d23f15c1a1c343c2ad1b03bf0a09664aebfa6f99e335fdfa1496bb020db6541eab6e3 diff --git a/net-analyzer/dsniff/dsniff-2.4_beta1-r10.ebuild b/net-analyzer/dsniff/dsniff-2.4_beta1-r10.ebuild deleted file mode 100644 index e8040b8990e..000 --- a/net-analyzer/dsniff/dsniff-2.4_beta1-r10.ebuild +++ /dev/null @@ -1,83 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit autotools toolchain-funcs - -DESCRIPTION="A collection of tools for network auditing and penetration testing" -HOMEPAGE="https://monkey.org/~dugsong/dsniff/; -SRC_URI=" - https://monkey.org/~dugsong/${PN}/beta/${P/_beta/b}.tar.gz - mirror://debian/pool/main/d/${PN}/${PN}_2.4b1+debian-22.1.debian.tar.gz -" -LICENSE="BSD" - -SLOT="0" -KEYWORDS="amd64 ~ppc ~x86" -IUSE="libressl X" - -DEPEND="net-libs/libpcap - >=net-libs/libnet-1.1.2.1-r1 - >=net-libs/libnids-1.21 - net-libs/libnsl:0= - net-libs/libtirpc - net-libs/rpcsvc-proto - !libressl? ( dev-libs/openssl:0= ) - libressl? ( dev-libs/libressl:0= ) - >=sys-libs/db-4:* - X? ( x11-libs/libXmu )" -RDEPEND="${DEPEND}" - -S="${WORKDIR}/${P/_beta1/}" - -src_prepare() { - # replace Debian patch 23 with a simpler one (bug #506076) - mv -v \ - "${WORKDIR}"/debian/patches/23_urlsnarf_timestamp.patch{,.old} || die - cp -v \ - "${FILESDIR}"/${PV}-urlsnarf-pcap_timestamps.patch \ - "${WORKDIR}"/debian/patches/23_urlsnarf_timestamp.patch || die - - # Debian patchset, needs to be applied in the exact order that "series" - # lists or patching will fail. - # Bug #479882 - eapply $( - for file in $(< "${WORKDIR}"/debian/patches/series ); do - printf "%s/debian/patches/%s " "${WORKDIR}" "${file}" - done - ) - - # Bug 125084 - eapply "${FILESDIR}"/${PV}-httppostfix.patch - - # various Makefile.in patches - eapply "${FILESDIR}"/${PV}-make.patch - - # bug #538462 - eapply "${FILESDIR}"/${PV}-macof-size-calculation.patch - - # libtirpc support - eapply "${FILESDIR}"/${PV}-rpc.patch - - default - eautoreconf -} - -src_configure() { - econf \ - --with-libtirpc \ - $(use_with X x) \ - || die "econf failed" -} - -src_compile() { - emake CC="$(tc-getCC)" -} - -src_install() { - emake install install_prefix="${D}" - dodir /etc/dsniff - cp
[gentoo-commits] repo/gentoo:master commit in: net-analyzer/dsniff/files/, net-analyzer/dsniff/
commit: 17e48ce1fb4274f1d358b7e37a5c08e7511fd260 Author: Andreas K. Hüttel gentoo org> AuthorDate: Fri Mar 2 17:04:28 2018 + Commit: Andreas Hüttel gentoo org> CommitDate: Fri Mar 2 17:31:28 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17e48ce1 net-analyzer/dsniff: Get rid of libtirpc automagic and depend on it instead Closes: https://bugs.gentoo.org/370645 Package-Manager: Portage-2.3.24, Repoman-2.3.6 net-analyzer/dsniff/dsniff-2.4_beta1-r10.ebuild | 83 + net-analyzer/dsniff/files/2.4_beta1-rpc.patch | 39 2 files changed, 122 insertions(+) diff --git a/net-analyzer/dsniff/dsniff-2.4_beta1-r10.ebuild b/net-analyzer/dsniff/dsniff-2.4_beta1-r10.ebuild new file mode 100644 index 000..6cf8570555a --- /dev/null +++ b/net-analyzer/dsniff/dsniff-2.4_beta1-r10.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools toolchain-funcs + +DESCRIPTION="A collection of tools for network auditing and penetration testing" +HOMEPAGE="http://monkey.org/~dugsong/dsniff/; +SRC_URI=" + http://monkey.org/~dugsong/${PN}/beta/${P/_beta/b}.tar.gz + mirror://debian/pool/main/d/${PN}/${PN}_2.4b1+debian-22.1.debian.tar.gz +" +LICENSE="BSD" + +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="libressl X" + +DEPEND="net-libs/libpcap + >=net-libs/libnet-1.1.2.1-r1 + >=net-libs/libnids-1.21 + net-libs/libnsl:0= + net-libs/libtirpc + net-libs/rpcsvc-proto + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + >=sys-libs/db-4:* + X? ( x11-libs/libXmu )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${P/_beta1/}" + +src_prepare() { + # replace Debian patch 23 with a simpler one (bug #506076) + mv -v \ + "${WORKDIR}"/debian/patches/23_urlsnarf_timestamp.patch{,.old} || die + cp -v \ + "${FILESDIR}"/${PV}-urlsnarf-pcap_timestamps.patch \ + "${WORKDIR}"/debian/patches/23_urlsnarf_timestamp.patch || die + + # Debian patchset, needs to be applied in the exact order that "series" + # lists or patching will fail. + # Bug #479882 + eapply $( + for file in $(< "${WORKDIR}"/debian/patches/series ); do + printf "%s/debian/patches/%s " "${WORKDIR}" "${file}" + done + ) + + # Bug 125084 + eapply "${FILESDIR}"/${PV}-httppostfix.patch + + # various Makefile.in patches + eapply "${FILESDIR}"/${PV}-make.patch + + # bug #538462 + eapply "${FILESDIR}"/${PV}-macof-size-calculation.patch + + # libtirpc support + eapply "${FILESDIR}"/${PV}-rpc.patch + + default + eautoreconf +} + +src_configure() { + econf \ + --with-libtirpc \ + $(use_with X x) \ + || die "econf failed" +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + emake install install_prefix="${D}" + dodir /etc/dsniff + cp "${D}"/usr/share/dsniff/{dnsspoof.hosts,dsniff.{magic,services}} \ + "${D}"/etc/dsniff/ || die + dodoc CHANGES README TODO +} diff --git a/net-analyzer/dsniff/files/2.4_beta1-rpc.patch b/net-analyzer/dsniff/files/2.4_beta1-rpc.patch new file mode 100644 index 000..b43c91d9581 --- /dev/null +++ b/net-analyzer/dsniff/files/2.4_beta1-rpc.patch @@ -0,0 +1,39 @@ +--- a/Makefile.in b/Makefile.in +@@ -37,8 +37,8 @@ + X11INC= @X_CFLAGS@ + X11LIB= @X_LIBS@ @X_PRE_LIBS@ -lXmu -lX11 @X_EXTRA_LIBS@ + +-INCS = -I. $(X11INC) -I$(srcdir)/missing +-LIBS = @LIBS@ -L$(srcdir) -lmissing ++INCS = -I. $(X11INC) -I$(srcdir)/missing @RPC_CFLAGS@ ++LIBS = @LIBS@ -L$(srcdir) -lmissing @RPC_LIBS@ + + INSTALL = @INSTALL@ + INSTALL_PROGRAM = @INSTALL_PROGRAM@ +--- a/configure.in b/configure.in +@@ -337,4 +337,23 @@ + AC_SUBST(SSLINC) + AC_SUBST(SSLLIB) + ++AC_ARG_WITH([libtirpc], ++ AS_HELP_STRING([--with-libtirpc], [Use libtirpc as RPC implementation (instead of sunrpc)]), ++ [], [ with_libtirpc=no ]) ++ ++AS_IF([test "x$with_libtirpc" != xno], ++ [PKG_CHECK_MODULES([TIRPC], ++ [libtirpc], ++ [RPC_CFLAGS=$TIRPC_CFLAGS; RPC_LIBS=$TIRPC_LIBS;], ++ [AC_MSG_ERROR([libtirpc requested, but library not found.])] ++ )], ++ [AC_CHECK_HEADER(rpc/rpc.h, ++ [RPC_CFLAGS=""; RPC_LIBS="";], ++ [AC_MSG_ERROR([sunrpc requested, but headers are not present.])] ++)] ++) ++ ++AC_SUBST(RPC_CFLAGS) ++AC_SUBST(RPC_LIBS) ++ + AC_OUTPUT(Makefile)