mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
pkg: neutral and unified name for our pkgng repo config
Discussed with: Shawn Webb
This commit is contained in:
parent
851bcf8428
commit
77ba360559
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,5 @@
|
||||
/src/etc/pkg.conf
|
||||
/src/etc/pkg/OPNsense.conf
|
||||
/src/etc/pkg/repos/origin.conf*
|
||||
/src/etc/ssh/**
|
||||
/src/etc/php.ini
|
||||
/src/lib/**
|
||||
|
||||
@ -5,12 +5,13 @@ install:
|
||||
@cp ${.CURDIR}/+POST_INSTALL ${DESTDIR}
|
||||
@cp ${.CURDIR}/+MANIFEST ${DESTDIR}
|
||||
@mkdir -p ${DESTDIR}/usr/local/etc/pkg/repos
|
||||
@cp ${.CURDIR}/OPNsense.conf.sample ${DESTDIR}/usr/local/etc/pkg/repos
|
||||
@echo "@sample /usr/local/etc/pkg/repos/OPNsense.conf.sample"
|
||||
@cp ${.CURDIR}/origin.conf.sample ${DESTDIR}/usr/local/etc/pkg/repos
|
||||
@echo "@sample /usr/local/etc/pkg/repos/origin.conf.sample"
|
||||
@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"
|
||||
# XXX needs generic approach to allow custom fingerprints
|
||||
@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
|
||||
|
||||
@ -27,6 +27,7 @@
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/* test scipt only, not in production */
|
||||
$pkg_mirror = 'http://pkg.opnsense.org';
|
||||
$pkg_flavour = 'latest';
|
||||
|
||||
@ -37,7 +38,7 @@ if (count($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_config = '';
|
||||
|
||||
@ -54,4 +55,4 @@ foreach ($pkg_sample as $pkg_line) {
|
||||
$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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user