mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
Mk: refactor install/plist code a wee bit
This commit is contained in:
parent
9890172c6e
commit
bd23c117f5
15
Mk/tree.mk
Normal file
15
Mk/tree.mk
Normal file
@ -0,0 +1,15 @@
|
||||
all:
|
||||
|
||||
install:
|
||||
.for TREE in ${TREES}
|
||||
@mkdir -p ${DESTDIR}${ROOT}
|
||||
@cp -vr ${TREE} ${DESTDIR}${ROOT}
|
||||
.endfor
|
||||
|
||||
plist:
|
||||
.for TREE in ${TREES}
|
||||
@(cd ${TREE}; find * -type f) | \
|
||||
xargs -n1 printf "${ROOT}/${TREE}/%s\n"
|
||||
.endfor
|
||||
|
||||
.PHONY: install plist
|
||||
@ -1,16 +1,4 @@
|
||||
all:
|
||||
ROOT= /usr/local/share
|
||||
TREES= openvpn mobile-broadband-provider-info
|
||||
|
||||
install:
|
||||
@mkdir -p ${DESTDIR}/usr/local/share
|
||||
@cp -vr ${.CURDIR}/openvpn ${DESTDIR}/usr/local/share/
|
||||
@cp -vr ${.CURDIR}/mobile-broadband-provider-info \
|
||||
${DESTDIR}/usr/local/share/
|
||||
|
||||
plist:
|
||||
@(cd ${.CURDIR}/openvpn; find * -type f) | \
|
||||
xargs -n1 printf "/usr/local/share/openvpn/%s\n"
|
||||
@(cd ${.CURDIR}/mobile-broadband-provider-info; find * -type f) | \
|
||||
xargs -n1 printf \
|
||||
"/usr/local/share/mobile-broadband-provider-info/%s\n"
|
||||
|
||||
.PHONY: install plist
|
||||
.include "../Mk/tree.mk"
|
||||
|
||||
16
pkg/Makefile
16
pkg/Makefile
@ -1,14 +1,4 @@
|
||||
all:
|
||||
ROOT= /usr/local/etc/pkg
|
||||
TREES= repos fingerprints
|
||||
|
||||
install:
|
||||
@mkdir -p ${DESTDIR}/usr/local/etc/pkg
|
||||
@cp -vr ${.CURDIR}/repos ${DESTDIR}/usr/local/etc/pkg/
|
||||
@cp -vr ${.CURDIR}/fingerprints ${DESTDIR}/usr/local/etc/pkg/
|
||||
|
||||
plist:
|
||||
@(cd ${.CURDIR}/repos; find * -type f) | \
|
||||
xargs -n1 printf "/usr/local/etc/pkg/repos/%s\n"
|
||||
@(cd ${.CURDIR}/fingerprints; find * -type f) | \
|
||||
xargs -n1 printf "/usr/local/etc/pkg/fingerprints/%s\n"
|
||||
|
||||
.PHONY: install plist
|
||||
.include "../Mk/tree.mk"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user