Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
677
Issues
677
List
Boards
Labels
Service Desk
Milestones
Merge Requests
210
Merge Requests
210
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
a9d9046b
Commit
a9d9046b
authored
Jan 15, 2014
by
Natanael Copa
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing/darkhttpd: create darkhttpd user and logdir
ref
#2538
parent
633929f8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
+16
-7
testing/darkhttpd/APKBUILD
testing/darkhttpd/APKBUILD
+7
-6
testing/darkhttpd/darkhttpd.initd
testing/darkhttpd/darkhttpd.initd
+1
-1
testing/darkhttpd/darkhttpd.pre-install
testing/darkhttpd/darkhttpd.pre-install
+8
-0
No files found.
testing/darkhttpd/APKBUILD
View file @
a9d9046b
...
...
@@ -2,7 +2,7 @@
# Maintainer: Alan Messias Cordeiro <alancordeiro@gmail.com>
pkgname
=
darkhttpd
pkgver
=
1.9
pkgrel
=
1
pkgrel
=
2
pkgdesc
=
"A simple, single-threaded, static content webserver"
url
=
"http://unix4lyfe.org/darkhttpd/"
arch
=
"all"
...
...
@@ -10,7 +10,7 @@ license="BSD"
depends
=
""
depends_dev
=
""
makedepends
=
"
$depends_dev
"
install
=
""
install
=
"
$pkgname
.pre-install
"
subpackages
=
""
source
=
"http://unix4lyfe.org/darkhttpd/darkhttpd-
$pkgver
.tar.bz2
$pkgname
.initd"
...
...
@@ -35,15 +35,16 @@ package() {
# install binary
cd
"
$_builddir
"
install
-Dm755
$pkgname
"
$pkgdir
"
/usr/bin/
$pkgname
||
return
1
install
-d
"
$pkgdir
"
/var/www/localhost/htdocs
||
return
1
install
-d
"
$pkgdir
"
/var/www/localhost/htdocs
\
"
$pkgdir
"
/var/log/darkhttpd
||
return
1
# install init.d
install
-Dm755
"
$srcdir
"
/
$pkgname
.initd
"
$pkgdir
"
/etc/init.d/
$pkgname
||
return
1
}
md5sums
=
"156f239af542028c3fb5c2248aa0db8d darkhttpd-1.9.tar.bz2
c
f157b9c79663870d5ad3fb7a43ad9d3
darkhttpd.initd"
c
a1ef549dd1a18d3e3614e6c466ba898
darkhttpd.initd"
sha256sums
=
"33ef622069dc167bcf85e46482388f2d6555e25796f64a6c5b215d939f2b41c8 darkhttpd-1.9.tar.bz2
3b8482966d2f5f9fb1e422864af458d0ce5a59a0b08950930cfc1059e21eae0a
darkhttpd.initd"
cb6e4ccda90337f660c19f011c0c474aa9fcd6f93b93e675cafd5cabbc7f99a5
darkhttpd.initd"
sha512sums
=
"dba843a5cdd1825666f1a4f2ae578e694c69f6f3d4e72586ab6cb96ef35e5581295ccbdff80bb8f58aba91f4c3342fe213604cb8eac5cbbd49d34bc8a0d795e4 darkhttpd-1.9.tar.bz2
c8956e2a7e85df03a449caac94a5de661fb8051a01ffc8d36d456175c299c5ef9633b5a31247bb11ba5f218438b66f845fce007df33ef8ff60e6582df2c3d161
darkhttpd.initd"
771d31ff90f78266f616b875366171f7b29bb91d7a2774bf4eb4c4d808ccd5348bae595433d27307a725072f96dd8a4827db5d2bc23669448a605c731dfde177
darkhttpd.initd"
testing/darkhttpd/darkhttpd.initd
View file @
a9d9046b
...
...
@@ -2,7 +2,7 @@
description="darkhttpd web server"
command="/usr/bin/darkhttpd"
command_args="${document_root:-/var/www/localhost/htdocs} --chroot --daemon"
command_args="${document_root:-/var/www/localhost/htdocs} --chroot --daemon
--uid darkhttpd --gid www-data --log /var/log/darkhttpd/access.log
"
procname="darkhttpd"
pidfile=""
stopsig="SIGTERM"
testing/darkhttpd/darkhttpd.pre-install
0 → 100644
View file @
a9d9046b
#!/bin/sh
addgroup
-g
82
-S
www-data 2>/dev/null
adduser
-S
-H
-h
/var/www/localhost/htdocs
-s
/sbin/nologin
-D
darkhttpd
\
2>/dev/null
addgroup darkhttpd www-data 2>/dev/null
exit
0
Chris Spillane
@ginjachris
mentioned in issue
#2538 (closed)
·
Jul 12, 2019
mentioned in issue
#2538 (closed)
mentioned in issue #2538
Toggle commit list
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