# HG changeset patch # User Franz Glasner # Date 1553181430 -3600 # Node ID 29ede570c8165a56bf3b7af80ba67e3bc68988a2 # Parent ffd5f575edd50356e845d96f536455c2dbb31c8f Adjusted the package's Makefile for new configuration file diff -r ffd5f575edd5 -r 29ede570c816 Makefile --- 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 diff -r ffd5f575edd5 -r 29ede570c816 etc/package-mapping.conf.sample --- /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 diff -r ffd5f575edd5 -r 29ede570c816 pkg-plist --- /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