From 7b4ab6f6422ae8e6000727ca5731854780f632c1 Mon Sep 17 00:00:00 2001 From: Xavier Beaudouin Date: Wed, 4 Sep 2024 11:35:19 +0200 Subject: [PATCH] Fix --- net/freeipa-client/Makefile | 58 ++++++++++++++++++++----------------- 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/net/freeipa-client/Makefile b/net/freeipa-client/Makefile index aa550ee..8b62143 100644 --- a/net/freeipa-client/Makefile +++ b/net/freeipa-client/Makefile @@ -1,47 +1,53 @@ PORTNAME= freeipa-client DISTVERSION= 4.12.2 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= https://releases.pagure.org/freeipa/ DISTNAME= freeipa-${DISTVERSION} -#WRKSRC= ${DISTNAME} -MAINTAINER= xavier.beaudouin@klarasystems.com +MAINTAINER= kiwi@oav.net COMMENT= FreeIPA Client tools WWW= https://www.freeipa.org/ -LICENSE= GPLv3 +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/COPYING -USES= autoreconf libtool gmake gettext python pkgconfig gssapi:mit \ - ldap +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} - -LIB_DEPENDS= libpopt.so:devel/popt \ +LIB_DEPENDS= libcmocka.so:sysutils/cmocka \ + libcurl.so:ftp/curl \ + libini_config.so:devel/ding-libs \ libjansson.so:devel/jansson \ libnspr4.so:devel/nspr \ libnss3.so:security/nss \ + libpopt.so:devel/popt \ libpwquality.so:security/libpwquality \ - libcmocka.so:sysutils/cmocka \ - libini_config.so:devel/ding-libs \ - libcurl.so:ftp/curl \ libsasl2.so:security/cyrus-sasl2 \ libxmlrpc.so:net/xmlrpc-c -CFLAGS+= -I${PREFIX}/include -LDFLAGS+= -L${PREFIX}/lib +USES= autoreconf gettext gmake gssapi:mit ldap libtool \ + localbase:ldflags pkgconfig python -GNU_CONFIGURE= YES -CONFIGURE_ARGS+= --prefix=${PREFIX} --disable-server \ - --with-ipaplatform=freebsd \ - --disable-dependency-tracking \ - --without-ipatests --without-server +GNU_CONFIGURE= yes +GNU_CONFIGURE_MANPREFIX=${PREFIX}/share +CONFIGURE_ARGS= --disable-dependency-tracking \ + --disable-server \ + --with-ipaplatform=freebsd \ + --without-ipatests \ + --without-server + +# Don't bytecode python files +MAKE_ENV= PYTHONDONTWRITEBYTECODE=1 + +# Remove all systemd dependant things +EXTRACT_AFTER_ARGS= --exclude client/systemd --exclude daemons/dnssec \ + --exclude daemons/ipa-otpd --exclude \ + daemons/ipa-slapi-plugins --exclude init/systemd \ + --exclude init/tmpfilesd + +# Make sample configuration file +post-install: + @${MV} ${STAGEDIR}${PREFIX}/etc/ipa/epn.conf ${STAGEDIR}${PREFIX}/etc/ipa/epn.conf.sample -post-patch: - @${RM} -rf ${WRKSRC}/client/systemd - @${RM} -rf ${WRKSRC}/daemons/dnssec - @${RM} -rf ${WRKSRC}/daemons/ipa-otpd - @${RM} -rf ${WRKSRC}/daemons/ipa-slapi-plugins - @${RM} -rf ${WRKSRC}/init/systemd - @${RM} -rf ${WRKSRC}/init/tmpfilesd - .include