aboutsummaryrefslogtreecommitdiffstats
path: root/community/at/APKBUILD
blob: c61cdabda644b0b2f5df87057ec14271ecc8fc17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Contributor: Alexander Belkov <msun00@yandex.ru>
# Maintainer: Alexander Belkov <msun00@yandex.ru>
pkgname=at
pkgver=3.1.18
pkgrel=2
pkgdesc="AT and batch delayed command scheduling utility and daemon"
url="http://packages.qa.debian.org/a/at.html"
arch="all"
license="GPL"
makedepends="ssmtp flex-dev byacc"
depends_dev=""
install="${pkgname}.pre-install"
options=suid
subpackages="at-doc"
source="http://http.debian.net/debian/pool/main/a/at/at_$pkgver.orig.tar.gz
	10-parsetime.l-1.patch
	10-parsetime.y-1.patch
	10-Makefile.in-1.patch
	at.allow
	atd.initd
	"

_builddir=${srcdir}
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p0 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	LEXLIB=-lfl \
	./configure --prefix=/usr \
	            --sbindir=/usr/sbin \
		    --runstatedir=/var/run \
		    --with-daemon_username=at \
		    --with-daemon_groupname=at \
	            --with-jobdir=/var/spool/atd \
		    --with-atspool=/var/spool/atd || return 1
	make || return 1
}

package() {
	cd "$_builddir"

	/usr/bin/install -D -o root -g at -m 640 "$srcdir"/at.allow \
		"$pkgdir"/etc/at.allow || return 1

	make IROOT="$pkgdir" install || return 1

	/usr/bin/install -m 755 -D "$srcdir"/atd.initd \
		"$pkgdir"/etc/init.d/atd || return 1
}

md5sums="f67a7aab557cd5b4a1311079a08acebe  at_3.1.18.orig.tar.gz
a1b7536d7f88f509644d10f8220d518c  10-parsetime.l-1.patch
5195f745ccd42582032a433928a88ed5  10-parsetime.y-1.patch
fe699a9c3d437f3ab1b57736501bb940  10-Makefile.in-1.patch
74cc1c60799e0a786ac7094b532f01b1  at.allow
86fec213b2337300ea6641de9098d57a  atd.initd"
sha256sums="dbd5c8cb8edd53ef467363c3af0391c08769f1dbbd4d5002c59a4cd4cac11d52  at_3.1.18.orig.tar.gz
b2cb905962f1b9021faf7aa5d612a6b4a4920abb659936d79b9ebdf33eb2f981  10-parsetime.l-1.patch
7086395b7710c18e0954fcb7ab9472d91b2ca07c3935e705b4caf2427e39136b  10-parsetime.y-1.patch
615af791025de65594d639f521d2636721329bbb29b5b3cc56f7cb37251454fa  10-Makefile.in-1.patch
53175bcc0524f37b47062fafdda28e3f8eb91d519ca0a184ca71bbebe72f969a  at.allow
3e29a0e5495309dc4c59c66de03b49b2690d1b9748867ca9329370b7b91f5f1a  atd.initd"
sha512sums="5ec7512663461ffa1922cef0d99c3cc4882defbea7b1ab855b05bb83e9d3817535db73db74413bcc8af005c956032ec3dc7c83ac16fde96bb315094dae654042  at_3.1.18.orig.tar.gz
1dffcaa1a2c9e469ffdee9b204d4a28f0e2f03e37b28b954406d41279b472686b6b7c4bcc454a2e830992cc60be2bf5b81e2e6f0093e0f674ab38a75c2a254ec  10-parsetime.l-1.patch
306f8ed99b70956e01e76f4b8aa336978c3bbe8600ff52ad99c7fbcc0a7d8107e7f3cd4ebdad265df0c30663665715e73416fe7ac7436b5d13f07dda78f3eafa  10-parsetime.y-1.patch
26db0489d011f2e7834fe3fe217f058e20dd6882edb470f09c859883c064a1422f4a7775fe35992176004292632e40e0f17eb6e05f2724983ea1bf17d7da732f  10-Makefile.in-1.patch
21e1bc024bd76c76b68e04614c6def5b03fd4b658e59bfde065b464b520f463711b795455e3a5c81a8a1946b2bca2f83d6c19300a4d3326ce17959a7cbc0846a  at.allow
fe5c075566ef1955e0eb4b4446fe1ea401940df6e0f29e4e2f1baf93e231214db58c707e99b16bb3a3c8c288a05fc390a44c6f09fde50d31f0ac631a98d86c2d  atd.initd"