wok-next view c_icap/receipt @ rev 20555
Fix "DSO missing..." error: loqui, xfprint, notification-daemon-gtk2, xfmedia, evince, celestia(?)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 06 17:43:57 2018 +0300 (2018-04-06) |
parents | 4c1ed6983d05 |
children | 835b3b8ce6ac |
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 ./configure \
19 --sysconfdir=/etc/c-icap \
20 --enable-large-files \
21 $CONFIGURE_ARGS &&
22 make &&
23 make install || return 1
25 mkdir -p $install/etc/init.d/ $install/var/log/c-icap/
26 install -m755 $stuff/c-icapd $install/etc/init.d
28 # Fix config file
29 sed -i -e "s|YourServerName|localhost|;
30 s|/usr/var/log|/var/log/c-icap/|;
31 s|/usr/var/run/|/var/run/c-icap|;
32 s|/usr/etc|/etc/c-icap|" $install/etc/c-icap/c-icap.conf
33 chmod -x $install/etc/c-icap/*
34 }
36 genpkg_rules() {
37 case $PACKAGE in
38 c_icap)
39 copy @std var/log/c-icap/
40 ;;
41 *-dev)
42 copy @dev
43 ;;
44 esac
45 }
47 post_install_c_icap() {
48 [ -z "$1" -a ! -s /aufs-umount.sh ] && /etc/init.d/c-icapd start
50 [ -n "$quiet" ] || cat <<EOF
52 .----------------------------------------------.
53 | To start c_icap server you can run: |
54 | |
55 | /etc/init.d/c_icap start |
56 | |
57 |Or add c_icap to RUN_DAEMONS in /etc/rcS.conf |
58 '----------------------------------------------'
59 EOF
60 }
62 pre_remove_c_icap() {
63 echo "Stopping daemon..."
64 if (ps | grep -q c-icap); then
65 chroot "$1/" /etc/init.d/c-icapd stop
66 fi
67 }
68 post_remove_c_icap() {
69 echo "Removing stalled files..."
70 [ -d "$1/var/log/c-icap" ] && rm -rf "$1/var/log/c-icap"
71 [ -d "$1/usr/run/c-icap" ] && rm -rf "$1/usr/run/c-icap"
72 }