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
02f96dac
Commit
02f96dac
authored
Feb 25, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pkg: pull in all files, contents and insert placeholders
parent
6229f0fa
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
2 deletions
+23
-2
Makefile
Makefile
+6
-2
+MANIFEST
pkg/+MANIFEST
+11
-0
+POST_INSTALL
pkg/+POST_INSTALL
+3
-0
+PRE_DEINSTALL
pkg/+PRE_DEINSTALL
+3
-0
No files found.
Makefile
View file @
02f96dac
...
...
@@ -7,10 +7,14 @@ umount:
umount
-f
"<above>:
${
.CURDIR
}
/src"
install
:
@
mkdir
-p
${
DESTDIR
}
/usr/local
@
cp
${
.CURDIR
}
/pkg/+POST_INSTALL
${
DESTDIR
}
# hardcode package meta files to catch mishaps
@
cp
${
.CURDIR
}
/pkg/+PRE_DEINSTALL
${
DESTDIR
}
@
cp
${
.CURDIR
}
/pkg/+POST_INSTALL
${
DESTDIR
}
@
cp
${
.CURDIR
}
/pkg/+MANIFEST
${
DESTDIR
}
# move all sources to their destination and...
@
mkdir
-p
${
DESTDIR
}
/usr/local
@
cp
-r
${
.CURDIR
}
/src/
*
${
DESTDIR
}
/usr/local
# ... pretty-print a list of files present
@
(
cd
${
.CURDIR
}
/src
;
find
*
-type
f
)
|
\
xargs
-n1
printf
"/usr/local/%s
\n
"
...
...
pkg/+MANIFEST
0 → 100644
View file @
02f96dac
name: opnsense
version: "%%REPO_VERSION%%"
origin: opnsense/opnsense
comment: "%%REPO_COMMENT%%"
desc: "OPNsense core package"
maintainer: franco@opnsense.org
www: https://opnsense.org
prefix: /
deps: {
%%REPO_DEPENDS%%
}
pkg/+POST_INSTALL
View file @
02f96dac
...
...
@@ -20,3 +20,6 @@ if [ -f /usr/local/etc/rc ]; then /usr/local/etc/rc; exit 0; fi
EOF
cat /etc/rc.bak >> /etc/rc
rm -f /etc/rc.bak
echo "Writing OPNsense version"
echo "%%REPO_VERSION%%-%%REPO_COMMENT%%" > /usr/local/etc/version
pkg/+PRE_DEINSTALL
View file @
02f96dac
...
...
@@ -14,3 +14,6 @@ rm -f /etc/rc.bak
echo "Enabling FreeBSD mirror"
sed -i "" -e "s/^ enabled: no$/ enabled: yes/" /etc/pkg/FreeBSD.conf
echo "Removing OPNsense version"
rm -f /usr/local/etc/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