pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

gnunet: Makefile, correctly install config files.



Module Name:	pkgsrc-wip
Committed By:	nikita <nikita%NetBSD.org@localhost>
Pushed By:	nikita
Date:		Mon Mar 21 21:53:07 2022 +0100
Changeset:	074f565aa19c7ed5cbfba7417d4d1e44417c5a99

Modified Files:
	gnunet/Makefile

Log Message:
gnunet: Makefile, correctly install config files.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=074f565aa19c7ed5cbfba7417d4d1e44417c5a99

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 gnunet/Makefile | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diffs:
diff --git a/gnunet/Makefile b/gnunet/Makefile
index 23afdf3b97..59aaceb82e 100644
--- a/gnunet/Makefile
+++ b/gnunet/Makefile
@@ -56,10 +56,8 @@ MAKE_DIRS+=		${GNUNET_DIR}
 MAKE_DIRS+=		${GNUNET_LOG_DIR}
 MAKE_DIRS+=		${GNUNET_DIR}/data
 AUTO_MKDIRS=		YES
-CONF_FILES+=		${FILESDIR}/gnunet.conf \
-			${PKG_SYSCONFDIR}/gnunet.conf
-CONF_FILES+=		${FILESDIR}/gnunet_user.conf \
-			${PKG_SYSCONFDIR}/gnunet_user.conf
+#CONF_FILES+=		${FILESDIR}/gnunet.conf ${PKG_SYSCONFDIR}/gnunet.conf
+#CONF_FILES+=		${FILESDIR}/gnunet_user.conf ${PKG_SYSCONFDIR}/gnunet_user.conf
 
 FILES_SUBST+=		PKG_HOME=${GNUNET_DIR}
 
@@ -73,6 +71,11 @@ SUBST_SED.sysconfdir+=		-e 's,^GNUNET_DATA_HOME.*,GNUNET_DATA_HOME = ${GNUNET_DI
 SUBST_SED.sysconfdir+=		-e 's,^GNUNET_RUNTIME_DIR.*,GNUNET_RUNTIME_DIR = ${GNUNET_DIR},g'
 SUBST_SED.sysconfdir+=		-e 's,^GNUNET_HOME.*,GNUNET_HOME = ${GNUNET_DIR},g'
 
+post-build:
+	${MKDIR} ${DESTDIR}${PKG_SYSCONFDIR}
+	${INSTALL_DATA} ${FILESDIR}/gnunet.conf ${DESTDIR}${PKG_SYSCONFDIR}/gnunet.conf
+	${INSTALL_DATA} ${FILESDIR}/gnunet_user.conf ${DESTDIR}${PKG_SYSCONFDIR}/gnunet_user.conf
+
 # All helpers have to be suid. fs helper must not be suid.
 # Some helpers and functionalities are only supported on
 # some Operating Systems so far.


Home | Main Index | Thread Index | Old Index