pkgsrc-WIP-changes archive

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

npmount: Add SUBST for config file prefix



Module Name:	pkgsrc-wip
Committed By:	Jason W. Bacon <bacon4000%gmail.com@localhost>
Pushed By:	outpaddling
Date:		Tue Jun 13 20:07:32 2023 -0500
Changeset:	c82bbf695a70d173edd78e25cc8af5c5cae67bbf

Modified Files:
	npmount/Makefile

Log Message:
npmount: Add SUBST for config file prefix

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

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

diffstat:
 npmount/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diffs:
diff --git a/npmount/Makefile b/npmount/Makefile
index 26882d91ce..e7623df0f3 100644
--- a/npmount/Makefile
+++ b/npmount/Makefile
@@ -13,6 +13,11 @@ LICENSE=	2-clause-bsd
 EGDIR=		${PREFIX}/share/examples/npmount
 CONF_FILES=	${EGDIR}/npmount.conf.sample ${PREFIX}/etc/npmount.conf
 
+SUBST_CLASSES+=		prefix
+SUBST_STAGE.prefix=	pre-configure
+SUBST_SED.prefix=	-e 's|/usr/local|${PREFIX}|g'
+SUBST_FILES.prefix=	npmount.c
+
 SPECIAL_PERMS+=		bin/npmount ${SETUID_ROOT_PERMS}
 INSTALLATION_DIRS=	bin
 


Home | Main Index | Thread Index | Old Index