Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
abuild
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matthias Ahouansou
abuild
Commits
d5591e6c
Commit
d5591e6c
authored
6 months ago
by
Sertonix
Committed by
Natanael Copa
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
samples: modernize and improve
parent
a732ae00
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
sample.APKBUILD
+5
-9
5 additions, 9 deletions
sample.APKBUILD
sample.confd
+1
-1
1 addition, 1 deletion
sample.confd
sample.initd
+2
-2
2 additions, 2 deletions
sample.initd
with
8 additions
and
12 deletions
sample.APKBUILD
+
5
−
9
View file @
d5591e6c
# This is an example APKBUILD file. Use this as a start to creating your own,
# and remove these comments.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Contributor: Your Name <youremail@domain.com>
maintainer="Your Name <youremail@domain.com>"
...
...
@@ -11,22 +9,22 @@ pkgrel=0
pkgdesc=""
url=""
arch="all"
license="
GPL
"
license="
unknown
"
depends=
depends_dev=
makedepends="$depends_dev"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="https://downloads.sourceforge.net/
$pkgname/$pkgname
-$pkgver.tar.gz"
source="https://downloads.sourceforge.net/
NAME/NAME
-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$builddir"
default_prepare
# When needed add additional preparation below. Otherwise remove this function
}
build() {
cd "$builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
...
...
@@ -35,7 +33,6 @@ build() {
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
# remove the 2 lines below (and this) if there is no init.d script
...
...
@@ -44,9 +41,8 @@ package() {
}
check() {
# uncomment the
2
line
s
below if there is a testsuite. we assume the testsuite
# uncomment the line below if there is a testsuite. we assume the testsuite
# is run using "make check", which is the default for autotools-based build systems.
# cd "$builddir"
# make check
}
...
...
This diff is collapsed.
Click to expand it.
sample.confd
+
1
−
1
View file @
d5591e6c
# Configuration for /etc/init.d/<SERVICE>
# User (and group) to run <SERVICE> as.
#command_user="<USER>"
#command_user="<USER>
[:<GROUP>]
"
# Additional arguments for <SERVICE> daemon.
#command_args=
...
...
This diff is collapsed.
Click to expand it.
sample.initd
+
2
−
2
View file @
d5591e6c
...
...
@@ -3,10 +3,10 @@
name="SampleService"
description="Sample init.d file for Alpine Linux"
: ${command_user:="<USER>"}
:
"
${command_user:="<USER>"}
"
command="/usr/sbin/<SERVICE>"
command_args="
$command_
args"
: "${
command_args
:
="
--default-
args"
}"
command_background="yes"
pidfile="/run/$RC_SVCNAME.pid"
...
...
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