-
Notifications
You must be signed in to change notification settings - Fork 759
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg: do not overwrite default config.xml anymore; fixes #145
Fixes spurious overwrite of a standard config, but also doesn't
update the standards anymore in a running installation. Install
media is unaffected from this change. Users that have had their
standard config overwritten need to rewrite the file accordingly:
/usr/local/etc/config.xml
It also enables users to use their own sample configs on a running
installation from now on. Might add a knob in the GUI to do e.g.
`use this config as the factory reset configuration'. :)
While there, move the pkg-related Makefile glue into its own
file in the subdirectory for clarity.- Loading branch information
Showing
3 changed files
with
21 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| all: | ||
|
|
||
| install: | ||
| @cp ${.CURDIR}/+PRE_DEINSTALL ${DESTDIR} | ||
| @cp ${.CURDIR}/+POST_INSTALL ${DESTDIR} | ||
| @cp ${.CURDIR}/+MANIFEST ${DESTDIR} | ||
| @mkdir -p ${DESTDIR}/usr/local/etc/pkg/repos | ||
| @cp ${.CURDIR}/OPNsense.conf ${DESTDIR}/usr/local/etc/pkg/repos | ||
| @echo /usr/local/etc/pkg/repos/OPNsense.conf | ||
| @cp ${.CURDIR}/pkg.conf ${DESTDIR}/usr/local/etc | ||
| @echo /usr/local/etc/pkg.conf | ||
| @cp ${.CURDIR}/config.xml.sample ${DESTDIR}/usr/local/etc | ||
| @echo "@sample /usr/local/etc/config.xml.sample" | ||
| @mkdir -p ${DESTDIR}/usr/local/etc/pkg/fingerprints/OPNsense/trusted | ||
| @cp ${.CURDIR}/trusted/pkg.opnsense.org.20150402 \ | ||
| ${DESTDIR}/usr/local/etc/pkg/fingerprints/OPNsense/trusted | ||
| @echo /usr/local/etc/pkg/fingerprints/OPNsense/trusted/pkg.opnsense.org.20150402 | ||
|
|
||
| .PHONY: install |
File renamed without changes.