Commit 7239bb0f authored by Franco Fichtner's avatar Franco Fichtner

pkg: refactor fingerprint install to avoid hardcoding of names

parent 66ec624a
all: all:
install: install:
# main pkg(8) glue
@cp ${.CURDIR}/+PRE_DEINSTALL ${DESTDIR} @cp ${.CURDIR}/+PRE_DEINSTALL ${DESTDIR}
@cp ${.CURDIR}/+POST_INSTALL ${DESTDIR} @cp ${.CURDIR}/+POST_INSTALL ${DESTDIR}
@cp ${.CURDIR}/+MANIFEST ${DESTDIR} @cp ${.CURDIR}/+MANIFEST ${DESTDIR}
# config.xml factory reset file
@cp ${.CURDIR}/config.xml.sample ${DESTDIR}/usr/local/etc
@echo "@sample /usr/local/etc/config.xml.sample"
# main package repository configuration
@mkdir -p ${DESTDIR}/usr/local/etc/pkg/repos @mkdir -p ${DESTDIR}/usr/local/etc/pkg/repos
@cp ${.CURDIR}/origin.conf.sample ${DESTDIR}/usr/local/etc/pkg/repos @cp ${.CURDIR}/origin.conf.sample ${DESTDIR}/usr/local/etc/pkg/repos
@echo "@sample /usr/local/etc/pkg/repos/origin.conf.sample" @echo "@sample /usr/local/etc/pkg/repos/origin.conf.sample"
# available fingerprints
@cp -r ${.CURDIR}/fingerprints ${DESTDIR}/usr/local/etc/pkg/
@(cd ${.CURDIR}/fingerprints; find * -type f) | \
xargs -n1 printf "/usr/local/etc/pkg/fingerprints/%s\n"
# XXX CONSERVATIVE_UPGRADE is not very helpful
@cp ${.CURDIR}/pkg.conf ${DESTDIR}/usr/local/etc @cp ${.CURDIR}/pkg.conf ${DESTDIR}/usr/local/etc
@echo /usr/local/etc/pkg.conf @echo /usr/local/etc/pkg.conf
@cp ${.CURDIR}/config.xml.sample ${DESTDIR}/usr/local/etc
@echo "@sample /usr/local/etc/config.xml.sample"
# XXX needs generic approach to allow custom fingerprints
@mkdir -p ${DESTDIR}/usr/local/etc/pkg/fingerprints/OPNsense/trusted
@cp ${.CURDIR}/trusted/pkg.opnsense.org.20150402 \
${DESTDIR}/usr/local/etc/pkg/fingerprints/OPNsense/trusted
@echo /usr/local/etc/pkg/fingerprints/OPNsense/trusted/pkg.opnsense.org.20150402
.PHONY: install .PHONY: install
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment