pkg: auto-mounting the repo taints pkg(8) setups

Move the config files out of the way, but still install them properly.
This commit is contained in:
Franco Fichtner 2015-03-02 12:42:43 +01:00
parent c2d2fe4b90
commit 10002c2278
3 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,12 @@ install:
# move all sources to their destination and...
@mkdir -p ${DESTDIR}/usr/local
@cp -r ${.CURDIR}/src/* ${DESTDIR}/usr/local
# bootstrap pkg(8) files that are not in sources
@mkdir -p ${DESTDIR}/usr/local/etc/pkg/repos
@cp ${.CURDIR}/pkg/OPNsense.conf ${DESTDIR}/usr/local/etc/pkg/repos
@echo /usr/local/etc/pkg/repos/OPNsense.conf
@cp ${.CURDIR}/pkg/pkg.conf ${DESTDIR}/usr/local/etc
@echo /usr/local/etc/pkg.conf
# ... pretty-print a list of files present
@(cd ${.CURDIR}/src; find * -type f) | \
xargs -n1 printf "/usr/local/%s\n"