diff --git a/net-mgmt/realmd/Makefile b/net-mgmt/realmd/Makefile index f293d975151f..57c1133cbe38 100644 --- a/net-mgmt/realmd/Makefile +++ b/net-mgmt/realmd/Makefile @@ -1,50 +1,47 @@ PORTNAME= realmd PORTVERSION= 0.17.1 PORTREVISION= 1 CATEGORIES= net-mgmt MAINTAINER= fluffy@FreeBSD.org COMMENT= DBus service for configuring kerberos and other online identities WWW= https://www.freedesktop.org/software/realmd/ LICENSE= LGPL21 BUILD_DEPENDS= gsed:textproc/gsed LIB_DEPENDS= libpolkit-gobject-1.so:sysutils/polkit USES= autoreconf gettext gmake gnome gssapi:mit,flags iconv ldap \ libtool localbase pathfix pkgconfig ssl tar:bz2 USE_GNOME= glib20 USE_GITLAB= yes GL_SITE= https://gitlab.freedesktop.org GL_ACCOUNT= realmd GNU_CONFIGURE= yes TEST_TARGET= check BINARY_ALIAS= sed=${LOCALBASE}/bin/gsed OPTIONS_DEFINE= DOCS CONFIGURE_ARGS= ${GSSAPI_CONFIGURE_ARGS} \ --with-distro=freebsd \ --without-systemd-journal \ --without-systemd-unit-dir CONFIGURE_ENV+= KRB5_CONFIG=${KRB5CONFIG} DOCS_CONFIGURE_ENABLE= doc DOCS_BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl \ xsltproc:textproc/libxslt \ xmlto:textproc/xmlto SUB_FILES= realmd-freebsd.conf SUB_LIST= SAMBA=samba${SAMBA_DEFAULT:S/.//} -post-patch: - @${REINPLACE_CMD} -e 's/INSTALL_PROGRAM/INSTALL_DATA/g' ${WRKSRC}/service/Makefile.am - pre-install: @${INSTALL_DATA} ${WRKDIR}/realmd-freebsd.conf ${WRKSRC}/service/realmd-freebsd.conf .include diff --git a/net-mgmt/realmd/files/patch-service_Makefile.am b/net-mgmt/realmd/files/patch-service_Makefile.am new file mode 100644 index 000000000000..456cd612fa65 --- /dev/null +++ b/net-mgmt/realmd/files/patch-service_Makefile.am @@ -0,0 +1,15 @@ +--- service/Makefile.am.orig 2025-01-22 07:21:00 UTC ++++ service/Makefile.am +@@ -131,9 +131,9 @@ install-service: + + # Install and uninstall the config for this distro + install-service: +- $(INSTALL_PROGRAM) -d $(DESTDIR)$(privatedir) +- $(INSTALL_PROGRAM) -d $(DESTDIR)$(localstatedir)/lib/realmd +- $(INSTALL_PROGRAM) -d $(DESTDIR)$(cachedir) ++ $(INSTALL_DATA) -m 755 -d $(DESTDIR)$(privatedir) ++ $(INSTALL_DATA) -m 755 -d $(DESTDIR)$(localstatedir)/lib/realmd ++ $(INSTALL_DATA) -m 755 -d $(DESTDIR)$(cachedir) + $(INSTALL_DATA) $(srcdir)/service/realmd-$(DISTRO).conf $(DESTDIR)$(privatedir)/realmd-distro.conf + uninstall-service: + rm -f $(DESTDIR)$(privatedir)/realmd-distro.conf