wok-next annotate 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
rev   line source
al@19810 1 # SliTaz package receipt v2.
erjo@11890 2
erjo@11890 3 PACKAGE="c_icap"
erjo@11890 4 VERSION="0.1.7"
erjo@11890 5 CATEGORY="network"
al@19810 6 SHORT_DESC="Implementation of an ICAP server"
erjo@11890 7 MAINTAINER="erjo@slitaz.org"
pascal@14996 8 LICENSE="LGPL2.1"
erjo@11890 9 WEB_SITE="http://c-icap.sourceforge.net/"
al@19810 10
erjo@11890 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
erjo@11890 12 WGET_URL="$SF_MIRROR/c-icap/$TARBALL"
erjo@11890 13
al@19661 14 BUILD_DEPENDS="zlib-dev"
al@19810 15 SPLIT="c_icap-dev"
erjo@11890 16
al@20492 17 compile_rules() {
al@19810 18 ./configure \
al@19810 19 --sysconfdir=/etc/c-icap \
erjo@11890 20 --enable-large-files \
al@19810 21 $CONFIGURE_ARGS &&
al@20534 22 make &&
al@20534 23 make install || return 1
al@19810 24
al@20492 25 mkdir -p $install/etc/init.d/ $install/var/log/c-icap/
al@20492 26 install -m755 $stuff/c-icapd $install/etc/init.d
al@19810 27
al@19810 28 # Fix config file
al@19810 29 sed -i -e "s|YourServerName|localhost|;
al@19810 30 s|/usr/var/log|/var/log/c-icap/|;
al@19810 31 s|/usr/var/run/|/var/run/c-icap|;
al@20492 32 s|/usr/etc|/etc/c-icap|" $install/etc/c-icap/c-icap.conf
al@19810 33 chmod -x $install/etc/c-icap/*
erjo@11890 34 }
erjo@11890 35
al@20492 36 genpkg_rules() {
al@19810 37 case $PACKAGE in
al@19810 38 c_icap)
al@19810 39 copy @std var/log/c-icap/
al@19810 40 ;;
al@19810 41 *-dev)
al@19810 42 copy @dev
al@19810 43 ;;
al@19810 44 esac
erjo@11890 45 }
erjo@11941 46
al@19810 47 post_install_c_icap() {
pascal@15660 48 [ -z "$1" -a ! -s /aufs-umount.sh ] && /etc/init.d/c-icapd start
al@19810 49
al@19810 50 [ -n "$quiet" ] || cat <<EOF
al@19810 51
al@20492 52 .----------------------------------------------.
al@20492 53 | To start c_icap server you can run: |
al@20492 54 | |
al@20492 55 | /etc/init.d/c_icap start |
al@20492 56 | |
al@20492 57 |Or add c_icap to RUN_DAEMONS in /etc/rcS.conf |
al@20492 58 '----------------------------------------------'
erjo@11941 59 EOF
erjo@11941 60 }
erjo@11941 61
al@19810 62 pre_remove_c_icap() {
al@19810 63 echo "Stopping daemon..."
al@19810 64 if (ps | grep -q c-icap); then
al@19810 65 chroot "$1/" /etc/init.d/c-icapd stop
al@19810 66 fi
erjo@11941 67 }
al@19810 68 post_remove_c_icap() {
erjo@11941 69 echo "Removing stalled files..."
al@19810 70 [ -d "$1/var/log/c-icap" ] && rm -rf "$1/var/log/c-icap"
al@19810 71 [ -d "$1/usr/run/c-icap" ] && rm -rf "$1/usr/run/c-icap"
erjo@11941 72 }