summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriel Dabalsa2015-06-30 01:32:09 -0400
committerAriel Dabalsa2015-06-30 01:32:09 -0400
commit4060073007bc538e649b6cecf6a6846dceb4223b (patch)
tree85266bccb71679d83edc4419acf00e9c291561e2
downloadaur-scron-git.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD37
-rw-r--r--service12
3 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8b5cfa9dfdc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = scron-git
+ pkgdesc = Suckless cron daemon - git checkout
+ pkgver = r152.56a6538
+ pkgrel = 1
+ url = http://git.2f30.org/scron
+ arch = i686
+ arch = x86_64
+ license = MIT/X
+ makedepends = git
+ provides = cron
+ conflicts = cron
+ source = git://git.2f30.org/scron
+ source = service
+ md5sums = SKIP
+ md5sums = 03f689593cce17a451def6b5a9661e6e
+
+pkgname = scron-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5df8810fde5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Ariel Dabalsa <arieldabalsa@gmail.com>
+pkgname=scron-git
+_gitname=scron
+pkgver=r152.56a6538
+pkgrel=1
+pkgdesc='Suckless cron daemon - git checkout'
+arch=('i686' 'x86_64')
+url='http://git.2f30.org/scron'
+license=('MIT/X')
+makedepends=('git')
+provides=('cron')
+conflicts=('cron')
+source=('git://git.2f30.org/scron'
+ 'service')
+md5sums=('SKIP'
+ '03f689593cce17a451def6b5a9661e6e')
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/$_gitname"
+
+ make
+}
+
+package() {
+ cd "$srcdir/$_gitname"
+ make DESTDIR="$pkgdir" PREFIX=/usr install
+
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_gitname/LICENSE"
+ install -Dm644 "$srcdir/service" "$pkgdir/usr/lib/systemd/system/scron.service"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/service b/service
new file mode 100644
index 00000000000..d8dfaeccb33
--- /dev/null
+++ b/service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Periodic Command Scheduler
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/crond -n -f /etc/crontab
+ExecReload=/usr/bin/kill -HUP $MAINPID
+KillMode=process
+Restart=always
+
+[Install]
+WantedBy=multi-user.target