aboutsummaryrefslogtreecommitdiffstats
path: root/community/at/APKBUILD
blob: 701b66acfccbfd00483f5deb99ab6a04ab619f7f (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
# Contributor: Alexander Belkov <msun00@yandex.ru>
# Maintainer: Alexander Belkov <msun00@yandex.ru>
pkgname=at
pkgver=3.1.20
pkgrel=0
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/$pkgname-$pkgver"

prepare() {
	default_prepare || return 1
	update_config_guess || return 1
}

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"
	install -D -o root -g at -m 640 "$srcdir"/at.allow \
		"$pkgdir"/etc/at.allow || return 1
	make IROOT="$pkgdir" install || return 1
	install -m 755 -D "$srcdir"/atd.initd \
		"$pkgdir"/etc/init.d/atd || return 1
}

md5sums="e7bd7b785b2cbb17e133d6bdc0fb099e  at_3.1.20.orig.tar.gz
71a6de8c84ad7348ee3055cfdae53101  10-parsetime.l-1.patch
44688f4e4e814cb628f86e4b3b139aa4  10-parsetime.y-1.patch
ce269fa90d320b9398f3f96f0e0de332  10-Makefile.in-1.patch
74cc1c60799e0a786ac7094b532f01b1  at.allow
86fec213b2337300ea6641de9098d57a  atd.initd"
sha256sums="0871923cab73050b98ace020664eb2ddc1e669e4166b5abb64d864d02fcefab9  at_3.1.20.orig.tar.gz
e8ab94bc947918b913b82f12f517a92fd4b7e5f1af1e6ce9171299c6870e8acb  10-parsetime.l-1.patch
dd81811bc80ee15c83241b4ec785d4327889ed24939b6ec7778ba92b32c4d4f9  10-parsetime.y-1.patch
f2060a65d703b08d8fdf57897aa2ccd15d55f36e5f5700ee1c3a1a02a5cda26f  10-Makefile.in-1.patch
53175bcc0524f37b47062fafdda28e3f8eb91d519ca0a184ca71bbebe72f969a  at.allow
3e29a0e5495309dc4c59c66de03b49b2690d1b9748867ca9329370b7b91f5f1a  atd.initd"
sha512sums="20a13512a86f988728f590712f5bf8a23f4dc44f4b42521a4dd4783dc1ba7ac2016ee87b4c2c14f2346a5839168a983d99c3195e947014aea3096a3db16d176f  at_3.1.20.orig.tar.gz
ec24581fd59de62a93a5914f57b811baaf00fcc8fe969a4c8d0eb0cb2fd939762871725fec406eb127763935ab95ea10e23f314144a5d08ede78ba3bcf231e4a  10-parsetime.l-1.patch
9c06a4e92f3820a85ba75be8c14cb02762f6a5d4f0182bb2faafe51f5de2e35b0ce91e7e81f6e5b3127732c36c8e23e276a103aa0419661a602df93df274f855  10-parsetime.y-1.patch
ba57e93c9c90dc989e8ac299c12de13de0005b28fd934620a9a5b47af89db3c0dc63e39043ab3a50d313ed2bb4f4832b1f68db971b3f515c500a2b74ed18acbd  10-Makefile.in-1.patch
21e1bc024bd76c76b68e04614c6def5b03fd4b658e59bfde065b464b520f463711b795455e3a5c81a8a1946b2bca2f83d6c19300a4d3326ce17959a7cbc0846a  at.allow
fe5c075566ef1955e0eb4b4446fe1ea401940df6e0f29e4e2f1baf93e231214db58c707e99b16bb3a3c8c288a05fc390a44c6f09fde50d31f0ac631a98d86c2d  atd.initd"