Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
ntpsec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
NTPsec
ntpsec
Commits
390de492
There was a problem fetching the pipeline summary.
Commit
390de492
authored
6 years ago
by
Hal Murray
Browse files
Options
Downloads
Patches
Plain Diff
Add support for Alpine Linux
parent
b9516157
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
buildprep
+13
-1
13 additions, 1 deletion
buildprep
with
13 additions
and
1 deletion
buildprep
+
13
−
1
View file @
390de492
...
...
@@ -50,7 +50,7 @@ done
cat
<<
EOF
# Preparing your system for ntpsec source build...
# This script presently knows about:
# CentOS, Debian, Fedora, Gentoo, SLES
and Ubuntu
# CentOS, Debian, Fedora, Gentoo, SLES
, Ubuntu, and Alpine Linux
# If you are running something else, such as macOS or Solaris, please
# read the source for this buildprep script to get an idea of what packages
# are required.
...
...
@@ -96,6 +96,11 @@ elif yast -h >/dev/null 2>&1
then
installer
=
yast
install
=
"
$do
$installer
--install"
elif
apk
--version
>
/dev/null 2>&1
then
# Alpine Linux, musl rather than libc
installer
=
apk
install
=
"
$do
$installer
add"
else
echo
"# ERROR: Package manager unidentified - Unsupported operating system"
exit
1
...
...
@@ -118,6 +123,13 @@ echo ""
daemon
()
{
# Prerequisites to build the daemon: bison, pps-tools, service libraries
case
$installer
in
apk
)
$install
build-base python
# basic tools
$install
bison python-dev linux-headers
$install
openssl-dev libcap-dev libseccomp-dev
# probably needs more, but this builds
# can't find timepps.h: gpsd and chrony have their own ??
;;
apt
)
$install
build-essential
# Build environment
$install
bison libssl-dev
# build
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment