pkgsrc-WIP-changes archive

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

nats-server: Make better use of REQD_FILES



Module Name:	pkgsrc-wip
Committed By:	Juraj Lutter <otis%NetBSD.org@localhost>
Pushed By:	otis
Date:		Mon Nov 23 15:50:45 2020 +0000
Changeset:	760b033c427bedf1c6b56b1ff8a15fb15858ecfd

Modified Files:
	nats-server/Makefile

Log Message:
nats-server: Make better use of REQD_FILES

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

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

diffstat:
 nats-server/Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diffs:
diff --git a/nats-server/Makefile b/nats-server/Makefile
index 9cf7b8f821..19f1c8de43 100644
--- a/nats-server/Makefile
+++ b/nats-server/Makefile
@@ -42,20 +42,20 @@ FILES_SUBST+=		NATS_LOGDIR=${NATS_LOGDIR}
 FILES_SUBST+=		NATS_LOGFILE=${NATS_LOGFILE}
 FILES_SUBST+=		PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
 
-EXAMPLESDIR=		${PREFIX}/share/examples/nats-server
-REQD_FILES_PERMS+=	${EXAMPLESDIR}/nats-server.conf \
+EGDIR=			${PREFIX}/share/examples/nats-server
+REQD_FILES_PERMS+=	${EGDIR}/nats-server.conf \
 			${PKG_SYSCONFDIR}/nats-server.conf \
 			${NATS_USER} ${NATS_GROUP} 0600
 
+INSTALLATION_DIRS=	bin ${EGDIR}
+
 OWN_DIRS_PERMS+=                ${NATS_HOMEDIR} ${NATS_USER} ${NATS_GROUP} 0700
 MAKE_DIRS_PERMS+=                ${NATS_LOGDIR} ${NATS_USER} ${NATS_GROUP} 0700
 
 .include "../../lang/go/go-module.mk"
 
 post-install:
-	${MKDIR} ${DESTDIR}/${EXAMPLESDIR}
-	${TOUCH} ${DESTDIR}/${EXAMPLESDIR}/nats-server.conf
-	${ECHO} "# Example config, see https://docs.nats.io/nats-server/configuration"; >> \
-		${DESTDIR}/${EXAMPLESDIR}/nats-server.conf
+	${ECHO} "# Example config, see https://docs.nats.io/nats-server/configuration"; > \
+		${DESTDIR}/${EGDIR}/nats-server.conf
 
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index