changeset 106:aa353a3e13e5

Provide a configuration file to configure settings. Not yet used in the tools.
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 01 Oct 2019 09:45:11 +0200
parents 52523a19797e
children f8642efe05a1
files Makefile etc/tools.conf.sample pkg-plist
diffstat 3 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Fri Sep 27 09:44:38 2019 +0200
+++ b/Makefile	Tue Oct 01 09:45:11 2019 +0200
@@ -46,7 +46,7 @@
 	${SED} -i "" -e "s|@@PKGORIGIN@@|${PKGORIGIN}|" ${WRKSRC}/${_rp}
 .endfor
 	${MKDIR} ${WRKSRC}/etc
-.for _ef in etc/package-mapping.conf.sample
+.for _ef in etc/package-mapping.conf.sample etc/tools.conf.sample
 	${CP} -v ${SRC}/${_ef} ${WRKSRC}/${_ef}
 	${SED} -i "" -e "s|\\\$$HGid\\\$$|\$$HGid: ${HGPATH}/${_ef} ${HGREVISION} ${HGDATE} ${HGAUTHOR} ${HGPHASE} \$$|" ${WRKSRC}/${_ef}
 	${SED} -i "" -e "s|@@PKGORIGIN@@|${PKGORIGIN}|" ${WRKSRC}/${_ef}
@@ -57,7 +57,7 @@
 	${INSTALL_SCRIPT} ${WRKSRC}/${_rp} ${STAGEDIR}${PREFIX}/${_rp}
 .endfor
 	${MKDIR} ${STAGEDIR}${ETCDIR}
-.for _ef in package-mapping.conf.sample
+.for _ef in package-mapping.conf.sample tools.conf.sample
 	${INSTALL_DATA} ${WRKSRC}/etc/${_ef} ${STAGEDIR}${ETCDIR}/${_ef}
 .endfor
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/tools.conf.sample	Tue Oct 01 09:45:11 2019 +0200
@@ -0,0 +1,3 @@
+# Shell (sh) script to configure tools in local-bsdtools
+# @(#)@@PKGORIGIN@@ $HGid$
+#
--- a/pkg-plist	Fri Sep 27 09:44:38 2019 +0200
+++ b/pkg-plist	Tue Oct 01 09:45:11 2019 +0200
@@ -4,4 +4,5 @@
 bin/check-ports
 bin/fjail
 bin/fpkg
+@sample %%ETCDIR%%/tools.conf.sample
 @sample %%ETCDIR%%/package-mapping.conf.sample