wok view c_icap/receipt @ rev 23484

updated python-foolscap (0.8.0 -> 0.13.2)
author Hans-G?nter Theisgen
date Sun Apr 05 16:56:52 2020 +0100 (2020-04-05)
parents 0cf279b4394a
children 9af0e03b8ad0
line source
1 # SliTaz package receipt.
3 PACKAGE="c_icap"
4 VERSION="0.5.6"
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 DEPENDS=""
15 BUILD_DEPENDS=""
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure \
21 --sysconfdir=/etc/c-icap \
22 --enable-large-files \
23 $CONFIGURE_ARGS &&
24 make &&
25 make install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/lib/$PACKAGE
32 mkdir -p $fs/etc/init.d
33 mkdir -p $fs/var/log/c-icap
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/lib/*.so* $fs/usr/lib
37 cp -a $install/usr/lib/$PACKAGE/*.so* $fs/usr/lib/$PACKAGE
38 cp -pa $install/etc $fs/
39 cp -pa $stuff/c-icapd $fs/etc/init.d
41 # Cleanup
42 rm -f $fs/usr/bin/c-icap-config
44 # Fix configuration file
45 sed -i -e "s|YourServerName|localhost|" \
46 -e "s|/usr/var/log|/var/log/c-icap/|" \
47 -e "s|/usr/var/run/|/var/run/c-icap|" \
48 -e "s|/usr/etc|/etc/c-icap|" \
49 $fs/etc/c-icap/c-icap.conf
50 chmod -x $fs/etc/c-icap/*
51 }
53 post_install()
54 {
55 [ -z "$1" -a ! -s /aufs-umount.sh ] &&
56 /etc/init.d/c-icapd start
58 cat <<EOF
60 ----
61 To start $PACKAGE server you can run :
63 /etc/init.d/$PACKAGE start
65 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
66 ----
67 EOF
68 }
70 pre_remove()
71 {
72 echo "Stopping daemon..."
73 if (ps | grep -q c-icap)
74 then
75 chroot "$1/" /etc/init.d/c-icapd stop
76 fi
77 }
79 post_remove()
80 {
81 echo "Removing stalled files..."
82 test -d "$1/var/log/c-icap" && rm -rf "$1/var/log/c-icap"
83 test -d "$1/usr/run/c-icap" && rm -rf "$1/usr/run/c-icap"
84 }