Commit 77ba3605 authored by Franco Fichtner's avatar Franco Fichtner

pkg: neutral and unified name for our pkgng repo config

Discussed with: Shawn Webb
parent 851bcf84
/src/etc/pkg.conf /src/etc/pkg.conf
/src/etc/pkg/OPNsense.conf /src/etc/pkg/repos/origin.conf*
/src/etc/ssh/** /src/etc/ssh/**
/src/etc/php.ini /src/etc/php.ini
/src/lib/** /src/lib/**
......
...@@ -5,12 +5,13 @@ install: ...@@ -5,12 +5,13 @@ install:
@cp ${.CURDIR}/+POST_INSTALL ${DESTDIR} @cp ${.CURDIR}/+POST_INSTALL ${DESTDIR}
@cp ${.CURDIR}/+MANIFEST ${DESTDIR} @cp ${.CURDIR}/+MANIFEST ${DESTDIR}
@mkdir -p ${DESTDIR}/usr/local/etc/pkg/repos @mkdir -p ${DESTDIR}/usr/local/etc/pkg/repos
@cp ${.CURDIR}/OPNsense.conf.sample ${DESTDIR}/usr/local/etc/pkg/repos @cp ${.CURDIR}/origin.conf.sample ${DESTDIR}/usr/local/etc/pkg/repos
@echo "@sample /usr/local/etc/pkg/repos/OPNsense.conf.sample" @echo "@sample /usr/local/etc/pkg/repos/origin.conf.sample"
@cp ${.CURDIR}/pkg.conf ${DESTDIR}/usr/local/etc @cp ${.CURDIR}/pkg.conf ${DESTDIR}/usr/local/etc
@echo /usr/local/etc/pkg.conf @echo /usr/local/etc/pkg.conf
@cp ${.CURDIR}/config.xml.sample ${DESTDIR}/usr/local/etc @cp ${.CURDIR}/config.xml.sample ${DESTDIR}/usr/local/etc
@echo "@sample /usr/local/etc/config.xml.sample" @echo "@sample /usr/local/etc/config.xml.sample"
# XXX needs generic approach to allow custom fingerprints
@mkdir -p ${DESTDIR}/usr/local/etc/pkg/fingerprints/OPNsense/trusted @mkdir -p ${DESTDIR}/usr/local/etc/pkg/fingerprints/OPNsense/trusted
@cp ${.CURDIR}/trusted/pkg.opnsense.org.20150402 \ @cp ${.CURDIR}/trusted/pkg.opnsense.org.20150402 \
${DESTDIR}/usr/local/etc/pkg/fingerprints/OPNsense/trusted ${DESTDIR}/usr/local/etc/pkg/fingerprints/OPNsense/trusted
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
POSSIBILITY OF SUCH DAMAGE. POSSIBILITY OF SUCH DAMAGE.
*/ */
/* test scipt only, not in production */
$pkg_mirror = 'http://pkg.opnsense.org'; $pkg_mirror = 'http://pkg.opnsense.org';
$pkg_flavour = 'latest'; $pkg_flavour = 'latest';
...@@ -37,7 +38,7 @@ if (count($argv) > 2) { ...@@ -37,7 +38,7 @@ if (count($argv) > 2) {
$pkg_mirror = $argv[2]; $pkg_mirror = $argv[2];
} }
$pkg_sample = file_get_contents('/usr/local/etc/pkg/repos/OPNsense.conf.sample'); $pkg_sample = file_get_contents('/usr/local/etc/pkg/repos/origin.conf.sample');
$pkg_sample = explode(PHP_EOL, $pkg_sample); $pkg_sample = explode(PHP_EOL, $pkg_sample);
$pkg_config = ''; $pkg_config = '';
...@@ -54,4 +55,4 @@ foreach ($pkg_sample as $pkg_line) { ...@@ -54,4 +55,4 @@ foreach ($pkg_sample as $pkg_line) {
$pkg_config .= $pkg_line . PHP_EOL; $pkg_config .= $pkg_line . PHP_EOL;
} }
file_put_contents('/usr/local/etc/pkg/repos/OPNsense.conf', $pkg_config); file_put_contents('/usr/local/etc/pkg/repos/origin.conf', $pkg_config);
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