Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
77ba3605
Commit
77ba3605
authored
Jun 11, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pkg: neutral and unified name for our pkgng repo config
Discussed with: Shawn Webb
parent
851bcf84
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
5 deletions
+7
-5
.gitignore
.gitignore
+1
-1
Makefile
pkg/Makefile
+3
-2
origin.conf.sample
pkg/origin.conf.sample
+0
-0
switch_repo.php
scripts/switch_repo.php
+3
-2
No files found.
.gitignore
View file @
77ba3605
/src/etc/pkg.conf
/src/etc/pkg/
OPNsense.conf
/src/etc/pkg/
repos/origin.conf*
/src/etc/ssh/**
/src/etc/php.ini
/src/lib/**
...
...
pkg/Makefile
View file @
77ba3605
...
...
@@ -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
...
...
pkg/
OPNsense
.conf.sample
→
pkg/
origin
.conf.sample
View file @
77ba3605
File moved
scripts/switch_repo.php
View file @
77ba3605
...
...
@@ -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
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment