Commit 02f96dac authored by Franco Fichtner's avatar Franco Fichtner

pkg: pull in all files, contents and insert placeholders

parent 6229f0fa
...@@ -7,10 +7,14 @@ umount: ...@@ -7,10 +7,14 @@ umount:
umount -f "<above>:${.CURDIR}/src" umount -f "<above>:${.CURDIR}/src"
install: install:
@mkdir -p ${DESTDIR}/usr/local # hardcode package meta files to catch mishaps
@cp ${.CURDIR}/pkg/+POST_INSTALL ${DESTDIR}
@cp ${.CURDIR}/pkg/+PRE_DEINSTALL ${DESTDIR} @cp ${.CURDIR}/pkg/+PRE_DEINSTALL ${DESTDIR}
@cp ${.CURDIR}/pkg/+POST_INSTALL ${DESTDIR}
@cp ${.CURDIR}/pkg/+MANIFEST ${DESTDIR}
# move all sources to their destination and...
@mkdir -p ${DESTDIR}/usr/local
@cp -r ${.CURDIR}/src/* ${DESTDIR}/usr/local @cp -r ${.CURDIR}/src/* ${DESTDIR}/usr/local
# ... pretty-print a list of files present
@(cd ${.CURDIR}/src; find * -type f) | \ @(cd ${.CURDIR}/src; find * -type f) | \
xargs -n1 printf "/usr/local/%s\n" xargs -n1 printf "/usr/local/%s\n"
......
name: opnsense
version: "%%REPO_VERSION%%"
origin: opnsense/opnsense
comment: "%%REPO_COMMENT%%"
desc: "OPNsense core package"
maintainer: franco@opnsense.org
www: https://opnsense.org
prefix: /
deps: {
%%REPO_DEPENDS%%
}
...@@ -20,3 +20,6 @@ if [ -f /usr/local/etc/rc ]; then /usr/local/etc/rc; exit 0; fi ...@@ -20,3 +20,6 @@ if [ -f /usr/local/etc/rc ]; then /usr/local/etc/rc; exit 0; fi
EOF EOF
cat /etc/rc.bak >> /etc/rc cat /etc/rc.bak >> /etc/rc
rm -f /etc/rc.bak rm -f /etc/rc.bak
echo "Writing OPNsense version"
echo "%%REPO_VERSION%%-%%REPO_COMMENT%%" > /usr/local/etc/version
...@@ -14,3 +14,6 @@ rm -f /etc/rc.bak ...@@ -14,3 +14,6 @@ rm -f /etc/rc.bak
echo "Enabling FreeBSD mirror" echo "Enabling FreeBSD mirror"
sed -i "" -e "s/^ enabled: no$/ enabled: yes/" /etc/pkg/FreeBSD.conf sed -i "" -e "s/^ enabled: no$/ enabled: yes/" /etc/pkg/FreeBSD.conf
echo "Removing OPNsense version"
rm -f /usr/local/etc/version
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