changeset 65:29ede570c816

Adjusted the package's Makefile for new configuration file
author Franz Glasner <hg@dom66.de>
date Thu, 21 Mar 2019 16:17:10 +0100
parents ffd5f575edd5
children 1f3a64254c9c
files Makefile etc/package-mapping.conf.sample pkg-plist
diffstat 3 files changed, 20 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Mar 21 15:48:58 2019 +0100
+++ b/Makefile	Thu Mar 21 16:17:10 2019 +0100
@@ -21,8 +21,6 @@
 
 SRC=		${.CURDIR}
 
-PLIST_FILES=	bin/check-ports
-
 HGCANONICALPATH?=	default
 HGREVISION=	${:!hg id -R "${SRC}" -q!}
 HGDATE=		${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{date|isodatesec}'!}
@@ -31,7 +29,7 @@
 
 do-extract:
 	${MKDIR} ${WRKSRC}/bin
-.for _rp in ${PLIST_FILES}
+.for _rp in bin/check-ports
 	${CP} -v ${SRC}/${_rp} ${WRKSRC}/${_rp}
 	${SED} -i "" -E -e "s|\\\$$Date\\\$$|\$$Date: ${HGDATE} \$$|" ${WRKSRC}/${_rp}
 	${SED} -i "" -E -e "s|\\\$$Revision\\\$$|\$$Revision: ${HGREVISION} \$$|" ${WRKSRC}/${_rp}
@@ -40,10 +38,18 @@
 	${SED} -i "" -e "s|\\\$$HGsource\\\$$|\$$HGsource: ${HGPATH}/${_rp} \$$|" ${WRKSRC}/${_rp}
 	${SED} -i "" -e "s|@@VERSION@@|${PORTVERSION}|" ${WRKSRC}/${_rp}
 .endfor
+	${MKDIR} ${WRKSRC}/etc
+.for _ef in etc/package-mapping.conf.sample
+	${CP} -v ${SRC}/${_ef} ${WRKSRC}/${_ef}
+.endfor
 
 do-install:
-.for _rp in ${PLIST_FILES}
+.for _rp in bin/check-ports
 	${INSTALL_SCRIPT} ${WRKSRC}/${_rp} ${STAGEDIR}${PREFIX}/${_rp}
 .endfor
+	${MKDIR} ${STAGEDIR}${ETCDIR}
+.for _ef in package-mapping.conf.sample
+	${INSTALL_DATA} ${WRKSRC}/etc/${_ef} ${STAGEDIR}${ETCDIR}/${_ef}
+.endfor
 
 .include <bsd.port.mk>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/package-mapping.conf.sample	Thu Mar 21 16:17:10 2019 +0100
@@ -0,0 +1,5 @@
+#
+# Map from installed package name to the (unchanged) parent package name
+#
+fmg-nextcloud-php71 nextcloud-php71
+fmg-nextcloud-twofactor_totp-php71 nextcloud-twofactor_totp-php71
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pkg-plist	Thu Mar 21 16:17:10 2019 +0100
@@ -0,0 +1,5 @@
+@comment DIRECTORIES
+@dir %%ETCDIR%%
+@comment FILES
+bin/check-ports
+@sample %%ETCDIR%%/package-mapping.conf.sample