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
9267664b
Commit
9267664b
authored
Jul 27, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pkg: add more manifest info and keep version history
parent
3cb0cb11
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
+POST_INSTALL
+POST_INSTALL
+3
-0
+PRE_DEINSTALL
+PRE_DEINSTALL
+0
-3
Makefile
Makefile
+6
-1
crash_reporter.php
src/www/crash_reporter.php
+3
-1
No files found.
+POST_INSTALL
View file @
9267664b
...
...
@@ -20,6 +20,9 @@ rm -f /etc/rc.bak
echo "Writing OPNsense version"
mkdir -p /usr/local/opnsense/version
if [ -f /usr/local/opnsense/version/opnsense ]; then
mv /usr/local/opnsense/version/opnsense /usr/local/opnsense/version/opnsense.last
fi
echo "%%CORE_COMMIT%%" > /usr/local/opnsense/version/opnsense
if /usr/local/etc/rc.d/configd status > /dev/null; then
...
...
+PRE_DEINSTALL
View file @
9267664b
...
...
@@ -10,6 +10,3 @@ echo "Unhooking from /etc/rc"
cp /etc/rc /etc/rc.bak
tail -n +5 /etc/rc.bak > /etc/rc
rm -f /etc/rc.bak
echo "Removing OPNsense version"
rm -f /usr/local/opnsense/version/opnsense
Makefile
View file @
9267664b
...
...
@@ -29,6 +29,7 @@ CORE_ORIGIN?= opnsense/${CORE_NAME}
CORE_COMMENT
?=
OPNsense development package
CORE_MAINTAINER
?=
franco@opnsense.org
CORE_WWW
?=
https://opnsense.org/
CORE_MESSAGE
?=
Follow the brave badger!
CORE_DEPENDS
?=
apinger
\
ataidle
\
beep
\
...
...
@@ -117,7 +118,11 @@ manifest: force
@
echo
"desc:
\"
${
CORE_HASH
}
\"
"
@
echo
"maintainer:
\"
${
CORE_MAINTAINER
}
\"
"
@
echo
"www:
\"
${
CORE_WWW
}
\"
"
@
echo
"prefix: /"
@
echo
"message:
\"
${
CORE_MESSAGE
}
\"
"
@
echo
"categories: [
\"
sysutils
\"
,
\"
www
\"
]"
@
echo
"licenselogic:
\"
single
\"
"
@
echo
"licenses: [
\"
BSD2CLAUSE
\"
]"
@
echo
"prefix: /usr/local"
@
echo
"deps: {"
@
for
CORE_DEPEND
in
${
CORE_DEPENDS
}
;
do
\
${
PKG
}
query
' %n: { version: "%v", origin: "%o" }'
\
...
...
src/www/crash_reporter.php
View file @
9267664b
...
...
@@ -64,11 +64,13 @@ function upload_crash_report($files)
$pgtitle
=
array
(
gettext
(
"Diagnostics"
),
gettext
(
"Crash Reporter"
));
include
(
'head.inc'
);
$last_version
=
'/usr/local/opnsense/version/opnsense.last'
;
$crash_report_header
=
sprintf
(
"System Information:
\n
%s
\n
%s %s (%s)
\n
%s
\n
"
,
"System Information:
\n
%s
\n
%s %s
%s
(%s)
\n
%s
\n
"
,
php_uname
(
'v'
),
$g
[
'product_name'
],
trim
(
file_get_contents
(
'/usr/local/opnsense/version/opnsense'
)),
file_exists
(
$last_version
)
?
sprintf
(
' [%s]'
,
trim
(
file_get_contents
(
$last_version
)))
:
''
,
php_uname
(
'm'
),
exec
(
'/usr/local/bin/openssl version'
)
);
...
...
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