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
019e1c1b
Commit
019e1c1b
authored
Jul 30, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make: probe for upgraded package first, show hint on how to fix
parent
35127272
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
Makefile
Makefile
+11
-3
No files found.
Makefile
View file @
019e1c1b
...
...
@@ -239,7 +239,7 @@ package-keywords: force
fi
@
echo
">>> Installed /usr/ports/Keywords/sample.ucl"
package
:
force
package
-check
:
force
@
if
[
-f
${
WRKDIR
}
/.mount_done
]
;
then
\
echo
">>> Cannot continue with live mount. Please run 'make umount'."
>
&2
;
\
exit
1
;
\
...
...
@@ -248,6 +248,8 @@ package: force
echo
">>> Missing required file(s). Please run 'make package-keywords'"
>
&2
;
\
exit
1
;
\
fi
package
:
package-check
@
rm
-rf
${
WRKSRC
}
${
PKGDIR
}
@
${
MAKE
}
DESTDIR
=
${
WRKSRC
}
FLAVOUR
=
${
FLAVOUR
}
metadata
@
${
MAKE
}
DESTDIR
=
${
WRKSRC
}
FLAVOUR
=
${
FLAVOUR
}
install
...
...
@@ -256,9 +258,15 @@ package: force
@
echo
-n
"Successfully built "
@
cd
${
PKGDIR
}
;
find
.
-name
"*.txz"
|
cut
-c3-
upgrade
:
package
upgrade-check
:
force
@
if
!
${
PKG
}
info
${
CORE_NAME
}
>
/dev/null
;
then
\
echo
">>> Cannot find package. Please run 'opnsense-update -t
${
CORE_NAME
}
'"
>
&2
;
\
exit
1
;
\
fi
upgrade
:
upgrade-check package
@
${
PKG
}
set
-yv
0
${
CORE_NAME
}
${
PKG
}
delete
-y
${
CORE_NAME
}
@
${
PKG
}
delete
-y
${
CORE_NAME
}
@
${
PKG
}
add
${
PKGDIR
}
/
*
.txz
@
${
PKG
}
set
-yv
1
${
CORE_NAME
}
@
/usr/local/etc/rc.restart_webgui
...
...
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