wok-6.x view c_icap/receipt @ rev 22322
updated yelp-tools and yelp-xsl
author | Hans-G?nter Theisgen |
---|---|
date | Thu Nov 14 17:10:01 2019 +0100 (2019-11-14) |
parents | 9e01bc6321ea |
children | 59a032355c05 |
line source
1 # SliTaz package receipt.
3 PACKAGE="c_icap"
4 VERSION="0.5.5"
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 $fs/etc/init.d \
33 $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
39 cp -pa $install/etc $fs/
40 cp -pa $stuff/c-icapd $fs/etc/init.d
42 # Cleanup
43 rm -f $fs/usr/bin/c-icap-config
45 # Fix config file
46 sed -i -e "s|YourServerName|localhost|" \
47 -e "s|/usr/var/log|/var/log/c-icap/|" \
48 -e "s|/usr/var/run/|/var/run/c-icap|" \
49 -e "s|/usr/etc|/etc/c-icap|" $fs/etc/c-icap/c-icap.conf
50 chmod -x $fs/etc/c-icap/*
52 }
54 post_install()
55 {
56 [ -z "$1" -a ! -s /aufs-umount.sh ] && /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(){
72 echo "Stopping daemon..."
73 if (ps | grep -q c-icap); then
74 chroot "$1/" /etc/init.d/c-icapd stop
75 fi
76 }
77 post_remove()
78 {
79 echo "Removing stalled files..."
80 test -d "$1/var/log/c-icap" && rm -rf "$1/var/log/c-icap"
81 test -d "$1/usr/run/c-icap" && rm -rf "$1/usr/run/c-icap"
82 }