wok-next view c_icap/receipt @ rev 20785

gpgme: add gnupg, since build can not find gpgconf and gpg
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Jun 09 07:02:52 2018 +0000 (2018-06-09)
parents 835b3b8ce6ac
children d958fec46c9f
line source
1 # SliTaz package receipt v2.
3 PACKAGE="c_icap"
4 VERSION="0.5.3"
5 CATEGORY="network"
6 SHORT_DESC="Implementation of an ICAP server"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://c-icap.sourceforge.net/"
11 TARBALL="$PACKAGE-$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="c_icap-dev"
17 compile_rules() {
18 ./configure \
19 --sysconfdir=/etc/c-icap \
20 --enable-large-files \
21 $CONFIGURE_ARGS &&
22 fix libtool &&
23 make &&
24 make install || return 1
26 mkdir -p $install/var/log/c-icap/
27 install -Dm755 $stuff/c-icapd $install/etc/init.d/c-icapd
29 # Fix config file
30 sed -i -e "s|YourServerName|localhost|;
31 s|/usr/var/log|/var/log/c-icap/|;
32 s|/usr/var/run/|/var/run/c-icap|;
33 s|/usr/etc|/etc/c-icap|" $install/etc/c-icap/c-icap.conf
34 chmod -x $install/etc/c-icap/*
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 c_icap)
40 copy @std var/log/c-icap/
41 DEPENDS="brotli bzlib libldap libpcre openssl zlib"
42 ;;
43 *-dev)
44 copy @dev
45 ;;
46 esac
47 }
49 post_install_c_icap() {
50 [ -z "$1" -a ! -s /aufs-umount.sh ] && /etc/init.d/c-icapd start
52 [ -n "$quiet" ] || cat <<EOF
54 .----------------------------------------------.
55 | To start c_icap server you can run: |
56 | |
57 | /etc/init.d/c_icap start |
58 | |
59 |Or add c_icap to RUN_DAEMONS in /etc/rcS.conf |
60 '----------------------------------------------'
61 EOF
62 }
64 pre_remove_c_icap() {
65 echo "Stopping daemon..."
66 if (ps | grep -q c-icap); then
67 chroot "$1/" /etc/init.d/c-icapd stop
68 fi
69 }
70 post_remove_c_icap() {
71 echo "Removing stalled files..."
72 [ -d "$1/var/log/c-icap" ] && rm -rf "$1/var/log/c-icap"
73 [ -d "$1/usr/run/c-icap" ] && rm -rf "$1/usr/run/c-icap"
74 }