blob: 67c4667f452892f1f9e7df9fe43f8f25e984264a (
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
|
# Maintainer (Arch): Amish <contact at via dot aur>
pkgname=c-icap
pkgver=0.4.2
pkgrel=1
pkgdesc='Implementation of an ICAP server'
arch=(i686 x86_64 armv7h)
url='http://c-icap.sourceforge.net/'
license=('GPL' 'LGPL')
source=("http://downloads.sourceforge.net/project/c-icap/c-icap/0.4.x/c_icap-${pkgver}.tar.gz"
'c-icap.conf'
'c-icap.service'
'tmpfiles.d'
'logrotate')
sha256sums=('b138c7d7d9828d54c3307bcfe7b4917911266593832ffc26a60df9a0dfd2511e'
'a2859a3f2bab1d96ae3a6364853a65c3985a0c336dab385294b977ecca336fc3'
'313ae1b3ff52597158d3a914702d60b16248a8fb8f934e91644f63ad373e6375'
'485fa1649ad1a63f6f2ec46eb0c8100d8756be0ba99df2cf23aa2fc70f14b27d'
'07d5d98801feb0b20fe3cbbf9f7d00148cbda7b2e9e2bc07d859c1c5aa154926')
backup=('etc/c-icap/c-icap.conf'
'etc/c-icap/c-icap.magic'
'etc/logrotate.d/c-icap')
install=install
build() {
cd "${srcdir}/c_icap-${pkgver}"
./configure \
--prefix=/usr \
--localstatedir=/var \
--sbindir=/usr/bin \
--sysconfdir=/etc/c-icap \
--enable-ipv6 \
make
}
package() {
cd "${srcdir}/c_icap-${pkgver}"
make DESTDIR="${pkgdir}" install
# fix some bad permissions
find "${pkgdir}"/etc/c-icap/ -type f -print0 | xargs -0 chmod 644
chmod g-w "${pkgdir}"/var/log
# remove /var/run directory which should not be packaged
rmdir "${pkgdir}"/var/run/c-icap/ "${pkgdir}"/var/run/
install -Dm644 ../c-icap.conf "${pkgdir}"/etc/c-icap/c-icap.conf
install -Dm644 ../c-icap.service "${pkgdir}"/usr/lib/systemd/system/c-icap.service
install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/c-icap.conf
install -Dm644 ../logrotate "${pkgdir}"/etc/logrotate.d/c-icap
install -d -m750 "${pkgdir}"/var/log/c-icap
chown 15:15 "${pkgdir}"/var/log/c-icap
}
|