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
a154812f
Commit
a154812f
authored
May 24, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make: refactor previous, some missing spots
parent
3ecf0b8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
28 deletions
+30
-28
Makefile
Makefile
+30
-28
No files found.
Makefile
View file @
a154812f
...
...
@@ -32,30 +32,12 @@ all:
force
:
WRKDIR
?=
${
.CURDIR
}
/work
WRKSRC
=
${
WRKDIR
}
/src
PKGDIR
=
${
WRKDIR
}
/pkg
mount
:
force
@
if
[
!
-f
${
WRKDIR
}
/.mount_done
]
;
then
\
echo
-n
"Enabling core.git live mount..."
;
\
${
.CURDIR
}
/scripts/version.sh
>
\
${
.CURDIR
}
/src/opnsense/version/opnsense
;
\
mount_unionfs
${
.CURDIR
}
/src /usr/local
;
\
touch
${
WRKDIR
}
/.mount_done
;
\
echo
"done"
;
\
service configd restart
;
\
fi
WANTS
=
git pear-PHP_CodeSniffer phpunit
umount
:
force
@
if
[
-f
${
WRKDIR
}
/.mount_done
]
;
then
\
echo
-n
"Disabling core.git live mount..."
;
\
umount
-f
"<above>:
${
.CURDIR
}
/src"
;
\
rm
${
.CURDIR
}
/src/opnsense/version/opnsense
;
\
rm
${
WRKDIR
}
/.mount_done
;
\
echo
"done"
;
\
service configd restart
;
\
fi
.for
WANT
in
${WANTS}
want-${WANT}
:
force
@
${
PKG
}
info
${
WANT
}
>
/dev/null
.endfor
.if
${GIT}
!=
true
CORE_COMMIT
!=
${
.CURDIR
}
/scripts/version.sh
...
...
@@ -155,11 +137,31 @@ CORE_DEPENDS?= apinger \
wol
\
zip
want-git
:
force
@
${
PKG
}
info git
>
/dev/null
WRKDIR
?=
${
.CURDIR
}
/work
WRKSRC
=
${
WRKDIR
}
/src
PKGDIR
=
${
WRKDIR
}
/pkg
mount
:
want-git
@
if
[
!
-f
${
WRKDIR
}
/.mount_done
]
;
then
\
echo
-n
"Enabling core.git live mount..."
;
\
echo
"
${
CORE_COMMIT
}
"
>
\
${
.CURDIR
}
/src/opnsense/version/opnsense
;
\
mount_unionfs
${
.CURDIR
}
/src /usr/local
;
\
touch
${
WRKDIR
}
/.mount_done
;
\
echo
"done"
;
\
service configd restart
;
\
fi
umount
:
force
@
if
[
-f
${
WRKDIR
}
/.mount_done
]
;
then
\
echo
-n
"Disabling core.git live mount..."
;
\
umount
-f
"<above>:
${
.CURDIR
}
/src"
;
\
rm
${
.CURDIR
}
/src/opnsense/version/opnsense
;
\
rm
${
WRKDIR
}
/.mount_done
;
\
echo
"done"
;
\
service configd restart
;
\
fi
want-pear-PHP_CodeSniffer
:
force
@
${
PKG
}
info pear-PHP_CodeSniffer
>
/dev/null
manifest
:
want-git
@
echo
"name:
\"
${
CORE_NAME
}
\"
"
...
...
@@ -190,7 +192,7 @@ name: force
depends
:
force
@
echo
${
CORE_DEPENDS
}
scripts
:
force
scripts
:
want-git
@
mkdir
-p
${
DESTDIR
}
@
cp
-v
--
+PRE_DEINSTALL +POST_INSTALL
${
DESTDIR
}
@
sed
-i
''
-e
"s/%%CORE_COMMIT%%/
${
CORE_COMMIT
}
/g"
\
...
...
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