Files
archie/cmake/modules/FindTIRPC.cmake
Mario Fetka 1e4baef047 Port Archie 3.5 to Linux/CMake, add Debian packaging and CI
- Replace autoconf/make build system with CMake (installs to /opt/archie)
- Add CPack DEB packaging for Debian Trixie (non-free/net, postinst creates
  archie user, extracts DB skeleton, sets setuid bits, enables systemd units)
- Add Gitea Actions workflow building .deb + binary/source tarballs on tag push
- Add portable archie_init.py for non-Debian post-install setup
- Port all scripts to Linux: getent passwd, systemctl, tail -n +N, gzip
- Add SFTP (libssh2) and FTPS (OpenSSL) scrapers alongside anonftp
- Add Flask web frontend (archie-web.service)
- Fix filter scripts (exec cat replaces broken sed s///g)
- Update all manpages: paths, contacts, add SFTP/FTPS section
- Update etc/: enable gzip, add webindex catalog, fix localhost refs
- Remove: AIX-2/SunOS-4.1.4/SunOS-5.4 dirs, tcl7.6/, tcl-dp/, tk4.2/,
  berkdb/, old Makefile.in/pre/post fragments, build.sh, unwrap scripts
- Add .gitignore

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-22 23:05:12 +02:00

63 lines
1.2 KiB
CMake

# FindTIRPC
# ---------
#
# Find the native TIRPC includes and library.
#
# Result variables:
#
# TIRPC_FOUND
# True if TIRPC headers and libraries were found.
#
# TIRPC_INCLUDE_DIRS
# Include directory needed for <rpc/xdr.h>.
#
# TIRPC_LIBRARIES
# Libraries needed to link against TIRPC.
#
# TIRPC_VERSION
# Version reported by pkg-config, if available.
#
# Imported target:
#
# TIRPC::TIRPC
find_package(PkgConfig QUIET)
pkg_check_modules(PC_TIRPC QUIET libtirpc)
find_path(TIRPC_INCLUDE_DIRS
NAMES rpc/xdr.h
PATH_SUFFIXES tirpc
HINTS ${PC_TIRPC_INCLUDE_DIRS}
)
find_library(TIRPC_LIBRARIES
NAMES tirpc
HINTS ${PC_TIRPC_LIBRARY_DIRS}
)
set(TIRPC_VERSION ${PC_TIRPC_VERSION})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(TIRPC
REQUIRED_VARS
TIRPC_LIBRARIES
TIRPC_INCLUDE_DIRS
VERSION_VAR
TIRPC_VERSION
)
if(TIRPC_FOUND AND NOT TARGET TIRPC::TIRPC)
add_library(TIRPC::TIRPC UNKNOWN IMPORTED)
set_target_properties(TIRPC::TIRPC PROPERTIES
IMPORTED_LOCATION "${TIRPC_LIBRARIES}"
INTERFACE_INCLUDE_DIRECTORIES "${TIRPC_INCLUDE_DIRS}"
)
endif()
mark_as_advanced(
TIRPC_INCLUDE_DIRS
TIRPC_LIBRARIES
)