wok-next view c_icap/receipt @ rev 20533

cairo-clock, grub4dos: fix CFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 27 12:50:45 2018 +0200 (2018-03-27)
parents f3a2b92891b4
children 757d032c55c7
line source
1 # SliTaz package receipt v2.
3 PACKAGE="c_icap"
4 VERSION="0.1.7"
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="zlib-dev"
15 SPLIT="c_icap-dev"
17 compile_rules() {
18 sed -i '/sysconfdir=/ s|^|#|' /etc/slitaz/cook.site # default sysconfdir=/etc
20 ./configure \
21 --sysconfdir=/etc/c-icap \
22 --enable-large-files \
23 $CONFIGURE_ARGS &&
24 make && make install || return 1
26 mkdir -p $install/etc/init.d/ $install/var/log/c-icap/
27 install -m755 $stuff/c-icapd $install/etc/init.d
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 ;;
42 *-dev)
43 copy @dev
44 ;;
45 esac
46 }
48 post_install_c_icap() {
49 [ -z "$1" -a ! -s /aufs-umount.sh ] && /etc/init.d/c-icapd start
51 [ -n "$quiet" ] || cat <<EOF
53 .----------------------------------------------.
54 | To start c_icap server you can run: |
55 | |
56 | /etc/init.d/c_icap start |
57 | |
58 |Or add c_icap to RUN_DAEMONS in /etc/rcS.conf |
59 '----------------------------------------------'
60 EOF
61 }
63 pre_remove_c_icap() {
64 echo "Stopping daemon..."
65 if (ps | grep -q c-icap); then
66 chroot "$1/" /etc/init.d/c-icapd stop
67 fi
68 }
69 post_remove_c_icap() {
70 echo "Removing stalled files..."
71 [ -d "$1/var/log/c-icap" ] && rm -rf "$1/var/log/c-icap"
72 [ -d "$1/usr/run/c-icap" ] && rm -rf "$1/usr/run/c-icap"
73 }