wok-next view c-icap/receipt @ rev 21244
updated coova-chilli again (1.3.0 -> 1.5)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Dec 05 15:20:58 2019 +0100 (2019-12-05) |
parents | e19ff076dc63 |
children | 39afd1f4ffe0 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="c-icap"
4 VERSION="0.5.5"
5 CATEGORY="network"
6 SHORT_DESC="Implementation of an ICAP server"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://c-icap.sourceforge.net/"
11 TARBALL="c_icap-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/c-icap/$TARBALL"
14 BUILD_DEPENDS="openssl-dev zlib-dev bzip2-dev brotli-dev openldap-dev pcre-dev"
15 SPLIT="$PACKAGE-dev"
17 COOKOPTS="force-arch" # different configs, .h
19 compile_rules() {
20 ./configure \
21 --sysconfdir=/etc/c-icap \
22 --enable-large-files \
23 $CONFIGURE_ARGS &&
24 fix libtool &&
25 make &&
26 make install || return 1
28 mkdir -p $install/var/log/c-icap/
29 install -Dm755 $stuff/c-icapd $install/etc/init.d/c-icapd
31 # Fix config file
32 sed -i -e "s|YourServerName|localhost|;
33 s|/usr/var/log|/var/log/c-icap/|;
34 s|/usr/var/run/|/var/run/c-icap|;
35 s|/usr/etc|/etc/c-icap|" $install/etc/c-icap/c-icap.conf
36 chmod -x $install/etc/c-icap/*
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 c-icap)
42 copy @std var/log/c-icap/
43 DEPENDS="brotli libbzip2 libldap libpcre openssl zlib"
44 CONFIG_FILES="/etc/c-icap/"
45 ;;
46 *-dev)
47 copy @dev
48 ;;
49 esac
50 }
52 post_install_c_icap() {
53 [ -z "$1" -a ! -s /aufs-umount.sh ] && /etc/init.d/c-icapd start
55 [ -n "$quiet" ] || cat <<EOF
57 .------------------------------------------------.
58 | To start c-icap server you can run: |
59 | |
60 | /etc/init.d/c-icapd start |
61 | |
62 | or add c-icapd to RUN_DAEMONS in /etc/rcS.conf |
63 '------------------------------------------------'
64 EOF
65 }
67 pre_remove_c_icap() {
68 echo "Stopping daemon..."
69 if (ps | grep -q c-icap); then
70 chroot "$1/" /etc/init.d/c-icapd stop
71 fi
72 }
73 post_remove_c_icap() {
74 echo "Removing stalled files..."
75 [ -d "$1/var/log/c-icap" ] && rm -rf "$1/var/log/c-icap"
76 [ -d "$1/usr/run/c-icap" ] && rm -rf "$1/usr/run/c-icap"
77 }