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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Bart Ribbers
aports
Commits
b3571c86
Commit
b3571c86
authored
9 years ago
by
Sören Tempel
Browse files
Options
Downloads
Patches
Plain Diff
testing/dcron: rename pid file for consistency
Besides busybox cron already uses /run/crond.pid
parent
16230aa3
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/dcron/APKBUILD
+7
-17
7 additions, 17 deletions
testing/dcron/APKBUILD
testing/dcron/dcron.initd
+1
-1
1 addition, 1 deletion
testing/dcron/dcron.initd
testing/dcron/pidfile.patch
+11
-25
11 additions, 25 deletions
testing/dcron/pidfile.patch
with
19 additions
and
43 deletions
testing/dcron/APKBUILD
+
7
−
17
View file @
b3571c86
...
...
@@ -2,7 +2,7 @@
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname
=
dcron
pkgver
=
4.5
pkgrel
=
2
pkgrel
=
3
pkgdesc
=
"dillon's lightweight cron daemon"
url
=
"http://www.jimpryor.net/linux/dcron.html"
arch
=
"all"
...
...
@@ -18,16 +18,6 @@ source="http://www.jimpryor.net/linux/releases/${pkgname}-${pkgver}.tar.gz
ldflags.patch"
_builddir
=
"
$srcdir
"
/
$pkgname
-
$pkgver
prepare
()
{
cd
"
$_builddir
"
local
i
for
i
in
$source
;
do
case
$i
in
*
.patch
)
msg
$i
;
patch
-p1
-i
"
$srcdir
"
/
$i
||
return
1
;;
esac
done
}
build
()
{
cd
"
$_builddir
"
make
PREFIX
=
/usr
\
...
...
@@ -49,14 +39,14 @@ package() {
}
md5sums
=
"078833f3281f96944fc30392b1888326 dcron-4.5.tar.gz
7e0075315366e5312221f68de4de6961
dcron.initd
1e40cbf27604072f147ec8b131988eaf
pidfile.patch
36fb725b46f815dc6692a269ef22dc47
dcron.initd
c6761a07945edbeecc5726bb0ba92d40
pidfile.patch
646b16f31abbea4c215512f58f421abc ldflags.patch"
sha256sums
=
"9e50edb6f5bd8153b16bad05087d985e5153ce45cc01ae77e7f842213fb4a824 dcron-4.5.tar.gz
a1a58b4ab6c570244f4eb3db3cc0414ee183a7b2627e26f43fd43061c4caf3c2
dcron.initd
4272467e432eab948f6770ea639f38817123eac2c87fc76f3fcb2b2d4cecbbb6
pidfile.patch
dd36b83cd4fa2694119fe046a2432b702ce42c8dc0e87a252cae25a904560acf
dcron.initd
f6c5adf109350eee543549ea63e03d1ac4ca8131d8c8ac1ac7074b222883cfa0
pidfile.patch
69b907a89d22bcff5ded7ebd749c4e8df87106e290c75110630031e75631ee3a ldflags.patch"
sha512sums
=
"08521391d16ba5adf80278ec2a734319c26c48841fd94b119c0b27d744c2cfb3562b1a3630135a03d1c43b1668d49262713abb20ff5f7ecd397a2a19a2f6105a dcron-4.5.tar.gz
cad27486519f812dfffbf0c463f7f0d25ddaf5ce517fb48445d23b8eee1cb480fa3a2d4ee1ef2df9efc65a8f58ddf683db21ef7503367cc1d6c2c8e60fd3a911
dcron.initd
0
8bd8d7445b597a5c7d66d3e768c943388db44e0ae43a0cec2be3b0c83c510f00f808b02d52b86cb663e79ea66584b16f92eaa02d40489e5f4124206ae17378d
pidfile.patch
0513fc6795988c68f2d552c7754383c6db1f51507686c25cf5205a8491679626118a4bab22c8d5e58017f58cc01ab21af8931fdef806a80f3d27cba2f53831cd
dcron.initd
0
4fdd3059d6b1df8132944e2eefa932e640db8b4a5ac85dd1ca833adf1d0013ad33f40021624e12a4203b08003d6c79f0a5da4e29b057004fb849f388c7178f2
pidfile.patch
8a07ccfae80468a555e8f5ea60f88dd444a3aacb6baa6f747a6a02bcdce78baaa8aaf799ae9d2684a518bfff537dc0cdcf0b53bb6fc0017fa52228f1f0a16e49 ldflags.patch"
This diff is collapsed.
Click to expand it.
testing/dcron/dcron.initd
+
1
−
1
View file @
b3571c86
...
...
@@ -3,7 +3,7 @@
name
=
"
$SVCNAME
"
command
=
"/usr/sbin/crond"
command_args
=
"
$DCRON_OPTS
"
pidfile
=
"/var/run/
crond
.pid"
pidfile
=
"/var/run/
$SVCNAME
.pid"
description
=
"Dillon's lightweight cron daemon"
depend
()
{
...
...
This diff is collapsed.
Click to expand it.
testing/dcron/pidfile.patch
+
11
−
25
View file @
b3571c86
From 14b0f33ebf33d3d08427fd4d9fd4bda3cc107bd0 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Tue, 26 Oct 2010 01:42:32 -0400
Subject: [PATCH] crond: write a pid file
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
Makefile | 2 +-
main.c | 5 +++++
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index dc5b78f..e278312 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,7 @@
DEFS = -DVERSION='"$(VERSION)"' \
diff -upr dcron-4.5.orig/Makefile dcron-4.5/Makefile
--- dcron-4.5.orig/Makefile 2016-03-20 00:03:45.043674778 +0100
+++ dcron-4.5/Makefile 2016-03-20 00:04:01.640164147 +0100
@@ -39,7 +39,7 @@
DEFS = -DVERSION='"$(VERSION)"' \
-DTIMESTAMP_FMT='"$(TIMESTAMP_FMT)"'
# save variables needed for `make install` in config
...
...
@@ -22,22 +10,20 @@ index dc5b78f..e278312 100644
rm -f config
echo "PREFIX = $(PREFIX)" >> config
echo "SBINDIR = $(SBINDIR)" >> config
diff --git a/main.c b/main.c
index e4a742e..6313213 100644
---
a/main.c
+++
b/main.c
@@ -22
7
,6 +22
7
,11 @@
main(int ac, char **av)
Only in dcron-4.5: Makefile.orig
diff -upr dcron-4.5.orig/main.c dcron-4.5/main.c
---
dcron-4.5.orig/main.c 2016-03-20 00:03:45.043674778 +0100
+++
dcron-4.5/main.c 2016-03-20 00:04:14.933355472 +0100
@@ -22
6
,6 +22
6
,11 @@
main(int ac, char **av)
exit(1);
} else if (pid > 0) {
/* parent */
+ FILE *fp;
+ if ((fp = fopen("/var/run/cron
d
.pid", "w")) != NULL) {
+ if ((fp = fopen("/var/run/
d
cron.pid", "w")) != NULL) {
+ fprintf(fp, "%d\n", pid);
+ fclose(fp);
+ }
exit(0);
}
/* child continues */
--
1.7.3.1
Only in dcron-4.5: main.c.orig
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