Makefile 907 Bytes
Newer Older
1 2 3
all:

install:
4
	# main pkg(8) glue
5 6 7
	@cp ${.CURDIR}/+PRE_DEINSTALL ${DESTDIR}
	@cp ${.CURDIR}/+POST_INSTALL ${DESTDIR}
	@cp ${.CURDIR}/+MANIFEST ${DESTDIR}
8 9 10
	# config.xml factory reset file
	@cp ${.CURDIR}/config.xml.sample ${DESTDIR}/usr/local/etc
	@echo "@sample /usr/local/etc/config.xml.sample"
11 12 13 14 15 16
	# create needed root direction
	@mkdir -p ${DESTDIR}/usr/local/etc/pkg
	# available repository configurations
	@cp -r ${.CURDIR}/repos ${DESTDIR}/usr/local/etc/pkg/
	@(cd ${.CURDIR}/repos; find * -type f) | \
	    xargs -n1 printf "/usr/local/etc/pkg/repos/%s\n"
17 18 19 20 21
	# 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
22 23 24 25
	@cp ${.CURDIR}/pkg.conf ${DESTDIR}/usr/local/etc
	@echo /usr/local/etc/pkg.conf

.PHONY: install