Commit 3dd6db4a authored by Franco Fichtner's avatar Franco Fichtner

pkg: install via `install', and fix unknown version hiccup

parent 9833d24a
...@@ -8,6 +8,8 @@ umount: ...@@ -8,6 +8,8 @@ umount:
install: install:
@mkdir -p ${DESTDIR}/usr/local @mkdir -p ${DESTDIR}/usr/local
@cp ${.CURDIR}/pkg/+POST_INSTALL ${DESTDIR}
@cp ${.CURDIR}/pkg/+PRE_DEINSTALL ${DESTDIR}
@cp -r ${.CURDIR}/src/* ${DESTDIR}/usr/local @cp -r ${.CURDIR}/src/* ${DESTDIR}/usr/local
@(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"
......
...@@ -19,6 +19,3 @@ if [ -f /usr/local/etc/rc ]; then /usr/local/etc/rc; exit 0; fi ...@@ -19,6 +19,3 @@ if [ -f /usr/local/etc/rc ]; then /usr/local/etc/rc; exit 0; fi
EOG EOG
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,6 +14,3 @@ rm -f /etc/rc.bak ...@@ -14,6 +14,3 @@ 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