Commit ece5dd86 authored by Franco Fichtner's avatar Franco Fichtner

pkg: pick up sample files automatically

parent 1668205b
......@@ -24,8 +24,13 @@ install: force
# invoke third-party tools
@make -C ${.CURDIR}/contrib install
# finally pretty-print a list of files present
@(cd ${.CURDIR}/src; find * -type f) | \
xargs -n1 printf "/usr/local/%s\n"
@(cd ${.CURDIR}/src; find * -type f) | while read FILE; do \
if [ $${FILE%%.sample} != $${FILE} ]; then \
xargs -n1 printf "@sample /usr/local/%s\n"; \
else \
xargs -n1 printf "/usr/local/%s\n"; \
fi; \
done
lint: force
find ${.CURDIR}/src ${.CURDIR}/lang/dynamic/helpers \
......
......@@ -5,16 +5,13 @@ install:
@cp ${.CURDIR}/+PRE_DEINSTALL ${DESTDIR}
@cp ${.CURDIR}/+POST_INSTALL ${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"
# 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"
# available fingerprints
# available vendor 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"
......
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