This commit is contained in:
Mario Fetka
2026-05-06 09:27:49 +02:00
parent 7e87386a55
commit 170ce3bbb5
7 changed files with 172 additions and 32 deletions

View File

@@ -93,3 +93,4 @@ DIST ncpfs-2.2.7.tar.gz 2091192 BLAKE2B 66d503f0e647209c35c692a7c9ff39c691a38c6a
EBUILD ncpfs-2.2.6-r5.ebuild 2990 BLAKE2B 28d7aab7221744a7d012ca38bc3f337d07b6e9907f50100fe0eabb9c59893411462bc82a3b9dd336eb42d5f28a903783bbe96e27ab8b5bee9012cee9b74592d5 SHA512 c5da7db358d061ae97975ff8beacc3c27f240d2fd47cf4c88bb90b52ef0e2e3ff051252e4641bb16b11c10c337b9c3e2e6aeab7294b8ff8f95b9b7633dd38b9d
EBUILD ncpfs-2.2.6-r6.ebuild 5028 BLAKE2B fdeee2293399c71113f6303fda87e367f36c89e3ab85be5c2cc71d7c5ee3b8fe6bac2697453166e1aa1f8bd96225d207c0e26f761e46f3944ea9577be34822f0 SHA512 0d02725d006688b548b320a9e3ecf4237c4f62d2cfa9781895ec78949d4a3538de42f58aa8744ea626aa744529052bad41b836f3357560608ee75b05c4d43b6d
EBUILD ncpfs-2.2.7.ebuild 2206 BLAKE2B 7b454462c232525cb29393fae55d28daf1d86f6ca78fa7b5aeb71fed227b5fe02cf29877c55e66e9eff67ac0b8a3c4fd8c3b4626ebbb7048886a6383eb746f78 SHA512 6e052ea60996f90b087cc62b0270d495e3dafce4cc2ce126109e02fcd405e410fcaa8aac2213198eaca65e1d78b15663574bb9d315910f8d02634a83c890cce1
EBUILD ncpfs-9999.ebuild 2323 BLAKE2B 6a2fba5bafedfef7775272212b854b37c1c515b4b1559351adc66d6de330200e040d3bbcbfd24e7b6d412bb3ab34dce11b209c34381594a07eeb71edaa15be20 SHA512 8896c60bdfcec5a84e221f35048c6d5ed22144516463090f12a44986cf90bfa30da6ede56ce295382e49f6cb241d18d8871f2aac078f6a4b10b4f6ebc4d60c5d

View File

@@ -0,0 +1,109 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_PHP="php8-2 php8-3 php8-4 php8-5"
PHP_EXT_NAME="auth_nds"
PHP_EXT_OPTIONAL_USE="php"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://gitea.disconnected-by-peer.at/mars_nwe/ncpfs.git"
PROPERTIES="live"
else
SRC_URI="https://gitea.disconnected-by-peer.at/mars_nwe/ncpfs/releases/download/v${PV}/${P}.tar.gz"
KEYWORDS="~amd64 ~mips ~ppc ~ppc64 ~x86"
fi
inherit flag-o-matic pam php-ext-source-r3
DESCRIPTION="Provides access to Netware services using the NCP protocol"
HOMEPAGE="https://gitea.disconnected-by-peer.at/mars_nwe/ncpfs"
LICENSE="GPL-2"
SLOT="0"
IUSE="nls pam php"
DEPEND="
nls? ( sys-devel/gettext )
pam? ( sys-libs/pam )
"
RDEPEND="
${DEPEND}
net-fs/ncpfs-modules
net-misc/ipx-utils
"
src_prepare() {
default
# Bug #273484.
sed -i '/ldconfig/d' lib/Makefile.in || die
# Old codebase; still needed for some remaining legacy declarations.
append-cflags -fcommon -Wincompatible-pointer-types
if use php; then
local slot
for slot in $(php_get_slots); do
local php_build_dir="${WORKDIR}/${slot}"
rm -rf "${php_build_dir}" || die
cp -a "${S}/contrib/php" "${php_build_dir}" || die
php_init_slot_env "${slot}"
php-ext-source-r3_phpize
done
fi
}
src_configure() {
econf \
--prefix="${EPREFIX}/usr" \
$(use_enable nls) \
$(use_enable pam pam "$(getpam_mod_dir)") \
--disable-php \
--disable-ipx-tools \
--enable-ipx
if use php; then
mkdir -p "${WORKDIR}/include" || die
cp "${S}/include/config.h" "${WORKDIR}/include/config.h" || die
php-ext-source-r3_src_configure
fi
}
src_compile() {
emake
if use php; then
php-ext-source-r3_src_compile
fi
}
src_install() {
cd "${S}" || die
dodir "$(getpam_mod_dir)" /usr/sbin
emake DESTDIR="${D}" install
emake DESTDIR="${D}" install-dev
if use php; then
(
php-ext-source-r3_src_install
)
fi
dodoc "${S}"/FAQ "${S}"/README
}
pkg_postinst() {
if use php; then
elog "The bundled PHP extension auth_nds was built and installed."
elog "It was built for the enabled PHP_TARGETS slots."
elog "Make sure your active PHP slot loads the matching extension directory."
fi
}