Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Akihiro Suda
aports
Commits
a8253523
Commit
a8253523
authored
14 years ago
by
Síle Ekaterin Liszka
Committed by
Jeff Bilyk
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
testing/uptimed: new aport (needs work)
parent
46055942
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
testing/uptimed/APKBUILD
+51
-0
51 additions, 0 deletions
testing/uptimed/APKBUILD
testing/uptimed/uptimed.confd
+12
-0
12 additions, 0 deletions
testing/uptimed/uptimed.confd
testing/uptimed/uptimed.initd
+30
-0
30 additions, 0 deletions
testing/uptimed/uptimed.initd
with
93 additions
and
0 deletions
testing/uptimed/APKBUILD
0 → 100644
+
51
−
0
View file @
a8253523
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname
=
uptimed
pkgver
=
0.3.16
pkgrel
=
0
pkgdesc
=
"Utility for keeping track of uptime records"
url
=
"http://podgorny.cz/moin/Uptimed"
arch
=
"all"
license
=
"GPL"
depends
=
makedepends
=
"automake autoconf libtool"
install
=
""
subpackages
=
"
$pkgname
-dev
$pkgname
-doc"
source
=
"
http://podgorny.cz/uptimed/releases/
$pkgname
-
$pkgver
.tar.bz2
uptimed.initd
uptimed.confd
"
_builddir
=
"
$srcdir
/
$pkgname
-
$pkgver
"
prepare
()
{
local
i
cd
"
$_builddir
"
for
i
in
$source
;
do
case
$i
in
*
.patch
)
msg
$i
;
patch
-p1
-i
"
$srcdir
"
/
$i
||
return
1
;;
esac
done
autoreconf
libtoolize
}
build
()
{
cd
"
$_builddir
"
./configure
--prefix
=
/usr
--sysconfdir
=
/etc
make
||
return
1
}
package
()
{
cd
"
$_builddir
"
make
DESTDIR
=
"
$pkgdir
"
install
||
return
1
install
-m755
-D
"
$srcdir
"
/
$pkgname
.initd
\
"
$pkgdir
"
/etc/init.d/
$pkgname
||
return
1
install
-m644
-D
"
$srcdir
"
/
$pkgname
.confd
\
"
$pkgdir
"
/etc/conf.d/
$pkgname
||
return
1
}
md5sums
=
"f87ec2cc39039239004afa542cf99c59 uptimed-0.3.16.tar.bz2
b9776cc0245666122dc9d745fcba3245 uptimed.initd
f648724df795b81afdcc3484258cfd25 uptimed.confd"
This diff is collapsed.
Click to expand it.
testing/uptimed/uptimed.confd
0 → 100644
+
12
−
0
View file @
a8253523
# Sample conf.d file for alpine linux
#
# uptimed opts:
# -b create bootid and exit [ignored on FreeBSD]
# -f run in foreground [don't fork]
# -e EMAIL send mail to EMAIL at milestones/records
# -i INTERVAL use INTERVAL seconds for loop
# -m COUNT log a maximum of COUNT entries
# -t TIMESPEC minimum uptime to be considered a record
# -p FILE write PID to FILE
opts=""
This diff is collapsed.
Click to expand it.
testing/uptimed/uptimed.initd
0 → 100644
+
30
−
0
View file @
a8253523
#!/sbin/runscript
# Sample init.d file for alpine linux.
name=uptimed
daemon=/usr/sbin/$name
source /etc/conf.d/$name
depend() {
need net
after firewall
}
start() {
ebegin "Starting ${name}"
start-stop-daemon --start --quiet \
--pidfile /var/run/${name}.pid \
--chuid nobody:nobody \
--exec ${daemon} -- ${opts}
eend $?
}
stop() {
ebegin "Stopping ${name}"
start-stop-daemon --stop --quiet \
--pidfile /var/run/$name.pid \
--exec ${daemon}
eend $?
}
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