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
ece5dd86
Commit
ece5dd86
authored
Jul 16, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pkg: pick up sample files automatically
parent
1668205b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
Makefile
Makefile
+7
-2
Makefile
pkg/Makefile
+1
-4
config.xml.sample
src/etc/config.xml.sample
+0
-0
No files found.
Makefile
View file @
ece5dd86
...
...
@@ -24,8 +24,13 @@ install: force
# invoke third-party tools
@
make
-C
${
.CURDIR
}
/contrib
install
# finally pretty-print a list of files present
@
(
cd
${
.CURDIR
}
/src
;
find
*
-type
f
)
|
\
xargs
-n1
printf
"/usr/local/%s
\n
"
@
(
cd
${
.CURDIR
}
/src
;
find
*
-type
f
)
|
while
read
FILE
;
do
\
if
[
$$
{
FILE%%.sample
}
!=
$$
{
FILE
}
]
;
then
\
xargs
-n1
printf
"@sample /usr/local/%s
\n
"
;
\
else
\
xargs
-n1
printf
"/usr/local/%s
\n
"
;
\
fi
;
\
done
lint
:
force
find
${
.CURDIR
}
/src
${
.CURDIR
}
/lang/dynamic/helpers
\
...
...
pkg/Makefile
View file @
ece5dd86
...
...
@@ -5,16 +5,13 @@ install:
@
cp
${
.CURDIR
}
/+PRE_DEINSTALL
${
DESTDIR
}
@
cp
${
.CURDIR
}
/+POST_INSTALL
${
DESTDIR
}
@
cp
${
.CURDIR
}
/+MANIFEST
${
DESTDIR
}
# config.xml factory reset file
@
cp
${
.CURDIR
}
/config.xml.sample
${
DESTDIR
}
/usr/local/etc
@
echo
"@sample /usr/local/etc/config.xml.sample"
# create needed root direction
@
mkdir
-p
${
DESTDIR
}
/usr/local/etc/pkg
# available repository configurations
@
cp
-r
${
.CURDIR
}
/repos
${
DESTDIR
}
/usr/local/etc/pkg/
@
(
cd
${
.CURDIR
}
/repos
;
find
*
-type
f
)
|
\
xargs
-n1
printf
"/usr/local/etc/pkg/repos/%s
\n
"
# available fingerprints
# available
vendor
fingerprints
@
cp
-r
${
.CURDIR
}
/fingerprints
${
DESTDIR
}
/usr/local/etc/pkg/
@
(
cd
${
.CURDIR
}
/fingerprints
;
find
*
-type
f
)
|
\
xargs
-n1
printf
"/usr/local/etc/pkg/fingerprints/%s
\n
"
...
...
pkg
/config.xml.sample
→
src/etc
/config.xml.sample
View file @
ece5dd86
File moved
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