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
7f2a8720
Commit
7f2a8720
authored
Jul 17, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pkg: better auto-generation of manifest info
parent
e919d946
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
30 deletions
+30
-30
+POST_INSTALL
+POST_INSTALL
+1
-1
+PRE_DEINSTALL
+PRE_DEINSTALL
+0
-0
Makefile
Makefile
+28
-5
Makefile
pkg/Makefile
+1
-24
No files found.
pkg/
+POST_INSTALL
→
+POST_INSTALL
View file @
7f2a8720
...
...
@@ -20,7 +20,7 @@ rm -f /etc/rc.bak
echo "Writing OPNsense version"
mkdir -p /usr/local/opnsense/version
echo "%%
REPO_VERSION%%-%%REPO_COMMEN
T%%" > /usr/local/opnsense/version/opnsense
echo "%%
CORE_COMMI
T%%" > /usr/local/opnsense/version/opnsense
if /usr/local/etc/rc.d/configd status > /dev/null; then
/usr/local/etc/rc.d/configd restart
...
...
pkg/
+PRE_DEINSTALL
→
+PRE_DEINSTALL
View file @
7f2a8720
File moved
Makefile
View file @
7f2a8720
...
...
@@ -13,14 +13,37 @@ mount: force
umount
:
force
/sbin/umount
-f
"<above>:
${
.CURDIR
}
/src"
scripts
:
force
@
make
-C
${
.CURDIR
}
/pkg scripts
CORE_COMMIT
!=
${
.CURDIR
}
/scripts/version.sh
CORE_VERSION
=
${
CORE_COMMIT
:C/-.
*
$/
/1
}
CORE_HASH
=
${
CORE_COMMIT
:C/^.
*-//1
}
name
:
force
@
make
-C
${
.CURDIR
}
/pkg name
CORE_NAME
?=
opnsense-devel
CORE_ORIGIN
?=
opnsense/
${
CORE_NAME
}
CORE_COMMENT
?=
OPNsense development package
CORE_MAINTAINER
?=
franco@opnsense.org
CORE_WWW
?=
https://opnsense.org/
manifest
:
force
@
make
-C
${
.CURDIR
}
/pkg manifest
@
echo
"name:
\"
${
CORE_NAME
}
\"
"
@
echo
"version:
\"
${
CORE_VERSION
}
\"
"
@
echo
"origin:
\"
${
CORE_ORIGIN
}
\"
"
@
echo
"comment:
\"
${
CORE_COMMENT
}
\"
"
@
echo
"desc:
\"
${
CORE_HASH
}
\"
"
@
echo
"maintainer:
\"
${
CORE_MAINTAINER
}
\"
"
@
echo
"www:
\"
${
CORE_WWW
}
\"
"
@
echo
"prefix: /"
@
echo
"deps: {"
@
echo
"%%REPO_DEPENDS%%"
@
echo
"}"
name
:
force
@
echo
${
CORE_NAME
}
scripts
:
force
@
mkdir
-p
${
DESTDIR
}
@
cp
-v
--
+PRE_DEINSTALL +POST_INSTALL
${
DESTDIR
}
@
sed
-i
''
-e
"s/%%CORE_COMMIT%%/
${
CORE_COMMIT
}
/g"
\
${
DESTDIR
}
/+POST_INSTALL
install
:
force
@
make
-C
${
.CURDIR
}
/pkg
install
...
...
pkg/Makefile
View file @
7f2a8720
all
:
CORE_NAME
=
opnsense-devel
name
:
@
echo
${
CORE_NAME
}
scripts
:
@
mkdir
-p
${
DESTDIR
}
@
cp
-v
${
.CURDIR
}
/+PRE_DEINSTALL
${
DESTDIR
}
@
cp
-v
${
.CURDIR
}
/+POST_INSTALL
${
DESTDIR
}
manifest
:
@
echo
"name:
${
CORE_NAME
}
"
@
echo
"version:
\"
%%REPO_VERSION%%
\"
"
@
echo
"origin: opnsense/
${
CORE_NAME
}
"
@
echo
"comment:
\"
OPNsense core development package
\"
"
@
echo
"desc: XXX"
@
echo
"maintainer: franco@opnsense.org"
@
echo
"www: https://opnsense.org/"
@
echo
"prefix: /"
@
echo
"deps: {"
@
echo
"%%REPO_DEPENDS%%"
@
echo
"}"
install
:
@
mkdir
-p
${
DESTDIR
}
/usr/local/etc/pkg
@
cp
-vr
${
.CURDIR
}
/repos
${
DESTDIR
}
/usr/local/etc/pkg/
...
...
@@ -34,4 +11,4 @@ plist:
@
(
cd
${
.CURDIR
}
/fingerprints
;
find
*
-type
f
)
|
\
xargs
-n1
printf
"/usr/local/etc/pkg/fingerprints/%s
\n
"
.PHONY
:
install plist
scripts manifest
.PHONY
:
install plist
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